@kg-ui/kg-ui-plus 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue.mjs +16 -0
- package/dist/es/KgCopilot/CopiContent/AnswerHead.vue2.mjs +4 -0
- package/dist/es/KgCopilot/CopiContent/UserHead.vue.mjs +26 -0
- package/dist/es/KgCopilot/CopiContent/UserHead.vue2.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue2.mjs +49 -0
- package/dist/es/KgCopilot/CopiFooter/components/NewTheme.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue2.mjs +94 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SelectPlugin.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue2.mjs +33 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/SpeechControl.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue2.mjs +140 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/Upload.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue2.mjs +131 -0
- package/dist/es/KgCopilot/CopiFooter/components/SearchInput/index.vue3.mjs +4 -0
- package/dist/es/KgCopilot/CopiFooter/index.vue.mjs +7 -0
- package/dist/es/KgCopilot/CopiFooter/index.vue2.mjs +21 -0
- package/dist/es/KgCopilot/CopiFooter/index.vue3.mjs +4 -0
- package/dist/es/KgCopilot/dialogue/index.vue.mjs +7 -0
- package/dist/es/KgCopilot/dialogue/index.vue2.mjs +131 -0
- package/dist/es/KgCopilot/dialogue/index.vue3.mjs +4 -0
- package/dist/es/KgCopilot/dialogue/mdInCode.mjs +56 -0
- package/dist/es/KgCopilot/dialogue/readMd.vue.mjs +7 -0
- package/dist/es/KgCopilot/dialogue/readMd.vue2.mjs +87 -0
- package/dist/es/KgCopilot/dialogue/readMd.vue3.mjs +4 -0
- package/dist/es/KgCopilot/index.vue.mjs +7 -0
- package/dist/es/KgCopilot/index.vue2.mjs +49 -0
- package/dist/es/KgCopilot/index.vue3.mjs +4 -0
- package/dist/es/_virtual/___vite-browser-external.mjs +6 -0
- package/dist/es/_virtual/__vite-browser-external.mjs +4 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +34 -0
- package/dist/es/_virtual/_plugin-vue_export-helper.mjs +10 -0
- package/dist/es/_virtual/index.mjs +13 -0
- package/dist/es/api/project.mjs +51 -0
- package/dist/es/directives/heighlight/index.mjs +69 -0
- package/dist/es/directives/index.mjs +4 -0
- package/dist/es/home/LFilter/FilterArea.vue.mjs +7 -0
- package/dist/es/home/LFilter/FilterArea.vue2.mjs +507 -0
- package/dist/es/home/LFilter/FilterArea.vue3.mjs +4 -0
- package/dist/es/home/LFilter/FilterHead.vue.mjs +129 -0
- package/dist/es/home/LFilter/FilterHead.vue2.mjs +4 -0
- package/dist/es/home/LFilter/FilterItem.vue.mjs +7 -0
- package/dist/es/home/LFilter/FilterItem.vue2.mjs +114 -0
- package/dist/es/home/LFilter/FilterItem.vue3.mjs +4 -0
- package/dist/es/home/LFilter/FilterItemIcon.vue.mjs +7 -0
- package/dist/es/home/LFilter/FilterItemIcon.vue2.mjs +171 -0
- package/dist/es/home/LFilter/FilterItemIcon.vue3.mjs +4 -0
- package/dist/es/home/LFilter/index.vue.mjs +17 -0
- package/dist/es/home/LFilter/index.vue2.mjs +4 -0
- package/dist/es/home/LProject/index.vue.mjs +7 -0
- package/dist/es/home/LProject/index.vue2.mjs +70 -0
- package/dist/es/home/LProject/index.vue3.mjs +4 -0
- package/dist/es/home/index.vue.mjs +7 -0
- package/dist/es/home/index.vue2.mjs +80 -0
- package/dist/es/home/index.vue3.mjs +4 -0
- package/dist/es/index.mjs +26 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/check.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/circle-plus.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/close.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/microphone.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/paperclip.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/promotion.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ep@1.2.7/node_modules/@iconify-icons/ep/upload.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/copy-simple.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/speaker-high-light.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-down-thin.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/thumbs-up-thin.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ph@1.2.5/node_modules/@iconify-icons/ph/warning-bold.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/add-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-down-s-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/arrow-up-s-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/check-fill.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/download-line.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@iconify-icons_ri@1.2.3/node_modules/@iconify-icons/ri/more-2-fill.mjs +8 -0
- package/dist/es/node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs +70 -0
- package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.mjs +16 -0
- package/dist/es/node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.mjs +36 -0
- package/dist/es/node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.mjs +48 -0
- package/dist/es/node_modules/.pnpm/dompurify@3.0.10/node_modules/dompurify/dist/purify.es.mjs +949 -0
- package/dist/es/node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.mjs +22 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.mjs +4 -0
- package/dist/es/node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.mjs +4 -0
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.mjs +72 -0
- package/dist/es/node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.mjs +6 -0
- package/dist/es/node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.mjs +320 -0
- package/dist/es/node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.mjs +14 -0
- package/dist/es/node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.mjs +19 -0
- package/dist/es/node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.mjs +11 -0
- package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.mjs +21 -0
- package/dist/es/node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.mjs +48 -0
- package/dist/es/node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.mjs +8 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/core.mjs +5 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/apache.mjs +91 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/bash.mjs +377 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/basic.mjs +221 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/c.mjs +280 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/css.mjs +732 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dart.mjs +247 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/django.mjs +47 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dns.mjs +71 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dos.mjs +160 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/dust.mjs +38 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/erlang.mjs +176 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/go.mjs +135 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/http.mjs +89 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/java.mjs +254 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/javascript.mjs +698 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/json.mjs +40 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/markdown.mjs +227 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/nginx.mjs +144 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/php.mjs +589 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/python.mjs +414 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/ruby.mjs +414 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/stylus.mjs +766 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/swift.mjs +832 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/typescript.mjs +788 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/es/languages/xml.mjs +227 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/lib/core.mjs +1580 -0
- package/dist/es/node_modules/.pnpm/highlight.js@11.9.0/node_modules/highlight.js/styles/paraiso-light.css.mjs +4 -0
- package/dist/es/node_modules/.pnpm/marked@12.0.1/node_modules/marked/lib/marked.esm.mjs +2045 -0
- package/dist/es/node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.mjs +514 -0
- package/dist/es/node_modules/.pnpm/pinyin-match@1.2.4/node_modules/pinyin-match/es/main.mjs +124 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/formats.mjs +22 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/index.mjs +14 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/parse.mjs +199 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/stringify.mjs +262 -0
- package/dist/es/node_modules/.pnpm/qs@6.11.0/node_modules/qs/lib/utils.mjs +196 -0
- package/dist/es/node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.mjs +54 -0
- package/dist/es/node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.mjs +115 -0
- package/dist/es/store/index.mjs +8 -0
- package/dist/es/store/modules/copilot.mjs +111 -0
- package/dist/es/store/modules/filters.mjs +346 -0
- package/dist/es/store/modules/types.mjs +19 -0
- package/dist/es/style/index.scss.mjs +4 -0
- package/dist/es/style/tailwind.css.mjs +4 -0
- package/dist/es/style.css +1 -0
- package/dist/es/utils/home.mjs +129 -0
- package/dist/es/utils/http/index.mjs +90 -0
- package/dist/es/utils/message.mjs +42 -0
- package/package.json +23 -32
@@ -0,0 +1,111 @@
|
|
1
|
+
import { rootStrore } from "../index.mjs";
|
2
|
+
import { defineStore } from "pinia";
|
3
|
+
const initDialogue = () => [
|
4
|
+
// {
|
5
|
+
// isSend: false,
|
6
|
+
// msg: [
|
7
|
+
// "### 谢谢你!知道你什么时候准备好继续前进总是很有帮助的。我现在能为你回答什么问题?"
|
8
|
+
// ]
|
9
|
+
// }
|
10
|
+
];
|
11
|
+
const useCopilotStore = defineStore({
|
12
|
+
id: "kg-copilot",
|
13
|
+
state: () => ({
|
14
|
+
searchText: "",
|
15
|
+
isShowNewTheme: false,
|
16
|
+
isInitCopilot: false,
|
17
|
+
stopDialogue: false,
|
18
|
+
msgList: initDialogue(),
|
19
|
+
sendLonding: false
|
20
|
+
}),
|
21
|
+
getters: {},
|
22
|
+
actions: {
|
23
|
+
initCopilot() {
|
24
|
+
this.isInitCopilot = true;
|
25
|
+
this.setSearchText("");
|
26
|
+
this.isShowNewTheme = false;
|
27
|
+
this.msgList = initDialogue();
|
28
|
+
this.stopDialogue = false;
|
29
|
+
},
|
30
|
+
setSearchText(str) {
|
31
|
+
this.searchText = str;
|
32
|
+
},
|
33
|
+
toggleShowPanel() {
|
34
|
+
this.setSearchText("");
|
35
|
+
},
|
36
|
+
setSendLonding(isLoading) {
|
37
|
+
this.sendLonding = isLoading;
|
38
|
+
},
|
39
|
+
clearMsgList() {
|
40
|
+
this.initCopilot();
|
41
|
+
},
|
42
|
+
setMsgList(msgList) {
|
43
|
+
this.msgList = msgList;
|
44
|
+
},
|
45
|
+
setShowNewTheme(show) {
|
46
|
+
this.isShowNewTheme = show;
|
47
|
+
},
|
48
|
+
async sendMsg(msg) {
|
49
|
+
this.msgList.push({ isSend: true, needPrinting: false, msg: [msg] });
|
50
|
+
this.setSendLonding(true);
|
51
|
+
const tempAns = [
|
52
|
+
"你好!有什么我可以帮助你的吗? ",
|
53
|
+
"你好,我是一个AI助手。我可以用代码帮你完成任务。你只需要告诉我你想要我做什么,剩下的交给我即可。",
|
54
|
+
`# 神经病人的代码狂欢
|
55
|
+
|
56
|
+
在一个风和日丽的午后,神经病人小明突然决定要用代码来展现他的独特文学天赋。他打开电脑,深吸一口气,然后开始了他的创作。
|
57
|
+
|
58
|
+
## 代码的诗歌
|
59
|
+
|
60
|
+
小明认为,代码不仅是一种编程语言,更是一种可以表达内心情感的艺术形式。于是,他写下了以下的代码诗歌:
|
61
|
+
|
62
|
+
|
63
|
+
\`\`\`python
|
64
|
+
if love == True:
|
65
|
+
heart.beat()
|
66
|
+
else:
|
67
|
+
heart.break()
|
68
|
+
|
69
|
+
while lonely:
|
70
|
+
search_for_friendship()
|
71
|
+
|
72
|
+
def dreams_come_true():
|
73
|
+
wish_upon_a_star()
|
74
|
+
believe_in_yourself()
|
75
|
+
return success
|
76
|
+
\`\`\`
|
77
|
+
Have a nice day!!! ^_^
|
78
|
+
|
79
|
+
`
|
80
|
+
];
|
81
|
+
const data = tempAns[Math.floor(Math.random() * 3)];
|
82
|
+
this.msgList.push({
|
83
|
+
isSend: false,
|
84
|
+
needPrinting: true,
|
85
|
+
msg: [data]
|
86
|
+
});
|
87
|
+
this.setSearchText("");
|
88
|
+
},
|
89
|
+
responseMsg(msg) {
|
90
|
+
const [lastMsg] = this.msgList.slice(-1);
|
91
|
+
if (!lastMsg.isSend) {
|
92
|
+
lastMsg.msg.push(msg);
|
93
|
+
return;
|
94
|
+
}
|
95
|
+
this.msgList.push({
|
96
|
+
isSend: false,
|
97
|
+
msg: [msg]
|
98
|
+
});
|
99
|
+
},
|
100
|
+
cancelRequest() {
|
101
|
+
this.setSendLonding(false);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
});
|
105
|
+
function useCopilotStoreHook() {
|
106
|
+
return useCopilotStore(rootStrore);
|
107
|
+
}
|
108
|
+
export {
|
109
|
+
useCopilotStore,
|
110
|
+
useCopilotStoreHook
|
111
|
+
};
|
@@ -0,0 +1,346 @@
|
|
1
|
+
import { defineStore } from "pinia";
|
2
|
+
import { rootStrore } from "../index.mjs";
|
3
|
+
import { EnumEffectPanel, EnumFilterKind } from "./types.mjs";
|
4
|
+
import { getProList, getXinyuanHeadFn, getXinyuanFilterFn, getFilterListApi, getXinyuanFilterMapFn } from "../../api/project.mjs";
|
5
|
+
import { message } from "../../utils/message.mjs";
|
6
|
+
import { isEmpty as Ft } from "../../node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs";
|
7
|
+
import { toRaw } from "vue";
|
8
|
+
const useFilterStore = defineStore({
|
9
|
+
id: "kg-filters",
|
10
|
+
state: () => ({
|
11
|
+
projectList: [],
|
12
|
+
// 项目列表
|
13
|
+
selProjectId: 0,
|
14
|
+
// 选中项目id
|
15
|
+
filterList: [],
|
16
|
+
// 类别列表
|
17
|
+
selFilterIds: [],
|
18
|
+
// 选中的类别id (包括信源类别)
|
19
|
+
allMapData_xinyuan: [],
|
20
|
+
// 信源总映射关系
|
21
|
+
xinyuanHead: null,
|
22
|
+
// 信源表头
|
23
|
+
effectPanel: EnumEffectPanel.None
|
24
|
+
// 条件生效面板
|
25
|
+
}),
|
26
|
+
getters: {
|
27
|
+
selProject(state) {
|
28
|
+
return state.projectList.find(
|
29
|
+
(project) => project.id === state.selProjectId
|
30
|
+
);
|
31
|
+
},
|
32
|
+
getCurSelFilter: (state) => {
|
33
|
+
const filters = [];
|
34
|
+
if (state.selFilterIds.length !== 0) {
|
35
|
+
state.filterList.forEach((rowF) => {
|
36
|
+
var _a;
|
37
|
+
(_a = rowF == null ? void 0 : rowF.childAppCategoryList) == null ? void 0 : _a.forEach((f) => {
|
38
|
+
if (state.selFilterIds.includes(f.id)) {
|
39
|
+
filters.push(f);
|
40
|
+
}
|
41
|
+
});
|
42
|
+
});
|
43
|
+
}
|
44
|
+
return filters;
|
45
|
+
},
|
46
|
+
selFilter_xinyuan: (state) => {
|
47
|
+
const filters = [];
|
48
|
+
if (state.selFilterIds.length !== 0) {
|
49
|
+
state.filterList.forEach((rowF) => {
|
50
|
+
var _a;
|
51
|
+
(_a = rowF == null ? void 0 : rowF.childAppCategoryList) == null ? void 0 : _a.forEach((f) => {
|
52
|
+
if (state.selFilterIds.includes(f.id) && f.kind === EnumFilterKind.XinYuan) {
|
53
|
+
filters.push(f);
|
54
|
+
}
|
55
|
+
});
|
56
|
+
});
|
57
|
+
}
|
58
|
+
return filters;
|
59
|
+
},
|
60
|
+
/**
|
61
|
+
* 选中类别ids (非信源)
|
62
|
+
* */
|
63
|
+
selFilterIds_notXinyuan: (state) => {
|
64
|
+
const ids = [];
|
65
|
+
if (state.selFilterIds.length !== 0) {
|
66
|
+
state.filterList.forEach((rowF) => {
|
67
|
+
var _a;
|
68
|
+
(_a = rowF == null ? void 0 : rowF.childAppCategoryList) == null ? void 0 : _a.forEach((f) => {
|
69
|
+
if (state.selFilterIds.includes(f.id) && f.kind !== EnumFilterKind.XinYuan) {
|
70
|
+
ids.push(f.id);
|
71
|
+
}
|
72
|
+
});
|
73
|
+
});
|
74
|
+
}
|
75
|
+
return ids;
|
76
|
+
},
|
77
|
+
mappingData_selAll: (state) => {
|
78
|
+
var _a;
|
79
|
+
const mappingDataAll = {};
|
80
|
+
const selFs = state.selFilterIds;
|
81
|
+
(_a = state.filterList) == null ? void 0 : _a.forEach((rowF) => {
|
82
|
+
var _a2;
|
83
|
+
(_a2 = rowF.childAppCategoryList) == null ? void 0 : _a2.forEach((f) => {
|
84
|
+
if (selFs.includes(f.id)) {
|
85
|
+
const mappingData = JSON.parse(f.mappingData);
|
86
|
+
for (const key in mappingData) {
|
87
|
+
const oldVal = mappingDataAll[key] || "";
|
88
|
+
const newVal = mappingData[key] || "";
|
89
|
+
if (oldVal === "-1") {
|
90
|
+
mappingDataAll[key] = "-1";
|
91
|
+
} else if (newVal === "-1") {
|
92
|
+
mappingDataAll[key] = "-1";
|
93
|
+
} else {
|
94
|
+
const oldArr = oldVal.split(",");
|
95
|
+
const newArr = newVal.split(",");
|
96
|
+
const result = Array.from(
|
97
|
+
/* @__PURE__ */ new Set([...oldArr, ...newArr])
|
98
|
+
).filter((val) => val !== "");
|
99
|
+
mappingDataAll[key] = result.join(",");
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
});
|
104
|
+
});
|
105
|
+
return mappingDataAll;
|
106
|
+
},
|
107
|
+
selFilter_maxRowIndex: (state) => {
|
108
|
+
var _a;
|
109
|
+
let maxRow = 0;
|
110
|
+
if (state.selFilterIds.length === 0)
|
111
|
+
maxRow = 0;
|
112
|
+
else {
|
113
|
+
const selFs = state.selFilterIds;
|
114
|
+
(_a = state.filterList) == null ? void 0 : _a.forEach((rowF, index) => {
|
115
|
+
var _a2;
|
116
|
+
(_a2 = rowF.childAppCategoryList) == null ? void 0 : _a2.forEach((f) => {
|
117
|
+
if (selFs.includes(f.id)) {
|
118
|
+
maxRow = index;
|
119
|
+
}
|
120
|
+
});
|
121
|
+
});
|
122
|
+
}
|
123
|
+
return maxRow;
|
124
|
+
},
|
125
|
+
selFilter_rootIdArr: (state) => {
|
126
|
+
var _a;
|
127
|
+
let arr = [];
|
128
|
+
if (state.selFilterIds.length === 0)
|
129
|
+
arr = [];
|
130
|
+
else {
|
131
|
+
const selFs = state.selFilterIds;
|
132
|
+
(_a = state.filterList) == null ? void 0 : _a.forEach((rowF) => {
|
133
|
+
if (rowF.childAppCategoryList && rowF.childAppCategoryList.length !== 0) {
|
134
|
+
for (const f of rowF.childAppCategoryList) {
|
135
|
+
if (selFs.includes(f.id)) {
|
136
|
+
arr.push(rowF.id);
|
137
|
+
break;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
});
|
142
|
+
}
|
143
|
+
return arr;
|
144
|
+
},
|
145
|
+
/**
|
146
|
+
* 根据选中的信源,返回总的信源类别关联
|
147
|
+
* 返回值: {123:["亚洲"],12345:["越南"]} | {}
|
148
|
+
* */
|
149
|
+
mappingData_selAll_xinyuan: (state) => {
|
150
|
+
var _a;
|
151
|
+
const mappingDataAll = {};
|
152
|
+
const selFs = state.selFilterIds;
|
153
|
+
(_a = state.filterList) == null ? void 0 : _a.forEach((rowF) => {
|
154
|
+
var _a2;
|
155
|
+
if (rowF.kind === EnumFilterKind.XinYuan) {
|
156
|
+
(_a2 = rowF.childAppCategoryList) == null ? void 0 : _a2.forEach((f) => {
|
157
|
+
var _a3;
|
158
|
+
if (selFs.includes(f.id)) {
|
159
|
+
let mappingData = {};
|
160
|
+
const mappingDataOri = ((_a3 = state.allMapData_xinyuan.find((xinyuan) => {
|
161
|
+
return xinyuan.colId === f.sourceColId && xinyuan.name === f.name;
|
162
|
+
})) == null ? void 0 : _a3.mappindData) || {};
|
163
|
+
if (!Ft(mappingDataOri)) {
|
164
|
+
mappingData = toRaw(mappingDataOri);
|
165
|
+
if (Ft(mappingDataAll)) {
|
166
|
+
for (const key in mappingData) {
|
167
|
+
mappingDataAll[key] = mappingData[key];
|
168
|
+
}
|
169
|
+
} else {
|
170
|
+
for (const key in mappingDataAll) {
|
171
|
+
const includeName = mappingDataAll[key] || [];
|
172
|
+
const names = mappingData[key] || [];
|
173
|
+
mappingDataAll[key] = includeName.filter(
|
174
|
+
(item) => names.includes(item)
|
175
|
+
);
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
}
|
180
|
+
});
|
181
|
+
}
|
182
|
+
});
|
183
|
+
return mappingDataAll;
|
184
|
+
}
|
185
|
+
},
|
186
|
+
actions: {
|
187
|
+
async getProjectList() {
|
188
|
+
const {
|
189
|
+
status,
|
190
|
+
message: msg,
|
191
|
+
data
|
192
|
+
} = await getProList({ pageNo: 1, size: 1e3 });
|
193
|
+
if (status === 200) {
|
194
|
+
const list = (data == null ? void 0 : data.rows) || [];
|
195
|
+
list.forEach((p) => {
|
196
|
+
p.collapse = false;
|
197
|
+
});
|
198
|
+
this.projectList = list;
|
199
|
+
} else {
|
200
|
+
message(msg, { type: "success" });
|
201
|
+
}
|
202
|
+
},
|
203
|
+
setSelProjectId(id) {
|
204
|
+
this.selProjectId = id;
|
205
|
+
},
|
206
|
+
collapseFilter(pro, isCol) {
|
207
|
+
pro.collapse = isCol;
|
208
|
+
},
|
209
|
+
selFilter(filter) {
|
210
|
+
let id = 0;
|
211
|
+
if (typeof filter === "object") {
|
212
|
+
id = filter.id;
|
213
|
+
} else {
|
214
|
+
id = filter;
|
215
|
+
}
|
216
|
+
const index = this.selFilterIds.indexOf(id);
|
217
|
+
index !== -1 ? this.selFilterIds.splice(index, 1) : this.selFilterIds.push(id);
|
218
|
+
this.setEffectPanel(EnumEffectPanel.Category);
|
219
|
+
},
|
220
|
+
selFilters(filters, selRowIds) {
|
221
|
+
filters.forEach((f) => {
|
222
|
+
const id = typeof f === "object" ? f.id : f;
|
223
|
+
const checkout_now = selRowIds.includes(id);
|
224
|
+
const checkout_old = this.selFilterIds.includes(id);
|
225
|
+
if (checkout_now !== checkout_old) {
|
226
|
+
checkout_now ? this.selFilterIds.push(id) : this.selFilterIds.splice(this.selFilterIds.indexOf(id), 1);
|
227
|
+
}
|
228
|
+
});
|
229
|
+
this.setEffectPanel(EnumEffectPanel.Category);
|
230
|
+
},
|
231
|
+
clearAllSelFilter() {
|
232
|
+
this.selFilterIds.length = 0;
|
233
|
+
},
|
234
|
+
async getXinyuanHead() {
|
235
|
+
const {
|
236
|
+
status,
|
237
|
+
message: msg,
|
238
|
+
data
|
239
|
+
} = await getXinyuanHeadFn({ appId: this.selProjectId });
|
240
|
+
if (status === 200) {
|
241
|
+
this.xinyuanHead = data;
|
242
|
+
} else {
|
243
|
+
message(msg, { type: "error" });
|
244
|
+
}
|
245
|
+
},
|
246
|
+
async getFilterList() {
|
247
|
+
const xinyuanFilter = [];
|
248
|
+
const {
|
249
|
+
status: status1,
|
250
|
+
message: msg1,
|
251
|
+
data: data1
|
252
|
+
} = await getXinyuanFilterFn({ appId: this.selProjectId });
|
253
|
+
if (status1 === 200) {
|
254
|
+
const arr = data1 || [];
|
255
|
+
arr.forEach((item) => {
|
256
|
+
var _a;
|
257
|
+
const obj = {};
|
258
|
+
obj.id = item.id;
|
259
|
+
obj.appId = this.selProjectId;
|
260
|
+
obj.name = item.name;
|
261
|
+
obj.property = 1;
|
262
|
+
obj.childAppCategoryList = [];
|
263
|
+
if (item.appSourceRow && ((_a = item.appSourceRow) == null ? void 0 : _a.length) !== 0) {
|
264
|
+
const tempArr0 = [];
|
265
|
+
const tempArr1 = item.appSourceRow;
|
266
|
+
tempArr1.forEach((o) => {
|
267
|
+
const tempO = {};
|
268
|
+
tempO.id = item.id + o.description;
|
269
|
+
tempO.appId = o.appId;
|
270
|
+
tempO.sourceColId = o.appId;
|
271
|
+
tempO.name = o.description;
|
272
|
+
tempO.parentId = item.id;
|
273
|
+
tempO.sourceColId = item.id;
|
274
|
+
tempO.esSourceLabelId = o.esSourceLabelId;
|
275
|
+
tempO.childAppCategoryList = [];
|
276
|
+
tempO.childLabelList = [];
|
277
|
+
tempO.mappingData = "{}";
|
278
|
+
tempO.icon = null;
|
279
|
+
tempArr0.push(tempO);
|
280
|
+
});
|
281
|
+
obj.childAppCategoryList = tempArr0;
|
282
|
+
}
|
283
|
+
xinyuanFilter.push(obj);
|
284
|
+
});
|
285
|
+
} else {
|
286
|
+
message(msg1, { type: "error" });
|
287
|
+
}
|
288
|
+
const {
|
289
|
+
status,
|
290
|
+
message: msg,
|
291
|
+
data
|
292
|
+
} = await getFilterListApi({ appId: this.selProjectId });
|
293
|
+
if (status === 200) {
|
294
|
+
this.filterList = data || [];
|
295
|
+
this.filterList.unshift(...xinyuanFilter);
|
296
|
+
this.filterList.forEach((f) => {
|
297
|
+
var _a;
|
298
|
+
f.collapse = true;
|
299
|
+
f.multipleSel = false;
|
300
|
+
f.selLetter = "所有";
|
301
|
+
const filterKind = f.property === 1 ? EnumFilterKind.XinYuan : f.property === 2 ? EnumFilterKind.ZhuTi : EnumFilterKind.HuaTi;
|
302
|
+
f.kind = filterKind;
|
303
|
+
(_a = f.childAppCategoryList) == null ? void 0 : _a.forEach((subF) => subF.kind = filterKind);
|
304
|
+
});
|
305
|
+
} else {
|
306
|
+
message(msg, { type: "error" });
|
307
|
+
}
|
308
|
+
},
|
309
|
+
/**获取信源类别总映射*/
|
310
|
+
async getAllMapData_xinyuan() {
|
311
|
+
this.allMapData_xinyuan = [];
|
312
|
+
const {
|
313
|
+
status,
|
314
|
+
message: msg,
|
315
|
+
data
|
316
|
+
} = await getXinyuanFilterMapFn({ appId: this.selProjectId });
|
317
|
+
if (status === 200) {
|
318
|
+
this.allMapData_xinyuan = (data == null ? void 0 : data.map((item) => {
|
319
|
+
return {
|
320
|
+
appId: item.appId,
|
321
|
+
colId: item.colId,
|
322
|
+
id: item.id,
|
323
|
+
mappindData: Ft(item.mappingData) ? {} : JSON.parse(item.mappingData),
|
324
|
+
name: item.name
|
325
|
+
};
|
326
|
+
})) || [];
|
327
|
+
} else {
|
328
|
+
message(msg, { type: "error" });
|
329
|
+
}
|
330
|
+
},
|
331
|
+
clearFilterList() {
|
332
|
+
this.selFilterIds.length = 0;
|
333
|
+
this.filterList.length = 0;
|
334
|
+
},
|
335
|
+
setEffectPanel(val) {
|
336
|
+
this.effectPanel = val;
|
337
|
+
}
|
338
|
+
}
|
339
|
+
});
|
340
|
+
function useFilterStoreHook() {
|
341
|
+
return useFilterStore(rootStrore);
|
342
|
+
}
|
343
|
+
export {
|
344
|
+
useFilterStore,
|
345
|
+
useFilterStoreHook
|
346
|
+
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
var EnumFilterKind = /* @__PURE__ */ ((EnumFilterKind2) => {
|
2
|
+
EnumFilterKind2[EnumFilterKind2["XinYuan"] = 1] = "XinYuan";
|
3
|
+
EnumFilterKind2[EnumFilterKind2["ZhuTi"] = 2] = "ZhuTi";
|
4
|
+
EnumFilterKind2[EnumFilterKind2["HuaTi"] = 0] = "HuaTi";
|
5
|
+
return EnumFilterKind2;
|
6
|
+
})(EnumFilterKind || {});
|
7
|
+
var EnumEffectPanel = /* @__PURE__ */ ((EnumEffectPanel2) => {
|
8
|
+
EnumEffectPanel2[EnumEffectPanel2["None"] = 0] = "None";
|
9
|
+
EnumEffectPanel2[EnumEffectPanel2["Category"] = 1] = "Category";
|
10
|
+
EnumEffectPanel2[EnumEffectPanel2["Tag"] = 2] = "Tag";
|
11
|
+
EnumEffectPanel2[EnumEffectPanel2["Rule"] = 3] = "Rule";
|
12
|
+
EnumEffectPanel2[EnumEffectPanel2["RuleCheck"] = 4] = "RuleCheck";
|
13
|
+
EnumEffectPanel2[EnumEffectPanel2["RuleDetail"] = 5] = "RuleDetail";
|
14
|
+
return EnumEffectPanel2;
|
15
|
+
})(EnumEffectPanel || {});
|
16
|
+
export {
|
17
|
+
EnumEffectPanel,
|
18
|
+
EnumFilterKind
|
19
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
.copilot-box[data-v-0c6a1d5f]{display:flex;flex-direction:column;height:100%;justify-content:space-between;padding:.5rem 1.5rem;width:100%}.copilot-box .copilot-bottom-box[data-v-0c6a1d5f]{position:relative;width:100%}.panel[data-v-0d23acf9]{margin:6px!important}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.flex-bc{align-items:center;display:flex;justify-content:space-between}.collapse{visibility:collapse}.static{position:static}.absolute{position:absolute}.relative{position:relative}.right-0{right:0}.bottom-0{bottom:0}.my-1{margin-bottom:.25rem;margin-top:.25rem}.mb-5{margin-bottom:1.25rem}.mb-1{margin-bottom:.25rem}.mt-1{margin-top:.25rem}.mb-3{margin-bottom:.75rem}.mr-3{margin-right:.75rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.mt-3{margin-top:.75rem}.mr-1{margin-right:.25rem}.ml-3{margin-left:.75rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-start{align-content:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-start{justify-items:start}.gap-1\.5{gap:.375rem}.gap-1{gap:.25rem}.gap-x-5{column-gap:1.25rem}.gap-x-10{column-gap:2.5rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.gap-x-8{column-gap:2rem}.gap-y-6{row-gap:1.5rem}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-2{border-width:2px}.border-solid{border-style:solid}.border-\[\#ddd\]{--tw-border-opacity:1;border-color:rgb(221 221 221/var(--tw-border-opacity))}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(79 70 229/var(--tw-border-opacity))}.border-\[\#DDD\]{--tw-border-opacity:1;border-color:rgb(221 221 221/var(--tw-border-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-\[\#f3f3f3\]{--tw-bg-opacity:1;background-color:rgb(243 243 243/var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-1{padding:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.px-1{padding-left:.25rem;padding-right:.25rem}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.text-\[\#333\]{--tw-text-opacity:1;color:rgb(51 51 51/var(--tw-text-opacity))}.text-\[\#666\]{--tw-text-opacity:1;color:rgb(102 102 102/var(--tw-text-opacity))}.text-\[\#e4393c\]{--tw-text-opacity:1;color:rgb(228 57 60/var(--tw-text-opacity))}.text-\[\#606266\]{--tw-text-opacity:1;color:rgb(96 98 102/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.last\:pr-10:last-child{padding-right:2.5rem}.hover\:border-\[red\]:hover{--tw-border-opacity:1;border-color:rgb(255 0 0/var(--tw-border-opacity))}.hover\:\!bg-\[white\]:hover{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.hover\:text-red-600:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.dark .dark\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.fade-enter-active,.fade-leave-active{transition:opacity .28s}.fade-enter,.fade-leave-active{opacity:0}.fade-transform-enter-active,.fade-transform-leave-active{transition:all .5s}.fade-transform-enter-from{opacity:0;transform:translateX(-30px)}.fade-transform-leave-to{opacity:0;transform:translateX(30px)}.breadcrumb-enter-active{transition:all .4s}.breadcrumb-leave-active{transition:all .3s}.breadcrumb-enter-from,.breadcrumb-leave-active{opacity:0;transform:translateX(20px)}.breadcrumb-leave-active{position:absolute}.outer-most .el-collapse-transition-enter-active,.outer-most .el-collapse-transition-leave-active{transition:all .2s ease-in-out!important}.horizontal-collapse-transition{transition:var(--pure-transition-duration) all!important}.el-breadcrumb__inner,.el-breadcrumb__inner a{font-weight:400!important}.el-upload input[type=file]{display:none!important}.el-upload__input{display:none}.upload-container .el-upload{width:100%}.upload-container .el-upload .el-upload-dragger{height:200px;width:100%}.el-dropdown-menu{padding:0!important}.el-range-separator{box-sizing:content-box}.is-dark{z-index:9999!important}.reset-margin [class*=el-icon]+span{margin-left:2px!important}.pure-popper{padding:0!important}.pure-tooltip{z-index:41000!important}#nprogress .bar{background-color:var(--el-color-primary)!important}#nprogress .peg{box-shadow:0 0 10px var(--el-color-primary),0 0 5px var(--el-color-primary)!important}#nprogress .spinner-icon{border-left-color:var(--el-color-primary);border-top-color:var(--el-color-primary)}.el-dialog__headerbtn:hover .el-dialog__close,.el-message-box__headerbtn:hover .el-dialog__close{color:var(--el-color-info)!important}.el-icon.el-dialog__close,.el-icon.el-drawer__close,.el-icon.el-message-box__close,.el-icon.el-notification__closeBtn{border-radius:4px;height:24px;outline:none;transition:background-color .2s,color .2s;width:24px}.el-icon.el-dialog__close:hover,.el-icon.el-drawer__close:hover,.el-icon.el-message-box__close:hover,.el-icon.el-notification__closeBtn:hover{background-color:rgba(0,0,0,.06);color:rgba(0,0,0,.88)!important;text-decoration:none}.pure-message{background:#fff!important;border-width:0!important;box-shadow:0 3px 6px -4px rgba(0,0,0,.122),0 6px 16px rgba(0,0,0,.078),0 9px 28px 8px rgba(0,0,0,.051)!important;padding:10px 13px!important}.pure-message.el-message.is-closable .el-message__content{padding-right:17px!important}.pure-message .el-message__content{background-image:none!important;color:rgba(0,0,0,.851)!important;pointer-events:all!important}.pure-message .el-message__icon{margin-right:8px!important}.pure-message .el-message__closeBtn{border-radius:4px;outline:none;right:9px!important;transition:background-color .2s,color .2s}.pure-message .el-message__closeBtn:hover{background-color:rgba(0,0,0,.06)}html.dark{--el-color-primary:#409eff;--el-color-primary-light-3:#3375b9;--el-color-primary-light-5:#2a598a;--el-color-primary-light-7:#213d5b;--el-color-primary-light-8:#1d3043;--el-color-primary-light-9:#18222c;--el-color-primary-dark-2:#66b1ff;--el-color-success:#67c23a;--el-color-success-light-3:#4e8e2f;--el-color-success-light-5:#3e6b27;--el-color-success-light-7:#2d481f;--el-color-success-light-8:#25371c;--el-color-success-light-9:#1c2518;--el-color-success-dark-2:#85ce61;--el-color-warning:#e6a23c;--el-color-warning-light-3:#a77730;--el-color-warning-light-5:#7d5b28;--el-color-warning-light-7:#533f20;--el-color-warning-light-8:#3e301c;--el-color-warning-light-9:#292218;--el-color-warning-dark-2:#ebb563;--el-color-danger:#f56c6c;--el-color-danger-light-3:#b25252;--el-color-danger-light-5:#854040;--el-color-danger-light-7:#582e2e;--el-color-danger-light-8:#412626;--el-color-danger-light-9:#2b1d1d;--el-color-danger-dark-2:#f78989;--el-color-error:#f56c6c;--el-color-error-light-3:#b25252;--el-color-error-light-5:#854040;--el-color-error-light-7:#582e2e;--el-color-error-light-8:#412626;--el-color-error-light-9:#2b1d1d;--el-color-error-dark-2:#f78989;--el-color-info:#909399;--el-color-info-light-3:#6b6d71;--el-color-info-light-5:#525457;--el-color-info-light-7:#393a3c;--el-color-info-light-8:#2d2d2f;--el-color-info-light-9:#202121;--el-color-info-dark-2:#a6a9ad;--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.36),0px 8px 20px rgba(0,0,0,.72);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.72);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.72);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.72),0px 12px 32px #000,0px 8px 16px -8px #000;--el-bg-color-page:#0a0a0a;--el-bg-color:#141414;--el-bg-color-overlay:#1d1e1f;--el-text-color-primary:#e5eaf3;--el-text-color-regular:#cfd3dc;--el-text-color-secondary:#a3a6ad;--el-text-color-placeholder:#8d9095;--el-text-color-disabled:#6c6e72;--el-border-color-darker:#636466;--el-border-color-dark:#58585b;--el-border-color:#4c4d4f;--el-border-color-light:#414243;--el-border-color-lighter:#363637;--el-border-color-extra-light:#2b2b2c;--el-fill-color-darker:#424243;--el-fill-color-dark:#39393a;--el-fill-color:#303030;--el-fill-color-light:#262727;--el-fill-color-lighter:#1d1d1d;--el-fill-color-extra-light:#191919;--el-fill-color-blank:transparent;--el-mask-color:rgba(0,0,0,.8);--el-mask-color-extra-light:rgba(0,0,0,.3);color-scheme:dark}html.dark .el-button{--el-button-disabled-text-color:hsla(0,0%,100%,.5)}html.dark .el-card{--el-card-bg-color:var(--el-bg-color-overlay)}html.dark .el-empty{--el-empty-fill-color-0:var(--el-color-black);--el-empty-fill-color-1:#4b4b52;--el-empty-fill-color-2:#36383d;--el-empty-fill-color-3:#1e1e20;--el-empty-fill-color-4:#262629;--el-empty-fill-color-5:#202124;--el-empty-fill-color-6:#212224;--el-empty-fill-color-7:#1b1c1f;--el-empty-fill-color-8:#1c1d1f;--el-empty-fill-color-9:#18181a}html.dark .contextmenu,html.dark .horizontal-header,html.dark .horizontal-header .el-sub-menu__title,html.dark .horizontal-header .submenu-title-noDropdown,html.dark .navbar,html.dark .sidebar-container,html.dark .sidebar-logo-container,html.dark .tags-view{background:var(--el-bg-color)!important}html.dark .app-main{background:#020409!important}html.dark .frame{filter:invert(.9) hue-rotate(180deg)}html.dark .tags-view .arrow-left,html.dark .tags-view .arrow-right{border-right:1px solid #303030;box-shadow:none}html.dark .tags-view .arrow-right{border-left:1px solid #303030}html.dark .right-panel-items .el-divider__text{--el-bg-color:var(--el-bg-color)}html.dark .right-panel-items .el-divider--horizontal{border-top:none}html.dark .el-table__cell{background:var(--el-bg-color)}html.dark .el-card{--el-card-bg-color:var(--el-bg-color)}html.dark .el-backtop{--el-backtop-bg-color:var(--el-color-primary-light-9);--el-backtop-hover-bg-color:var(--el-color-primary)}html.dark .el-dropdown-menu__item:not(.is-disabled):hover{background:transparent}html.dark .el-icon.el-dialog__close:hover,html.dark .el-icon.el-drawer__close:hover,html.dark .el-icon.el-message-box__close:hover,html.dark .el-icon.el-notification__closeBtn:hover{background-color:hsla(0,0%,100%,.12);color:hsla(0,0%,100%,.85)!important}html.dark .pure-message{background-color:#242525!important;background-image:none!important;box-shadow:0 3px 6px -4px hsla(0,0%,5%,.12),0 6px 16px 0 hsla(0,0%,5%,.08),0 9px 28px 8px hsla(0,0%,5%,.05)!important}html.dark .pure-message .el-message__content{background-image:none!important;color:#fff!important;pointer-events:all!important}html.dark .pure-message .el-message__closeBtn:hover{background-color:hsla(0,0%,100%,.12);color:hsla(0,0%,100%,.85)}:root{--pure-transition-duration:0.016s}.html-grey{filter:grayscale(100%)}.html-weakness{filter:invert(80%)}.message-box[data-v-4e3306a8]{height:calc(100% - 110px);overflow-x:hidden;overflow-y:auto;padding-bottom:62px}.message-box .message-group[data-v-4e3306a8]{margin-top:24px}.message-box .message-group .msg-content[data-v-4e3306a8]{color:#111;font-size:16px;margin-left:36px;padding:5px}.message-box .message-group .msg-content .icon-operates[data-v-4e3306a8]{display:flex;margin-top:12px}.message-box .message-group .msg-content .icon-operates .icon-item[data-v-4e3306a8]{cursor:pointer;margin-left:10px}.message-box .message-group .msg-content .icon-operates .icon-item svg[data-v-4e3306a8]{height:20px;width:20px}.message-box .message-group .response-content[data-v-4e3306a8]{border:1px solid #d1d1d1;border-radius:12px}.message-box .stop-dialogue[data-v-4e3306a8]{align-items:center;display:flex;justify-content:space-between;padding-top:10px}.message-box .stop-dialogue .gray-line[data-v-4e3306a8]{background-color:#ccc;flex:1;height:1px}.message-box .stop-dialogue .title[data-v-4e3306a8]{color:#111;font-size:16px;font-weight:600;padding:5px;width:430px}.message-box .stop-dialogue .title .stop-icon[data-v-4e3306a8]{color:#1e56ea;display:inline-block;height:16px;margin:0 1px;transform:translateY(-1px);vertical-align:text-bottom;width:16px}.copilot-footer[data-v-84876d9f]{align-items:flex-end;bottom:0;box-sizing:border-box;justify-content:center;padding-top:25px;position:absolute;width:100%;z-index:1}.copilot-footer .root[data-v-84876d9f]{display:flex;gap:12px;justify-content:space-between;min-height:90px;position:relative;width:100%}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#e7e9db;color:#4f424c}.hljs-comment,.hljs-quote{color:#776e71}.hljs-link,.hljs-meta,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#ef6155}.hljs-built_in,.hljs-deletion,.hljs-literal,.hljs-number,.hljs-params,.hljs-type{color:#f99b15}.hljs-attribute,.hljs-section,.hljs-title{color:#fec418}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#48b685}.hljs-keyword,.hljs-selector-tag{color:#815ba4}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}[data-v-e7243feb] .el-scrollbar{margin-bottom:-2px}.answer[data-v-e2e03f1e]{display:flex;height:24px;margin-bottom:12px}.answer .icon[data-v-e2e03f1e]{height:24px;width:24px}.answer .head-label[data-v-e2e03f1e]{color:#111;font-size:16px;font-weight:700;margin-left:12px}.user[data-v-8ba66efd]{display:flex;height:24px;margin-bottom:12px}.user .header-avatar[data-v-8ba66efd]{fill:#123bb6;align-items:center;background-color:#d1dbfa;color:#123bb6;display:flex;height:24px;justify-content:center;width:24px}.user .header-avatar svg[data-v-8ba66efd]{height:16px;width:16px}.user .head-label[data-v-8ba66efd]{color:#111;font-size:16px;font-weight:700;margin-left:12px}@keyframes blink-e03158a6{0%{opacity:1}50%{opacity:0}to{opacity:1}}[data-v-e03158a6] .markdown code{background-color:#282c34;color:#fff;width:100%}[data-v-e03158a6] .markdown p{margin:1.25rem 0}[data-v-e03158a6] .markdown p:first-child{margin-top:0}[data-v-e03158a6] .markdown :not(pre)>code{background-color:#282c34}[data-v-e03158a6] .markdown ol{list-style-type:decimal;padding-left:40px}[data-v-e03158a6] .markdown ul{list-style-type:disc;padding-left:40px}[data-v-e03158a6] .markdown .cursor{animation:blink-e03158a6 1.2s step-end infinite;background-color:#aaa;display:inline-block;height:20px;margin-left:2px;vertical-align:sub;width:2px}.input-container[data-v-c46f175e]{background:#fff;border:1px solid #ccc;border-radius:20px;cursor:text;display:flex;flex-direction:column;justify-content:space-between;margin:0;min-height:20px;min-width:300px;outline:1px solid transparent;padding-block:6px 5px;pointer-events:auto;position:relative;width:100%;z-index:1}.input-container .disable[data-v-c46f175e]{background-color:hsla(0,0%,100%,.596);border-radius:20px;height:100%;left:0;position:absolute;top:0;width:100%}.input-container .stop-responding-button[data-v-c46f175e]{align-items:center;background-color:#edf1ff;border:1px solid #1e56ea;border-radius:10px;display:flex;height:40px;justify-content:center;left:50%;padding:0 12px;position:absolute;top:-50px;transform:translate(-50%);width:120px}.input-container .stop-responding-button .stop-icon[data-v-c46f175e]{background-color:#1e56ea;border-radius:2px;height:14px;margin-right:4px;width:14px}.input-container .stop-responding-button span[data-v-c46f175e]{color:#1e56ea;font-weight:600}.input-container .input-row[data-v-c46f175e]{padding:10px 32px 5px 13px;position:relative;width:100%}.input-container .input-row .text-area[data-v-c46f175e]{color:#111;max-height:40px;overflow-y:auto;width:100%}.input-container .input-row .text-area[data-v-c46f175e]:empty:before{color:#ccc;content:attr(placeholder)}.input-container .bottom-controls[data-v-c46f175e]{display:flex;justify-content:space-between;padding-inline:8px}.input-container .bottom-controls .bottom-left-controls[data-v-c46f175e]{display:flex}.input-container .bottom-controls .bottom-left-controls[data-v-c46f175e] .el-card{position:absolute;top:-130px}.input-container .bottom-controls .bottom-left-controls[data-v-c46f175e] .el-card .el-card__body{padding:10px;width:100%}.input-container .bottom-controls .bottom-left-controls .pic-control[data-v-c46f175e]{position:relative}.input-container .bottom-controls .bottom-left-controls .pic-control .visual-search[data-v-c46f175e]{align-items:flex-start;display:flex;flex-direction:column;width:100%}.input-container .bottom-controls .bottom-left-controls .pic-control .visual-search .visual-search-title[data-v-c46f175e]{font-size:12px;font-weight:700;margin-bottom:8px}.input-container .bottom-controls .bottom-left-controls .pic-control .visual-search .search-input[data-v-c46f175e]{padding:4px 0;width:100%}.input-container .bottom-controls .bottom-left-controls .pic-control .visual-search .search-input input[data-v-c46f175e]{border:1px solid #1e56ea;border-radius:5px;height:32px;padding:8px 10px}.input-container .bottom-controls .bottom-left-controls .pic-control .visual-search[data-v-c46f175e] .el-upload{width:100%}.input-container .bottom-controls .bottom-left-controls .pic-control .visual-search .push-pic[data-v-c46f175e]{align-items:center;background-color:hsla(0,0%,99%,0);border-radius:4px;display:flex;margin-top:5px;padding:4px;width:100%}.input-container .bottom-controls .bottom-left-controls .pic-control .visual-search .push-pic[data-v-c46f175e]:hover{background-color:#f0f0f0}.input-container .bottom-controls .bottom-right-controls[data-v-c46f175e]{display:flex}.input-container .bottom-controls .bottom-right-controls .text-sum[data-v-c46f175e]{color:#666;font-size:13px;line-height:32px;text-align:center}.input-container .bottom-controls .bottom-right-controls .send-button[data-v-c46f175e]{align-items:center;background-color:hsla(0,0%,100%,0);display:flex;gap:4px;justify-content:center;min-width:32px;padding:4px}.outside-left-container .button-compose[data-v-d36c54aa]{background:#1e56ea;border:none;border-radius:25px;color:#fff;display:flex;flex-direction:row;height:50px;margin:0;overflow:hidden;padding:0;transition:width .5s ease;width:50px}.outside-left-container .button-compose[data-v-d36c54aa]:hover{width:110px}.outside-left-container .button-compose .button-compose-content[data-v-d36c54aa]{align-items:center;color:#fff;display:grid;grid-template-columns:50px auto;height:48px}.outside-left-container .button-compose .button-compose-content .button-compose-text[data-v-d36c54aa]{margin-inline-end:20px;min-width:max-content}.outside-left-container .button-compose .button-compose-icon[data-v-d36c54aa]{align-items:center;display:flex;justify-content:center}.fade-enter-active[data-v-58c97571],.fade-leave-active[data-v-58c97571]{transition:opacity .2s}.fade-enter[data-v-58c97571],.fade-leave-to[data-v-58c97571]{opacity:0}.filterWrap[data-v-58c97571]{border:1px solid #ececea}.filterWrap .rowTitle[data-v-58c97571]{-webkit-font-smoothing:antialiased;background:#fff;color:#666;font:12px/150% tahoma,arial,Microsoft YaHei,Hiragino Sans GB,u5b8bu4f53,sans-serif;width:110px}.filterWrap .rowWrap.xinyuan[data-v-58c97571]{border-bottom:1px solid #ececea}.filterWrap .rowWrap.xinyuan .rowTitle[data-v-58c97571]{background-color:#ececea}.filterWrap .rowWrap.zhuti[data-v-58c97571]{border-bottom:1px solid #ccc}.filterWrap .rowWrap.zhuti .rowTitle[data-v-58c97571]{background-color:#ccc}.filterWrap .rowWrap.huati[data-v-58c97571]{border-bottom:1px solid #999}.filterWrap .rowWrap.huati .rowTitle[data-v-58c97571]{background-color:#999}.filterWrap .rowWrap.multiple[data-v-58c97571]{border:2px solid #edd28b}.filterWrap .rowWrap.multiple .rowTitle[data-v-58c97571]{background-color:#fffdee!important}.filterWrap .rowWrap .fWrap[data-v-58c97571]{max-height:70px}.filterWrap .rowWrap .fWrap.more[data-v-58c97571]{height:auto;max-height:15vh!important;overflow-y:auto}.filterWrap .rowWrap .fWrap.iconRow[data-v-58c97571]{max-height:113px}.filterWrap .bottomRowTitle.xinyuan[data-v-58c97571]{border-color:#ececea;color:#ececea}.filterWrap .bottomRowTitle.zhuti[data-v-58c97571]{border-color:#ccc;color:#ccc}.filterWrap .bottomRowTitle.huati[data-v-58c97571]{border-color:#999;color:#999}.filterWrap .bottomRowTitle.multiple[data-v-58c97571]{background-color:#fffdee!important}.downRowTitle[data-v-58c97571]{-webkit-font-smoothing:antialiased;color:#005aa0;display:inline-block;font:12px/150% tahoma,arial,Microsoft YaHei,Hiragino Sans GB,u5b8bu4f53,sans-serif;vertical-align:top}[data-v-58c97571] .subFilterWrap.multiple{border:2px solid #edd28b}.activePanel[data-v-58c97571]{border-color:#f8bc01}.letterWrap .letter[data-v-58c97571]{border:1px solid #fff;color:#005aa0;cursor:pointer;font-size:12px;padding:0 7px;text-align:center}.letterWrap .letter.active[data-v-58c97571],.letterWrap .letter.activeAll[data-v-58c97571]{border:1px solid red;color:red}.top-controls[data-v-d30420d3]{inset-inline-end:0;padding:5px;position:absolute;top:0}.top-controls .icon-button[data-v-d30420d3]{align-items:center;background-color:hsla(0,0%,99%,0);border-radius:4px;color:hsla(0,0%,94%,0);display:flex;gap:4px;justify-content:center;min-width:32px;padding:4px}.top-controls .icon-button[data-v-d30420d3]:hover{background-color:#f0f0f0}.top-controls .icon[data-v-d30420d3]{color:#333;height:20px;width:20px}.select-plugin-box[data-v-b2f192f0]{position:relative}.select-plugin-box .select-button[data-v-b2f192f0]{align-items:center;background-color:#edf1ff;border-radius:10px;color:#1e56ea;display:flex;font-weight:600;height:40px;justify-content:center;left:0;padding:0 12px;position:absolute;top:-55px;width:120px}.select-plugin-box .select-button .icon[data-v-b2f192f0]{transition:transform .5s ease-in-out}.select-plugin-box .select-button .rotated[data-v-b2f192f0]{transform:rotate(45deg)}.select-plugin-box .icon[data-v-b2f192f0]{font-size:18px}.select-plugin-box .selection[data-v-b2f192f0]{background-color:#fff;border-radius:10px;box-shadow:0 1px 3px 0 rgba(0,0,0,.12),0 0 3px 0 rgba(0,0,0,.04);height:200px;left:0;padding:10px 0;position:absolute;top:-265px;width:220px}.select-plugin-box .selection .plugin-content[data-v-b2f192f0]{height:100%;overflow-y:auto}.select-plugin-box .selection .plugin-content[data-v-b2f192f0]::-webkit-scrollbar{display:none}.select-plugin-box .selection .plugin-content .plugin-item[data-v-b2f192f0]{align-items:center;border-bottom:1px solid #f4f3f7;cursor:pointer;display:flex;height:40px;justify-content:space-between;padding:10px 20px;width:100%}.select-plugin-box .selection .plugin-content .plugin-item[data-v-b2f192f0]:hover{background-color:#f5f7fd}.select-plugin-box .selection .plugin-content .plugin-item .select-radio[data-v-b2f192f0]{align-items:center;border:1px solid #1e56ea;border-radius:50%;display:flex;height:14px;justify-content:space-between;width:14px}.select-plugin-box .selection .plugin-content .plugin-item .active-radio[data-v-b2f192f0]{background-color:#1e56ea;color:#fff}.icon-button[data-v-794c61de]{align-items:center;background-color:hsla(0,0%,99%,0);border-radius:4px;color:hsla(0,0%,94%,0);display:flex;gap:4px;justify-content:center;min-width:32px;padding:4px}.icon-button[data-v-794c61de]:hover{background-color:#f0f0f0}.icon[data-v-794c61de]{color:#333;height:20px;width:20px}.pic-control[data-v-794c61de]{position:relative}.pic-control .visual-search[data-v-794c61de]{align-items:flex-start;display:flex;flex-direction:column;width:100%}.pic-control .visual-search .visual-search-title[data-v-794c61de]{font-size:12px;font-weight:700;margin-bottom:8px}.pic-control .visual-search .search-input[data-v-794c61de]{padding:4px 0;width:100%}.pic-control .visual-search .search-input input[data-v-794c61de]{border:1px solid #1e56ea;border-radius:5px;height:32px;padding:8px 10px}.pic-control .visual-search[data-v-794c61de] .el-upload{width:100%}.pic-control .visual-search .push-pic[data-v-794c61de]{align-items:center;background-color:hsla(0,0%,99%,0);border-radius:4px;display:flex;margin-top:5px;padding:4px;width:100%}.pic-control .visual-search .push-pic[data-v-794c61de]:hover{background-color:#f0f0f0}.hover[data-v-2688e0da]{color:#e4393c}.tagText[data-v-2688e0da]{-webkit-font-smoothing:antialiased;border:1px solid #ddd;color:#005aa0;font:12px/150% tahoma,arial,Microsoft YaHei,Hiragino Sans GB,u5b8bu4f53,sans-serif;height:48px;text-decoration:none;width:110px}.tagText[data-v-2688e0da]:hover{border-color:#e4393c;color:#e4393c}.num[data-v-2688e0da]{-webkit-font-smoothing:antialiased;color:#aaa;float:right;font:12px/150% tahoma,arial,Microsoft YaHei,Hiragino Sans GB,u5b8bu4f53,sans-serif;margin-left:-2px;margin-top:8px;transform:scale(.8)}.tagText[data-v-0b91dded]{-webkit-font-smoothing:antialiased;color:#005aa0!important;font:12px/150% tahoma,arial,Microsoft YaHei,Hiragino Sans GB,u5b8bu4f53,sans-serif;text-decoration:none}.tagText[data-v-0b91dded]:hover{color:#e4393c}.num[data-v-0b91dded]{-webkit-font-smoothing:antialiased;color:#aaa;float:right;font:12px/150% tahoma,arial,Microsoft YaHei,Hiragino Sans GB,u5b8bu4f53,sans-serif;margin-left:-2px;margin-top:8px;transform:scale(.8)}
|
@@ -0,0 +1,129 @@
|
|
1
|
+
import { EnumFilterKind } from "../store/modules/types.mjs";
|
2
|
+
import t from "../node_modules/.pnpm/pinyin-match@1.2.4/node_modules/pinyin-match/es/main.mjs";
|
3
|
+
import { isAllEmpty as B } from "../node_modules/.pnpm/@pureadmin_utils@1.8.5_vue@3.2.45/node_modules/@pureadmin/utils/dist/index.mjs";
|
4
|
+
function checkFilterShow(curF, filters, selIds, selFilter_maxRowIndex = 0, selFilter_rootIdArr = [], selsMappingData = {}) {
|
5
|
+
var _a;
|
6
|
+
if (selIds.length == 0)
|
7
|
+
return true;
|
8
|
+
if (curF.kind === EnumFilterKind.XinYuan)
|
9
|
+
return true;
|
10
|
+
if (selFilter_rootIdArr.includes(curF.parentId))
|
11
|
+
return true;
|
12
|
+
let isMatch = true;
|
13
|
+
const curFId = curF.id;
|
14
|
+
const curFRowId = curF.parentId;
|
15
|
+
const curFRowIndex = filters.findIndex((f) => f.id === curFRowId);
|
16
|
+
if (curFRowIndex < selFilter_maxRowIndex) {
|
17
|
+
const map = selsMappingData[curFRowId.toString()] || "";
|
18
|
+
isMatch = map === "-1" || map.split(",").includes(curFId.toString()) || false;
|
19
|
+
} else if (curFRowIndex > selFilter_maxRowIndex) {
|
20
|
+
const mappingData = JSON.parse(curF.mappingData || "{}");
|
21
|
+
if (Object.keys(mappingData).length === 0) {
|
22
|
+
return true;
|
23
|
+
}
|
24
|
+
isMatch = true;
|
25
|
+
const hasBool = Array(Object.keys(mappingData).length).fill(false);
|
26
|
+
let index = 0;
|
27
|
+
for (const rowRootFilterId in mappingData) {
|
28
|
+
const rowMapValue = mappingData[rowRootFilterId];
|
29
|
+
let noRowSel = true;
|
30
|
+
const rowFilters = ((_a = filters.find((rowFilters2) => rowFilters2.id.toString() === rowRootFilterId)) == null ? void 0 : _a.childAppCategoryList) || [];
|
31
|
+
rowFilters.forEach((f) => {
|
32
|
+
if (selIds.includes(f.id)) {
|
33
|
+
noRowSel = false;
|
34
|
+
return false;
|
35
|
+
}
|
36
|
+
});
|
37
|
+
if (noRowSel) {
|
38
|
+
hasBool[index] = true;
|
39
|
+
} else {
|
40
|
+
if (rowMapValue === "-1") {
|
41
|
+
hasBool[index] = true;
|
42
|
+
} else {
|
43
|
+
const map = rowMapValue.split(",");
|
44
|
+
map.forEach((fid) => {
|
45
|
+
fid = parseInt(fid);
|
46
|
+
if (selIds.includes(fid)) {
|
47
|
+
hasBool[index] = true;
|
48
|
+
return false;
|
49
|
+
}
|
50
|
+
});
|
51
|
+
}
|
52
|
+
}
|
53
|
+
index++;
|
54
|
+
}
|
55
|
+
isMatch = hasBool.reduce(function(prev, cur) {
|
56
|
+
return prev && cur;
|
57
|
+
});
|
58
|
+
}
|
59
|
+
return isMatch;
|
60
|
+
}
|
61
|
+
function checkFilterShow_xinyuan(curF, selIds, selFilter_rootIdArr = [], selsMappingData = {}) {
|
62
|
+
if (selIds.length == 0)
|
63
|
+
return true;
|
64
|
+
if (curF.kind !== EnumFilterKind.XinYuan)
|
65
|
+
return true;
|
66
|
+
if (selFilter_rootIdArr.includes(curF.parentId))
|
67
|
+
return true;
|
68
|
+
const names = selsMappingData[curF.parentId] || [];
|
69
|
+
return names.includes(curF.name);
|
70
|
+
}
|
71
|
+
function getFilterRemark(curF, filterList) {
|
72
|
+
const mappingData = curF.mappingData;
|
73
|
+
let str = "";
|
74
|
+
if (B(mappingData)) {
|
75
|
+
str = "无关联";
|
76
|
+
return str;
|
77
|
+
} else {
|
78
|
+
const localMap = JSON.parse(mappingData);
|
79
|
+
const l = Object.keys(localMap).length;
|
80
|
+
if (l === 0) {
|
81
|
+
str = "无关联";
|
82
|
+
} else {
|
83
|
+
const arrF = filterList.filter((rowF) => localMap[rowF.id]);
|
84
|
+
arrF.forEach((rowF) => {
|
85
|
+
str += rowF.name;
|
86
|
+
str += ":";
|
87
|
+
const rowId = rowF.id;
|
88
|
+
const fitlerArr = (rowF == null ? void 0 : rowF.childAppCategoryList) || [];
|
89
|
+
const mapFilters = localMap[rowId];
|
90
|
+
if (mapFilters === "-1") {
|
91
|
+
str += "全部";
|
92
|
+
} else {
|
93
|
+
fitlerArr.forEach((f) => {
|
94
|
+
if (mapFilters == null ? void 0 : mapFilters.includes(f.id)) {
|
95
|
+
str += f.name + " ";
|
96
|
+
}
|
97
|
+
});
|
98
|
+
}
|
99
|
+
str += "<br/>";
|
100
|
+
});
|
101
|
+
}
|
102
|
+
}
|
103
|
+
return str;
|
104
|
+
}
|
105
|
+
function checkFilterShow_letter(filter, letter) {
|
106
|
+
let isMatch;
|
107
|
+
if (letter == "所有") {
|
108
|
+
isMatch = true;
|
109
|
+
} else if (letter == "其他") {
|
110
|
+
isMatch = checkNameValidity(filter.name);
|
111
|
+
} else {
|
112
|
+
const name = filter.name.slice(0, 1);
|
113
|
+
isMatch = t.match(name, letter);
|
114
|
+
if (typeof isMatch === "object") {
|
115
|
+
isMatch = isMatch[0] === 0;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
return isMatch;
|
119
|
+
}
|
120
|
+
function checkNameValidity(str) {
|
121
|
+
const regex = /^(?![0-9!@#$%^&*()_ ]).*/;
|
122
|
+
return !regex.test(str);
|
123
|
+
}
|
124
|
+
export {
|
125
|
+
checkFilterShow,
|
126
|
+
checkFilterShow_letter,
|
127
|
+
checkFilterShow_xinyuan,
|
128
|
+
getFilterRemark
|
129
|
+
};
|