cloud-web-corejs-haier 1.0.3 → 1.0.4

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 (77) hide show
  1. package/package.json +2 -1
  2. package/src/components/table/index.js +1 -1
  3. package/src/components/table/vxeFilter/mixin.js +1 -1
  4. package/src/components/vb-tabs/x-tabs.vue +30 -13
  5. package/src/components/xform/form-designer/designer.js +1 -1
  6. package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +419 -0
  7. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +1 -1
  8. package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +971 -0
  9. package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +971 -0
  10. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +71 -50
  11. package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
  12. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
  13. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +8 -10
  14. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +102 -73
  15. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
  16. package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +19 -1
  17. package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +40 -28
  18. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +4 -1
  19. package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +4 -1
  20. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +13 -2
  21. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +9 -2
  22. package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +133 -0
  23. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +2 -1
  24. package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +962 -0
  25. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +19 -10
  26. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +15 -6
  27. package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +7 -2
  28. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +1 -1
  29. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +7 -0
  30. package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +1 -0
  31. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +44 -27
  32. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +19 -11
  33. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +19 -1
  34. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +11 -7
  35. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +11 -8
  36. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +1 -1
  37. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +1 -1
  38. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +1 -1
  39. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -0
  40. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +41 -13
  41. package/src/components/xform/form-designer/setting-panel/form-setting.vue +106 -76
  42. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +13 -263
  43. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +47 -81
  44. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +31 -2
  45. package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +32 -0
  46. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -7
  47. package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +36 -0
  48. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +54 -23
  49. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +8 -1
  50. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +37 -16
  51. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +42 -18
  52. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +3 -0
  53. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +5 -1
  54. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +57 -34
  55. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +84 -53
  56. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +35 -44
  57. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
  58. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +77 -3
  59. package/src/components/xform/form-render/container-item/containerItemMixin.js +2 -2
  60. package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
  61. package/src/components/xform/form-render/container-item/tab-item.vue +64 -32
  62. package/src/components/xform/form-render/container-item/tree-item.vue +32 -11
  63. package/src/components/xform/form-render/index.vue +69 -23
  64. package/src/components/xform/form-render/indexMixin.js +18 -17
  65. package/src/components/xform/lang/zh-CN.js +8 -2
  66. package/src/components/xform/mixins/scriptHttp.js +1 -1
  67. package/src/components/xform/utils/formula-util.js +306 -5
  68. package/src/components/xform/utils/util.js +1 -1
  69. package/src/components/xform/utils/vue2js-generator.js +2 -2
  70. package/src/mixins/selectDialog/index.js +1 -1
  71. package/src/store/getters.js +23 -23
  72. package/src/store/modules/user.js +30 -30
  73. package/src/utils/request.js +1 -1
  74. package/src/utils/vab.js +1 -1
  75. package/src/views/user/form/vform/render.vue +54 -36
  76. package/src/views/user/form/view/list.vue +126 -11
  77. package/src/views/user/outLink/form_view.vue +4 -4
@@ -3,28 +3,42 @@
3
3
  <el-form-item label-width="0">
4
4
  <el-divider class="custom-divider-margin-top">请求访问设置</el-divider>
5
5
  </el-form-item>
6
- <el-form-item label="启用请求后台脚本" v-if="formScriptEnabledTypes.includes(selectedWidget.type)">
7
- <el-switch v-model="optionModel.formScriptEnabled" @change="changeFormScriptEnabled"></el-switch>
6
+ <el-form-item
7
+ label="启用请求后台脚本"
8
+ v-if="formScriptEnabledTypes.includes(selectedWidget.type)"
9
+ >
10
+ <el-switch
11
+ v-model="optionModel.formScriptEnabled"
12
+ @change="changeFormScriptEnabled"
13
+ ></el-switch>
8
14
  </el-form-item>
9
15
  <template>
10
-
11
- <!-- <el-form-item label="请求表单编码" v-if="optionModel.formScriptEnabled">
16
+ <!-- <el-form-item label="请求表单编码" v-if="optionModel.formScriptEnabled">
12
17
  <el-input v-model="optionModel.httpFormCode" clearable></el-input>
13
18
  </el-form-item>-->
14
19
  <el-form-item label="表单脚本编码" v-if="optionModel.formScriptEnabled">
15
20
  <el-input v-model="optionModel.formScriptCode" clearable></el-input>
16
21
  </el-form-item>
17
- <el-form-item label="查询参数" v-if="optionModel.formScriptEnabled || optionModel.commonAttributeEnabled">
18
- <a href="javascript:void(0);" class="a-link link-oneLind"
19
- @click="editEventHandler('formScriptParam', ['dataId', 'formCode'])">
22
+ <el-form-item
23
+ label="查询参数"
24
+ v-if="optionModel.formScriptEnabled || optionModel.commonAttributeEnabled"
25
+ >
26
+ <a
27
+ href="javascript:void(0);"
28
+ class="a-link link-oneLind"
29
+ @click="editEventHandler('formScriptParam', ['dataId', 'formCode'])"
30
+ >
20
31
  <span>{{ optionModel.formScriptParam }}</span>
21
32
  <i class="el-icon-edit"></i>
22
33
  </a>
23
34
  </el-form-item>
24
35
  </template>
25
- <template v-if="formScriptEnabledTypes.includes(selectedWidget.type)">
36
+ <template v-if="formScriptEnabledTypes.includes(selectedWidget.type)">
26
37
  <el-form-item :label="i18nt('启用系统词汇')">
27
- <el-switch v-model="optionModel.commonAttributeEnabled" @change="changeCommonAttributeEnabled"></el-switch>
38
+ <el-switch
39
+ v-model="optionModel.commonAttributeEnabled"
40
+ @change="changeCommonAttributeEnabled"
41
+ ></el-switch>
28
42
  </el-form-item>
29
43
  <el-form-item :label="i18nt('词汇编码')" v-if="optionModel.commonAttributeEnabled">
30
44
  <el-input type="text" v-model="optionModel.commonAttributeCode"></el-input>
@@ -36,9 +50,15 @@
36
50
  <el-input type="text" v-model="optionModel.valueKey" :disabled="optionModel.commonAttributeEnabled"></el-input>
37
51
  </el-form-item> -->
38
52
  </template>
39
- <el-form-item label="查询回调" v-if="optionModel.formScriptEnabled || optionModel.commonAttributeEnabled">
40
- <a href="javascript:void(0);" class="a-link link-oneLind"
41
- @click="editEventHandler('formScriptSuccess', ['dataId', 'formCode','res'])">
53
+ <el-form-item
54
+ label="查询回调"
55
+ v-if="optionModel.formScriptEnabled || optionModel.commonAttributeEnabled"
56
+ >
57
+ <a
58
+ href="javascript:void(0);"
59
+ class="a-link link-oneLind"
60
+ @click="editEventHandler('formScriptSuccess', ['dataId', 'formCode', 'res'])"
61
+ >
42
62
  <span>{{ optionModel.formScriptSuccess }}</span>
43
63
  <i class="el-icon-edit"></i>
44
64
  </a>
@@ -47,9 +67,8 @@
47
67
  </template>
48
68
 
49
69
  <script>
50
- import i18n from "../../../../../components/xform/utils/i18n"
51
- import eventMixin
52
- from "../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin"
70
+ import i18n from "../../../../../components/xform/utils/i18n";
71
+ import eventMixin from "../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
53
72
 
54
73
  export default {
55
74
  name: "formScriptEnabled-editor",
@@ -57,43 +76,47 @@ export default {
57
76
  props: {
58
77
  designer: Object,
59
78
  selectedWidget: Object,
60
- optionModel: Object
79
+ optionModel: Object,
61
80
  },
62
81
  data() {
63
82
  return {
64
- formScriptEnabledTypes: ['select', 'checkbox', 'radio', 'census','status']
65
- }
83
+ formScriptEnabledTypes: [
84
+ "select",
85
+ "checkbox",
86
+ "radio",
87
+ "census",
88
+ "status",
89
+ "gantt",
90
+ ],
91
+ };
66
92
  },
67
93
  methods: {
68
94
  getIsShow() {
69
- return this.selectedWidget.type !== 'data-table';
95
+ return this.selectedWidget.type !== "data-table";
70
96
  },
71
- changeFormScriptEnabled(val){
72
- if(val){
73
- this.optionModel.commonAttributeEnabled = false
97
+ changeFormScriptEnabled(val) {
98
+ if (val) {
99
+ this.optionModel.commonAttributeEnabled = false;
74
100
  }
75
101
  this.handleLabelAndValueKey();
76
102
  },
77
- changeCommonAttributeEnabled(val){
78
- if(val){
103
+ changeCommonAttributeEnabled(val) {
104
+ if (val) {
79
105
  this.optionModel.formScriptEnabled = false;
80
106
  }
81
107
  this.handleLabelAndValueKey();
82
108
  },
83
- handleLabelAndValueKey(){
84
- if(this.optionModel.commonAttributeEnabled){
109
+ handleLabelAndValueKey() {
110
+ if (this.optionModel.commonAttributeEnabled) {
85
111
  this.optionModel.labelKey = "value";
86
112
  this.optionModel.valueKey = "sn";
87
- }else {
113
+ } else {
88
114
  this.optionModel.labelKey = "label";
89
115
  this.optionModel.valueKey = "value";
90
116
  }
91
-
92
- }
93
- }
94
- }
117
+ },
118
+ },
119
+ };
95
120
  </script>
96
121
 
97
- <style scoped>
98
-
99
- </style>
122
+ <style scoped></style>
@@ -3,12 +3,18 @@
3
3
  <el-form-item label-width="0">
4
4
  <el-divider class="custom-divider-margin-top">项目标签设置</el-divider>
5
5
  </el-form-item>
6
+ <el-form-item label="标签长度">
7
+ <el-input v-model="optionModel.tagWidth" clearable></el-input>
8
+ </el-form-item>
6
9
  <el-form-item label="弹框表单编码">
7
10
  <el-input v-model="optionModel.tagFormCode" clearable></el-input>
8
11
  </el-form-item>
9
12
  <el-form-item label="弹框查询参数">
10
- <a href="javascript:void(0);" class="a-link link-oneLind"
11
- @click="editEventHandler('tagFormParam', ['dataId', 'formCode'])">
13
+ <a
14
+ href="javascript:void(0);"
15
+ class="a-link link-oneLind"
16
+ @click="editEventHandler('tagFormParam', ['dataId', 'formCode'])"
17
+ >
12
18
  <span>{{ optionModel.tagFormParam }}</span>
13
19
  <i class="el-icon-edit"></i>
14
20
  </a>
@@ -27,24 +33,29 @@
27
33
  </el-form-item>
28
34
 
29
35
  <el-form-item label="明细字段回填">
30
- <a href="javascript:void(0);" class="a-link link-oneLind"
31
- @click="openDialog">
36
+ <a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog">
32
37
  <span>{{ optionModel.tagFillConfig.length ? "已维护" : "" }}</span>
33
38
  <i class="el-icon-edit"></i>
34
39
  </a>
35
40
  </el-form-item>
36
41
  <el-form-item label="确认回调">
37
42
  <!-- <el-input v-model="optionModel.tagConfirmCallback" clearable></el-input>-->
38
- <a href="javascript:void(0);" class="a-link link-oneLind"
39
- @click="editEventHandler('tagConfirmCallback', ['dataId', 'formCode','rows'])">
43
+ <a
44
+ href="javascript:void(0);"
45
+ class="a-link link-oneLind"
46
+ @click="editEventHandler('tagConfirmCallback', ['dataId', 'formCode', 'rows'])"
47
+ >
40
48
  <span>{{ optionModel.tagConfirmCallback }}</span>
41
49
  <i class="el-icon-edit"></i>
42
50
  </a>
43
51
  </el-form-item>
44
52
  <el-form-item label="删除回调">
45
53
  <!-- <el-input v-model="optionModel.tagDeleteCallback" clearable></el-input>-->
46
- <a href="javascript:void(0);" class="a-link link-oneLind"
47
- @click="editEventHandler('tagDeleteCallback', ['dataId', 'formCode'])">
54
+ <a
55
+ href="javascript:void(0);"
56
+ class="a-link link-oneLind"
57
+ @click="editEventHandler('tagDeleteCallback', ['dataId', 'formCode'])"
58
+ >
48
59
  <span>{{ optionModel.tagDeleteCallback }}</span>
49
60
  <i class="el-icon-edit"></i>
50
61
  </a>
@@ -103,22 +114,22 @@
103
114
  placement="top"
104
115
  >
105
116
  <el-button
106
- size="mini" type="" circle=""
117
+ size="mini"
118
+ type=""
119
+ circle=""
107
120
  icon="el-icon-plus"
108
121
  @click="tableData.push({})"
109
122
  />
110
123
  </el-tooltip>
111
124
  </template>
112
125
  <template #default="{ row, $index }">
113
- <el-tooltip
114
- effect="dark"
115
- content="删除"
116
- placement="top"
117
- >
126
+ <el-tooltip effect="dark" content="删除" placement="top">
118
127
  <el-button
119
- size="mini" type="" circle=""
128
+ size="mini"
129
+ type=""
130
+ circle=""
120
131
  icon="el-icon-delete"
121
- @click="tableData.splice($index,1)"
132
+ @click="tableData.splice($index, 1)"
122
133
  />
123
134
  </el-tooltip>
124
135
  </template>
@@ -126,11 +137,16 @@
126
137
  </el-table>
127
138
  </div>
128
139
  <div class="dialog-footer" slot="footer">
129
- <el-button @click="showDialog=false" class="button-sty" icon="el-icon-close">
130
- {{ i18nt('designer.hint.cancel') }}
140
+ <el-button @click="showDialog = false" class="button-sty" icon="el-icon-close">
141
+ {{ i18nt("designer.hint.cancel") }}
131
142
  </el-button>
132
- <el-button type="primary" @click="confirmDialog" class="button-sty" icon="el-icon-check">
133
- {{ i18nt('designer.hint.confirm') }}
143
+ <el-button
144
+ type="primary"
145
+ @click="confirmDialog"
146
+ class="button-sty"
147
+ icon="el-icon-check"
148
+ >
149
+ {{ i18nt("designer.hint.confirm") }}
134
150
  </el-button>
135
151
  </div>
136
152
  </el-dialog>
@@ -150,7 +166,7 @@
150
166
  v-dialog-drag
151
167
  :fullscreen="true"
152
168
  >
153
- <div class="cont" style="padding-bottom: 8px;">
169
+ <div class="cont" style="padding-bottom: 8px">
154
170
  <el-table
155
171
  ref="singleTable"
156
172
  width="100%"
@@ -159,11 +175,11 @@
159
175
  border=""
160
176
  row-key="columnId"
161
177
  stripe=""
162
- style="margin-bottom: 0px;"
178
+ style="margin-bottom: 0px"
163
179
  >
164
180
  <el-table-column type="index" width="35" fixed="left"></el-table-column>
165
181
  <el-table-column :label="i18nt('服务')" width="150">
166
- <template slot-scope="{row}">
182
+ <template slot-scope="{ row }">
167
183
  <el-select v-model="row.serveType" @change="changeServeType(row)">
168
184
  <el-option :value="1" label="正式"></el-option>
169
185
  <el-option :value="2" label="UAT"></el-option>
@@ -173,27 +189,31 @@
173
189
  </template>
174
190
  </el-table-column>
175
191
  <el-table-column :label="i18nt('自定义服务')" width="150">
176
- <template slot-scope="{row}">
177
- <el-input v-model="row.serveName" clearable :disabled="row.serveType!==4"></el-input>
192
+ <template slot-scope="{ row }">
193
+ <el-input
194
+ v-model="row.serveName"
195
+ clearable
196
+ :disabled="row.serveType !== 4"
197
+ ></el-input>
178
198
  </template>
179
199
  </el-table-column>
180
200
  <el-table-column :label="i18nt('组织编码')" width="250">
181
- <template slot-scope="{row,$index}">
201
+ <template slot-scope="{ row, $index }">
182
202
  <el-input v-model="row.companyCodes" clearable></el-input>
183
203
  </template>
184
204
  </el-table-column>
185
205
  <el-table-column :label="i18nt('流程模板编码')" width="150">
186
- <template slot-scope="{row}">
206
+ <template slot-scope="{ row }">
187
207
  <el-input v-model="row.modelKey" clearable></el-input>
188
208
  </template>
189
209
  </el-table-column>
190
210
  <el-table-column :label="i18nt('节点步骤')" width="250">
191
- <template slot-scope="{row}">
211
+ <template slot-scope="{ row }">
192
212
  <el-input v-model="row.taskSteps" clearable></el-input>
193
213
  </template>
194
214
  </el-table-column>
195
215
  <el-table-column :label="i18nt('设置')" width="150">
196
- <template slot-scope="{row}">
216
+ <template slot-scope="{ row }">
197
217
  <el-select v-model="row.type" clearable>
198
218
  <el-option :value="1" label="可编辑"></el-option>
199
219
  <el-option :value="2" label="仅显示"></el-option>
@@ -219,11 +239,21 @@
219
239
  </el-checkbox-group>
220
240
  </template>
221
241
  </el-table-column>-->
222
- <el-table-column :label="i18nt('designer.setting.actionColumn')" width="100" align="center">
242
+ <el-table-column
243
+ :label="i18nt('designer.setting.actionColumn')"
244
+ width="100"
245
+ align="center"
246
+ >
223
247
  <template #header>
224
- <span>{{ i18nt('designer.setting.actionColumn') }}</span>
225
- <el-button :title="i18nt('designer.setting.addTableColumn')" size="mini" type="" circle=""
226
- icon="el-icon-plus" @click="addItem"></el-button>
248
+ <span>{{ i18nt("designer.setting.actionColumn") }}</span>
249
+ <el-button
250
+ :title="i18nt('designer.setting.addTableColumn')"
251
+ size="mini"
252
+ type=""
253
+ circle=""
254
+ icon="el-icon-plus"
255
+ @click="addItem"
256
+ ></el-button>
227
257
  </template>
228
258
  <template slot-scope="scope">
229
259
  <el-button
@@ -232,19 +262,23 @@
232
262
  type=""
233
263
  circle=""
234
264
  icon="el-icon-minus"
235
- @click="tableData.splice(scope.$index,1)"
265
+ @click="tableData.splice(scope.$index, 1)"
236
266
  ></el-button>
237
267
  </template>
238
268
  </el-table-column>
239
-
240
269
  </el-table>
241
270
  </div>
242
271
  <div class="dialog-footer" slot="footer">
243
272
  <el-button @click="dialogVisible = false" class="button-sty" icon="el-icon-close">
244
- {{ i18nt('designer.hint.cancel') }}
273
+ {{ i18nt("designer.hint.cancel") }}
245
274
  </el-button>
246
- <el-button type="primary" @click="colSubmit" class="button-sty" icon="el-icon-check">
247
- {{ i18nt('designer.hint.confirm') }}
275
+ <el-button
276
+ type="primary"
277
+ @click="colSubmit"
278
+ class="button-sty"
279
+ icon="el-icon-check"
280
+ >
281
+ {{ i18nt("designer.hint.confirm") }}
248
282
  </el-button>
249
283
  </div>
250
284
  </el-dialog>
@@ -252,9 +286,8 @@
252
286
  </template>
253
287
 
254
288
  <script>
255
- import i18n from "../../../../../components/xform/utils/i18n"
256
- import eventMixin
257
- from "../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin"
289
+ import i18n from "../../../../../components/xform/utils/i18n";
290
+ import eventMixin from "../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
258
291
 
259
292
  export default {
260
293
  name: "project-tag-editor",
@@ -262,21 +295,21 @@ export default {
262
295
  props: {
263
296
  designer: Object,
264
297
  selectedWidget: Object,
265
- optionModel: Object
298
+ optionModel: Object,
266
299
  },
267
300
  data() {
268
301
  return {
269
- formScriptEnabledTypes: ['select', 'checkbox', 'radio', 'census'],
302
+ formScriptEnabledTypes: ["select", "checkbox", "radio", "census"],
270
303
  showDialog: false,
271
304
  tableData: [],
272
305
 
273
306
  dialogVisible: false,
274
307
  wfConfigData: [],
275
- }
308
+ };
276
309
  },
277
310
  methods: {
278
311
  getIsShow() {
279
- return this.selectedWidget.type !== 'data-table';
312
+ return this.selectedWidget.type !== "data-table";
280
313
  },
281
314
  openDialog() {
282
315
  this.tableData = this.$baseLodash.cloneDeep(this.optionModel.tagFillConfig);
@@ -292,7 +325,7 @@ export default {
292
325
  let objTypeCode = reportTemplate.objTypeCode;
293
326
  let wfConfigData = this.optionModel.wfConfigData || [];
294
327
  this.dialogVisible = true;
295
- this.tableData = this.$baseLodash.cloneDeep(wfConfigData)
328
+ this.tableData = this.$baseLodash.cloneDeep(wfConfigData);
296
329
  },
297
330
  addItem() {
298
331
  let newItem = {
@@ -301,18 +334,16 @@ export default {
301
334
  serveName: null,
302
335
  modelKey: null,
303
336
  taskSteps: null,
304
- companyCodes: null
305
- }
337
+ companyCodes: null,
338
+ };
306
339
  this.tableData.push(newItem);
307
340
  },
308
341
  colSubmit() {
309
342
  this.dialogVisible = !1;
310
343
  this.optionModel.wfConfigData = this.tableData;
311
344
  },
312
- }
313
- }
345
+ },
346
+ };
314
347
  </script>
315
348
 
316
- <style scoped>
317
-
318
- </style>
349
+ <style scoped></style>
@@ -7,21 +7,12 @@
7
7
  <el-switch v-model="optionModel.hiddenByWf" @change="changeHiddenByWf"></el-switch>
8
8
  </el-form-item>-->
9
9
  <el-form-item :label="i18nt('特定流程节点设置')">
10
- <el-switch
11
- v-model="optionModel.wfEdit"
12
- @change="changeWfEdit"
13
- ></el-switch>
10
+ <el-switch v-model="optionModel.wfEdit" @change="changeWfEdit"></el-switch>
14
11
  </el-form-item>
15
12
  <el-form-item :label="i18nt('流程节点信息')">
16
- <a
17
- href="javascript:void(0);"
18
- class="a-link link-oneLind"
19
- @click="openDialog"
20
- >
13
+ <a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog">
21
14
  <span>{{
22
- optionModel.wfConfigData && optionModel.wfConfigData.length
23
- ? "已维护"
24
- : ""
15
+ optionModel.wfConfigData && optionModel.wfConfigData.length ? "已维护" : ""
25
16
  }}</span>
26
17
  <i class="el-icon-edit"></i>
27
18
  </a>
@@ -30,14 +21,9 @@
30
21
  <el-switch v-model="optionModel.wfModifyDataEnabled"></el-switch>
31
22
  </el-form-item>
32
23
  <el-form-item :label="i18nt('更改业务数据信息')">
33
- <a
34
- href="javascript:void(0);"
35
- class="a-link link-oneLind"
36
- @click="openDialog2"
37
- >
24
+ <a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog2">
38
25
  <span>{{
39
- optionModel.wfModifyDataConfig &&
40
- optionModel.wfModifyDataConfig.length
26
+ optionModel.wfModifyDataConfig && optionModel.wfModifyDataConfig.length
41
27
  ? "已维护"
42
28
  : ""
43
29
  }}</span>
@@ -71,11 +57,7 @@
71
57
  stripe=""
72
58
  style="margin-bottom: 0px"
73
59
  >
74
- <el-table-column
75
- type="index"
76
- width="35"
77
- fixed="left"
78
- ></el-table-column>
60
+ <el-table-column type="index" width="35" fixed="left"></el-table-column>
79
61
  <el-table-column :label="i18nt('组织编码')" width="250">
80
62
  <template slot-scope="{ row, $index }">
81
63
  <el-input
@@ -109,10 +91,7 @@
109
91
  <base-input-number v-model="row.modelOrders" clearable></base-input-number>
110
92
  </template>
111
93
  </el-table-column>
112
- <el-table-column
113
- :label="i18nt('节点步骤(多个值用“,”隔开)')"
114
- width="250"
115
- >
94
+ <el-table-column :label="i18nt('节点步骤(多个值用“,”隔开)')" width="250">
116
95
  <template slot-scope="{ row }">
117
96
  <el-input v-model="row.taskSteps" clearable></el-input>
118
97
  </template>
@@ -156,11 +135,7 @@
156
135
  </el-table>
157
136
  </div>
158
137
  <div class="dialog-footer" slot="footer">
159
- <el-button
160
- @click="dialogVisible = false"
161
- class="button-sty"
162
- icon="el-icon-close"
163
- >
138
+ <el-button @click="dialogVisible = false" class="button-sty" icon="el-icon-close">
164
139
  {{ i18nt("designer.hint.cancel") }}
165
140
  </el-button>
166
141
  <el-button
@@ -199,17 +174,14 @@
199
174
  stripe=""
200
175
  style="margin-bottom: 0px"
201
176
  >
202
- <el-table-column
203
- type="index"
204
- width="35"
205
- fixed="left"
206
- ></el-table-column>
177
+ <el-table-column type="index" width="35" fixed="left"></el-table-column>
207
178
  <el-table-column :label="i18nt('流程动作')" width="150">
208
179
  <template slot-scope="{ row }">
209
- <el-select v-model="row.action">
180
+ <el-select v-model="row.action" @change="row.toValue = null">
210
181
  <el-option value="start" label="流程启动"></el-option>
211
182
  <el-option value="interrupt" label="流程中断"></el-option>
212
183
  <el-option value="end" label="流程完成"></el-option>
184
+ <el-option value="specificAction" label="流程特定"></el-option>
213
185
  </el-select>
214
186
  </template>
215
187
  </el-table-column>
@@ -224,7 +196,26 @@
224
196
  </el-table-column>-->
225
197
  <el-table-column :label="i18nt('设置的值')" width="650">
226
198
  <template slot-scope="{ row }">
227
- <el-input v-model="row.toValue" clearable></el-input>
199
+ <el-select
200
+ v-model="row.toValue"
201
+ clearable
202
+ style="width: 100%"
203
+ v-if="row.action === 'specificAction'"
204
+ >
205
+ <el-option value="wfCreateDate" label="流程创建(启动)时间"></el-option>
206
+ <el-option value="wfModifyDate" label="流程更新时间"></el-option>
207
+ <el-option value="wfInterruptDate" label="流程中断时间"></el-option>
208
+ <el-option value="wfEndDate" label="流程完成时间"></el-option>
209
+ <el-option value="wfStarterName" label="启动人姓名"></el-option>
210
+ <el-option value="wfName" label="流程模板名称"></el-option>
211
+ <el-option value="wfUuid" label="流程实例uuid"></el-option>
212
+ <el-option value="objTypeCode" label="流程单据类型编码"></el-option>
213
+ <el-option value="wfCandidateNames" label="当前审批人名"></el-option>
214
+ <el-option value="wfTaskName" label="当前审批节点名"></el-option>
215
+ <el-option value="wfStat" label="流程状态"></el-option>
216
+ <el-option value="wfSubjectName" label="流程主题名称"></el-option>
217
+ </el-select>
218
+ <el-input v-model="row.toValue" clearable v-else></el-input>
228
219
  <!-- <el-input v-model="row.toValue" clearable v-if="row.valueType==1"></el-input>
229
220
  <base-input-number v-model="row.toValue" clearable v-else-if="row.valueType==2"></base-input-number>
230
221
  <el-radio-group v-model="row.toValue" v-else-if="row.valueType==3">
@@ -403,20 +394,20 @@ export default {
403
394
  type: "error",
404
395
  message: "服务名称不能为空",
405
396
  });
406
- return
397
+ return;
407
398
  }
408
399
  if (!item.companyCodes) {
409
400
  this.$message({
410
401
  type: "error",
411
402
  message: "组织编码不能为空",
412
403
  });
413
- return
404
+ return;
414
405
  }
415
- let modelOrders = item.modelOrders??"";
406
+ let modelOrders = item.modelOrders ?? "";
416
407
 
417
408
  let serveName = item.serveName;
418
409
  let companyCodes = item.companyCodes;
419
- let key = serveName + "_" + companyCodes+ "_"+modelOrders;
410
+ let key = serveName + "_" + companyCodes + "_" + modelOrders;
420
411
  if (!map[key]) {
421
412
  map[key] = true;
422
413
  } else {
@@ -117,6 +117,7 @@ const COMMON_PROPERTIES = {
117
117
  'dropdownItemFlag': 'dropdown-item-editor',
118
118
 
119
119
  'oplogFlag': 'oplogFlag-editor',
120
+ 'ganttConfig': 'gantt-editor',
120
121
 
121
122
  //弹框
122
123
  title: "title-editor",
@@ -165,6 +166,7 @@ const COMMON_PROPERTIES = {
165
166
  "autoValueEnabled": "autoValueEnabled-editor",
166
167
  // "commonAttributeEnabled": "commonAttributeEnabled-editor"
167
168
  "colorClass": "colorClass-editor",
169
+ "downloadButtonFlag": "downloadButtonFlag-editor"
168
170
  }
169
171
 
170
172
  const ADVANCED_PROPERTIES = {