vue2-client 1.20.40 → 1.20.42

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +1 -1
  3. package/src/base-client/components/common/XForm/XFormItem.vue +5 -0
  4. package/src/base-client/components/common/XFormTable/XFormTable.vue +27 -5
  5. package/src/base-client/components/common/XReport/print.js +186 -186
  6. package/src/components/STable/index.js +8 -0
  7. package/src/pages/WorkflowDetail/WorkFlowDemo.vue +91 -36
  8. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310142713.vue +0 -512
  9. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260310145118.vue +0 -511
  10. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260311094834.vue +0 -696
  11. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260320143028.vue +0 -693
  12. package/.history/src/base-client/components/common/HIS/HFormTable/HFormTable_20260409101450.vue +0 -677
  13. package/.history/src/base-client/components/common/XForm/XFormItem_20260320142959.vue +0 -1586
  14. package/.history/src/base-client/components/common/XForm/XFormItem_20260320143028.vue +0 -1584
  15. package/.history/src/base-client/components/common/XReportGrid/XReport_20260309171231.vue +0 -1241
  16. package/.history/src/base-client/components/common/XReportGrid/XReport_20260309171441.vue +0 -1223
  17. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203170042.vue +0 -1473
  18. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203170134.vue +0 -1473
  19. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203170203.vue +0 -1473
  20. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203171235.vue +0 -1473
  21. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203171318.vue +0 -1471
  22. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203171328.vue +0 -1471
  23. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203171333.vue +0 -1470
  24. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203171338.vue +0 -1470
  25. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203171352.vue +0 -1470
  26. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203171655.vue +0 -1471
  27. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203171715.vue +0 -1472
  28. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203171735.vue +0 -1472
  29. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203171738.vue +0 -1472
  30. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203171955.vue +0 -1472
  31. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203172007.vue +0 -1473
  32. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203172037.vue +0 -1473
  33. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203172045.vue +0 -1473
  34. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203172244.vue +0 -1473
  35. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203172258.vue +0 -1469
  36. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203172323.vue +0 -1469
  37. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203172337.vue +0 -1469
  38. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203172359.vue +0 -1469
  39. package/.history/src/base-client/components/his/XHDescriptions/XHDescriptions_20260203172404.vue +0 -1469
  40. package/.history/src/components/STable/index_20260409155138.js +0 -806
  41. package/.history/src/components/STable/index_20260409155218.js +0 -814
  42. package/.history/src/expression/core/Expression_20260305164427.js +0 -1371
  43. package/.history/src/expression/core/Expression_20260305170258.js +0 -1358
  44. package/.history/src/expression/core/Program_20260305111830.js +0 -944
  45. package/.history/src/expression/core/Program_20260305112041.js +0 -931
  46. package/.history/src/logic/LogicRunner_20260304154306.js +0 -170
  47. package/.history/src/logic/LogicRunner_20260304155553.js +0 -112
  48. package/.history/src/logic/LogicRunner_20260305105834.js +0 -112
  49. package/.history/src/logic/LogicRunner_20260305112718.js +0 -129
  50. package/.history/src/logic/LogicRunner_20260305182436.js +0 -133
  51. package/.history/src/logic/LogicRunner_20260306151301.js +0 -213
  52. package/.history/src/logic/LogicRunner_20260306152419.js +0 -213
  53. package/.history/src/logic/plugins/common/DateTools_20260305154159.js +0 -61
  54. package/.history/src/logic/plugins/common/DateTools_20260305154217.js +0 -44
  55. package/.history/src/logic/plugins/common/DateTools_20260305161014.js +0 -44
  56. package/.history/src/logic/plugins/common/HttpTools_20260305164352.js +0 -80
  57. package/.history/src/logic/plugins/common/HttpTools_20260305170258.js +0 -75
  58. package/.history/src/logic/plugins/common/HttpTools_20260305171634.js +0 -75
  59. package/.history/src/logic/plugins/common/HttpTools_20260306152419.js +0 -72
  60. package/.history/src/utils/indexedDB_20260306150918.js +0 -593
  61. package/.history/src/utils/indexedDB_20260306151301.js +0 -586
package/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Change Log
2
2
  > 所有关于本项目的变化都在该文档里。
3
3
 
4
+ **1.20.41 -2026-04-10 @唐增辉**
5
+ - 增加从系统参数管理获取数据
6
+ - 扩展页面pageSize控制
7
+
4
8
  **1.19.0 -2026-01-05 @江超**
5
9
  - 移除对旧字典的支持(暂时保留方法)
6
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.20.40",
3
+ "version": "1.20.42",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -1360,6 +1360,11 @@ export default {
1360
1360
  }
1361
1361
  } else if (this.attr.keyName.indexOf('async ') !== -1 || this.attr.keyName.indexOf('function ') !== -1) {
1362
1362
  this.updateOptions()
1363
+ } else if (this.attr.keyName.indexOf('systemParam@') !== -1 && this.attr.keyName.length >= 12 && this.attr.keyName.substring(0, 12) === 'systemParam@') {
1364
+ const configName = this.attr.keyName.substring(12)
1365
+ if (configName && configName !== 'undefined' && this.currUser.appdata && this.currUser.appdata.params) {
1366
+ this.getDataCallback(this.currUser.appdata.params[configName])
1367
+ }
1363
1368
  } else {
1364
1369
  let configName
1365
1370
  if (this.attr.keyName.indexOf('config@') !== -1) {
@@ -59,7 +59,7 @@
59
59
  :extraHeight="extraHeight"
60
60
  :serviceName="serviceName"
61
61
  :defaultPageSize="defaultPageSize"
62
- :pageSizeArray="pageSizeArray"
62
+ :pageSizeArray="currentPageSizeArray || pageSizeArray"
63
63
  :pageMaxSize="realQueryConfig.queryPagesSize"
64
64
  :externalSelectedRowKeys="externalSelectedRowKeys"
65
65
  :customPagination="customPagination"
@@ -133,7 +133,7 @@
133
133
  :extraHeight="extraHeight"
134
134
  :serviceName="serviceName"
135
135
  :defaultPageSize="defaultPageSize"
136
- :pageSizeArray="pageSizeArray"
136
+ :pageSizeArray="currentPageSizeArray || pageSizeArray"
137
137
  :pageMaxSize="realQueryConfig.queryPagesSize"
138
138
  :externalSelectedRowKeys="externalSelectedRowKeys"
139
139
  :customPagination="customPagination"
@@ -330,7 +330,8 @@ export default {
330
330
  // Modal 弹框显示状态
331
331
  tableModalVisible: false,
332
332
  // 弹框模式下表单查询中的加载状态
333
- formQueryLoading: false
333
+ formQueryLoading: false,
334
+ currentPageSizeArray: null
334
335
  }
335
336
  },
336
337
  computed: {
@@ -717,7 +718,19 @@ export default {
717
718
  this.realQueryConfig = res
718
719
  // 读取表格展示模式配置
719
720
  this.tableShowMode = res.tableShowMode || 'default'
720
-
721
+ if (this.realQueryConfig.expandPageSize) {
722
+ const baseArray = this.pageSizeArray.slice()
723
+ const extraSizes = ['100', '500', '1000']
724
+ extraSizes.forEach(size => {
725
+ if (!baseArray.includes(size)) {
726
+ baseArray.push(size)
727
+ }
728
+ })
729
+ baseArray.sort((a,b) => Number(a) - Number(b))
730
+ this.currentPageSizeArray = baseArray
731
+ } else {
732
+ this.currentPageSizeArray = null
733
+ }
721
734
  // 弹框模式下,xTable 可能还未渲染,需要特殊处理
722
735
  const hasRequiredRefs =
723
736
  this.tableShowMode === 'popup'
@@ -963,14 +976,23 @@ export default {
963
976
  })
964
977
  })
965
978
  },
979
+ async crudEditBefore(modifyModelData) {
980
+ return await new Promise((resolve) => {
981
+ this.$emit('crudEditBefore', modifyModelData, resolve)
982
+ })
983
+ },
966
984
  /**
967
985
  * 修改按钮事件
968
986
  * @param modifyModelData 修改表单数据
969
987
  */
970
- edit (modifyModelData) {
988
+ async edit(modifyModelData) {
971
989
  if (this.customEdit) {
972
990
  this.$emit('edit')
973
991
  } else {
992
+ if (this.$listeners.crudEditBefore) {
993
+ const res = await this.crudEditBefore(modifyModelData)
994
+ if (res === false) return
995
+ }
974
996
  const res = this.realQueryConfig
975
997
  const localEditMode = !this.localEditMode ? res.localEditMode : this.localEditMode
976
998
  this.$refs.xAddForm.init({
@@ -1,186 +1,186 @@
1
- // print.js
2
-
3
- export function printElement (elementToPrint) {
4
- // 创建一个新的浏览器窗口
5
- const printWindow = window.open('', '_blank', 'height=1024,width=768')
6
- // 设置新窗口的文档内容
7
- printWindow.document.write(`
8
- <html>
9
- <head>
10
- <title>Print</title>
11
- <style>
12
- @page {
13
- size: auto;
14
- margin: 0mm;
15
- }
16
- html, body {
17
- margin: 0;
18
- padding: 0;
19
- width: 100%;
20
- height: 100%;
21
- }
22
- #print-container {
23
- display: none
24
- }
25
- .img{
26
- width: 95%;
27
- height: 180px;
28
- object-fit: cover;
29
- }
30
- .reportMain {
31
- text-align: center;
32
- margin: 0 auto;
33
- font-size: 16px;
34
- color: #000;
35
- background-color: #fff;
36
- padding: 15px;
37
- border-radius: 8px;
38
-
39
- .reportTitle {
40
- font-weight: bold;
41
- }
42
-
43
- .subTitle {
44
- display: flex;
45
- justify-content: space-between;
46
- margin-bottom: 1%;
47
-
48
- .subTitleItems {
49
- max-width: 30%;
50
- }
51
- }
52
-
53
- .inputsDiv {
54
- display: flex;
55
- justify-content: space-between;
56
- .inputsDivItem {
57
- display: flex;
58
- align-items: center;
59
- padding: 0 4px;
60
- white-space: nowrap;
61
- .inputsDivItemLabel {
62
- padding: 0 4px;
63
- }
64
- }
65
- }
66
-
67
- .reportTable {
68
- width: 100%;
69
- border-collapse: collapse;
70
- table-layout:fixed;
71
- word-break:break-all;
72
- text-align: center;
73
- }
74
- }
75
- .reportMainForDisplay {
76
- text-align: center;
77
- margin: 10% auto;
78
- font-size: 16px;
79
- color: #000;
80
- background-color: #fff;
81
- padding: 15px;
82
- border-radius: 8px;
83
-
84
- .reportTitle {
85
- font-weight: bold;
86
- }
87
-
88
- .subTitle {
89
- display: flex;
90
- justify-content: space-between;
91
-
92
- .subTitleItems {
93
- max-width: 30%;
94
- }
95
- }
96
-
97
- .inputsDiv {
98
- display: flex;
99
- justify-content: space-around;
100
- .inputsDivItem {
101
- display: flex;
102
- align-items: center;
103
- padding: 0 4px;
104
- white-space: nowrap;
105
- .inputsDivItemLabel {
106
- padding: 0 4px;
107
- }
108
- }
109
- }
110
-
111
- .reportTable {
112
- width: 100%;
113
- border-collapse: collapse;
114
- table-layout:fixed;
115
- word-break:break-all;
116
- }
117
- }
118
- .reportMainNoPadding {
119
- text-align: center;
120
- margin: 0 auto;
121
- font-size: 16px;
122
- color: #000;
123
- background-color: #fff;
124
- border-radius: 8px;
125
-
126
- .reportTitle {
127
- font-weight: bold;
128
- }
129
-
130
- .subTitle {
131
- display: flex;
132
- justify-content: space-between;
133
-
134
- .subTitleItems {
135
- max-width: 30%;
136
- }
137
- }
138
-
139
- .inputsDiv {
140
- display: flex;
141
- justify-content: space-between;
142
- .inputsDivItem {
143
- display: flex;
144
- align-items: center;
145
- padding: 0 4px;
146
- white-space: nowrap;
147
- .inputsDivItemLabel {
148
- padding: 0 4px;
149
- }
150
- }
151
- }
152
-
153
- .reportTable {
154
- width: 100%;
155
- border-collapse: collapse;
156
- table-layout:fixed;
157
- word-break:break-all;
158
- }
159
- }
160
- .tools{
161
- position: fixed;
162
- right: 2%;
163
- text-align: right;
164
- width: 60%;
165
- cursor: pointer;
166
- .toolsItem{
167
- width: 15%;
168
- margin-right: 3%;
169
- display: inline-block;
170
- }
171
- }
172
- </style>
173
- </head>
174
- <body>
175
- <!-- 将需要打印的元素内容复制到新窗口中 -->
176
- ${elementToPrint.innerHTML}
177
- </body>
178
- </html>
179
- `)
180
- // 延迟执行打印,以确保新窗口的内容已加载完成
181
- printWindow.document.close() // 关闭文档流,确保内容完全加载
182
- setTimeout(() => {
183
- printWindow.print() // 调用打印方法
184
- printWindow.close()
185
- }, 500) // 延迟500毫秒后执行打印
186
- }
1
+ // print.js
2
+
3
+ export function printElement (elementToPrint) {
4
+ // 创建一个新的浏览器窗口
5
+ const printWindow = window.open('', '_blank', 'height=1024,width=768')
6
+ // 设置新窗口的文档内容
7
+ printWindow.document.write(`
8
+ <html>
9
+ <head>
10
+ <title>Print</title>
11
+ <style>
12
+ @page {
13
+ size: auto;
14
+ margin: 0mm;
15
+ }
16
+ html, body {
17
+ margin: 0;
18
+ padding: 0;
19
+ width: 100%;
20
+ height: 100%;
21
+ }
22
+ #print-container {
23
+ display: none
24
+ }
25
+ .img{
26
+ width: 95%;
27
+ height: 180px;
28
+ object-fit: cover;
29
+ }
30
+ .reportMain {
31
+ text-align: center;
32
+ margin: 0 auto;
33
+ font-size: 16px;
34
+ color: #000;
35
+ background-color: #fff;
36
+ padding: 15px;
37
+ border-radius: 8px;
38
+
39
+ .reportTitle {
40
+ font-weight: bold;
41
+ }
42
+
43
+ .subTitle {
44
+ display: flex;
45
+ justify-content: space-between;
46
+ margin-bottom: 1%;
47
+
48
+ .subTitleItems {
49
+ max-width: 30%;
50
+ }
51
+ }
52
+
53
+ .inputsDiv {
54
+ display: flex;
55
+ justify-content: space-between;
56
+ .inputsDivItem {
57
+ display: flex;
58
+ align-items: center;
59
+ padding: 0 4px;
60
+ white-space: nowrap;
61
+ .inputsDivItemLabel {
62
+ padding: 0 4px;
63
+ }
64
+ }
65
+ }
66
+
67
+ .reportTable {
68
+ width: 100%;
69
+ border-collapse: collapse;
70
+ table-layout:fixed;
71
+ word-break:break-all;
72
+ text-align: center;
73
+ }
74
+ }
75
+ .reportMainForDisplay {
76
+ text-align: center;
77
+ margin: 10% auto;
78
+ font-size: 16px;
79
+ color: #000;
80
+ background-color: #fff;
81
+ padding: 15px;
82
+ border-radius: 8px;
83
+
84
+ .reportTitle {
85
+ font-weight: bold;
86
+ }
87
+
88
+ .subTitle {
89
+ display: flex;
90
+ justify-content: space-between;
91
+
92
+ .subTitleItems {
93
+ max-width: 30%;
94
+ }
95
+ }
96
+
97
+ .inputsDiv {
98
+ display: flex;
99
+ justify-content: space-around;
100
+ .inputsDivItem {
101
+ display: flex;
102
+ align-items: center;
103
+ padding: 0 4px;
104
+ white-space: nowrap;
105
+ .inputsDivItemLabel {
106
+ padding: 0 4px;
107
+ }
108
+ }
109
+ }
110
+
111
+ .reportTable {
112
+ width: 100%;
113
+ border-collapse: collapse;
114
+ table-layout:fixed;
115
+ word-break:break-all;
116
+ }
117
+ }
118
+ .reportMainNoPadding {
119
+ text-align: center;
120
+ margin: 0 auto;
121
+ font-size: 16px;
122
+ color: #000;
123
+ background-color: #fff;
124
+ border-radius: 8px;
125
+
126
+ .reportTitle {
127
+ font-weight: bold;
128
+ }
129
+
130
+ .subTitle {
131
+ display: flex;
132
+ justify-content: space-between;
133
+
134
+ .subTitleItems {
135
+ max-width: 30%;
136
+ }
137
+ }
138
+
139
+ .inputsDiv {
140
+ display: flex;
141
+ justify-content: space-between;
142
+ .inputsDivItem {
143
+ display: flex;
144
+ align-items: center;
145
+ padding: 0 4px;
146
+ white-space: nowrap;
147
+ .inputsDivItemLabel {
148
+ padding: 0 4px;
149
+ }
150
+ }
151
+ }
152
+
153
+ .reportTable {
154
+ width: 100%;
155
+ border-collapse: collapse;
156
+ table-layout:fixed;
157
+ word-break:break-all;
158
+ }
159
+ }
160
+ .tools{
161
+ position: fixed;
162
+ right: 2%;
163
+ text-align: right;
164
+ width: 60%;
165
+ cursor: pointer;
166
+ .toolsItem{
167
+ width: 15%;
168
+ margin-right: 3%;
169
+ display: inline-block;
170
+ }
171
+ }
172
+ </style>
173
+ </head>
174
+ <body>
175
+ <!-- 将需要打印的元素内容复制到新窗口中 -->
176
+ ${elementToPrint.innerHTML}
177
+ </body>
178
+ </html>
179
+ `)
180
+ // 延迟执行打印,以确保新窗口的内容已加载完成
181
+ printWindow.document.close() // 关闭文档流,确保内容完全加载
182
+ setTimeout(() => {
183
+ printWindow.print() // 调用打印方法
184
+ printWindow.close()
185
+ }, 500) // 延迟500毫秒后执行打印
186
+ }
@@ -177,6 +177,14 @@ export default {
177
177
  }
178
178
  },
179
179
  immediate: true
180
+ },
181
+ pageSizeArray: {
182
+ handler(val) {
183
+ if (val && val.length) {
184
+ this.pageSizeOptions = [...val]
185
+ }
186
+ },
187
+ immediate: true
180
188
  }
181
189
  },
182
190
  created () {
@@ -1,47 +1,102 @@
1
+ <template>
2
+ <a-card :bordered="false">
3
+ <x-form-table
4
+ title="呼叫工单总汇"
5
+ ref="xFormTable"
6
+ :queryParamsName="queryParamsName"
7
+ :fixed-query-form="{
8
+ users_f_handler_id: currUser.id,
9
+ }"
10
+ serviceName="af-telephone"
11
+ @toDeal="toDetail"
12
+ @updateInfo="updateInfo"
13
+ >
14
+ </x-form-table>
15
+ <WorkflowDetail
16
+ ref="workFlow"
17
+ @preClick="preClick"
18
+ @success="success"
19
+ @nextClick="nextClick"
20
+ @x-form-item-emit-func="handleFormItemEvent"
21
+ >
22
+ </WorkflowDetail>
23
+ <DealOrUpdate @refresh="refresh" ref="dealOrUpdate"/>
24
+ </a-card>
25
+ </template>
26
+
1
27
  <script>
2
28
  import WorkflowDetail from '@vue2-client/pages/WorkflowDetail/WorkflowDetail.vue'
29
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
30
+ import DealOrUpdate from '@/pages/telephone/workFlow/dealOrUpdate.vue'
31
+ // import { getConfigByName, runLogic } from 'vue2-client/src/services/api/common'
32
+ import { mapState } from 'vuex'
3
33
 
4
34
  export default {
5
- name: 'WorkFlowDemo',
6
- components: { WorkflowDetail },
7
- mounted () {
8
- this.$refs.workFlow.init({
9
- workflowId: 6255
10
- })
35
+ name: 'Apply',
36
+ components: {
37
+ XFormTable,
38
+ WorkflowDetail,
39
+ DealOrUpdate
40
+ },
41
+ // 透传给子组件的方法(目前XFormTable接了)
42
+ provide () {
43
+ return {
44
+ generalFunction: {}
45
+ }
46
+ },
47
+ data () {
48
+ return {
49
+ // 查询配置文件名
50
+ queryParamsName: 'teleProcessCRUD',
51
+ // 发起报建弹框控制
52
+ applyAddFlag: false,
53
+ // 提交加载动画
54
+ confirmLoading: false,
55
+ refreshFn: null,
56
+ chargeVisible: false
57
+ }
58
+ },
59
+ computed: {
60
+ ...mapState('account', { currUser: 'user' }),
11
61
  },
12
62
  methods: {
13
- /**
14
- * 流程详情页成功
15
- * @param note 备注信息
16
- * @param form 表单信息
17
- * @param workflowId
18
- */
19
- success ({ note, form, workflowId }) {
20
- console.log('success', note, form, workflowId)
63
+ success () {
64
+ console.log('完工')
65
+ },
66
+ toDetail (record) {
67
+ // 修改第一步的工单
68
+ if (record.ws_f_step_id === 1) {
69
+ console.log('进入工单详情')
70
+ this.$refs.dealOrUpdate.dealOrUpdate(record, '处理工单')
71
+ } else {
72
+ // 进入工单详情
73
+ this.$refs.workFlow.init({
74
+ workflowId: record.wo_f_workflow_id,
75
+ stepId: record.ws_f_step_id
76
+ })
77
+ }
21
78
  },
22
- /**
23
- * 流程详情页成功
24
- * @param note 备注信息
25
- * @param form 表单信息
26
- * @param workflowId 工作流id
27
- * @param fromStepId 起ID
28
- * @param toStepId 往ID
29
- * @param successStepId 完成步骤id
30
- * @param successStep 完成步骤名称
31
- * @param fromStep 起步骤名称
32
- * @param toStep 往步骤名称
33
- */
34
- nextClick ({ note, form, workflowId, fromStepId, toStepId, fromStep, toStep, successStepId, successStep }) {
35
- console.log('success', note, form, workflowId, fromStepId, toStepId, fromStep, toStep, successStepId, successStep)
79
+ updateInfo (record) {
80
+ this.$refs.dealOrUpdate.dealOrUpdate(record, '修改信息')
81
+ },
82
+ // 退回的事件处理
83
+ preClick (data) {
84
+ console.log('退回事件处理', data)
85
+ if (data.toStepId === 1) {
86
+ this.$refs.workFlow.onClose()
87
+ this.$refs.xFormTable.refreshTable(true)
88
+ }
89
+ },
90
+ handleFormItemEvent (func, data, value) {
91
+ console.log('打印一下:', func, data, value)
92
+ },
93
+ nextClick ({ form, formStep, workflowId }) {
94
+ console.log('success', form, formStep, workflowId)
95
+ this.$refs.xFormTable.refreshTable(true)
96
+ },
97
+ refresh () {
98
+ this.$refs.xFormTable.refreshTable(true)
36
99
  }
37
100
  }
38
101
  }
39
102
  </script>
40
-
41
- <template>
42
- <WorkflowDetail ref="workFlow" @success="success" @nextClick="nextClick"></WorkflowDetail>
43
- </template>
44
-
45
- <style scoped lang="less">
46
-
47
- </style>