vue2-client 1.12.14 → 1.12.15
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/package.json +107 -107
- package/src/base-client/components/common/XCollapse/XCollapse.vue +145 -145
- package/src/base-client/components/common/XConversation/XConversation.vue +13 -12
- package/src/base-client/components/common/XConversation/XConversationDemo.vue +1 -0
- package/src/pages/WorkflowDetail/WorkFlowDemo.vue +4 -4
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +7 -5
- package/src/router/async/router.map.js +116 -117
- package/src/base-client/components/common/XCollapse/XCollapseDemo.vue +0 -15
package/package.json
CHANGED
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vue2-client",
|
|
3
|
-
"version": "1.12.
|
|
4
|
-
"private": false,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
|
|
7
|
-
"serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
|
|
8
|
-
"serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
|
|
9
|
-
"serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
|
|
10
|
-
"serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
|
|
11
|
-
"serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
|
|
12
|
-
"mac-serve": "vue-cli-service serve --no-eslint --mode his",
|
|
13
|
-
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
|
14
|
-
"test:unit": "vue-cli-service test:unit",
|
|
15
|
-
"lint": "vue-cli-service lint",
|
|
16
|
-
"build:preview": "vue-cli-service build --mode preview",
|
|
17
|
-
"lint:nofix": "vue-cli-service lint --no-fix",
|
|
18
|
-
"test": "jest"
|
|
19
|
-
},
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"@afwenming123/vue-easy-tree": "^1.0.1",
|
|
22
|
-
"@afwenming123/vue-plugin-hiprint": "^0.0.70",
|
|
23
|
-
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
24
|
-
"@antv/data-set": "^0.11.8",
|
|
25
|
-
"@antv/g2plot": "^2.4.31",
|
|
26
|
-
"@hufe921/canvas-editor": "^0.9.49",
|
|
27
|
-
"@microsoft/fetch-event-source": "^2.0.1",
|
|
28
|
-
"@vue/babel-preset-jsx": "^1.4.0",
|
|
29
|
-
"animate.css": "^4.1.1",
|
|
30
|
-
"ant-design-vue": "^1.7.8",
|
|
31
|
-
"axios": "^0.27.2",
|
|
32
|
-
"clipboard": "^2.0.11",
|
|
33
|
-
"core-js": "^3.33.0",
|
|
34
|
-
"crypto-js": "^4.1.1",
|
|
35
|
-
"date-fns": "^2.29.3",
|
|
36
|
-
"default-passive-events": "^2.0.0",
|
|
37
|
-
"dotenv": "^16.3.1",
|
|
38
|
-
"echarts": "^5.5.0",
|
|
39
|
-
"enquire.js": "^2.1.6",
|
|
40
|
-
"file-saver": "^2.0.5",
|
|
41
|
-
"highlight.js": "^11.7.0",
|
|
42
|
-
"html2canvas": "^1.4.1",
|
|
43
|
-
"js-base64": "^3.7.5",
|
|
44
|
-
"js-cookie": "^2.2.1",
|
|
45
|
-
"jsencrypt": "^3.3.2",
|
|
46
|
-
"jspdf": "^2.5.1",
|
|
47
|
-
"lodash.clonedeep": "^4.5.0",
|
|
48
|
-
"lodash.debounce": "^4",
|
|
49
|
-
"lodash.get": "^4.4.2",
|
|
50
|
-
"marked": "^4",
|
|
51
|
-
"mockjs": "^1.1.0",
|
|
52
|
-
"nprogress": "^0.2.0",
|
|
53
|
-
"qs": "^6.11.2",
|
|
54
|
-
"regenerator-runtime": "^0.14.0",
|
|
55
|
-
"videojs-contrib-hls": "^5.15.0",
|
|
56
|
-
"viser-vue": "^2.4.8",
|
|
57
|
-
"vue": "^2.7.14",
|
|
58
|
-
"vue-codemirror": "4.0.6",
|
|
59
|
-
"vue-draggable-resizable": "^2",
|
|
60
|
-
"vue-i18n": "^8.28.2",
|
|
61
|
-
"vue-json-viewer": "^2.2.22",
|
|
62
|
-
"vue-router": "^3.6.5",
|
|
63
|
-
"vue-video-player": "^5.0.2",
|
|
64
|
-
"vue-virtual-scroller": "^1.1.2",
|
|
65
|
-
"vuedraggable": "^2.24.3",
|
|
66
|
-
"vuex": "^3.6.2",
|
|
67
|
-
"xlsx": "0.18.5"
|
|
68
|
-
},
|
|
69
|
-
"devDependencies": {
|
|
70
|
-
"@ant-design/colors": "^7.0.0",
|
|
71
|
-
"@babel/core": "^7.22.20",
|
|
72
|
-
"@babel/eslint-parser": "^7.22.15",
|
|
73
|
-
"@babel/preset-env": "^7.22.20",
|
|
74
|
-
"@vue/cli-plugin-babel": "^5.0.8",
|
|
75
|
-
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
76
|
-
"@vue/cli-service": "^5.0.8",
|
|
77
|
-
"@vue/eslint-config-standard": "^8.0.1",
|
|
78
|
-
"@vue/test-utils": "^1.3.6",
|
|
79
|
-
"@jest/globals": "^29.7.0",
|
|
80
|
-
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
81
|
-
"compression-webpack-plugin": "^10.0.0",
|
|
82
|
-
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
83
|
-
"deepmerge": "^4.3.1",
|
|
84
|
-
"eslint": "^8.51.0",
|
|
85
|
-
"eslint-plugin-vue": "^9.17.0",
|
|
86
|
-
"fast-deep-equal": "^3.1.3",
|
|
87
|
-
"ignore-loader": "^0.1.2",
|
|
88
|
-
"jest": "^29.7.0",
|
|
89
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
90
|
-
"jest-transform-stub": "^2.0.0",
|
|
91
|
-
"less-loader": "^6.2.0",
|
|
92
|
-
"script-loader": "^0.7.2",
|
|
93
|
-
"style-resources-loader": "^1.5.0",
|
|
94
|
-
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
95
|
-
"vue-jest": "^4.0.1",
|
|
96
|
-
"vue-template-compiler": "^2.7.14",
|
|
97
|
-
"webpack": "^5.88.2",
|
|
98
|
-
"webpack-theme-color-replacer": "^1.4.7",
|
|
99
|
-
"whatwg-fetch": "^3.6.19"
|
|
100
|
-
},
|
|
101
|
-
"browserslist": [
|
|
102
|
-
"> 1%",
|
|
103
|
-
"last 2 versions",
|
|
104
|
-
"not dead",
|
|
105
|
-
"not ie 11"
|
|
106
|
-
]
|
|
107
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vue2-client",
|
|
3
|
+
"version": "1.12.15",
|
|
4
|
+
"private": false,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
|
|
7
|
+
"serve:gaslink": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode gaslink",
|
|
8
|
+
"serve:revenue": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode revenue",
|
|
9
|
+
"serve:liuli": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode liuli",
|
|
10
|
+
"serve:scada": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode scada",
|
|
11
|
+
"serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
|
|
12
|
+
"mac-serve": "vue-cli-service serve --no-eslint --mode his",
|
|
13
|
+
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
|
14
|
+
"test:unit": "vue-cli-service test:unit",
|
|
15
|
+
"lint": "vue-cli-service lint",
|
|
16
|
+
"build:preview": "vue-cli-service build --mode preview",
|
|
17
|
+
"lint:nofix": "vue-cli-service lint --no-fix",
|
|
18
|
+
"test": "jest"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@afwenming123/vue-easy-tree": "^1.0.1",
|
|
22
|
+
"@afwenming123/vue-plugin-hiprint": "^0.0.70",
|
|
23
|
+
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
24
|
+
"@antv/data-set": "^0.11.8",
|
|
25
|
+
"@antv/g2plot": "^2.4.31",
|
|
26
|
+
"@hufe921/canvas-editor": "^0.9.49",
|
|
27
|
+
"@microsoft/fetch-event-source": "^2.0.1",
|
|
28
|
+
"@vue/babel-preset-jsx": "^1.4.0",
|
|
29
|
+
"animate.css": "^4.1.1",
|
|
30
|
+
"ant-design-vue": "^1.7.8",
|
|
31
|
+
"axios": "^0.27.2",
|
|
32
|
+
"clipboard": "^2.0.11",
|
|
33
|
+
"core-js": "^3.33.0",
|
|
34
|
+
"crypto-js": "^4.1.1",
|
|
35
|
+
"date-fns": "^2.29.3",
|
|
36
|
+
"default-passive-events": "^2.0.0",
|
|
37
|
+
"dotenv": "^16.3.1",
|
|
38
|
+
"echarts": "^5.5.0",
|
|
39
|
+
"enquire.js": "^2.1.6",
|
|
40
|
+
"file-saver": "^2.0.5",
|
|
41
|
+
"highlight.js": "^11.7.0",
|
|
42
|
+
"html2canvas": "^1.4.1",
|
|
43
|
+
"js-base64": "^3.7.5",
|
|
44
|
+
"js-cookie": "^2.2.1",
|
|
45
|
+
"jsencrypt": "^3.3.2",
|
|
46
|
+
"jspdf": "^2.5.1",
|
|
47
|
+
"lodash.clonedeep": "^4.5.0",
|
|
48
|
+
"lodash.debounce": "^4",
|
|
49
|
+
"lodash.get": "^4.4.2",
|
|
50
|
+
"marked": "^4",
|
|
51
|
+
"mockjs": "^1.1.0",
|
|
52
|
+
"nprogress": "^0.2.0",
|
|
53
|
+
"qs": "^6.11.2",
|
|
54
|
+
"regenerator-runtime": "^0.14.0",
|
|
55
|
+
"videojs-contrib-hls": "^5.15.0",
|
|
56
|
+
"viser-vue": "^2.4.8",
|
|
57
|
+
"vue": "^2.7.14",
|
|
58
|
+
"vue-codemirror": "4.0.6",
|
|
59
|
+
"vue-draggable-resizable": "^2",
|
|
60
|
+
"vue-i18n": "^8.28.2",
|
|
61
|
+
"vue-json-viewer": "^2.2.22",
|
|
62
|
+
"vue-router": "^3.6.5",
|
|
63
|
+
"vue-video-player": "^5.0.2",
|
|
64
|
+
"vue-virtual-scroller": "^1.1.2",
|
|
65
|
+
"vuedraggable": "^2.24.3",
|
|
66
|
+
"vuex": "^3.6.2",
|
|
67
|
+
"xlsx": "0.18.5"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@ant-design/colors": "^7.0.0",
|
|
71
|
+
"@babel/core": "^7.22.20",
|
|
72
|
+
"@babel/eslint-parser": "^7.22.15",
|
|
73
|
+
"@babel/preset-env": "^7.22.20",
|
|
74
|
+
"@vue/cli-plugin-babel": "^5.0.8",
|
|
75
|
+
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
76
|
+
"@vue/cli-service": "^5.0.8",
|
|
77
|
+
"@vue/eslint-config-standard": "^8.0.1",
|
|
78
|
+
"@vue/test-utils": "^1.3.6",
|
|
79
|
+
"@jest/globals": "^29.7.0",
|
|
80
|
+
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
81
|
+
"compression-webpack-plugin": "^10.0.0",
|
|
82
|
+
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
83
|
+
"deepmerge": "^4.3.1",
|
|
84
|
+
"eslint": "^8.51.0",
|
|
85
|
+
"eslint-plugin-vue": "^9.17.0",
|
|
86
|
+
"fast-deep-equal": "^3.1.3",
|
|
87
|
+
"ignore-loader": "^0.1.2",
|
|
88
|
+
"jest": "^29.7.0",
|
|
89
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
90
|
+
"jest-transform-stub": "^2.0.0",
|
|
91
|
+
"less-loader": "^6.2.0",
|
|
92
|
+
"script-loader": "^0.7.2",
|
|
93
|
+
"style-resources-loader": "^1.5.0",
|
|
94
|
+
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
95
|
+
"vue-jest": "^4.0.1",
|
|
96
|
+
"vue-template-compiler": "^2.7.14",
|
|
97
|
+
"webpack": "^5.88.2",
|
|
98
|
+
"webpack-theme-color-replacer": "^1.4.7",
|
|
99
|
+
"whatwg-fetch": "^3.6.19"
|
|
100
|
+
},
|
|
101
|
+
"browserslist": [
|
|
102
|
+
"> 1%",
|
|
103
|
+
"last 2 versions",
|
|
104
|
+
"not dead",
|
|
105
|
+
"not ie 11"
|
|
106
|
+
]
|
|
107
|
+
}
|
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<a-collapse
|
|
4
|
-
:activeKey="activeKey"
|
|
5
|
-
@change="handleChange"
|
|
6
|
-
>
|
|
7
|
-
<a-collapse-panel
|
|
8
|
-
v-for="(panel, panelIndex) in config.showData"
|
|
9
|
-
:key="panelIndex.toString()"
|
|
10
|
-
:show-arrow="false"
|
|
11
|
-
>
|
|
12
|
-
<template #header>
|
|
13
|
-
<div class="header-content">
|
|
14
|
-
<span
|
|
15
|
-
class="header-text"
|
|
16
|
-
:style="config.titleStyle"
|
|
17
|
-
>
|
|
18
|
-
{{ panel.title }}
|
|
19
|
-
</span>
|
|
20
|
-
<span
|
|
21
|
-
v-for="(item, headerIndex) in panel.title2 || []"
|
|
22
|
-
:key="headerIndex"
|
|
23
|
-
class="info-item"
|
|
24
|
-
:style="config.title2Style"
|
|
25
|
-
>
|
|
26
|
-
<span>{{ item.key }}:</span>
|
|
27
|
-
<span>{{ item.value }}</span>
|
|
28
|
-
</span>
|
|
29
|
-
<span
|
|
30
|
-
class="time-item"
|
|
31
|
-
:style="config.title3Style"
|
|
32
|
-
>
|
|
33
|
-
{{ panel.title3 }}
|
|
34
|
-
</span>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
<!-- 根据类型显示不同内容 -->
|
|
38
|
-
<template v-if="panel.type === 'picture'">
|
|
39
|
-
<img :src="panel.configName" alt="图片" style="width: 100%; max-width: 500px;"/>
|
|
40
|
-
</template>
|
|
41
|
-
<template v-else-if="panel.type === 'cover'">
|
|
42
|
-
<x-report
|
|
43
|
-
:use-oss-for-img="false"
|
|
44
|
-
:config-name="panel.configName"
|
|
45
|
-
server-name="af-his"
|
|
46
|
-
:show-img-in-cell="true"
|
|
47
|
-
:display-only="true"
|
|
48
|
-
:edit-mode="false"
|
|
49
|
-
:show-save-button="false"
|
|
50
|
-
:no-padding="true"
|
|
51
|
-
:dont-format="true">
|
|
52
|
-
</x-report>
|
|
53
|
-
</template>
|
|
54
|
-
</a-collapse-panel>
|
|
55
|
-
</a-collapse>
|
|
56
|
-
</div>
|
|
57
|
-
</template>
|
|
58
|
-
|
|
59
|
-
<script>
|
|
60
|
-
import XReport from '@vue2-client/base-client/components/common/XReportGrid'
|
|
61
|
-
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
62
|
-
|
|
63
|
-
export default {
|
|
64
|
-
name: 'XCollapse',
|
|
65
|
-
components: {
|
|
66
|
-
XReport
|
|
67
|
-
},
|
|
68
|
-
data () {
|
|
69
|
-
return {
|
|
70
|
-
activeKey: [],
|
|
71
|
-
config: {}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
props: {
|
|
75
|
-
// json名
|
|
76
|
-
queryParamsName: {
|
|
77
|
-
type: Object,
|
|
78
|
-
default: 'zsftestConfig'
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
created () {
|
|
82
|
-
this.getData(this.queryParamsName)
|
|
83
|
-
},
|
|
84
|
-
methods: {
|
|
85
|
-
async getData (config) {
|
|
86
|
-
getConfigByName(config, 'af-his', res => {
|
|
87
|
-
this.config = res
|
|
88
|
-
runLogic(res.mainLogic, {}, 'af-his').then(result => {
|
|
89
|
-
console.log(result)
|
|
90
|
-
this.config.showData = result
|
|
91
|
-
this.activeKey = this.config.showData.map((_, panelIndex) => panelIndex.toString())
|
|
92
|
-
})
|
|
93
|
-
})
|
|
94
|
-
},
|
|
95
|
-
handleChange (keys) {
|
|
96
|
-
this.activeKey = keys
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
watch: {
|
|
100
|
-
queryParamsName: {
|
|
101
|
-
handler (newValue) {
|
|
102
|
-
console.log(newValue)
|
|
103
|
-
this.getData(newValue)
|
|
104
|
-
},
|
|
105
|
-
deep: true
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
</script>
|
|
110
|
-
|
|
111
|
-
<style scoped>
|
|
112
|
-
.header-content {
|
|
113
|
-
display: flex;
|
|
114
|
-
align-items: center;
|
|
115
|
-
gap: 24px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.header-text {
|
|
119
|
-
margin-right: 16px;
|
|
120
|
-
font-size: 16px;
|
|
121
|
-
font-weight: 800; /* 默认加粗 */
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.info-item {
|
|
125
|
-
display: inline-flex;
|
|
126
|
-
align-items: center;
|
|
127
|
-
gap: 4px;
|
|
128
|
-
font-size: 12px;
|
|
129
|
-
color: #888888;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.time-item {
|
|
133
|
-
margin-left: auto;
|
|
134
|
-
text-align: right;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/* 覆盖 ant-design-vue 的默认样式 */
|
|
138
|
-
:deep(.ant-collapse-header) {
|
|
139
|
-
align-items: center !important;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
:deep(.ant-collapse-header-text) {
|
|
143
|
-
flex: 1;
|
|
144
|
-
}
|
|
145
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<a-collapse
|
|
4
|
+
:activeKey="activeKey"
|
|
5
|
+
@change="handleChange"
|
|
6
|
+
>
|
|
7
|
+
<a-collapse-panel
|
|
8
|
+
v-for="(panel, panelIndex) in config.showData"
|
|
9
|
+
:key="panelIndex.toString()"
|
|
10
|
+
:show-arrow="false"
|
|
11
|
+
>
|
|
12
|
+
<template #header>
|
|
13
|
+
<div class="header-content">
|
|
14
|
+
<span
|
|
15
|
+
class="header-text"
|
|
16
|
+
:style="config.titleStyle"
|
|
17
|
+
>
|
|
18
|
+
{{ panel.title }}
|
|
19
|
+
</span>
|
|
20
|
+
<span
|
|
21
|
+
v-for="(item, headerIndex) in panel.title2 || []"
|
|
22
|
+
:key="headerIndex"
|
|
23
|
+
class="info-item"
|
|
24
|
+
:style="config.title2Style"
|
|
25
|
+
>
|
|
26
|
+
<span>{{ item.key }}:</span>
|
|
27
|
+
<span>{{ item.value }}</span>
|
|
28
|
+
</span>
|
|
29
|
+
<span
|
|
30
|
+
class="time-item"
|
|
31
|
+
:style="config.title3Style"
|
|
32
|
+
>
|
|
33
|
+
{{ panel.title3 }}
|
|
34
|
+
</span>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
<!-- 根据类型显示不同内容 -->
|
|
38
|
+
<template v-if="panel.type === 'picture'">
|
|
39
|
+
<img :src="panel.configName" alt="图片" style="width: 100%; max-width: 500px;"/>
|
|
40
|
+
</template>
|
|
41
|
+
<template v-else-if="panel.type === 'cover'">
|
|
42
|
+
<x-report
|
|
43
|
+
:use-oss-for-img="false"
|
|
44
|
+
:config-name="panel.configName"
|
|
45
|
+
server-name="af-his"
|
|
46
|
+
:show-img-in-cell="true"
|
|
47
|
+
:display-only="true"
|
|
48
|
+
:edit-mode="false"
|
|
49
|
+
:show-save-button="false"
|
|
50
|
+
:no-padding="true"
|
|
51
|
+
:dont-format="true">
|
|
52
|
+
</x-report>
|
|
53
|
+
</template>
|
|
54
|
+
</a-collapse-panel>
|
|
55
|
+
</a-collapse>
|
|
56
|
+
</div>
|
|
57
|
+
</template>
|
|
58
|
+
|
|
59
|
+
<script>
|
|
60
|
+
import XReport from '@vue2-client/base-client/components/common/XReportGrid'
|
|
61
|
+
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
62
|
+
|
|
63
|
+
export default {
|
|
64
|
+
name: 'XCollapse',
|
|
65
|
+
components: {
|
|
66
|
+
XReport
|
|
67
|
+
},
|
|
68
|
+
data () {
|
|
69
|
+
return {
|
|
70
|
+
activeKey: [],
|
|
71
|
+
config: {}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
props: {
|
|
75
|
+
// json名
|
|
76
|
+
queryParamsName: {
|
|
77
|
+
type: Object,
|
|
78
|
+
default: 'zsftestConfig'
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
created () {
|
|
82
|
+
this.getData(this.queryParamsName)
|
|
83
|
+
},
|
|
84
|
+
methods: {
|
|
85
|
+
async getData (config) {
|
|
86
|
+
getConfigByName(config, 'af-his', res => {
|
|
87
|
+
this.config = res
|
|
88
|
+
runLogic(res.mainLogic, {}, 'af-his').then(result => {
|
|
89
|
+
console.log(result)
|
|
90
|
+
this.config.showData = result
|
|
91
|
+
this.activeKey = this.config.showData.map((_, panelIndex) => panelIndex.toString())
|
|
92
|
+
})
|
|
93
|
+
})
|
|
94
|
+
},
|
|
95
|
+
handleChange (keys) {
|
|
96
|
+
this.activeKey = keys
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
watch: {
|
|
100
|
+
queryParamsName: {
|
|
101
|
+
handler (newValue) {
|
|
102
|
+
console.log(newValue)
|
|
103
|
+
this.getData(newValue)
|
|
104
|
+
},
|
|
105
|
+
deep: true
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
</script>
|
|
110
|
+
|
|
111
|
+
<style scoped>
|
|
112
|
+
.header-content {
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
gap: 24px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.header-text {
|
|
119
|
+
margin-right: 16px;
|
|
120
|
+
font-size: 16px;
|
|
121
|
+
font-weight: 800; /* 默认加粗 */
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.info-item {
|
|
125
|
+
display: inline-flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
gap: 4px;
|
|
128
|
+
font-size: 12px;
|
|
129
|
+
color: #888888;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.time-item {
|
|
133
|
+
margin-left: auto;
|
|
134
|
+
text-align: right;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* 覆盖 ant-design-vue 的默认样式 */
|
|
138
|
+
:deep(.ant-collapse-header) {
|
|
139
|
+
align-items: center !important;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:deep(.ant-collapse-header-text) {
|
|
143
|
+
flex: 1;
|
|
144
|
+
}
|
|
145
|
+
</style>
|
|
@@ -44,18 +44,6 @@ export default {
|
|
|
44
44
|
return null
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
|
-
setGlobalData: {
|
|
48
|
-
default: () => () => {
|
|
49
|
-
console.warn('setGlobalData is not provided.')
|
|
50
|
-
return null
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
getGlobalData: {
|
|
54
|
-
default: () => () => {
|
|
55
|
-
console.warn('getGlobalData is not provided.')
|
|
56
|
-
return null
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
47
|
getSelectedData: {
|
|
60
48
|
default: () => () => {
|
|
61
49
|
console.warn('getSelectedData is not provided.')
|
|
@@ -166,6 +154,7 @@ export default {
|
|
|
166
154
|
question: userMessage,
|
|
167
155
|
additionalInfo: this.additionalInfo
|
|
168
156
|
}, this.serviceName)
|
|
157
|
+
this.additionalInfo.f_dialog_id = response.id
|
|
169
158
|
this.messages.push({ type: 'bot', text: response.value })
|
|
170
159
|
} else if (this.renderConfig.api) {
|
|
171
160
|
// 通过api获取消息
|
|
@@ -195,6 +184,18 @@ export default {
|
|
|
195
184
|
)
|
|
196
185
|
}
|
|
197
186
|
},
|
|
187
|
+
setHistoryMessages (messages) {
|
|
188
|
+
console.log(messages)
|
|
189
|
+
// 清空现有消息
|
|
190
|
+
this.messages = []
|
|
191
|
+
// 添加历史消息
|
|
192
|
+
messages.forEach(msg => {
|
|
193
|
+
this.messages.push({
|
|
194
|
+
type: msg.role === 'user' ? 'user' : 'bot',
|
|
195
|
+
text: msg.content
|
|
196
|
+
})
|
|
197
|
+
})
|
|
198
|
+
}
|
|
198
199
|
},
|
|
199
200
|
mounted () {
|
|
200
201
|
this.setAddtionalInfo(this.getMixinData())
|
|
@@ -24,15 +24,15 @@ export default {
|
|
|
24
24
|
* @param note 备注信息
|
|
25
25
|
* @param form 表单信息
|
|
26
26
|
* @param workflowId 工作流id
|
|
27
|
-
* @param
|
|
27
|
+
* @param fromStepId 起ID
|
|
28
28
|
* @param toStepId 往ID
|
|
29
29
|
* @param successStepId 完成步骤id
|
|
30
30
|
* @param successStep 完成步骤名称
|
|
31
|
-
* @param
|
|
31
|
+
* @param fromStep 起步骤名称
|
|
32
32
|
* @param toStep 往步骤名称
|
|
33
33
|
*/
|
|
34
|
-
nextClick ({ note, form, workflowId,
|
|
35
|
-
console.log('success', note, form, workflowId,
|
|
34
|
+
nextClick ({ note, form, workflowId, fromStepId, toStepId, fromStep, toStep, successStepId, successStep }) {
|
|
35
|
+
console.log('success', note, form, workflowId, fromStepId, toStepId, fromStep, toStep, successStepId, successStep)
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -763,14 +763,16 @@ export default {
|
|
|
763
763
|
return stepHandler
|
|
764
764
|
},
|
|
765
765
|
// 生成工作流日志步骤变化描述
|
|
766
|
-
generateStepChangeText (
|
|
767
|
-
return `第${
|
|
766
|
+
generateStepChangeText (fromStepId, toStepId) {
|
|
767
|
+
return `第${fromStepId}步: ${this.getStepNameByStepId(fromStepId)} --> 第${toStepId}步: ${this.getStepNameByStepId(toStepId)}`
|
|
768
768
|
},
|
|
769
|
-
generateStepChange (
|
|
769
|
+
generateStepChange (fromStepId, toStepId) {
|
|
770
770
|
return {
|
|
771
|
-
formStepId,
|
|
771
|
+
formStepId: fromStepId,
|
|
772
|
+
fromStepId,
|
|
772
773
|
toStepId,
|
|
773
|
-
formStep: this.getStepNameByStepId(
|
|
774
|
+
formStep: this.getStepNameByStepId(fromStepId),
|
|
775
|
+
fromStep: this.getStepNameByStepId(fromStepId),
|
|
774
776
|
toStep: this.getStepNameByStepId(toStepId),
|
|
775
777
|
successStepId: this.stepsDefine[this.stepsDefine.length - 1].id,
|
|
776
778
|
successStep: this.stepsDefine[this.stepsDefine.length - 1].name,
|
|
@@ -1,117 +1,116 @@
|
|
|
1
|
-
const { homePage } = require('../../config')
|
|
2
|
-
// 视图组件
|
|
3
|
-
const view = {
|
|
4
|
-
tabs: () => import('@vue2-client/layouts/tabs'),
|
|
5
|
-
blank: () => import('@vue2-client/layouts/BlankView'),
|
|
6
|
-
page: () => import('@vue2-client/layouts/PageView'),
|
|
7
|
-
// his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
|
|
8
|
-
gridView: () => import('@vue2-client/layouts/GridView'),
|
|
9
|
-
login: () => import('@vue2-client/pages/login/Login'),
|
|
10
|
-
loginv3: () => import('@vue2-client/pages/login/LoginV3')
|
|
11
|
-
}
|
|
12
|
-
// 动态路由对象定义
|
|
13
|
-
const routerResource = {}
|
|
14
|
-
// --------------------------------------基本视图组件--------------------------------------
|
|
15
|
-
// 空白视图
|
|
16
|
-
routerResource.blank = view.blank
|
|
17
|
-
// 单页面视图
|
|
18
|
-
routerResource.singlePage = view.blank
|
|
19
|
-
// 栅格配置视图
|
|
20
|
-
routerResource.gridView = view.gridView
|
|
21
|
-
|
|
22
|
-
// --------------------------------------仪表盘--------------------------------------
|
|
23
|
-
routerResource.dashboard = view.blank
|
|
24
|
-
// 工作台
|
|
25
|
-
routerResource.workplace = () =>
|
|
26
|
-
import('@vue2-client/pages/dashboard/workplace')
|
|
27
|
-
// --------------------------------------系统配置--------------------------------------
|
|
28
|
-
routerResource.system = view.blank
|
|
29
|
-
// 字典管理
|
|
30
|
-
routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
|
|
31
|
-
// 文件管理
|
|
32
|
-
routerResource.fileManager = () => import('@vue2-client/pages/system/file')
|
|
33
|
-
// 登录日志
|
|
34
|
-
routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
|
|
35
|
-
// 操作日志
|
|
36
|
-
routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
|
|
37
|
-
// 系统问题反馈工单
|
|
38
|
-
routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
|
|
39
|
-
// 通用服务评价
|
|
40
|
-
routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
|
|
41
|
-
// 系统设置
|
|
42
|
-
routerResource.settings = () => import('@vue2-client/pages/system/settings')
|
|
43
|
-
// AMIS示例页面
|
|
44
|
-
routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
|
|
45
|
-
// 页面编辑器
|
|
46
|
-
routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
|
|
47
|
-
// 数据检索
|
|
48
|
-
routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
|
|
49
|
-
// 数据检索(新)
|
|
50
|
-
routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
|
|
51
|
-
// 示例页面
|
|
52
|
-
routerResource.example = {
|
|
53
|
-
path: 'example',
|
|
54
|
-
name: '示例主页面',
|
|
55
|
-
component: () => import('@vue2-client/base-client/components/common/
|
|
56
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
57
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
58
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
59
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
60
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
61
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
62
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
63
|
-
// component: () => import('@vue2-client/
|
|
64
|
-
|
|
65
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
66
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
67
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
68
|
-
// component: () => import('@vue2-client/base-client/components/common/
|
|
69
|
-
// component: () => import('@vue2-client/base-client/components/
|
|
70
|
-
// component: () => import('@vue2-client/
|
|
71
|
-
// component: () => import('@vue2-client/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
//
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
export default routerMap
|
|
1
|
+
const { homePage } = require('../../config')
|
|
2
|
+
// 视图组件
|
|
3
|
+
const view = {
|
|
4
|
+
tabs: () => import('@vue2-client/layouts/tabs'),
|
|
5
|
+
blank: () => import('@vue2-client/layouts/BlankView'),
|
|
6
|
+
page: () => import('@vue2-client/layouts/PageView'),
|
|
7
|
+
// his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
|
|
8
|
+
gridView: () => import('@vue2-client/layouts/GridView'),
|
|
9
|
+
login: () => import('@vue2-client/pages/login/Login'),
|
|
10
|
+
loginv3: () => import('@vue2-client/pages/login/LoginV3')
|
|
11
|
+
}
|
|
12
|
+
// 动态路由对象定义
|
|
13
|
+
const routerResource = {}
|
|
14
|
+
// --------------------------------------基本视图组件--------------------------------------
|
|
15
|
+
// 空白视图
|
|
16
|
+
routerResource.blank = view.blank
|
|
17
|
+
// 单页面视图
|
|
18
|
+
routerResource.singlePage = view.blank
|
|
19
|
+
// 栅格配置视图
|
|
20
|
+
routerResource.gridView = view.gridView
|
|
21
|
+
|
|
22
|
+
// --------------------------------------仪表盘--------------------------------------
|
|
23
|
+
routerResource.dashboard = view.blank
|
|
24
|
+
// 工作台
|
|
25
|
+
routerResource.workplace = () =>
|
|
26
|
+
import('@vue2-client/pages/dashboard/workplace')
|
|
27
|
+
// --------------------------------------系统配置--------------------------------------
|
|
28
|
+
routerResource.system = view.blank
|
|
29
|
+
// 字典管理
|
|
30
|
+
routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
|
|
31
|
+
// 文件管理
|
|
32
|
+
routerResource.fileManager = () => import('@vue2-client/pages/system/file')
|
|
33
|
+
// 登录日志
|
|
34
|
+
routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
|
|
35
|
+
// 操作日志
|
|
36
|
+
routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
|
|
37
|
+
// 系统问题反馈工单
|
|
38
|
+
routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
|
|
39
|
+
// 通用服务评价
|
|
40
|
+
routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
|
|
41
|
+
// 系统设置
|
|
42
|
+
routerResource.settings = () => import('@vue2-client/pages/system/settings')
|
|
43
|
+
// AMIS示例页面
|
|
44
|
+
routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
|
|
45
|
+
// 页面编辑器
|
|
46
|
+
routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
|
|
47
|
+
// 数据检索
|
|
48
|
+
routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
|
|
49
|
+
// 数据检索(新)
|
|
50
|
+
routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
|
|
51
|
+
// 示例页面
|
|
52
|
+
routerResource.example = {
|
|
53
|
+
path: 'example',
|
|
54
|
+
name: '示例主页面',
|
|
55
|
+
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
|
56
|
+
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
|
57
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
|
58
|
+
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
|
59
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
|
60
|
+
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
|
61
|
+
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
|
62
|
+
// component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
|
|
63
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
64
|
+
component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
|
|
65
|
+
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
|
66
|
+
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
|
67
|
+
// component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
|
|
68
|
+
// component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
|
|
69
|
+
// component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
|
|
70
|
+
// component: () => import('@vue2-client/components/g2Charts/demo.vue'),
|
|
71
|
+
// component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
|
|
72
|
+
}
|
|
73
|
+
// routerResource.example = () =>
|
|
74
|
+
// import('@vue2-client/pages/Example')
|
|
75
|
+
routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
|
|
76
|
+
|
|
77
|
+
routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
|
|
78
|
+
|
|
79
|
+
routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
|
|
80
|
+
|
|
81
|
+
// 基础路由组件注册
|
|
82
|
+
const routerMap = {
|
|
83
|
+
login: {
|
|
84
|
+
authority: '*',
|
|
85
|
+
path: '/login',
|
|
86
|
+
component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
|
|
87
|
+
? view.loginv3 : view.login
|
|
88
|
+
},
|
|
89
|
+
root: {
|
|
90
|
+
path: '/',
|
|
91
|
+
name: '首页',
|
|
92
|
+
redirect: homePage,
|
|
93
|
+
component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
|
|
94
|
+
},
|
|
95
|
+
exp403: {
|
|
96
|
+
authority: '*',
|
|
97
|
+
name: 'exp403',
|
|
98
|
+
path: '403',
|
|
99
|
+
component: () =>
|
|
100
|
+
import('@vue2-client/pages/exception/403')
|
|
101
|
+
},
|
|
102
|
+
exp404: {
|
|
103
|
+
name: 'exp404',
|
|
104
|
+
path: '404',
|
|
105
|
+
component: () =>
|
|
106
|
+
import('@vue2-client/pages/exception/404')
|
|
107
|
+
},
|
|
108
|
+
exp500: {
|
|
109
|
+
name: 'exp500',
|
|
110
|
+
path: '500',
|
|
111
|
+
component: () =>
|
|
112
|
+
import('@vue2-client/pages/exception/500')
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
Object.assign(routerMap, routerResource)
|
|
116
|
+
export default routerMap
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<x-collapse query-params-name="zsftestConfig" />
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
import XCollapse from '@vue2-client/base-client/components/common/XCollapse/XCollapse.vue'
|
|
7
|
-
export default {
|
|
8
|
-
name: 'Demo',
|
|
9
|
-
components: { XCollapse }
|
|
10
|
-
}
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<style scoped>
|
|
14
|
-
|
|
15
|
-
</style>
|