vue2-client 1.19.52 → 1.19.54
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 +113 -113
- package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +17 -4
- package/src/base-client/components/common/XAddNativeForm/demo.vue +26 -3
- package/src/base-client/components/common/XForm/XFormItem.vue +28 -56
- package/src/base-client/components/common/XForm/XTreeSelect.vue +0 -29
- package/src/base-client/components/common/XFormCol/XFormCol.vue +91 -30
- package/src/base-client/components/common/XFormTable/demo.vue +80 -41
- package/src/base-client/components/common/XTable/XTableWrapper.vue +818 -818
- package/src/components/FileImageItem/FileItem.vue +141 -6
- package/src/components/FileImageItem/FileItemGroup.vue +1 -1
- package/src/layouts/header/HeaderNotice.vue +3 -5
- package/src/pages/WorkflowDetail/WorkFlowDemo4.vue +127 -0
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformation.vue +417 -417
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +1871 -1823
- package/src/router/async/router.map.js +2 -2
- package/src/theme/global.less +13 -0
- package/vue.config.js +1 -1
package/package.json
CHANGED
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vue2-client",
|
|
3
|
-
"version": "1.19.
|
|
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:iot": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode iot",
|
|
12
|
-
"serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
|
|
13
|
-
"serve:runtime": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode runtime",
|
|
14
|
-
"serve:message": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode message",
|
|
15
|
-
"serve:apply": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode apply",
|
|
16
|
-
"mac-serve": "vue-cli-service serve --no-eslint --mode his",
|
|
17
|
-
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
|
18
|
-
"test:unit": "vue-cli-service test:unit",
|
|
19
|
-
"lint": "vue-cli-service lint",
|
|
20
|
-
"build:preview": "vue-cli-service build --mode preview",
|
|
21
|
-
"lint:nofix": "vue-cli-service lint --no-fix",
|
|
22
|
-
"test": "jest"
|
|
23
|
-
},
|
|
24
|
-
"dependencies": {
|
|
25
|
-
"@afwenming123/vue-easy-tree": "^1.0.1",
|
|
26
|
-
"@afwenming123/vue-plugin-hiprint": "^0.0.70",
|
|
27
|
-
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
28
|
-
"@antv/data-set": "^0.11.8",
|
|
29
|
-
"@antv/g2plot": "^2.4.31",
|
|
30
|
-
"@hufe921/canvas-editor": "^0.9.49",
|
|
31
|
-
"@microsoft/fetch-event-source": "^2.0.1",
|
|
32
|
-
"@vue/babel-preset-jsx": "^1.4.0",
|
|
33
|
-
"animate.css": "^4.1.1",
|
|
34
|
-
"ant-design-vue": "^1.7.8",
|
|
35
|
-
"axios": "^0.27.2",
|
|
36
|
-
"clipboard": "^2.0.11",
|
|
37
|
-
"core-js": "^3.33.0",
|
|
38
|
-
"crypto-js": "^4.1.1",
|
|
39
|
-
"date-fns": "^2.29.3",
|
|
40
|
-
"default-passive-events": "^2.0.0",
|
|
41
|
-
"dotenv": "^16.3.1",
|
|
42
|
-
"echarts": "^5.5.0",
|
|
43
|
-
"enquire.js": "^2.1.6",
|
|
44
|
-
"file-saver": "^2.0.5",
|
|
45
|
-
"highlight.js": "^11.7.0",
|
|
46
|
-
"html2canvas": "^1.4.1",
|
|
47
|
-
"js-base64": "^3.7.5",
|
|
48
|
-
"js-cookie": "^2.2.1",
|
|
49
|
-
"jsencrypt": "^3.3.2",
|
|
50
|
-
"jspdf": "^2.5.1",
|
|
51
|
-
"lodash.clonedeep": "^4.5.0",
|
|
52
|
-
"lodash.debounce": "^4",
|
|
53
|
-
"lodash.get": "^4.4.2",
|
|
54
|
-
"marked": "^4",
|
|
55
|
-
"mockjs": "^1.1.0",
|
|
56
|
-
"nprogress": "^0.2.0",
|
|
57
|
-
"qs": "^6.11.2",
|
|
58
|
-
"regenerator-runtime": "^0.14.0",
|
|
59
|
-
"splitpanes": "^2.4.1",
|
|
60
|
-
"videojs-contrib-hls": "^5.15.0",
|
|
61
|
-
"viser-vue": "^2.4.8",
|
|
62
|
-
"vue": "^2.7.14",
|
|
63
|
-
"vue-codemirror": "4.0.6",
|
|
64
|
-
"vue-color": "2.7.0",
|
|
65
|
-
"vue-draggable-resizable": "^2.3.0",
|
|
66
|
-
"vue-i18n": "^8.28.2",
|
|
67
|
-
"vue-json-viewer": "^2.2.22",
|
|
68
|
-
"vue-router": "^3.6.5",
|
|
69
|
-
"vue-video-player": "^5.0.2",
|
|
70
|
-
"vue-virtual-scroller": "^1.1.2",
|
|
71
|
-
"vuedraggable": "^2.24.3",
|
|
72
|
-
"vuex": "^3.6.2",
|
|
73
|
-
"xlsx": "0.18.5"
|
|
74
|
-
},
|
|
75
|
-
"devDependencies": {
|
|
76
|
-
"@ant-design/colors": "^7.0.0",
|
|
77
|
-
"@babel/core": "^7.22.20",
|
|
78
|
-
"@babel/eslint-parser": "^7.22.15",
|
|
79
|
-
"@babel/preset-env": "^7.22.20",
|
|
80
|
-
"@vue/cli-plugin-babel": "^5.0.8",
|
|
81
|
-
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
82
|
-
"@vue/cli-service": "^5.0.8",
|
|
83
|
-
"@vue/eslint-config-standard": "^8.0.1",
|
|
84
|
-
"@vue/test-utils": "^1.3.6",
|
|
85
|
-
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
86
|
-
"compression-webpack-plugin": "^10.0.0",
|
|
87
|
-
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
88
|
-
"deepmerge": "^4.3.1",
|
|
89
|
-
"eslint": "^8.51.0",
|
|
90
|
-
"eslint-config-prettier": "^10.1.8",
|
|
91
|
-
"eslint-plugin-vue": "^9.17.0",
|
|
92
|
-
"fast-deep-equal": "^3.1.3",
|
|
93
|
-
"ignore-loader": "^0.1.2",
|
|
94
|
-
"jest": "^29.7.0",
|
|
95
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
96
|
-
"jest-transform-stub": "^2.0.0",
|
|
97
|
-
"less-loader": "^6.2.0",
|
|
98
|
-
"script-loader": "^0.7.2",
|
|
99
|
-
"style-resources-loader": "^1.5.0",
|
|
100
|
-
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
101
|
-
"vue-jest": "^4.0.1",
|
|
102
|
-
"vue-template-compiler": "^2.7.14",
|
|
103
|
-
"webpack": "^5.88.2",
|
|
104
|
-
"webpack-theme-color-replacer": "^1.4.7",
|
|
105
|
-
"whatwg-fetch": "^3.6.19"
|
|
106
|
-
},
|
|
107
|
-
"browserslist": [
|
|
108
|
-
"> 1%",
|
|
109
|
-
"last 2 versions",
|
|
110
|
-
"not dead",
|
|
111
|
-
"not ie 11"
|
|
112
|
-
]
|
|
113
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vue2-client",
|
|
3
|
+
"version": "1.19.54",
|
|
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:iot": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode iot",
|
|
12
|
+
"serve:his": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode his",
|
|
13
|
+
"serve:runtime": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode runtime",
|
|
14
|
+
"serve:message": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode message",
|
|
15
|
+
"serve:apply": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint --mode apply",
|
|
16
|
+
"mac-serve": "vue-cli-service serve --no-eslint --mode his",
|
|
17
|
+
"build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
|
18
|
+
"test:unit": "vue-cli-service test:unit",
|
|
19
|
+
"lint": "vue-cli-service lint",
|
|
20
|
+
"build:preview": "vue-cli-service build --mode preview",
|
|
21
|
+
"lint:nofix": "vue-cli-service lint --no-fix",
|
|
22
|
+
"test": "jest"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@afwenming123/vue-easy-tree": "^1.0.1",
|
|
26
|
+
"@afwenming123/vue-plugin-hiprint": "^0.0.70",
|
|
27
|
+
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
28
|
+
"@antv/data-set": "^0.11.8",
|
|
29
|
+
"@antv/g2plot": "^2.4.31",
|
|
30
|
+
"@hufe921/canvas-editor": "^0.9.49",
|
|
31
|
+
"@microsoft/fetch-event-source": "^2.0.1",
|
|
32
|
+
"@vue/babel-preset-jsx": "^1.4.0",
|
|
33
|
+
"animate.css": "^4.1.1",
|
|
34
|
+
"ant-design-vue": "^1.7.8",
|
|
35
|
+
"axios": "^0.27.2",
|
|
36
|
+
"clipboard": "^2.0.11",
|
|
37
|
+
"core-js": "^3.33.0",
|
|
38
|
+
"crypto-js": "^4.1.1",
|
|
39
|
+
"date-fns": "^2.29.3",
|
|
40
|
+
"default-passive-events": "^2.0.0",
|
|
41
|
+
"dotenv": "^16.3.1",
|
|
42
|
+
"echarts": "^5.5.0",
|
|
43
|
+
"enquire.js": "^2.1.6",
|
|
44
|
+
"file-saver": "^2.0.5",
|
|
45
|
+
"highlight.js": "^11.7.0",
|
|
46
|
+
"html2canvas": "^1.4.1",
|
|
47
|
+
"js-base64": "^3.7.5",
|
|
48
|
+
"js-cookie": "^2.2.1",
|
|
49
|
+
"jsencrypt": "^3.3.2",
|
|
50
|
+
"jspdf": "^2.5.1",
|
|
51
|
+
"lodash.clonedeep": "^4.5.0",
|
|
52
|
+
"lodash.debounce": "^4",
|
|
53
|
+
"lodash.get": "^4.4.2",
|
|
54
|
+
"marked": "^4",
|
|
55
|
+
"mockjs": "^1.1.0",
|
|
56
|
+
"nprogress": "^0.2.0",
|
|
57
|
+
"qs": "^6.11.2",
|
|
58
|
+
"regenerator-runtime": "^0.14.0",
|
|
59
|
+
"splitpanes": "^2.4.1",
|
|
60
|
+
"videojs-contrib-hls": "^5.15.0",
|
|
61
|
+
"viser-vue": "^2.4.8",
|
|
62
|
+
"vue": "^2.7.14",
|
|
63
|
+
"vue-codemirror": "4.0.6",
|
|
64
|
+
"vue-color": "2.7.0",
|
|
65
|
+
"vue-draggable-resizable": "^2.3.0",
|
|
66
|
+
"vue-i18n": "^8.28.2",
|
|
67
|
+
"vue-json-viewer": "^2.2.22",
|
|
68
|
+
"vue-router": "^3.6.5",
|
|
69
|
+
"vue-video-player": "^5.0.2",
|
|
70
|
+
"vue-virtual-scroller": "^1.1.2",
|
|
71
|
+
"vuedraggable": "^2.24.3",
|
|
72
|
+
"vuex": "^3.6.2",
|
|
73
|
+
"xlsx": "0.18.5"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@ant-design/colors": "^7.0.0",
|
|
77
|
+
"@babel/core": "^7.22.20",
|
|
78
|
+
"@babel/eslint-parser": "^7.22.15",
|
|
79
|
+
"@babel/preset-env": "^7.22.20",
|
|
80
|
+
"@vue/cli-plugin-babel": "^5.0.8",
|
|
81
|
+
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
82
|
+
"@vue/cli-service": "^5.0.8",
|
|
83
|
+
"@vue/eslint-config-standard": "^8.0.1",
|
|
84
|
+
"@vue/test-utils": "^1.3.6",
|
|
85
|
+
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
86
|
+
"compression-webpack-plugin": "^10.0.0",
|
|
87
|
+
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
88
|
+
"deepmerge": "^4.3.1",
|
|
89
|
+
"eslint": "^8.51.0",
|
|
90
|
+
"eslint-config-prettier": "^10.1.8",
|
|
91
|
+
"eslint-plugin-vue": "^9.17.0",
|
|
92
|
+
"fast-deep-equal": "^3.1.3",
|
|
93
|
+
"ignore-loader": "^0.1.2",
|
|
94
|
+
"jest": "^29.7.0",
|
|
95
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
96
|
+
"jest-transform-stub": "^2.0.0",
|
|
97
|
+
"less-loader": "^6.2.0",
|
|
98
|
+
"script-loader": "^0.7.2",
|
|
99
|
+
"style-resources-loader": "^1.5.0",
|
|
100
|
+
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
101
|
+
"vue-jest": "^4.0.1",
|
|
102
|
+
"vue-template-compiler": "^2.7.14",
|
|
103
|
+
"webpack": "^5.88.2",
|
|
104
|
+
"webpack-theme-color-replacer": "^1.4.7",
|
|
105
|
+
"whatwg-fetch": "^3.6.19"
|
|
106
|
+
},
|
|
107
|
+
"browserslist": [
|
|
108
|
+
"> 1%",
|
|
109
|
+
"last 2 versions",
|
|
110
|
+
"not dead",
|
|
111
|
+
"not ie 11"
|
|
112
|
+
]
|
|
113
|
+
}
|
|
@@ -174,9 +174,9 @@
|
|
|
174
174
|
</a-card>
|
|
175
175
|
</a-row>
|
|
176
176
|
</template>
|
|
177
|
-
<a-row type="flex" :justify="btnPlace" :style="{ paddingLeft: '16px', paddingRight: '16px' }">
|
|
177
|
+
<a-row type="flex" :justify="btnPlace" v-if="showSubmitBtn" class="form-footer-row" :style="{ paddingLeft: '16px', paddingRight: '16px' }">
|
|
178
178
|
<slot name="footer" :loading="loading">
|
|
179
|
-
<a-button
|
|
179
|
+
<a-button :loading="loading" type="primary" @click="onSubmit()">
|
|
180
180
|
{{ btnName }}
|
|
181
181
|
</a-button>
|
|
182
182
|
</slot>
|
|
@@ -275,7 +275,7 @@ export default {
|
|
|
275
275
|
// 提交按钮名称
|
|
276
276
|
btnName: '提交',
|
|
277
277
|
// 提交按钮位置 start / center / end
|
|
278
|
-
btnPlace: '
|
|
278
|
+
btnPlace: 'end',
|
|
279
279
|
// 子表是否排在前面
|
|
280
280
|
childTablePriority: false,
|
|
281
281
|
// simple-inline布局配置
|
|
@@ -555,7 +555,7 @@ export default {
|
|
|
555
555
|
formItemLayout = {},
|
|
556
556
|
btnName = '提交',
|
|
557
557
|
childTablePriority = false,
|
|
558
|
-
btnPlace = '
|
|
558
|
+
btnPlace = 'end',
|
|
559
559
|
simpleInline = null,
|
|
560
560
|
paramLogicName,
|
|
561
561
|
paramLogicNameParam
|
|
@@ -1370,4 +1370,17 @@ export default {
|
|
|
1370
1370
|
width: 100% !important;
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
|
+
|
|
1374
|
+
/* 表单底部按钮区域样式 */
|
|
1375
|
+
.form-footer-row {
|
|
1376
|
+
margin-top: 16px;
|
|
1377
|
+
|
|
1378
|
+
:deep(.ant-btn) {
|
|
1379
|
+
margin-left: 8px;
|
|
1380
|
+
|
|
1381
|
+
&:first-child {
|
|
1382
|
+
margin-left: 0;
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1373
1386
|
</style>
|
|
@@ -7,15 +7,16 @@ export default {
|
|
|
7
7
|
components: { XAddNativeForm },
|
|
8
8
|
data() {
|
|
9
9
|
return {
|
|
10
|
-
form: {}
|
|
10
|
+
form: {},
|
|
11
|
+
formModalVisible: false,
|
|
11
12
|
}
|
|
12
13
|
},
|
|
13
14
|
mounted() {
|
|
14
|
-
getConfigByNameAsync('
|
|
15
|
+
getConfigByNameAsync('addOrEditLimitGasRulesForm', 'af-revenue').then(res => {
|
|
15
16
|
this.$refs.xAddFrom.init(
|
|
16
17
|
Object.assign(res, {
|
|
17
18
|
modifyModelData: {
|
|
18
|
-
data: {}
|
|
19
|
+
data: {},
|
|
19
20
|
}
|
|
20
21
|
})
|
|
21
22
|
)
|
|
@@ -26,6 +27,17 @@ export default {
|
|
|
26
27
|
this.form = Object.assign({}, value.realForm)
|
|
27
28
|
this.$refs.xAddFrom.loading = false
|
|
28
29
|
},
|
|
30
|
+
openPopupForm() {
|
|
31
|
+
this.formModalVisible = true
|
|
32
|
+
getConfigByNameAsync('addOrEditLimitGasRulesForm', 'af-revenue').then(res => {
|
|
33
|
+
this.$nextTick(() => {
|
|
34
|
+
this.$refs.xAddFormModal.init({
|
|
35
|
+
businessType: '新增',
|
|
36
|
+
...res
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
})
|
|
40
|
+
},
|
|
29
41
|
singLocal() {
|
|
30
42
|
console.log('singLocal')
|
|
31
43
|
}
|
|
@@ -35,9 +47,20 @@ export default {
|
|
|
35
47
|
|
|
36
48
|
<template>
|
|
37
49
|
<div>
|
|
50
|
+
<a-button @click="openPopupForm">打开弹窗表单</a-button>
|
|
38
51
|
<a-card :style="{ width: '650px' }">
|
|
39
52
|
<x-add-native-form ref="xAddFrom" @getinfo="aaa" @onSubmit="aaa" @singLocal="singLocal" />
|
|
40
53
|
</a-card>
|
|
54
|
+
<a-modal
|
|
55
|
+
v-model="formModalVisible"
|
|
56
|
+
:dialog-style="{ top: '5rem' }"
|
|
57
|
+
:z-index="300"
|
|
58
|
+
width="55vw"
|
|
59
|
+
:destroyOnClose="true"
|
|
60
|
+
>
|
|
61
|
+
<x-add-native-form ref="xAddFormModal" />
|
|
62
|
+
</a-modal>
|
|
63
|
+
|
|
41
64
|
<a-card>
|
|
42
65
|
<pre
|
|
43
66
|
>{{ form ? JSON.stringify(form, null, 2) : '请先点击获取表单数据' }}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!-- 输入框 -->
|
|
3
|
-
<x-form-col v-if="attr.type === 'input' && show" :occupyCol="attr.occupyCol" :labelCol="labelCol" :
|
|
3
|
+
<x-form-col v-if="attr.type === 'input' && show" :occupyCol="attr.occupyCol" :labelCol="labelCol" :mode="mode" :layout="layout" :attrType="attr.type">
|
|
4
4
|
<a-form-model-item
|
|
5
5
|
v-bind="bindOther"
|
|
6
6
|
:rules="rules"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
</a-form-model-item>
|
|
87
87
|
</x-form-col>
|
|
88
88
|
<!-- 下拉框 -->
|
|
89
|
-
<x-form-col v-else-if="attr.type === 'select' && show" :labelCol="labelCol" :
|
|
89
|
+
<x-form-col v-else-if="attr.type === 'select' && show" :labelCol="labelCol" :mode="mode" :layout="layout" :attrType="attr.type">
|
|
90
90
|
<a-form-model-item
|
|
91
91
|
v-bind="bindOther"
|
|
92
92
|
:rules="rules"
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
</a-form-model-item>
|
|
195
195
|
</x-form-col>
|
|
196
196
|
<!-- 多选框 -->
|
|
197
|
-
<x-form-col v-else-if="attr.type === 'checkbox' && show" :labelCol="labelCol" :
|
|
197
|
+
<x-form-col v-else-if="attr.type === 'checkbox' && show" :labelCol="labelCol" :mode="mode" :layout="layout" :attrType="attr.type">
|
|
198
198
|
<a-form-model-item
|
|
199
199
|
v-bind="bindOther"
|
|
200
200
|
:rules="rules"
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
</a-form-model-item>
|
|
273
273
|
</x-form-col>
|
|
274
274
|
<!-- 单选框 -->
|
|
275
|
-
<x-form-col v-else-if="attr.type === 'radio' && show" :labelCol="labelCol" :
|
|
275
|
+
<x-form-col v-else-if="attr.type === 'radio' && show" :labelCol="labelCol" :mode="mode" :layout="layout" :attrType="attr.type">
|
|
276
276
|
<a-form-model-item
|
|
277
277
|
v-bind="bindOther"
|
|
278
278
|
:rules="rules"
|
|
@@ -334,7 +334,9 @@
|
|
|
334
334
|
].includes(attr.type) && show
|
|
335
335
|
"
|
|
336
336
|
:labelCol="labelCol"
|
|
337
|
-
:
|
|
337
|
+
:mode="mode"
|
|
338
|
+
:layout="layout"
|
|
339
|
+
:attrType="attr.type"
|
|
338
340
|
>
|
|
339
341
|
<a-form-model-item
|
|
340
342
|
v-bind="bindOther"
|
|
@@ -357,7 +359,7 @@
|
|
|
357
359
|
</a-form-model-item>
|
|
358
360
|
</x-form-col>
|
|
359
361
|
<!-- 文本域 -->
|
|
360
|
-
<x-form-col v-else-if="attr.type === 'textarea' && show" :labelCol="labelCol" :
|
|
362
|
+
<x-form-col v-else-if="attr.type === 'textarea' && show" :labelCol="labelCol" :mode="mode" :layout="layout" :attrType="attr.type">
|
|
361
363
|
<!-- :style="layout === 'inline'?{width:'calc(100% - 60px)'}:{}"-->
|
|
362
364
|
<a-form-model-item
|
|
363
365
|
v-bind="bindOther"
|
|
@@ -380,7 +382,10 @@
|
|
|
380
382
|
<x-form-col
|
|
381
383
|
v-else-if="(attr.type === 'file' || attr.type === 'image') && show"
|
|
382
384
|
:labelCol="labelCol"
|
|
383
|
-
|
|
385
|
+
|
|
386
|
+
:mode="mode"
|
|
387
|
+
:layout="layout"
|
|
388
|
+
:attrType="attr.type"
|
|
384
389
|
>
|
|
385
390
|
<a-form-model-item
|
|
386
391
|
v-bind="bindOther"
|
|
@@ -401,7 +406,7 @@
|
|
|
401
406
|
</a-form-model-item>
|
|
402
407
|
</x-form-col>
|
|
403
408
|
<!-- 省市区选择框 -->
|
|
404
|
-
<x-form-col v-else-if="attr.type === 'citySelect' && show" :labelCol="labelCol" :
|
|
409
|
+
<x-form-col v-else-if="attr.type === 'citySelect' && show" :labelCol="labelCol" :mode="mode" :layout="layout" :attrType="attr.type">
|
|
405
410
|
<a-form-model-item
|
|
406
411
|
v-bind="bindOther"
|
|
407
412
|
:rules="rules"
|
|
@@ -424,7 +429,10 @@
|
|
|
424
429
|
v-else-if="(attr.type === 'addressSearch' || attr.type === 'coordinateSearch') && show"
|
|
425
430
|
:labelCol="labelCol"
|
|
426
431
|
:occupyCol="attr.occupyCol"
|
|
427
|
-
|
|
432
|
+
|
|
433
|
+
:mode="mode"
|
|
434
|
+
:layout="layout"
|
|
435
|
+
:attrType="attr.type"
|
|
428
436
|
>
|
|
429
437
|
<a-form-model-item
|
|
430
438
|
v-bind="bindOther"
|
|
@@ -448,7 +456,7 @@
|
|
|
448
456
|
</a-form-model-item>
|
|
449
457
|
</x-form-col>
|
|
450
458
|
<!-- 颜色选择器 -->
|
|
451
|
-
<x-form-col v-else-if="attr.type === 'colorPicker' && show" :labelCol="labelCol" :
|
|
459
|
+
<x-form-col v-else-if="attr.type === 'colorPicker' && show" :labelCol="labelCol" :mode="mode" :layout="layout" :attrType="attr.type">
|
|
452
460
|
<a-form-model-item
|
|
453
461
|
v-bind="bindOther"
|
|
454
462
|
:rules="rules"
|
|
@@ -460,7 +468,7 @@
|
|
|
460
468
|
</a-form-model-item>
|
|
461
469
|
</x-form-col>
|
|
462
470
|
<!-- 人员选择框 -->
|
|
463
|
-
<x-form-col v-else-if="attr.type === 'personSetting' && show" :labelCol="labelCol" :
|
|
471
|
+
<x-form-col v-else-if="attr.type === 'personSetting' && show" :labelCol="labelCol" :mode="mode" :layout="layout" :attrType="attr.type">
|
|
464
472
|
<a-form-model-item
|
|
465
473
|
v-bind="bindOther"
|
|
466
474
|
:rules="rules"
|
|
@@ -472,7 +480,7 @@
|
|
|
472
480
|
</a-form-model-item>
|
|
473
481
|
</x-form-col>
|
|
474
482
|
<!-- 树形选择框 -->
|
|
475
|
-
<x-form-col v-else-if="attr.type === 'treeSelect' && show" :labelCol="labelCol"
|
|
483
|
+
<x-form-col v-else-if="attr.type === 'treeSelect' && show" :labelCol="labelCol" >
|
|
476
484
|
<x-tree-select
|
|
477
485
|
:rules="rules"
|
|
478
486
|
@onChange="handleTreeSelectChange"
|
|
@@ -483,7 +491,7 @@
|
|
|
483
491
|
></x-tree-select>
|
|
484
492
|
</x-form-col>
|
|
485
493
|
<!-- 列表选择框 -->
|
|
486
|
-
<x-form-col v-else-if="attr.type === 'listSelect' && show" :labelCol="labelCol" :
|
|
494
|
+
<x-form-col v-else-if="attr.type === 'listSelect' && show" :labelCol="labelCol" :mode="mode" :layout="layout" :attrType="attr.type">
|
|
487
495
|
<a-form-model-item
|
|
488
496
|
v-bind="bindOther"
|
|
489
497
|
:rules="rules"
|
|
@@ -547,7 +555,7 @@
|
|
|
547
555
|
</a-form-model-item>
|
|
548
556
|
</x-form-col>
|
|
549
557
|
<!-- 评分框 -->
|
|
550
|
-
<x-form-col v-else-if="attr.type === 'rate' && show" :labelCol="labelCol" :
|
|
558
|
+
<x-form-col v-else-if="attr.type === 'rate' && show" :labelCol="labelCol" :mode="mode" :layout="layout" :attrType="attr.type">
|
|
551
559
|
<a-form-model-item
|
|
552
560
|
v-bind="bindOther"
|
|
553
561
|
:rules="rules"
|
|
@@ -570,7 +578,7 @@
|
|
|
570
578
|
</a-form-model-item>
|
|
571
579
|
</x-form-col>
|
|
572
580
|
<!-- 区间选择器 -->
|
|
573
|
-
<x-form-col v-else-if="attr.type === 'intervalPicker' && show" :labelCol="labelCol" :
|
|
581
|
+
<x-form-col v-else-if="attr.type === 'intervalPicker' && show" :labelCol="labelCol" :mode="mode" :layout="layout" :attrType="attr.type">
|
|
574
582
|
<a-form-model-item
|
|
575
583
|
v-bind="bindOther"
|
|
576
584
|
:rules="rules"
|
|
@@ -591,7 +599,7 @@
|
|
|
591
599
|
</a-form-model-item>
|
|
592
600
|
</x-form-col>
|
|
593
601
|
<!-- 车牌号选择 -->
|
|
594
|
-
<x-form-col v-else-if="attr.type === 'licensePlate' && show" :labelCol="labelCol" :
|
|
602
|
+
<x-form-col v-else-if="attr.type === 'licensePlate' && show" :labelCol="labelCol" :mode="mode" :layout="layout" :attrType="attr.type">
|
|
595
603
|
<a-form-model-item
|
|
596
604
|
v-bind="bindOther"
|
|
597
605
|
:rules="rules"
|
|
@@ -624,11 +632,11 @@
|
|
|
624
632
|
</a-form-model-item>
|
|
625
633
|
</x-form-col>
|
|
626
634
|
<!-- 录音 -->
|
|
627
|
-
<x-form-col v-else-if="attr.type === 'recording' && show" :labelCol="labelCol"
|
|
635
|
+
<x-form-col v-else-if="attr.type === 'recording' && show" :labelCol="labelCol" >
|
|
628
636
|
<recording ref="recording" @recordingData="recordingData"></recording>
|
|
629
637
|
</x-form-col>
|
|
630
638
|
<!-- 表格录入 -->
|
|
631
|
-
<x-form-col v-else-if="attr.type === 'rowEdit' && show" :labelCol="labelCol" :
|
|
639
|
+
<x-form-col v-else-if="attr.type === 'rowEdit' && show" :labelCol="labelCol" :mode="mode" :layout="layout" :attrType="attr.type">
|
|
632
640
|
<a-form-model-item
|
|
633
641
|
v-bind="bindOther"
|
|
634
642
|
:rules="rules"
|
|
@@ -1288,44 +1296,8 @@ export default {
|
|
|
1288
1296
|
}
|
|
1289
1297
|
},
|
|
1290
1298
|
init() {
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
if (
|
|
1294
|
-
['horizontal', 'vertical'].includes(this.layout) ||
|
|
1295
|
-
['textarea', 'file', 'image'].includes(this.attr.type)
|
|
1296
|
-
) {
|
|
1297
|
-
// 新增修改表单 horizontal 模式下默认为一行
|
|
1298
|
-
this.attr.flex = {
|
|
1299
|
-
xs: 24,
|
|
1300
|
-
sm: 24,
|
|
1301
|
-
md: 24,
|
|
1302
|
-
lg: 24,
|
|
1303
|
-
xl: 24,
|
|
1304
|
-
xxl: 24,
|
|
1305
|
-
fullWidth: true
|
|
1306
|
-
}
|
|
1307
|
-
} else {
|
|
1308
|
-
// 新增修改表单 vertical 模式下默认为1列
|
|
1309
|
-
this.attr.flex = {
|
|
1310
|
-
xs: 24,
|
|
1311
|
-
sm: 12,
|
|
1312
|
-
md: 8,
|
|
1313
|
-
lg: 8,
|
|
1314
|
-
xl: 6,
|
|
1315
|
-
xxl: 6
|
|
1316
|
-
}
|
|
1317
|
-
}
|
|
1318
|
-
} else {
|
|
1319
|
-
this.attr.flex = {
|
|
1320
|
-
xs: 24,
|
|
1321
|
-
sm: 12,
|
|
1322
|
-
md: 8,
|
|
1323
|
-
lg: 6,
|
|
1324
|
-
xl: 6,
|
|
1325
|
-
xxl: 6
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1299
|
+
// flex赋值逻辑已移至XFormCol组件内部处理
|
|
1300
|
+
// 不再在此处设置attr.flex,由XFormCol根据mode、layout、attrType自动计算
|
|
1329
1301
|
if (this.attr.keyName && typeof this.attr.keyName === 'string') {
|
|
1330
1302
|
if (this.attr.keyName.indexOf('logic@') !== -1) {
|
|
1331
1303
|
const data = Object.assign(this.getExtData(), { serviceName: process.env.VUE_APP_SYSTEM_NAME })
|
|
@@ -272,34 +272,5 @@ export default {
|
|
|
272
272
|
max-height: 32px;
|
|
273
273
|
overflow-y: auto;
|
|
274
274
|
}
|
|
275
|
-
// 树节点图标和文字对齐
|
|
276
|
-
/deep/ .ant-select-tree-treenode {
|
|
277
|
-
display: flex;
|
|
278
|
-
align-items: center;
|
|
279
|
-
|
|
280
|
-
.ant-select-tree-switcher {
|
|
281
|
-
display: flex;
|
|
282
|
-
align-items: center;
|
|
283
|
-
justify-content: center;
|
|
284
|
-
|
|
285
|
-
.ant-select-switcher-icon {
|
|
286
|
-
display: flex;
|
|
287
|
-
align-items: center;
|
|
288
|
-
line-height: 1;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
.ant-select-tree-node-content-wrapper {
|
|
293
|
-
display: flex;
|
|
294
|
-
align-items: center;
|
|
295
|
-
|
|
296
|
-
.ant-select-tree-title {
|
|
297
|
-
display: flex;
|
|
298
|
-
align-items: center;
|
|
299
|
-
line-height: 22px;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
275
|
}
|
|
305
276
|
</style>
|