vue2-client 1.20.58 → 1.20.59
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/.idea/git_toolbox_blame.xml +6 -0
- package/package.json +115 -115
- package/src/base-client/components/common/XFormTable/demo.vue +37 -79
- package/src/base-client/components/common/XMarkdownViewer/XMarkdownViewer.vue +12 -12
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformation.vue +417 -417
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkflowLog.vue +221 -221
- package/.idea/CopilotChatHistory.xml +0 -39
- package/.idea/MarsCodeWorkspaceAppSettings.xml +0 -8
- package/.idea/migrateChatHistory.xml +0 -10
- package/src/pages/WorkflowDetail/WorkFlowDemo4.vue +0 -127
package/package.json
CHANGED
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vue2-client",
|
|
3
|
-
"version": "1.20.
|
|
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
|
-
"html-to-image": "^1.11.13",
|
|
47
|
-
"html2canvas": "^1.4.1",
|
|
48
|
-
"js-base64": "^3.7.5",
|
|
49
|
-
"js-cookie": "^2.2.1",
|
|
50
|
-
"jsencrypt": "^3.3.2",
|
|
51
|
-
"jspdf": "^2.5.1",
|
|
52
|
-
"lodash.clonedeep": "^4.5.0",
|
|
53
|
-
"lodash.debounce": "^4",
|
|
54
|
-
"lodash.get": "^4.4.2",
|
|
55
|
-
"marked": "^4",
|
|
56
|
-
"mockjs": "^1.1.0",
|
|
57
|
-
"nprogress": "^0.2.0",
|
|
58
|
-
"ol": "10.3.1",
|
|
59
|
-
"qs": "^6.11.2",
|
|
60
|
-
"regenerator-runtime": "^0.14.0",
|
|
61
|
-
"splitpanes": "^2.4.1",
|
|
62
|
-
"videojs-contrib-hls": "^5.15.0",
|
|
63
|
-
"viser-vue": "^2.4.8",
|
|
64
|
-
"vue": "^2.7.14",
|
|
65
|
-
"vue-codemirror": "4.0.6",
|
|
66
|
-
"vue-color": "2.7.0",
|
|
67
|
-
"vue-draggable-resizable": "^2.3.0",
|
|
68
|
-
"vue-i18n": "^8.28.2",
|
|
69
|
-
"vue-json-viewer": "^2.2.22",
|
|
70
|
-
"vue-router": "^3.6.5",
|
|
71
|
-
"vue-video-player": "^5.0.2",
|
|
72
|
-
"vue-virtual-scroller": "^1.1.2",
|
|
73
|
-
"vuedraggable": "^2.24.3",
|
|
74
|
-
"vuex": "^3.6.2",
|
|
75
|
-
"xlsx": "0.18.5"
|
|
76
|
-
},
|
|
77
|
-
"devDependencies": {
|
|
78
|
-
"@ant-design/colors": "^7.0.0",
|
|
79
|
-
"@babel/core": "^7.22.20",
|
|
80
|
-
"@babel/eslint-parser": "^7.22.15",
|
|
81
|
-
"@babel/preset-env": "^7.22.20",
|
|
82
|
-
"@vue/cli-plugin-babel": "^5.0.8",
|
|
83
|
-
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
84
|
-
"@vue/cli-service": "^5.0.8",
|
|
85
|
-
"@vue/eslint-config-standard": "^8.0.1",
|
|
86
|
-
"@vue/test-utils": "^1.3.6",
|
|
87
|
-
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
88
|
-
"compression-webpack-plugin": "^10.0.0",
|
|
89
|
-
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
90
|
-
"deepmerge": "^4.3.1",
|
|
91
|
-
"eslint": "^8.51.0",
|
|
92
|
-
"eslint-config-prettier": "^10.1.8",
|
|
93
|
-
"eslint-plugin-vue": "^9.17.0",
|
|
94
|
-
"fast-deep-equal": "^3.1.3",
|
|
95
|
-
"ignore-loader": "^0.1.2",
|
|
96
|
-
"jest": "^29.7.0",
|
|
97
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
98
|
-
"jest-transform-stub": "^2.0.0",
|
|
99
|
-
"less-loader": "^6.2.0",
|
|
100
|
-
"script-loader": "^0.7.2",
|
|
101
|
-
"style-resources-loader": "^1.5.0",
|
|
102
|
-
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
103
|
-
"vue-jest": "^4.0.1",
|
|
104
|
-
"vue-template-compiler": "^2.7.14",
|
|
105
|
-
"webpack": "^5.88.2",
|
|
106
|
-
"webpack-theme-color-replacer": "^1.4.7",
|
|
107
|
-
"whatwg-fetch": "^3.6.19"
|
|
108
|
-
},
|
|
109
|
-
"browserslist": [
|
|
110
|
-
"> 1%",
|
|
111
|
-
"last 2 versions",
|
|
112
|
-
"not dead",
|
|
113
|
-
"not ie 11"
|
|
114
|
-
]
|
|
115
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vue2-client",
|
|
3
|
+
"version": "1.20.59",
|
|
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
|
+
"html-to-image": "^1.11.13",
|
|
47
|
+
"html2canvas": "^1.4.1",
|
|
48
|
+
"js-base64": "^3.7.5",
|
|
49
|
+
"js-cookie": "^2.2.1",
|
|
50
|
+
"jsencrypt": "^3.3.2",
|
|
51
|
+
"jspdf": "^2.5.1",
|
|
52
|
+
"lodash.clonedeep": "^4.5.0",
|
|
53
|
+
"lodash.debounce": "^4",
|
|
54
|
+
"lodash.get": "^4.4.2",
|
|
55
|
+
"marked": "^4",
|
|
56
|
+
"mockjs": "^1.1.0",
|
|
57
|
+
"nprogress": "^0.2.0",
|
|
58
|
+
"ol": "10.3.1",
|
|
59
|
+
"qs": "^6.11.2",
|
|
60
|
+
"regenerator-runtime": "^0.14.0",
|
|
61
|
+
"splitpanes": "^2.4.1",
|
|
62
|
+
"videojs-contrib-hls": "^5.15.0",
|
|
63
|
+
"viser-vue": "^2.4.8",
|
|
64
|
+
"vue": "^2.7.14",
|
|
65
|
+
"vue-codemirror": "4.0.6",
|
|
66
|
+
"vue-color": "2.7.0",
|
|
67
|
+
"vue-draggable-resizable": "^2.3.0",
|
|
68
|
+
"vue-i18n": "^8.28.2",
|
|
69
|
+
"vue-json-viewer": "^2.2.22",
|
|
70
|
+
"vue-router": "^3.6.5",
|
|
71
|
+
"vue-video-player": "^5.0.2",
|
|
72
|
+
"vue-virtual-scroller": "^1.1.2",
|
|
73
|
+
"vuedraggable": "^2.24.3",
|
|
74
|
+
"vuex": "^3.6.2",
|
|
75
|
+
"xlsx": "0.18.5"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@ant-design/colors": "^7.0.0",
|
|
79
|
+
"@babel/core": "^7.22.20",
|
|
80
|
+
"@babel/eslint-parser": "^7.22.15",
|
|
81
|
+
"@babel/preset-env": "^7.22.20",
|
|
82
|
+
"@vue/cli-plugin-babel": "^5.0.8",
|
|
83
|
+
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
84
|
+
"@vue/cli-service": "^5.0.8",
|
|
85
|
+
"@vue/eslint-config-standard": "^8.0.1",
|
|
86
|
+
"@vue/test-utils": "^1.3.6",
|
|
87
|
+
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
88
|
+
"compression-webpack-plugin": "^10.0.0",
|
|
89
|
+
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
90
|
+
"deepmerge": "^4.3.1",
|
|
91
|
+
"eslint": "^8.51.0",
|
|
92
|
+
"eslint-config-prettier": "^10.1.8",
|
|
93
|
+
"eslint-plugin-vue": "^9.17.0",
|
|
94
|
+
"fast-deep-equal": "^3.1.3",
|
|
95
|
+
"ignore-loader": "^0.1.2",
|
|
96
|
+
"jest": "^29.7.0",
|
|
97
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
98
|
+
"jest-transform-stub": "^2.0.0",
|
|
99
|
+
"less-loader": "^6.2.0",
|
|
100
|
+
"script-loader": "^0.7.2",
|
|
101
|
+
"style-resources-loader": "^1.5.0",
|
|
102
|
+
"vue-cli-plugin-style-resources-loader": "^0.1.5",
|
|
103
|
+
"vue-jest": "^4.0.1",
|
|
104
|
+
"vue-template-compiler": "^2.7.14",
|
|
105
|
+
"webpack": "^5.88.2",
|
|
106
|
+
"webpack-theme-color-replacer": "^1.4.7",
|
|
107
|
+
"whatwg-fetch": "^3.6.19"
|
|
108
|
+
},
|
|
109
|
+
"browserslist": [
|
|
110
|
+
"> 1%",
|
|
111
|
+
"last 2 versions",
|
|
112
|
+
"not dead",
|
|
113
|
+
"not ie 11"
|
|
114
|
+
]
|
|
115
|
+
}
|
|
@@ -2,51 +2,31 @@
|
|
|
2
2
|
<a-card :bordered="false">
|
|
3
3
|
<x-form-table
|
|
4
4
|
title="示例表单"
|
|
5
|
-
queryParamsName="
|
|
5
|
+
:queryParamsName="queryParamsName"
|
|
6
6
|
:fixedAddForm="fixedAddForm"
|
|
7
7
|
:externalSelectedRowKeys="selectedKeys"
|
|
8
|
-
:defaultPageSize="100"
|
|
9
|
-
:pageSizeArray="['100','200']"
|
|
10
8
|
@action="action"
|
|
11
9
|
@selectRow="selectRow"
|
|
12
10
|
@columnClick="columnClick"
|
|
13
11
|
@ceshi="ceshi"
|
|
14
|
-
@
|
|
15
|
-
serviceName="af-
|
|
12
|
+
@rowDblClick="rowDblClick"
|
|
13
|
+
serviceName="af-revenue"
|
|
16
14
|
ref="xFormTable"
|
|
17
15
|
:reserveSpaceForButtons="true"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<a-modal
|
|
21
|
-
v-model="formModalVisible"
|
|
22
|
-
title="工单回访"
|
|
23
|
-
:zIndex="1002"
|
|
24
|
-
width="50vw"
|
|
25
|
-
:destroy-on-close="true"
|
|
26
|
-
@cancel="formModalVisible = false"
|
|
27
|
-
@ok="ok"
|
|
28
|
-
>
|
|
29
|
-
<x-add-native-form
|
|
30
|
-
ref="xForm"
|
|
31
|
-
/>
|
|
32
|
-
</a-modal>
|
|
33
|
-
<button @click="backDealData">提交</button>
|
|
16
|
+
@addFormSubmit="addFormSubmit"
|
|
17
|
+
></x-form-table>
|
|
34
18
|
</a-card>
|
|
35
19
|
</template>
|
|
36
20
|
|
|
37
21
|
<script>
|
|
38
22
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
|
|
39
|
-
import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
|
|
40
23
|
import { microDispatch } from '@vue2-client/utils/microAppUtils'
|
|
41
|
-
import {getConfigByNameAsync, runLogic} from '@vue2-client/services/api/common'
|
|
42
|
-
|
|
43
24
|
export default {
|
|
44
25
|
name: 'Demo',
|
|
45
26
|
components: {
|
|
46
|
-
XFormTable
|
|
47
|
-
XAddNativeForm,
|
|
27
|
+
XFormTable
|
|
48
28
|
},
|
|
49
|
-
data
|
|
29
|
+
data() {
|
|
50
30
|
return {
|
|
51
31
|
// 查询配置文件名
|
|
52
32
|
queryParamsName: 'ceshiCRUD',
|
|
@@ -62,32 +42,26 @@ export default {
|
|
|
62
42
|
selectedKeys: [],
|
|
63
43
|
selected: {
|
|
64
44
|
keys: [],
|
|
65
|
-
rows: []
|
|
66
|
-
}
|
|
67
|
-
formModalVisible: false,
|
|
45
|
+
rows: []
|
|
46
|
+
}
|
|
68
47
|
}
|
|
69
48
|
},
|
|
49
|
+
|
|
70
50
|
methods: {
|
|
71
|
-
|
|
72
|
-
this.$refs.xFormTable
|
|
73
|
-
|
|
74
|
-
|
|
51
|
+
handleCustomQuery() {
|
|
52
|
+
this.$refs.xFormTable.queryTable({
|
|
53
|
+
uf_f_alias: 'XianFeng',
|
|
54
|
+
uf_f_card_id: '10500030'
|
|
75
55
|
})
|
|
76
56
|
},
|
|
57
|
+
rowDblClick(record) {
|
|
58
|
+
console.log('rowDblClick', record)
|
|
59
|
+
},
|
|
77
60
|
// input框 行編輯參數傳遞
|
|
78
|
-
ceshi
|
|
61
|
+
ceshi(...args) {
|
|
79
62
|
// attr, value, currentRecord, currentIndex, nextRecord, nextIndex
|
|
80
|
-
const [attr, value, currentRecord, currentIndex, nextRecord, nextIndex] =
|
|
81
|
-
|
|
82
|
-
console.log(
|
|
83
|
-
'ceshi',
|
|
84
|
-
attr,
|
|
85
|
-
value,
|
|
86
|
-
currentRecord,
|
|
87
|
-
currentIndex,
|
|
88
|
-
nextRecord,
|
|
89
|
-
nextIndex
|
|
90
|
-
)
|
|
63
|
+
const [attr, value, currentRecord, currentIndex, nextRecord, nextIndex] = args
|
|
64
|
+
console.log('ceshi', attr, value, currentRecord, currentIndex, nextRecord, nextIndex)
|
|
91
65
|
// 示例:当按下 Enter 键且有下一行时,跳转到下一行的同一列
|
|
92
66
|
// 可以在这里执行业务逻辑(例如:保存数据)
|
|
93
67
|
console.log('当前行:', currentIndex, '下一行:', nextIndex)
|
|
@@ -98,61 +72,45 @@ export default {
|
|
|
98
72
|
// 跳转到下一行的同一列
|
|
99
73
|
this.$refs.xFormTable.$refs.xTable.focusInput(nextIndex, attr.model)
|
|
100
74
|
},
|
|
101
|
-
test
|
|
75
|
+
test() {
|
|
102
76
|
this.$refs.xFormTable.setTableData([])
|
|
103
77
|
},
|
|
104
|
-
defaultF
|
|
78
|
+
defaultF() {
|
|
105
79
|
this.$refs.xFormTable.setTableSize('default')
|
|
106
80
|
},
|
|
107
|
-
middleF
|
|
81
|
+
middleF() {
|
|
108
82
|
this.$refs.xFormTable.setTableSize('middle')
|
|
109
83
|
},
|
|
110
|
-
smallF
|
|
84
|
+
smallF() {
|
|
111
85
|
this.$refs.xFormTable.setTableSize('small')
|
|
112
86
|
},
|
|
113
|
-
columnClick
|
|
87
|
+
columnClick(key, value, record) {
|
|
114
88
|
microDispatch({
|
|
115
89
|
type: 'v3route',
|
|
116
90
|
path: '/bingliguanli/dianzibingliluru',
|
|
117
|
-
props: { selected: arguments[0].his_f_admission_id }
|
|
91
|
+
props: { selected: arguments[0].his_f_admission_id }
|
|
118
92
|
})
|
|
119
93
|
},
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
this.$nextTick(
|
|
124
|
-
() => {
|
|
125
|
-
this.formModalVisible = true
|
|
126
|
-
this.$refs.xForm.init({
|
|
127
|
-
formItems: config.formJson,
|
|
128
|
-
title: '工单回访',
|
|
129
|
-
businessType: '新增',
|
|
130
|
-
...config,
|
|
131
|
-
modifyModelData: { data: { id: 1 } },
|
|
132
|
-
})
|
|
133
|
-
})
|
|
134
|
-
})
|
|
135
|
-
// this.detailVisible = true
|
|
136
|
-
// console.log('触发了详情操作', record, id, actionType)
|
|
137
|
-
},
|
|
138
|
-
async ok () {
|
|
139
|
-
const res = await this.$refs.xForm.asyncSubmit()
|
|
140
|
-
await runLogic('ceshwewei', res.realForm)
|
|
94
|
+
action(record, id, actionType) {
|
|
95
|
+
this.detailVisible = true
|
|
96
|
+
console.log('触发了详情操作', record, id, actionType)
|
|
141
97
|
},
|
|
142
|
-
onClose
|
|
98
|
+
onClose() {
|
|
143
99
|
this.detailVisible = false
|
|
144
100
|
// 关闭详情之后重新查询表单
|
|
145
101
|
this.$refs.xFormTable.refreshTable(true)
|
|
146
102
|
},
|
|
147
|
-
selectRow
|
|
103
|
+
selectRow(selectedRowKeys, selectedRows) {
|
|
104
|
+
console.log('selectRow', selectedRowKeys, selectedRows)
|
|
148
105
|
this.selected = {
|
|
149
106
|
keys: selectedRowKeys,
|
|
150
|
-
rows: selectedRows
|
|
107
|
+
rows: selectedRows
|
|
151
108
|
}
|
|
152
|
-
console.log('selectedDemo', this.selected)
|
|
153
109
|
},
|
|
154
|
-
|
|
155
|
-
|
|
110
|
+
addFormSubmit(params, callback){
|
|
111
|
+
callback()
|
|
112
|
+
}
|
|
113
|
+
}
|
|
156
114
|
}
|
|
157
115
|
</script>
|
|
158
116
|
|
|
@@ -190,17 +190,17 @@ export default {
|
|
|
190
190
|
* 配置是否已加载完成
|
|
191
191
|
*/
|
|
192
192
|
// eslint-disable-next-line vue/no-reserved-keys
|
|
193
|
-
|
|
193
|
+
configEndEmitted: false,
|
|
194
194
|
/**
|
|
195
195
|
* 配置结束 Promise
|
|
196
196
|
*/
|
|
197
197
|
// eslint-disable-next-line vue/no-reserved-keys
|
|
198
|
-
|
|
198
|
+
configEndPromise: null,
|
|
199
199
|
/**
|
|
200
200
|
* 配置结束 resolve 函数
|
|
201
201
|
*/
|
|
202
202
|
// eslint-disable-next-line vue/no-reserved-keys
|
|
203
|
-
|
|
203
|
+
configEndResolve: null
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
206
|
/**
|
|
@@ -243,8 +243,8 @@ export default {
|
|
|
243
243
|
* 初始化按钮配置
|
|
244
244
|
*/
|
|
245
245
|
initButtonConfig(parameter) {
|
|
246
|
-
this.
|
|
247
|
-
this.
|
|
246
|
+
this.configEndEmitted = false
|
|
247
|
+
this.configEndPromise = new Promise(resolve => { this.configEndResolve = resolve })
|
|
248
248
|
if (!parameter) {
|
|
249
249
|
this._emitConfigEnd()
|
|
250
250
|
return
|
|
@@ -255,11 +255,11 @@ export default {
|
|
|
255
255
|
* 配置加载结束后发出事件
|
|
256
256
|
*/
|
|
257
257
|
_emitConfigEnd () {
|
|
258
|
-
if (this.
|
|
259
|
-
this.
|
|
260
|
-
if (this.
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
258
|
+
if (this.configEndEmitted) return
|
|
259
|
+
this.configEndEmitted = true
|
|
260
|
+
if (this.configEndResolve) {
|
|
261
|
+
this.configEndResolve()
|
|
262
|
+
this.configEndResolve = null
|
|
263
263
|
}
|
|
264
264
|
this.$emit('configEnd')
|
|
265
265
|
},
|
|
@@ -267,8 +267,8 @@ export default {
|
|
|
267
267
|
* 等待配置结束的异步方法
|
|
268
268
|
*/
|
|
269
269
|
waitConfigEnd () {
|
|
270
|
-
if (this.
|
|
271
|
-
return this.
|
|
270
|
+
if (this.configEndEmitted) return Promise.resolve()
|
|
271
|
+
return this.configEndPromise || Promise.resolve()
|
|
272
272
|
},
|
|
273
273
|
/**
|
|
274
274
|
* 通过组件实例接收 md 文件
|