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
@@ -0,0 +1,292 @@
|
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<el-dialog
|
4
|
+
:title="$t1('过程更改业务数据')"
|
5
|
+
:append-to-body="true"
|
6
|
+
:modal-append-to-body="true"
|
7
|
+
:close-on-click-modal="false"
|
8
|
+
:visible.sync="showDialog"
|
9
|
+
:modal="false"
|
10
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_0"
|
11
|
+
width="1200px"
|
12
|
+
@close="dialogClose"
|
13
|
+
v-el-drag-dialog
|
14
|
+
v-el-dialog-center
|
15
|
+
>
|
16
|
+
<div class="cont">
|
17
|
+
<div class="grid-height" style="height: 500px">
|
18
|
+
<vxe-grid
|
19
|
+
class="is-pointer"
|
20
|
+
ref="table-m1"
|
21
|
+
:data="tableData"
|
22
|
+
v-bind="vxeOption"
|
23
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
24
|
+
@custom="$vxeTableUtil.customHandle"
|
25
|
+
>
|
26
|
+
<template #form>
|
27
|
+
<div class="clearfix screen-btns">
|
28
|
+
<div class="fl">
|
29
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="addItem">
|
30
|
+
{{ $t1('新增') }}
|
31
|
+
</vxe-button>
|
32
|
+
</div>
|
33
|
+
<div class="fl screen-breadcrumb" style="margin-left: 30px;">
|
34
|
+
<span style="font-size: 12px;">{{ $t1('流程模板名称') }}:</span>
|
35
|
+
{{ objConfigItem.modelName }}
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</template>
|
39
|
+
<template #user="{row,rowIndex}">
|
40
|
+
<el-input
|
41
|
+
class="search-input"
|
42
|
+
v-model="row.nickName"
|
43
|
+
clearable
|
44
|
+
@clear="
|
45
|
+
row.userId = null;
|
46
|
+
"
|
47
|
+
v-if="!row._isParent"
|
48
|
+
v-el-readonly
|
49
|
+
>
|
50
|
+
<i slot="suffix" class="el-input__icon el-icon-search" @click="openUserRowDialog(row,rowIndex)"></i>
|
51
|
+
</el-input>
|
52
|
+
<template v-else>{{ row.nickName }}</template>
|
53
|
+
</template>
|
54
|
+
<template #switch="{row,column,rowIndex}">
|
55
|
+
<el-switch v-model="row[column.field]" :key="column.field+rowIndex" :active-value="1"
|
56
|
+
:inactive-value="0" :disabled="column.params.disabled"></el-switch>
|
57
|
+
</template>
|
58
|
+
</vxe-grid>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
<span slot="footer" class="dialog-footer">
|
62
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
63
|
+
<i class="el-icon-close el-icon"></i>
|
64
|
+
{{ $t1('取 消') }}
|
65
|
+
</el-button>
|
66
|
+
<el-button type="primary" @click="saveData" class="button-sty">
|
67
|
+
<i class="el-icon-check el-icon"></i>
|
68
|
+
{{ $t1('确 定') }}
|
69
|
+
</el-button>
|
70
|
+
</span>
|
71
|
+
</el-dialog>
|
72
|
+
</div>
|
73
|
+
</template>
|
74
|
+
|
75
|
+
<script>
|
76
|
+
|
77
|
+
export default {
|
78
|
+
props: {
|
79
|
+
objConfigItem: Object,
|
80
|
+
serviceId: String
|
81
|
+
},
|
82
|
+
components: {},
|
83
|
+
computed: {
|
84
|
+
current_prefix() {
|
85
|
+
return '/' + this.serviceId;
|
86
|
+
}
|
87
|
+
},
|
88
|
+
async mounted() {
|
89
|
+
this.initTableList();
|
90
|
+
},
|
91
|
+
data() {
|
92
|
+
let that = this;
|
93
|
+
return {
|
94
|
+
showDialog: true,
|
95
|
+
activeName: 'second',
|
96
|
+
value10: '',
|
97
|
+
dataId: '',
|
98
|
+
showEdit: false,
|
99
|
+
formData: {
|
100
|
+
nickName: null,
|
101
|
+
},
|
102
|
+
vxeOption: {},
|
103
|
+
showUserDialog: false,
|
104
|
+
showPositionDialog: false,
|
105
|
+
showSaleOrgDialog: false,
|
106
|
+
operateIndex: 0,
|
107
|
+
showViewDialog: false,
|
108
|
+
|
109
|
+
tableData: [],
|
110
|
+
showUserRowDialog: false,
|
111
|
+
showUserAddDialog: false,
|
112
|
+
currentRow: null,
|
113
|
+
isDev: true
|
114
|
+
|
115
|
+
};
|
116
|
+
},
|
117
|
+
methods: {
|
118
|
+
searchEvent() {
|
119
|
+
this.$refs['table-m1'].commitProxy('reload');
|
120
|
+
},
|
121
|
+
resetEvent() {
|
122
|
+
this.formData = {};
|
123
|
+
this.$refs['table-m1'].commitProxy('reload');
|
124
|
+
},
|
125
|
+
initTableList() {
|
126
|
+
let that = this;
|
127
|
+
let tableOption = {
|
128
|
+
vue: this,
|
129
|
+
tableRef: 'table-m1',
|
130
|
+
tableName: 'user_wf-objConfig-wfBizDataSetting-m1',
|
131
|
+
config: {
|
132
|
+
height: "auto"
|
133
|
+
},
|
134
|
+
columns: [
|
135
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
136
|
+
{
|
137
|
+
title: this.$t1('流程动作'),
|
138
|
+
field: 'action',
|
139
|
+
width: 150,
|
140
|
+
slots: {
|
141
|
+
default: ({row}) => {
|
142
|
+
return [
|
143
|
+
<el-select v-model={row.action} clearable>
|
144
|
+
<el-option label="流程启动" value="start"></el-option>
|
145
|
+
<el-option label="流程中断" value="interrupt"></el-option>
|
146
|
+
<el-option label="流程完成" value="end"></el-option>
|
147
|
+
</el-select>
|
148
|
+
];
|
149
|
+
}
|
150
|
+
}
|
151
|
+
},
|
152
|
+
{
|
153
|
+
title: this.$t1('数据库表名'),
|
154
|
+
field: 'tableName',
|
155
|
+
width: 250,
|
156
|
+
slots: {
|
157
|
+
default: ({row}) => {
|
158
|
+
return [
|
159
|
+
<el-input v-model={row.tableName} clearable></el-input>
|
160
|
+
];
|
161
|
+
}
|
162
|
+
}
|
163
|
+
},
|
164
|
+
{
|
165
|
+
title: this.$t1('数据库字段名'),
|
166
|
+
field: 'tableField',
|
167
|
+
width: 250,
|
168
|
+
slots: {
|
169
|
+
default: ({row}) => {
|
170
|
+
return [
|
171
|
+
<el-input v-model={row.tableField} clearable></el-input>
|
172
|
+
];
|
173
|
+
}
|
174
|
+
}
|
175
|
+
},
|
176
|
+
{
|
177
|
+
title: this.$t1('设置的值'),
|
178
|
+
field: 'toValue',
|
179
|
+
width: 250,
|
180
|
+
slots: {
|
181
|
+
default: ({row}) => {
|
182
|
+
return [
|
183
|
+
<el-input v-model={row.toValue} clearable></el-input>
|
184
|
+
];
|
185
|
+
}
|
186
|
+
}
|
187
|
+
},
|
188
|
+
{
|
189
|
+
width: 100,
|
190
|
+
fixed: 'right',
|
191
|
+
title: '',
|
192
|
+
sortable: false,
|
193
|
+
slots: {
|
194
|
+
default: ({row, rowIndex, $table}) => {
|
195
|
+
return [
|
196
|
+
<a
|
197
|
+
href="javascript:void(0);"
|
198
|
+
class="a-link"
|
199
|
+
onClick={() => {
|
200
|
+
this.tableData.splice(rowIndex, 1)
|
201
|
+
}}
|
202
|
+
>
|
203
|
+
<el-tooltip enterable={false} effect="dark" content={this.$t1('删除')} placement="top"
|
204
|
+
popper-class="tooltip-skin">
|
205
|
+
<i class="el-icon-delete"/>
|
206
|
+
</el-tooltip>
|
207
|
+
</a>
|
208
|
+
]
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
]
|
213
|
+
};
|
214
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
215
|
+
this.vxeOption = opts;
|
216
|
+
});
|
217
|
+
this.initData();
|
218
|
+
},
|
219
|
+
initData() {
|
220
|
+
this.$http({
|
221
|
+
// aes: true,
|
222
|
+
url: this.current_prefix + '/wf_biz_data_setting/list',
|
223
|
+
method: `post`,
|
224
|
+
data: {
|
225
|
+
objConfigItemId: this.objConfigItem.id,
|
226
|
+
modelId: this.objConfigItem.modelId,
|
227
|
+
},
|
228
|
+
isLoading: true,
|
229
|
+
modalStrictly: true,
|
230
|
+
success: res1 => {
|
231
|
+
let tableData = res1.objx || [];
|
232
|
+
this.tableData = tableData;
|
233
|
+
|
234
|
+
}
|
235
|
+
});
|
236
|
+
},
|
237
|
+
dialogClose() {
|
238
|
+
this.showDialog = false
|
239
|
+
this.$emit('update:visiable', false)
|
240
|
+
},
|
241
|
+
dialogConfirm() {
|
242
|
+
this.$emit('confirm');
|
243
|
+
this.$emit('update:visiable', false);
|
244
|
+
},
|
245
|
+
addItem() {
|
246
|
+
let row = this.createRow();
|
247
|
+
this.tableData.push(row)
|
248
|
+
},
|
249
|
+
saveData() {
|
250
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
251
|
+
var url = this.current_prefix + `/wf_biz_data_setting/saveUpdates`;
|
252
|
+
this.$http({
|
253
|
+
aes: true,
|
254
|
+
url: url,
|
255
|
+
method: `post`,
|
256
|
+
data: {
|
257
|
+
objConfigItemId: this.objConfigItem.id,
|
258
|
+
modelId: this.objConfigItem.modelId,
|
259
|
+
wfBizDataSettingDTOs: this.tableData
|
260
|
+
},
|
261
|
+
isLoading: true,
|
262
|
+
success: res => {
|
263
|
+
this.$message({
|
264
|
+
message: res.content,
|
265
|
+
type: 'success',
|
266
|
+
duration: 500,
|
267
|
+
onClose: t => {
|
268
|
+
this.dialogConfirm()
|
269
|
+
}
|
270
|
+
});
|
271
|
+
}
|
272
|
+
});
|
273
|
+
});
|
274
|
+
},
|
275
|
+
createRow() {
|
276
|
+
let row = {
|
277
|
+
objConfigItemId: this.objConfigItem.id,
|
278
|
+
modelId: this.objConfigItem.modelId,
|
279
|
+
action: 'start',
|
280
|
+
tableName: null,
|
281
|
+
tableField: null,
|
282
|
+
toValue: null
|
283
|
+
}
|
284
|
+
return row;
|
285
|
+
}
|
286
|
+
}
|
287
|
+
}
|
288
|
+
</script>
|
289
|
+
|
290
|
+
<style scoped>
|
291
|
+
|
292
|
+
</style>
|