cloud-web-corejs 1.0.72 → 1.0.74
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 +2 -2
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfUtil.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +6 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +26 -2
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +47 -37
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +3 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +583 -300
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +20 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +76 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +169 -39
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +61 -144
- package/src/components/xform/form-render/container-item/data-table-item.vue +1 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +18 -18
- package/src/components/xform/form-render/indexMixin.js +1 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/layout/components/TagsView/index.vue +0 -1
- package/src/store/modules/user.js +1 -1
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/mixins/list.js +1 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +1 -1
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/wf_list.vue +1 -1
- package/src/views/user/area/dialog.vue +0 -1
- package/src/views/user/wf/wf_manage/list.vue +1 -1
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/edit.vue +5 -1
- package/src/views/user/wf/wf_obj_config/list.vue +34 -3
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js
CHANGED
@@ -10,12 +10,12 @@ export default {
|
|
10
10
|
if(funStr) name = "已维护"
|
11
11
|
return name;
|
12
12
|
},
|
13
|
-
editEventHandler(eventName, eventParams,
|
13
|
+
editEventHandler(eventName, eventParams, option) {
|
14
14
|
this.dispatch(
|
15
15
|
"SettingPanel",
|
16
16
|
"editEventHandler",
|
17
17
|
[eventName, [...eventParams]],
|
18
|
-
|
18
|
+
option
|
19
19
|
);
|
20
20
|
},
|
21
21
|
},
|
@@ -40,6 +40,13 @@
|
|
40
40
|
}}
|
41
41
|
</el-button>
|
42
42
|
</el-form-item>
|
43
|
+
<el-form-item label="确认回调">
|
44
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
45
|
+
@click="editEventHandler('confirmCallback', ['dataId', 'formCode','rows'], option1)">
|
46
|
+
<span>{{ eventConfig.confirmCallback }}</span>
|
47
|
+
<i class="el-icon-edit"></i>
|
48
|
+
</a>
|
49
|
+
</el-form-item>
|
43
50
|
|
44
51
|
<el-dialog
|
45
52
|
custom-class="dialog-style list-dialog"
|
@@ -120,9 +127,12 @@
|
|
120
127
|
|
121
128
|
<script>
|
122
129
|
import i18n from "../../../../../../components/xform/utils/i18n"
|
130
|
+
import eventMixin
|
131
|
+
from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin"
|
132
|
+
|
123
133
|
|
124
134
|
export default {
|
125
|
-
mixins: [i18n],
|
135
|
+
mixins: [i18n, eventMixin],
|
126
136
|
props: {
|
127
137
|
designer: Object,
|
128
138
|
selectedWidget: Object,
|
@@ -133,6 +143,15 @@ export default {
|
|
133
143
|
return {
|
134
144
|
showDialog: false,
|
135
145
|
tableData: [],
|
146
|
+
option1:{
|
147
|
+
customCode:()=>{
|
148
|
+
return this.eventConfig.confirmCallback;
|
149
|
+
},
|
150
|
+
callback:(code)=>{
|
151
|
+
this.eventConfig.confirmCallback = code;
|
152
|
+
this.$forceUpdate()
|
153
|
+
}
|
154
|
+
}
|
136
155
|
}
|
137
156
|
},
|
138
157
|
computed: {
|
package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<el-form-item label-width="0">
|
4
|
+
<el-divider class="custom-divider-margin-top">请求访问设置</el-divider>
|
5
|
+
</el-form-item>
|
6
|
+
<el-form-item label="表单编码">
|
7
|
+
<el-input v-model="optionModel.tagFormCode" clearable></el-input>
|
8
|
+
</el-form-item>
|
9
|
+
<el-form-item label="展示字段">
|
10
|
+
<el-input v-model="optionModel.tagLabelField" clearable></el-input>
|
11
|
+
</el-form-item>
|
12
|
+
<el-form-item label="唯一关键字段">
|
13
|
+
<el-input v-model="optionModel.tagUniqueField" clearable></el-input>
|
14
|
+
</el-form-item>
|
15
|
+
<el-form-item label="明细字段回填">
|
16
|
+
<el-input v-model="optionModel.tagFillConfig" clearable></el-input>
|
17
|
+
</el-form-item>
|
18
|
+
<el-form-item label="确认回调">
|
19
|
+
<!-- <el-input v-model="optionModel.tagConfirmCallback" clearable></el-input>-->
|
20
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
21
|
+
@click="editEventHandler('tagConfirmCallback', [])">
|
22
|
+
<span>{{ optionModel.tagConfirmCallback }}</span>
|
23
|
+
<i class="el-icon-edit"></i>
|
24
|
+
</a>
|
25
|
+
</el-form-item>
|
26
|
+
<el-form-item label="删除回调">
|
27
|
+
<!-- <el-input v-model="optionModel.tagDeleteCallback" clearable></el-input>-->
|
28
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
29
|
+
@click="editEventHandler('tagDeleteCallback', [])">
|
30
|
+
<span>{{ optionModel.tagDeleteCallback }}</span>
|
31
|
+
<i class="el-icon-edit"></i>
|
32
|
+
</a>
|
33
|
+
</el-form-item>
|
34
|
+
<el-form-item label="是否可以删除">
|
35
|
+
<el-switch v-model="optionModel.tabDeleteEnabled" clearable></el-switch>
|
36
|
+
</el-form-item>
|
37
|
+
|
38
|
+
<!-- <el-form-item label="查询参数">
|
39
|
+
<a href="javascript:void(0);" class="a-link link-oneLind"
|
40
|
+
@click="editEventHandler('formScriptParam', ['dataId', 'formCode'])">
|
41
|
+
<span>{{ optionModel.formScriptParam }}</span>
|
42
|
+
<i class="el-icon-edit"></i>
|
43
|
+
</a>
|
44
|
+
</el-form-item>-->
|
45
|
+
</div>
|
46
|
+
</template>
|
47
|
+
|
48
|
+
<script>
|
49
|
+
import i18n from "../../../../../components/xform/utils/i18n"
|
50
|
+
import eventMixin
|
51
|
+
from "../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin"
|
52
|
+
|
53
|
+
export default {
|
54
|
+
name: "formScriptEnabled-editor",
|
55
|
+
mixins: [i18n, eventMixin],
|
56
|
+
props: {
|
57
|
+
designer: Object,
|
58
|
+
selectedWidget: Object,
|
59
|
+
optionModel: Object
|
60
|
+
},
|
61
|
+
data() {
|
62
|
+
return {
|
63
|
+
formScriptEnabledTypes: ['select', 'checkbox', 'radio', 'census']
|
64
|
+
}
|
65
|
+
},
|
66
|
+
methods: {
|
67
|
+
getIsShow() {
|
68
|
+
return this.selectedWidget.type !== 'data-table';
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
</script>
|
73
|
+
|
74
|
+
<style scoped>
|
75
|
+
|
76
|
+
</style>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<el-form-item :label="i18nt('有流程隐藏')">
|
7
7
|
<el-switch v-model="optionModel.hiddenByWf" @change="changeHiddenByWf"></el-switch>
|
8
8
|
</el-form-item>
|
9
|
-
<el-form-item :label="i18nt('
|
9
|
+
<el-form-item :label="i18nt('特定流程节点设置')">
|
10
10
|
<el-switch v-model="optionModel.wfEdit" @change="changeWfEdit"></el-switch>
|
11
11
|
</el-form-item>
|
12
12
|
<el-form-item :label="i18nt('流程节点信息')">
|
@@ -15,13 +15,32 @@
|
|
15
15
|
<i class="el-icon-edit"></i>
|
16
16
|
</a>
|
17
17
|
</el-form-item>
|
18
|
+
<el-form-item :label="i18nt('过程更改业务数据')">
|
19
|
+
<el-switch v-model="optionModel.wfModifyDataEnabled"></el-switch>
|
20
|
+
</el-form-item>
|
21
|
+
<el-form-item :label="i18nt('更改业务数据信息')">
|
22
|
+
<a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog2">
|
23
|
+
<span>{{ optionModel.wfModifyDataConfig && optionModel.wfModifyDataConfig.length ? "已维护" : "" }}</span>
|
24
|
+
<i class="el-icon-edit"></i>
|
25
|
+
</a>
|
26
|
+
</el-form-item>
|
27
|
+
|
28
|
+
<!-- <el-form-item :label="i18nt('特定流程节点显隐')">
|
29
|
+
<el-switch v-model="optionModel.wfEdit" @change="changeWfEdit"></el-switch>
|
30
|
+
</el-form-item>
|
31
|
+
<el-form-item :label="i18nt('流程节点信息')">
|
32
|
+
<a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog">
|
33
|
+
<span>{{ optionModel.wfConfigData && optionModel.wfConfigData.length ? "已维护" : "" }}</span>
|
34
|
+
<i class="el-icon-edit"></i>
|
35
|
+
</a>
|
36
|
+
</el-form-item>-->
|
18
37
|
<el-dialog
|
19
38
|
v-if="dialogVisible"
|
20
39
|
custom-class="dialog-style list-dialog"
|
21
40
|
:title="i18nt('流程节点信息')"
|
22
41
|
:visible.sync="dialogVisible"
|
23
42
|
:show-close="!0"
|
24
|
-
:append-to-body="
|
43
|
+
:append-to-body="true"
|
25
44
|
:modal="false"
|
26
45
|
:close-on-click-modal="!1"
|
27
46
|
:close-on-press-escape="!1"
|
@@ -29,16 +48,18 @@
|
|
29
48
|
width="1220px"
|
30
49
|
top="5vh"
|
31
50
|
v-dialog-drag
|
51
|
+
:fullscreen="true"
|
32
52
|
>
|
33
|
-
<div class="cont">
|
53
|
+
<div class="cont" style="padding-bottom: 8px;">
|
34
54
|
<el-table
|
35
55
|
ref="singleTable"
|
36
56
|
width="100%"
|
37
57
|
:data="tableData"
|
38
|
-
height="
|
58
|
+
height="100%"
|
39
59
|
border=""
|
40
60
|
row-key="columnId"
|
41
61
|
stripe=""
|
62
|
+
style="margin-bottom: 0px;"
|
42
63
|
>
|
43
64
|
<el-table-column type="index" width="35" fixed="left"></el-table-column>
|
44
65
|
<el-table-column :label="i18nt('服务')" width="150">
|
@@ -56,33 +77,30 @@
|
|
56
77
|
<el-input v-model="row.serveName" clearable :disabled="row.serveType!==4"></el-input>
|
57
78
|
</template>
|
58
79
|
</el-table-column>
|
59
|
-
<el-table-column :label="i18nt('
|
80
|
+
<el-table-column :label="i18nt('组织编码')" width="250">
|
60
81
|
<template slot-scope="{row,$index}">
|
61
|
-
<el-input
|
62
|
-
class="search-input"
|
63
|
-
:value="getCompanyNames(row)"
|
64
|
-
clearable
|
65
|
-
@clear="
|
66
|
-
row.companyInfos = [];
|
67
|
-
"
|
68
|
-
v-el-readonly
|
69
|
-
>
|
70
|
-
<i slot="suffix" class="el-input__icon el-icon-search"
|
71
|
-
@click="openCompanyDialog(row, $index)"></i>
|
72
|
-
</el-input>
|
82
|
+
<el-input v-model="row.companyCodes" clearable></el-input>
|
73
83
|
</template>
|
74
84
|
</el-table-column>
|
75
|
-
<el-table-column :label="i18nt('
|
85
|
+
<el-table-column :label="i18nt('流程模板编码')" width="150">
|
76
86
|
<template slot-scope="{row}">
|
77
87
|
<el-input v-model="row.modelKey" clearable></el-input>
|
78
88
|
</template>
|
79
89
|
</el-table-column>
|
80
|
-
<el-table-column :label="i18nt('
|
90
|
+
<el-table-column :label="i18nt('节点步骤')" width="250">
|
81
91
|
<template slot-scope="{row}">
|
82
92
|
<el-input v-model="row.taskSteps" clearable></el-input>
|
83
93
|
</template>
|
84
94
|
</el-table-column>
|
85
|
-
|
95
|
+
<el-table-column :label="i18nt('设置')" width="150">
|
96
|
+
<template slot-scope="{row}">
|
97
|
+
<el-select v-model="row.type" clearable>
|
98
|
+
<el-option :value="1" label="可编辑"></el-option>
|
99
|
+
<el-option :value="2" label="仅显示"></el-option>
|
100
|
+
<el-option :value="3" label="隐藏"></el-option>
|
101
|
+
</el-select>
|
102
|
+
</template>
|
103
|
+
</el-table-column>
|
86
104
|
<!-- <el-table-column :label="i18nt('流程模板')" width="250" prop="label">
|
87
105
|
<template slot-scope="scope">
|
88
106
|
<el-select v-model="scope.row.modelId" @change="changeModelId">
|
@@ -130,6 +148,92 @@
|
|
130
148
|
</el-button>
|
131
149
|
</div>
|
132
150
|
</el-dialog>
|
151
|
+
<el-dialog
|
152
|
+
v-if="dialogVisible2"
|
153
|
+
custom-class="dialog-style list-dialog"
|
154
|
+
:title="i18nt('过程更改业务数据')"
|
155
|
+
:visible.sync="dialogVisible2"
|
156
|
+
:show-close="!0"
|
157
|
+
:append-to-body="true"
|
158
|
+
:modal="false"
|
159
|
+
:close-on-click-modal="!1"
|
160
|
+
:close-on-press-escape="!1"
|
161
|
+
:destroy-on-close="!0"
|
162
|
+
width="1220px"
|
163
|
+
top="5vh"
|
164
|
+
v-dialog-drag
|
165
|
+
>
|
166
|
+
<div class="cont" style="padding-bottom: 8px;">
|
167
|
+
<el-table
|
168
|
+
ref="singleTable"
|
169
|
+
width="100%"
|
170
|
+
:data="tableData2"
|
171
|
+
height="500px"
|
172
|
+
border=""
|
173
|
+
row-key="columnId"
|
174
|
+
stripe=""
|
175
|
+
style="margin-bottom: 0px;"
|
176
|
+
>
|
177
|
+
<el-table-column type="index" width="35" fixed="left"></el-table-column>
|
178
|
+
<el-table-column :label="i18nt('流程动作')" width="150">
|
179
|
+
<template slot-scope="{row}">
|
180
|
+
<el-select v-model="row.action">
|
181
|
+
<el-option value="start" label="流程启动"></el-option>
|
182
|
+
<el-option value="interrupt" label="流程中断"></el-option>
|
183
|
+
<el-option value="end" label="流程完成"></el-option>
|
184
|
+
</el-select>
|
185
|
+
</template>
|
186
|
+
</el-table-column>
|
187
|
+
<!-- <el-table-column :label="i18nt('值类型')" width="250">
|
188
|
+
<template slot-scope="{row}">
|
189
|
+
<el-select v-model="row.valueType" @change="changeValueType">
|
190
|
+
<el-option :value="1" label="文本"></el-option>
|
191
|
+
<el-option :value="2" label="数值"></el-option>
|
192
|
+
<el-option :value="3" label="布尔值"></el-option>
|
193
|
+
</el-select>
|
194
|
+
</template>
|
195
|
+
</el-table-column>-->
|
196
|
+
<el-table-column :label="i18nt('设置的值')" width="650">
|
197
|
+
<template slot-scope="{row}">
|
198
|
+
<el-input v-model="row.toValue" clearable></el-input>
|
199
|
+
<!-- <el-input v-model="row.toValue" clearable v-if="row.valueType==1"></el-input>
|
200
|
+
<base-input-number v-model="row.toValue" clearable v-else-if="row.valueType==2"></base-input-number>
|
201
|
+
<el-radio-group v-model="row.toValue" v-else-if="row.valueType==3">
|
202
|
+
<el-radio :label="true">true</el-radio>
|
203
|
+
<el-radio :label="false">false</el-radio>
|
204
|
+
</el-radio-group>-->
|
205
|
+
|
206
|
+
</template>
|
207
|
+
</el-table-column>
|
208
|
+
<el-table-column :label="i18nt('designer.setting.actionColumn')" width="100" align="center">
|
209
|
+
<template #header>
|
210
|
+
<span>{{ i18nt('designer.setting.actionColumn') }}</span>
|
211
|
+
<el-button :title="i18nt('designer.setting.addTableColumn')" size="mini" type="" circle=""
|
212
|
+
icon="el-icon-plus" @click="addItem2"></el-button>
|
213
|
+
</template>
|
214
|
+
<template slot-scope="scope">
|
215
|
+
<el-button
|
216
|
+
:title="i18nt('designer.setting.deleteTableColumn')"
|
217
|
+
size="mini"
|
218
|
+
type=""
|
219
|
+
circle=""
|
220
|
+
icon="el-icon-minus"
|
221
|
+
@click="tableData2.splice(scope.$index,1)"
|
222
|
+
></el-button>
|
223
|
+
</template>
|
224
|
+
</el-table-column>
|
225
|
+
|
226
|
+
</el-table>
|
227
|
+
</div>
|
228
|
+
<div class="dialog-footer" slot="footer">
|
229
|
+
<el-button @click="dialogVisible2 = false" class="button-sty" icon="el-icon-close">
|
230
|
+
{{ i18nt('designer.hint.cancel') }}
|
231
|
+
</el-button>
|
232
|
+
<el-button type="primary" @click="colSubmit2" class="button-sty" icon="el-icon-check">
|
233
|
+
{{ i18nt('designer.hint.confirm') }}
|
234
|
+
</el-button>
|
235
|
+
</div>
|
236
|
+
</el-dialog>
|
133
237
|
<companyInfoDialog v-if="showCompanyInfoDialog" :visiable.sync="showCompanyInfoDialog"
|
134
238
|
@confirm="confirmCompanyDialog" :multi="true" :allCompany="true" :rows="currentCompanyInfos"
|
135
239
|
fieldKey="companyCode"/>
|
@@ -159,8 +263,10 @@ export default {
|
|
159
263
|
|
160
264
|
currentCompanyInfos: [],
|
161
265
|
operateIndex: 0,
|
162
|
-
showCompanyInfoDialog: false
|
266
|
+
showCompanyInfoDialog: false,
|
163
267
|
|
268
|
+
dialogVisible2: false,
|
269
|
+
tableData2: [],
|
164
270
|
}
|
165
271
|
},
|
166
272
|
computed: {
|
@@ -174,11 +280,13 @@ export default {
|
|
174
280
|
let reportTemplate = this.getReportTemplate();
|
175
281
|
let objTypeCode = reportTemplate.objTypeCode;
|
176
282
|
let wfConfigData = this.optionModel.wfConfigData || [];
|
177
|
-
|
283
|
+
this.dialogVisible = true;
|
284
|
+
this.tableData = this.$baseLodash.cloneDeep(wfConfigData)
|
285
|
+
/*wfConfigData.forEach(item => {
|
178
286
|
this.getWfObjConfigItem(item.modelId)
|
179
|
-
})
|
287
|
+
})*/
|
180
288
|
|
181
|
-
this.$http({
|
289
|
+
/*this.$http({
|
182
290
|
url: this.current_prefix + "/wf_obj_config_item/list",
|
183
291
|
data: {
|
184
292
|
objTypeCode: objTypeCode,
|
@@ -191,7 +299,7 @@ export default {
|
|
191
299
|
this.dialogVisible = true;
|
192
300
|
this.tableData = this.$baseLodash.cloneDeep(wfConfigData)
|
193
301
|
},
|
194
|
-
})
|
302
|
+
});*/
|
195
303
|
},
|
196
304
|
getWfObjConfigItem(modelId) {
|
197
305
|
let reportTemplate = this.getReportTemplate();
|
@@ -213,11 +321,12 @@ export default {
|
|
213
321
|
},
|
214
322
|
addItem() {
|
215
323
|
let newItem = {
|
324
|
+
type: null,
|
216
325
|
serveType: null,
|
217
326
|
serveName: null,
|
218
327
|
modelKey: null,
|
219
328
|
taskSteps: null,
|
220
|
-
|
329
|
+
companyCodes: null
|
221
330
|
}
|
222
331
|
this.tableData.push(newItem);
|
223
332
|
},
|
@@ -233,7 +342,7 @@ export default {
|
|
233
342
|
changeEnabledByWf(val) {
|
234
343
|
if (val) {
|
235
344
|
this.optionModel.hiddenByWf = false;
|
236
|
-
this.optionModel.wfEdit = false;
|
345
|
+
// this.optionModel.wfEdit = false;
|
237
346
|
}
|
238
347
|
},
|
239
348
|
changeHiddenByWf(val) {
|
@@ -250,7 +359,7 @@ export default {
|
|
250
359
|
// modelKey
|
251
360
|
let map = {
|
252
361
|
1: "prod",
|
253
|
-
2: "
|
362
|
+
2: "uat",
|
254
363
|
3: "dev"
|
255
364
|
}
|
256
365
|
let serveName = null;
|
@@ -260,20 +369,41 @@ export default {
|
|
260
369
|
}
|
261
370
|
row.serveName = serveName;
|
262
371
|
},
|
263
|
-
|
264
|
-
this.
|
265
|
-
this.
|
266
|
-
this.showCompanyInfoDialog = true;
|
267
|
-
|
372
|
+
openDialog2() {
|
373
|
+
this.tableData2 = this.$baseLodash.cloneDeep(this.optionModel.wfModifyDataConfig || []);
|
374
|
+
this.dialogVisible2 = true;
|
268
375
|
},
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
376
|
+
addItem2() {
|
377
|
+
let newItem = {
|
378
|
+
action: 'start',
|
379
|
+
// valueType: 1,
|
380
|
+
toValue: null
|
381
|
+
}
|
382
|
+
this.tableData2.push(newItem);
|
383
|
+
},
|
384
|
+
colSubmit2() {
|
385
|
+
let isError = false;
|
386
|
+
let map = {}
|
387
|
+
this.tableData2.forEach(item => {
|
388
|
+
let count = map[item.action] || 0;
|
389
|
+
map[item.action] = count + 1;
|
390
|
+
if (map[item.action] > 1) {
|
391
|
+
isError = true;
|
392
|
+
}
|
393
|
+
})
|
394
|
+
if (isError) {
|
395
|
+
this.$message({
|
396
|
+
message: "流程动作不能重复",
|
397
|
+
type: 'error',
|
398
|
+
duration: 2000,
|
399
|
+
})
|
400
|
+
return
|
273
401
|
}
|
402
|
+
this.dialogVisible2 = !1;
|
403
|
+
this.$set(this.optionModel, 'wfModifyDataConfig', this.tableData2)
|
274
404
|
},
|
275
|
-
|
276
|
-
|
405
|
+
changeValueType(row) {
|
406
|
+
row.toValue = null;
|
277
407
|
}
|
278
408
|
}
|
279
409
|
}
|