cloud-web-corejs 1.0.54-dev.6 → 1.0.54-dev.61
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 +8 -2
- package/src/components/VabUpload/index.vue +2 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/view.vue +2 -1
- package/src/components/excelExport/exportFieldDialog.vue +160 -22
- package/src/components/excelExport/index.js +6 -5
- package/src/components/excelExport/index.vue +8 -5
- package/src/components/excelExport/mixins.js +4 -1
- package/src/components/excelImport/index.vue +2 -1
- package/src/components/excelImport/mixins.js +1 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +125 -103
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -1
- package/src/components/fileLibrary/fileObjNotifyEdit.vue +192 -0
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +16 -9
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +4 -1
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +1 -1
- package/src/components/fileLibrary/mixins/indexMixins.js +31 -17
- package/src/components/onlineTalk/index.vue +327 -5
- package/src/components/onlineTalk/mixins.js +1 -1
- package/src/components/table/index.js +2 -1
- package/src/components/tempStorage/tempStorageDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +1 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +1 -0
- package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +10 -2
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
- package/src/components/xform/form-designer/form-widget/dialog/preformDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +5 -4
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +3 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +982 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +12 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +5 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +77 -0
- package/src/components/xform/form-designer/indexMixin.js +771 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +6 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +160 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +184 -82
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +3 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +9 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1668 -1
- package/src/components/xform/form-render/indexMixin.js +1 -23
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/router/modules/customer.js +15 -0
- package/src/store/config/index.js +1 -1
- package/src/store/modules/permission.js +1 -1
- package/src/utils/renderUtils.js +76 -0
- package/src/utils/request.js +28 -28
- package/src/utils/vab.js +1 -963
- package/src/views/bd/setting/bd_attach_setting/edit.vue +1 -1
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +1 -1
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
- package/src/views/bd/setting/form_template/edit.vue +2 -2
- package/src/views/bd/setting/form_template/list.vue +4 -2
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +280 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +434 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
- package/src/views/bd/setting/form_template/wf_list.vue +127 -0
- package/src/views/bd/setting/menu_kind/authDialog.vue +1 -1
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
- package/src/views/bd/setting/table_model/list.vue +4 -2
- package/src/views/user/area/dialog.vue +21 -8
- package/src/views/user/company_info/dialog.vue +17 -8
- package/src/views/user/extend_datasource/list.vue +1 -1
- package/src/views/user/file_type/edit.vue +30 -1
- package/src/views/user/file_type/list.vue +28 -0
- package/src/views/user/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- package/src/views/user/login/default.vue +4 -2
- package/src/views/user/outLink/form_view.vue +39 -12
- package/src/views/user/outLink/view.vue +39 -13
- package/src/views/user/user/edit.vue +7 -7
- package/src/views/user/user/form_edit.vue +117 -49
- package/src/views/user/user/form_list.vue +1 -0
- package/src/views/user/wf/wf_obj_config/list.vue +30 -2
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
- package/src/components/excelExport/export-panel.js +0 -458
|
@@ -116,6 +116,17 @@
|
|
|
116
116
|
</table>
|
|
117
117
|
</template>
|
|
118
118
|
</baseTabPane>
|
|
119
|
+
<baseTabPane :label="$t1('表单分类信息')">
|
|
120
|
+
<template #default>
|
|
121
|
+
<vxe-grid
|
|
122
|
+
ref="table-m1"
|
|
123
|
+
:data="menuKindAuthDTOs"
|
|
124
|
+
v-bind="vxeOption"
|
|
125
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
126
|
+
@custom="$vxeTableUtil.customHandle"
|
|
127
|
+
></vxe-grid>
|
|
128
|
+
</template>
|
|
129
|
+
</baseTabPane>
|
|
119
130
|
</baseTabs>
|
|
120
131
|
</el-form>
|
|
121
132
|
<groudDialog v-if="showGroupDialog" :visiable.sync="showGroupDialog"
|
|
@@ -126,6 +137,7 @@
|
|
|
126
137
|
<script>
|
|
127
138
|
import xeUtils from "xe-utils";
|
|
128
139
|
import groudDialog from "@base/views/user/groups/dialog.vue";
|
|
140
|
+
import {getBdEnv} from "@base/api/user";
|
|
129
141
|
|
|
130
142
|
export default {
|
|
131
143
|
name: 'UserEdit',
|
|
@@ -170,7 +182,6 @@ export default {
|
|
|
170
182
|
flag: 8,
|
|
171
183
|
groupCode: null
|
|
172
184
|
},
|
|
173
|
-
vxeOption: {},
|
|
174
185
|
companyInfoOption: {},
|
|
175
186
|
userRoleOption: {},
|
|
176
187
|
showRoleDialog: false,
|
|
@@ -218,7 +229,10 @@ export default {
|
|
|
218
229
|
showCountryDialog: false,
|
|
219
230
|
userInfo: {},
|
|
220
231
|
userGroups: [],
|
|
221
|
-
showGroupDialog: false
|
|
232
|
+
showGroupDialog: false,
|
|
233
|
+
vxeOption: {},
|
|
234
|
+
menuKindAuthDTOs: [],
|
|
235
|
+
isDev: true
|
|
222
236
|
};
|
|
223
237
|
},
|
|
224
238
|
computed: {
|
|
@@ -231,19 +245,19 @@ export default {
|
|
|
231
245
|
},
|
|
232
246
|
async mounted() {
|
|
233
247
|
|
|
234
|
-
// this.getEainsGroupDTO();
|
|
235
|
-
// await this.initOutUserRoleCode();
|
|
236
|
-
// await this.initDistributorRole();
|
|
237
248
|
this.getUserInfo()
|
|
238
249
|
this.getUserGroups()
|
|
239
250
|
this.getData();
|
|
240
251
|
this.getConpanyInfo()
|
|
252
|
+
await this.initBdEnv();
|
|
253
|
+
this.initTableM1();
|
|
241
254
|
},
|
|
242
255
|
methods: {
|
|
243
256
|
getData() {
|
|
244
257
|
if (this.dataId && !isNaN(this.dataId)) {
|
|
245
258
|
this.isEdit = true;
|
|
246
259
|
this.$commonHttp({
|
|
260
|
+
aes: true,
|
|
247
261
|
url: USER_PREFIX + `/user/get`,
|
|
248
262
|
method: `post`,
|
|
249
263
|
data: {
|
|
@@ -287,6 +301,7 @@ export default {
|
|
|
287
301
|
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
288
302
|
var url = USER_PREFIX + (this.isEdit ? '/user/update' : '/user/save');
|
|
289
303
|
this.$http({
|
|
304
|
+
aes: true,
|
|
290
305
|
url: url,
|
|
291
306
|
method: `post`,
|
|
292
307
|
data: this.user,
|
|
@@ -317,6 +332,7 @@ export default {
|
|
|
317
332
|
getSaleOrgData() {
|
|
318
333
|
if (this.dataId) {
|
|
319
334
|
this.$http({
|
|
335
|
+
aes: true,
|
|
320
336
|
url: USER_PREFIX + '/user/getUserSaleOrg',
|
|
321
337
|
method: `post`,
|
|
322
338
|
data: {id: this.dataId},
|
|
@@ -337,6 +353,7 @@ export default {
|
|
|
337
353
|
getUserRoleData() {
|
|
338
354
|
if (this.dataId) {
|
|
339
355
|
this.$http({
|
|
356
|
+
aes: true,
|
|
340
357
|
url: USER_PREFIX + '/user/getUserRole',
|
|
341
358
|
method: `post`,
|
|
342
359
|
data: {id: this.dataId},
|
|
@@ -360,6 +377,7 @@ export default {
|
|
|
360
377
|
getCompanyInfoData(callback) {
|
|
361
378
|
if (this.dataId) {
|
|
362
379
|
this.$http({
|
|
380
|
+
aes: true,
|
|
363
381
|
url: USER_PREFIX + '/user/getUserCompanyInfo',
|
|
364
382
|
method: `post`,
|
|
365
383
|
data: {id: this.dataId},
|
|
@@ -409,6 +427,7 @@ export default {
|
|
|
409
427
|
},
|
|
410
428
|
getConpanyInfo() {
|
|
411
429
|
this.$http({
|
|
430
|
+
aes: true,
|
|
412
431
|
url: USER_PREFIX + '/company_info/getCurrent',
|
|
413
432
|
method: `post`,
|
|
414
433
|
isLoading: true,
|
|
@@ -431,53 +450,11 @@ export default {
|
|
|
431
450
|
addCurrentCompany(callback) {
|
|
432
451
|
this.confirmInsertCompany([this.companyInfo], callback);
|
|
433
452
|
},
|
|
434
|
-
initDistributorRole() {
|
|
435
|
-
if (this.outUserCodes && this.outUserCodes.length == 1) {
|
|
436
|
-
return this.$http({
|
|
437
|
-
url: USER_PREFIX + '/role/list',
|
|
438
|
-
method: 'post',
|
|
439
|
-
success: res => {
|
|
440
|
-
let roleList = res.objx || [];
|
|
441
|
-
let distributorCode = this.outUserCodes[0];
|
|
442
|
-
this.distributorRole = roleList.find(item => item.code == distributorCode);
|
|
443
|
-
}
|
|
444
|
-
});
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
async initOutUserRoleCode() {
|
|
448
|
-
//初始化外部用户编码
|
|
449
|
-
return this.$http({
|
|
450
|
-
url: USER_PREFIX + '/system_parameter/getByCode',
|
|
451
|
-
method: 'post',
|
|
452
|
-
data: {"code": "outUserRoleCode"},
|
|
453
|
-
success: res => {
|
|
454
|
-
let value = (!res.objx || !res.objx.value) ? "distributor" : res.objx.value;
|
|
455
|
-
let codes = value.split(',');
|
|
456
|
-
this.outUserCodes = codes;//外部用户编码
|
|
457
|
-
this.initRoleDialogParam();//初始化角色弹框的查询参数
|
|
458
|
-
}
|
|
459
|
-
});
|
|
460
|
-
},
|
|
461
|
-
initRoleDialogParam() {
|
|
462
|
-
//初始化角色弹框的查询参数
|
|
463
|
-
if (this.userType == 1) {
|
|
464
|
-
//企业用户
|
|
465
|
-
this.roleDialogParam = {
|
|
466
|
-
queryAll: true,
|
|
467
|
-
neCodes: [...this.outUserCodes]
|
|
468
|
-
};
|
|
469
|
-
} else if (this.userType == 2) {
|
|
470
|
-
//外部用户
|
|
471
|
-
this.roleDialogParam = {
|
|
472
|
-
queryAll: true,
|
|
473
|
-
eqCodes: [...this.outUserCodes]
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
},
|
|
477
453
|
unlock() {
|
|
478
454
|
this.$baseConfirm(this.$t1('您确定要解锁吗?')).then(() => {
|
|
479
455
|
var url = USER_PREFIX + '/user/unlockLoginAccount';
|
|
480
456
|
this.$http({
|
|
457
|
+
aes: true,
|
|
481
458
|
url: url,
|
|
482
459
|
method: `post`,
|
|
483
460
|
data: {
|
|
@@ -506,6 +483,7 @@ export default {
|
|
|
506
483
|
},
|
|
507
484
|
getUserInfo() {
|
|
508
485
|
return this.$http({
|
|
486
|
+
aes: true,
|
|
509
487
|
url: USER_PREFIX + '/user/currentUser',
|
|
510
488
|
method: 'post',
|
|
511
489
|
success: res => {
|
|
@@ -519,6 +497,7 @@ export default {
|
|
|
519
497
|
},
|
|
520
498
|
getUserGroups() {
|
|
521
499
|
return this.$http({
|
|
500
|
+
aes: true,
|
|
522
501
|
url: USER_PREFIX + '/groups/listPage',
|
|
523
502
|
method: 'post',
|
|
524
503
|
data: {},
|
|
@@ -526,7 +505,96 @@ export default {
|
|
|
526
505
|
this.userGroups = res.objx?.records || [];
|
|
527
506
|
}
|
|
528
507
|
});
|
|
529
|
-
}
|
|
508
|
+
},
|
|
509
|
+
initTableM1() {
|
|
510
|
+
const tableOption = {
|
|
511
|
+
vue: this,
|
|
512
|
+
tableRef: 'table-m1',
|
|
513
|
+
tableName: 'edit-user-menuKind-m1',
|
|
514
|
+
columns: [
|
|
515
|
+
{type: 'checkbox', fixed: 'left', width: 48, resizable: false},
|
|
516
|
+
{
|
|
517
|
+
title: this.$t1('表单分类名称'),
|
|
518
|
+
field: 'menuKindName',
|
|
519
|
+
width: 350,
|
|
520
|
+
fixed: 'left'
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
title: this.$t1('编辑'),
|
|
524
|
+
field: 'editAuth',
|
|
525
|
+
width: 150,
|
|
526
|
+
slots: {
|
|
527
|
+
default: ({row}) => {
|
|
528
|
+
if (row.editAuth) {
|
|
529
|
+
return [<div class="txt-status">{this.$t1('是')}</div>];
|
|
530
|
+
} else {
|
|
531
|
+
return [<div class="txt-status s-3">{this.$t1('否')}</div>];
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
title: this.$t1('导出发布'),
|
|
538
|
+
field: 'exportAuth',
|
|
539
|
+
width: 150,
|
|
540
|
+
slots: {
|
|
541
|
+
default: ({row}) => {
|
|
542
|
+
if (row.exportAuth) {
|
|
543
|
+
return [<div class="txt-status">{this.$t1('是')}</div>];
|
|
544
|
+
} else {
|
|
545
|
+
return [<div class="txt-status s-3">{this.$t1('否')}</div>];
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
...(this.isDev ? [{
|
|
551
|
+
title: this.$t1('可选导出发布类型'),
|
|
552
|
+
field: 'selectTypeAuth',
|
|
553
|
+
width: 200,
|
|
554
|
+
slots: {
|
|
555
|
+
default: ({row}) => {
|
|
556
|
+
if (row.selectTypeAuth) {
|
|
557
|
+
return [<div class="txt-status">{this.$t1('是')}</div>];
|
|
558
|
+
} else {
|
|
559
|
+
return [<div class="txt-status s-3">{this.$t1('否')}</div>];
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}] : []),
|
|
564
|
+
{
|
|
565
|
+
width: 47,
|
|
566
|
+
fixed: 'right',
|
|
567
|
+
title: '',
|
|
568
|
+
sortable: false
|
|
569
|
+
}
|
|
570
|
+
]
|
|
571
|
+
};
|
|
572
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
573
|
+
this.vxeOption = opts;
|
|
574
|
+
});
|
|
575
|
+
if (this.dataId) {
|
|
576
|
+
this.$http({
|
|
577
|
+
aes: true,
|
|
578
|
+
url: USER_PREFIX + `/menu_kind_auth/list`,
|
|
579
|
+
method: `post`,
|
|
580
|
+
data: {
|
|
581
|
+
userId: this.dataId
|
|
582
|
+
},
|
|
583
|
+
isLoading: true,
|
|
584
|
+
modalStrictly: true,
|
|
585
|
+
success: res => {
|
|
586
|
+
this.menuKindAuthDTOs = res.objx || [];
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
initBdEnv() {
|
|
592
|
+
return getBdEnv({
|
|
593
|
+
success: res => {
|
|
594
|
+
this.isDev = res.objx == "dev"
|
|
595
|
+
}
|
|
596
|
+
});
|
|
597
|
+
},
|
|
530
598
|
}
|
|
531
599
|
};
|
|
532
600
|
</script>
|
|
@@ -110,6 +110,9 @@
|
|
|
110
110
|
<positionDialog v-if="showPositionDialog" :visiable.sync="showPositionDialog" @confirm="confirmPosition"/>
|
|
111
111
|
<scriptDescriptionDialog path="static/readme/Wf.txt" v-if="showScriptDescriptionDialog"
|
|
112
112
|
:visiable.sync="showScriptDescriptionDialog"></scriptDescriptionDialog>
|
|
113
|
+
<wfBizDataSettingDialog v-if="showWfBizDataSettingDialog" :visiable.sync="showWfBizDataSettingDialog"
|
|
114
|
+
@confirm="confirmWfBizDataSettingDialog"
|
|
115
|
+
:objConfigItem="objConfigItem" :serviceId="currentRow.serviceId"></wfBizDataSettingDialog>
|
|
113
116
|
</div>
|
|
114
117
|
</template>
|
|
115
118
|
<script>
|
|
@@ -123,6 +126,8 @@ import positionDialog from '../../../../views/user/position/dialog.vue';
|
|
|
123
126
|
import wfParamEdit from '../../../../views/user/wf/wf_param/edit'
|
|
124
127
|
import scriptDescriptionDialog from '@base/components/scriptDescription/dialog'
|
|
125
128
|
import wfDiyAttributeEdit from '../../../../views/user/wf/wf_diy_attribute/edit'
|
|
129
|
+
import wfBizDataSettingDialog from "./wfBizDataSettingDialog";
|
|
130
|
+
|
|
126
131
|
|
|
127
132
|
export default {
|
|
128
133
|
name: 'wf_obj_config:list',
|
|
@@ -133,7 +138,8 @@ export default {
|
|
|
133
138
|
userDialog,
|
|
134
139
|
positionDialog,
|
|
135
140
|
scriptDescriptionDialog,
|
|
136
|
-
wfDiyAttributeEdit
|
|
141
|
+
wfDiyAttributeEdit,
|
|
142
|
+
wfBizDataSettingDialog
|
|
137
143
|
},
|
|
138
144
|
created() {
|
|
139
145
|
},
|
|
@@ -180,7 +186,10 @@ export default {
|
|
|
180
186
|
wfAssignFormTemplateCallback: null,
|
|
181
187
|
|
|
182
188
|
showScriptDescriptionDialog: false,
|
|
183
|
-
showWfDiyAttributeEdit: false
|
|
189
|
+
showWfDiyAttributeEdit: false,
|
|
190
|
+
|
|
191
|
+
objConfigItem: null,
|
|
192
|
+
showWfBizDataSettingDialog: false
|
|
184
193
|
};
|
|
185
194
|
},
|
|
186
195
|
watch: {
|
|
@@ -488,6 +497,18 @@ export default {
|
|
|
488
497
|
popper-class="tooltip-skin">
|
|
489
498
|
<i class="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
|
|
490
499
|
</el-tooltip>
|
|
500
|
+
</a>,
|
|
501
|
+
<a
|
|
502
|
+
href="javascript:void(0);"
|
|
503
|
+
onClick={() => {
|
|
504
|
+
this.openWfBizDataSettingDialog(row, this.currentRow.serviceId);
|
|
505
|
+
}}
|
|
506
|
+
class="a-link"
|
|
507
|
+
>
|
|
508
|
+
<el-tooltip enterable={false} effect="dark" content={this.$t1('配置流程过程更改业务数据')} placement="top"
|
|
509
|
+
popper-class="tooltip-skin">
|
|
510
|
+
<i class="el-icon-setting"/>
|
|
511
|
+
</el-tooltip>
|
|
491
512
|
</a>
|
|
492
513
|
];
|
|
493
514
|
}
|
|
@@ -608,6 +629,13 @@ export default {
|
|
|
608
629
|
this.showScriptDescriptionDialog = true;
|
|
609
630
|
};
|
|
610
631
|
},
|
|
632
|
+
openWfBizDataSettingDialog(row) {
|
|
633
|
+
this.objConfigItem = row;
|
|
634
|
+
this.showWfBizDataSettingDialog = true
|
|
635
|
+
},
|
|
636
|
+
confirmWfBizDataSettingDialog(rows) {
|
|
637
|
+
|
|
638
|
+
}
|
|
611
639
|
}
|
|
612
640
|
};
|
|
613
641
|
</script>
|
|
@@ -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>
|