cloud-web-corejs 1.0.28 → 1.0.30
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 -1
- package/src/components/formOplog/mixins.js +1 -1
- package/src/components/langTag/addButton.vue +22 -0
- package/src/components/langTag/deleteButton.vue +22 -0
- package/src/components/langTag/mixins/addButton.js +5 -0
- package/src/components/langTag/mixins/deleteButton.js +5 -0
- package/src/components/langTag/mixins/view.js +5 -0
- package/src/components/langTag/view.vue +33 -0
- package/src/components/projectTag/addButton.vue +3 -50
- package/src/components/projectTag/deleteButton.vue +3 -50
- package/src/components/projectTag/mixins/addButton.js +5 -0
- package/src/components/projectTag/mixins/deleteButton.js +5 -0
- package/src/components/projectTag/mixins/view.js +5 -0
- package/src/components/projectTag/view.vue +33 -72
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/index.js +0 -2
- package/src/layout/components/Sidebar/default.vue +3 -4
- package/src/router/modules/system.js +1 -1
- package/src/store/config/index.js +1 -1
- package/src/store/getters.js +2 -0
- package/src/store/modules/permission.js +1 -1
- package/src/store/modules/user.js +2 -1
- package/src/utils/request.js +28 -29
- package/src/utils/vab.js +27 -27
- package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -87
- package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -92
- package/src/views/bd/setting/bd_attach_setting/list.vue +4 -214
- package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +89 -0
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +96 -0
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +219 -0
- package/src/views/bd/setting/form_script/dialog.vue +3 -137
- package/src/views/bd/setting/form_script/edit.vue +3 -127
- package/src/views/bd/setting/form_script/edit1.vue +3 -142
- package/src/views/bd/setting/form_script/form_list.vue +4 -259
- package/src/views/bd/setting/form_script/list.vue +6 -174
- package/src/views/bd/setting/form_script/list1.vue +6 -333
- package/src/views/bd/setting/form_script/list2.vue +3 -4
- package/src/views/bd/setting/form_script/mixins/dialog.js +142 -0
- package/src/views/bd/setting/form_script/mixins/edit.js +134 -0
- package/src/views/bd/setting/form_script/mixins/edit1.js +149 -0
- package/src/views/bd/setting/form_script/mixins/form_list.js +264 -0
- package/src/views/bd/setting/form_script/mixins/list.js +176 -0
- package/src/views/bd/setting/form_script/mixins/list1.js +336 -0
- package/src/views/bd/setting/form_script/mixins/list2.js +14 -0
- package/src/views/bd/setting/form_template/dialog.vue +104 -212
- package/src/views/bd/setting/form_template/edit.vue +183 -329
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +46 -131
- package/src/views/bd/setting/form_template/ftHistoryDialog.vue +88 -175
- package/src/views/bd/setting/form_template/itemEdit.vue +174 -270
- package/src/views/bd/setting/form_template/itemList.vue +56 -300
- package/src/views/bd/setting/form_template/list.vue +7 -562
- package/src/views/bd/setting/form_template/mixins/dialog.js +114 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +155 -0
- package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +94 -0
- package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +95 -0
- package/src/views/bd/setting/form_template/mixins/itemEdit.js +106 -0
- package/src/views/bd/setting/form_template/mixins/itemList.js +254 -0
- package/src/views/bd/setting/form_template/mixins/list.js +562 -0
- package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -0
- package/src/views/bd/setting/form_template/preformDialog.vue +57 -77
- package/src/views/bd/setting/menu_kind/authDialog.vue +84 -308
- package/src/views/bd/setting/menu_kind/dialog.vue +89 -226
- package/src/views/bd/setting/menu_kind/list.vue +6 -186
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +255 -0
- package/src/views/bd/setting/menu_kind/mixins/dialog.js +144 -0
- package/src/views/bd/setting/menu_kind/mixins/list.js +187 -0
- package/src/views/bd/setting/table_model/dialog.vue +95 -161
- package/src/views/bd/setting/table_model/edit.vue +5 -767
- package/src/views/bd/setting/table_model/list.vue +8 -369
- package/src/views/bd/setting/table_model/mixins/dialog.js +74 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +778 -0
- package/src/views/bd/setting/table_model/mixins/list.js +367 -0
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -0
- package/src/views/bd/setting/table_model/zdDialog.vue +95 -201
- package/src/views/support/export_template/edit.vue +40 -36
- package/src/views/support/export_template/list.vue +40 -52
- package/src/views/user/access_log/edit.vue +18 -17
- package/src/views/user/access_log/list.vue +27 -26
- package/src/views/user/access_log/statistics_list.vue +19 -17
- package/src/views/user/api_request/edit.vue +14 -11
- package/src/views/user/api_request/list.vue +13 -11
- package/src/views/user/area/dialog.vue +14 -27
- package/src/views/user/area_attribute/configDialog.vue +11 -13
- package/src/views/user/area_attribute/edit.vue +8 -6
- package/src/views/user/area_attribute/list.vue +1 -1
- package/src/views/user/attachment/uploadDialog.vue +1 -1
- package/src/views/user/bill_setting/button/previewButton.vue +2 -2
- package/src/views/user/bill_setting/compareView.vue +1 -1
- package/src/views/user/bill_setting/edit.vue +24 -17
- package/src/views/user/bill_setting/h5_ModifyDialog.vue +1 -1
- package/src/views/user/bill_setting/itemViewDialog.vue +3 -66
- package/src/views/user/bill_setting/list.vue +28 -26
- package/src/views/user/bill_setting/mixins/wf.js +8 -8
- package/src/views/user/bill_setting/previewDialog.vue +1 -1
- package/src/views/user/bill_setting/render.vue +29 -29
- package/src/views/user/bill_setting/userDialog.vue +7 -5
- package/src/views/user/code_rules/edit.vue +21 -18
- package/src/views/user/code_rules/list.vue +27 -19
- package/src/views/user/commMenu/index.vue +3 -3
- package/src/views/user/common_attribute/edit.vue +7 -5
- package/src/views/user/common_attribute/itemEdit.vue +22 -22
- package/src/views/user/common_attribute/list.vue +25 -24
- package/src/views/user/common_script/edit.vue +12 -12
- package/src/views/user/common_script/list.vue +30 -32
- package/src/views/user/company_info/dialog.vue +9 -9
- package/src/views/user/company_info/edit.vue +11 -8
- package/src/views/user/country/dialog.vue +11 -9
- package/src/views/user/country/edit.vue +12 -9
- package/src/views/user/country/list.vue +12 -12
- package/src/views/user/data_type_setting/dialog.vue +10 -10
- package/src/views/user/data_type_setting/editDialog.vue +6 -6
- package/src/views/user/ea/eagroup/eaobj_list.vue +25 -25
- package/src/views/user/ea/eagroup/edit.vue +48 -42
- package/src/views/user/ea/eaobj/edit.vue +6 -5
- package/src/views/user/ea/eaobj/list.vue +9 -8
- package/src/views/user/extend_datasource/dialog.vue +19 -24
- package/src/views/user/extend_datasource/edit.vue +20 -16
- package/src/views/user/extend_datasource/list.vue +23 -24
- package/src/views/user/fieldTranslation/editDialog.vue +28 -28
- package/src/views/user/fieldTranslation/list.vue +59 -57
- package/src/views/user/field_values_invisible/edit.vue +15 -14
- package/src/views/user/field_values_invisible/list.vue +23 -22
- package/src/views/user/file_type/edit.vue +12 -21
- package/src/views/user/file_type/list.vue +21 -36
- package/src/views/user/file_type/userEdit.vue +14 -9
- package/src/views/user/file_view_area/edit.vue +3 -3
- package/src/views/user/file_view_area/itemEdit.vue +11 -9
- package/src/views/user/file_view_area/list.vue +17 -16
- package/src/views/user/file_view_ins/list.vue +29 -28
- package/src/views/user/file_view_ins/propertiesDialog.vue +15 -15
- package/src/views/user/form/form_template/edit.vue +1 -1
- package/src/views/user/form/form_template/itemEdit.vue +1 -1
- package/src/views/user/form/form_template/itemList.vue +2 -2
- package/src/views/user/form/form_template/list.vue +3 -3
- package/src/views/user/form/form_type/edit.vue +1 -1
- package/src/views/user/form/form_type/list.vue +1 -1
- package/src/views/user/form/report_requestaccess/edit.vue +1 -1
- package/src/views/user/form/report_requestaccess/list.vue +1 -1
- package/src/views/user/form/vform/designer.vue +2 -0
- package/src/views/user/form/vform/out_render.vue +1 -0
- package/src/views/user/form/vform/render.vue +1 -0
- package/src/views/user/form/view/list.vue +2 -1
- package/src/views/user/groups/dialog.vue +159 -0
- package/src/views/user/groups/edit.vue +131 -0
- package/src/views/user/groups/list.vue +167 -0
- package/src/views/user/home/index.vue +1 -2
- package/src/views/user/lang_tag/dialog.vue +185 -0
- package/src/views/user/lang_tag/edit.vue +138 -0
- package/src/views/user/lang_tag/list.vue +170 -0
- package/src/views/user/language_setting/edit.vue +11 -9
- package/src/views/user/language_setting/list.vue +20 -18
- package/src/views/user/login/default.vue +129 -0
- package/src/views/user/login/index.vue +3 -117
- package/src/views/user/menu/list.vue +39 -55
- package/src/views/user/mobile_menu/list.vue +18 -54
- package/src/views/user/notify_message/dialog.vue +1 -1
- package/src/views/user/notify_message/infoDialog.vue +1 -1
- package/src/views/user/notify_message/list.vue +24 -23
- package/src/views/user/notify_template/edit.vue +13 -11
- package/src/views/user/notify_template/list.vue +19 -16
- package/src/views/user/oplog/edit.vue +12 -12
- package/src/views/user/oplog/list.vue +20 -18
- package/src/views/user/position/dialog.vue +6 -6
- package/src/views/user/position/edit.vue +11 -8
- package/src/views/user/position/list.vue +11 -11
- package/src/views/user/project_tag/dialog.vue +11 -9
- package/src/views/user/project_tag/edit.vue +8 -6
- package/src/views/user/project_tag/list.vue +15 -12
- package/src/views/user/push_setting/edit.vue +20 -17
- package/src/views/user/push_setting/list.vue +1 -1
- package/src/views/user/role/dialog.vue +11 -11
- package/src/views/user/role/edit.vue +14 -12
- package/src/views/user/role/list.vue +14 -12
- package/src/views/user/sale_org/dialog.vue +12 -12
- package/src/views/user/sale_org/list.vue +43 -48
- package/src/views/user/system_notice/edit.vue +13 -11
- package/src/views/user/system_notice/infoDialog.vue +2 -2
- package/src/views/user/system_notice/list.vue +19 -17
- package/src/views/user/system_parameter/edit.vue +7 -6
- package/src/views/user/system_parameter/list.vue +12 -10
- package/src/views/user/user/edit.vue +1 -1
- package/src/views/user/user/form_edit.vue +50 -7
- package/src/views/user/user/form_list.vue +34 -132
- package/src/views/user/user/info.vue +20 -19
- package/src/views/user/user/infoEdit.vue +18 -18
- package/src/views/user/user/infoIframeDialog.vue +1 -1
- package/src/views/user/user/modifyPasswordDialog.vue +9 -9
- package/src/views/user/wf/iframe/dialog.vue +1 -1
- package/src/views/user/wf/wf_auto_submit_data/edit.vue +11 -10
- package/src/views/user/wf/wf_auto_submit_data/edith.vue +14 -13
- package/src/views/user/wf/wf_auto_submit_data/list.vue +43 -41
- package/src/views/user/wf/wf_diy_attribute/edit.vue +11 -8
- package/src/views/user/wf/wf_manage/list.vue +66 -61
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/dialog.vue +11 -11
- package/src/views/user/wf/wf_obj_config/edit.vue +12 -9
- package/src/views/user/wf/wf_obj_config/edit_form.vue +11 -9
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +31 -27
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +8 -6
- package/src/views/user/wf/wf_obj_config/list.vue +42 -41
- package/src/views/user/wf/wf_obj_config/list_form.vue +14 -12
- package/src/views/user/wf/wf_param/edit.vue +7 -5
- package/src/views/user/wf/wf_work_calendar/configDialog.vue +9 -24
- package/src/views/user/wf/wf_work_calendar/list.vue +6 -3
- package/src/views/user/home/distributor.vue +0 -849
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import projectTagView from "@base/components/projectTag/view.vue";
|
|
2
|
+
import MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
|
|
3
|
+
import preformDialog from "@base/views/bd/setting/form_template/preformDialog.vue";
|
|
4
|
+
import formOplogTable from "@base/components/formOplog/index.vue";
|
|
5
|
+
import {getBdFlag} from "@base/api/user";
|
|
6
|
+
|
|
7
|
+
let modules = {};
|
|
8
|
+
modules = {
|
|
9
|
+
name: 'bd_form_templateEdit',
|
|
10
|
+
props: {
|
|
11
|
+
_dataId: [String, Number],
|
|
12
|
+
currentFormType: Object
|
|
13
|
+
},
|
|
14
|
+
components: {
|
|
15
|
+
projectTagView,
|
|
16
|
+
MenuKindDialog,
|
|
17
|
+
preformDialog,
|
|
18
|
+
formOplogTable
|
|
19
|
+
},
|
|
20
|
+
data() {
|
|
21
|
+
return {
|
|
22
|
+
isEdit: false,
|
|
23
|
+
tabIndex: 'first',
|
|
24
|
+
dataId: '',
|
|
25
|
+
formTemplate: {
|
|
26
|
+
enabled: true,
|
|
27
|
+
history: false,
|
|
28
|
+
serviceId: 'user',
|
|
29
|
+
formTypeCode: null,
|
|
30
|
+
menuKindName: null,
|
|
31
|
+
menuKindCode: null,
|
|
32
|
+
formTemplateTagDTOs: []
|
|
33
|
+
},
|
|
34
|
+
isInited: false,
|
|
35
|
+
serviceIds: ['user'],
|
|
36
|
+
showMenuKindDialog: false,
|
|
37
|
+
isDev: true,
|
|
38
|
+
showPreformDialog: false
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
created() {
|
|
42
|
+
if (this._dataId) {
|
|
43
|
+
this.dataId = this._dataId;
|
|
44
|
+
} else {
|
|
45
|
+
this.formTemplate.menuKindName = this.currentFormType?.name || null;
|
|
46
|
+
this.formTemplate.menuKindCode = this.currentFormType?.menuKindCode || null;
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
mounted() {
|
|
50
|
+
this.getBdEnv();
|
|
51
|
+
this.getData();
|
|
52
|
+
},
|
|
53
|
+
methods: {
|
|
54
|
+
getData() {
|
|
55
|
+
if (this.dataId) {
|
|
56
|
+
this.isEdit = true;
|
|
57
|
+
this.$commonHttp({
|
|
58
|
+
aes:true,
|
|
59
|
+
url: USER_PREFIX + `/formTemplate/getByFormCode`,
|
|
60
|
+
method: `post`,
|
|
61
|
+
data: {
|
|
62
|
+
stringOne: this.dataId
|
|
63
|
+
},
|
|
64
|
+
isLoading: true,
|
|
65
|
+
modalStrictly: true,
|
|
66
|
+
success: res => {
|
|
67
|
+
this.formTemplate = res.objx || {};
|
|
68
|
+
this.$nextTick(() => {
|
|
69
|
+
this.isInited = true;
|
|
70
|
+
});
|
|
71
|
+
//获取操作日志数据
|
|
72
|
+
this.$refs['oplogTable'].initData({
|
|
73
|
+
param: () => {
|
|
74
|
+
return {
|
|
75
|
+
logType: "FormTemplate",
|
|
76
|
+
logObjCode: this.formTemplate.formCode
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
} else {
|
|
83
|
+
this.isInited = true;
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
saveData() {
|
|
87
|
+
this.$refs.editForm.$baseValidate(valid => {
|
|
88
|
+
if (valid) {
|
|
89
|
+
this.openPreformDialog();
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
},
|
|
93
|
+
saveDataHandle(preformData) {
|
|
94
|
+
var url = USER_PREFIX + (this.isEdit ? `/formTemplate/update` : `/formTemplate/save`);
|
|
95
|
+
let formData = {
|
|
96
|
+
...this.formTemplate,
|
|
97
|
+
logContent: preformData.logContent
|
|
98
|
+
};
|
|
99
|
+
this.$http({
|
|
100
|
+
aes:true,
|
|
101
|
+
url: url,
|
|
102
|
+
method: `post`,
|
|
103
|
+
data: formData,
|
|
104
|
+
isLoading: true,
|
|
105
|
+
success: res => {
|
|
106
|
+
this.$message({
|
|
107
|
+
message: res.content,
|
|
108
|
+
type: 'success',
|
|
109
|
+
duration: 500,
|
|
110
|
+
onClose: t => {
|
|
111
|
+
if (this.isEdit) {
|
|
112
|
+
this.$baseReload();
|
|
113
|
+
} else {
|
|
114
|
+
this.$baseReload({
|
|
115
|
+
updateParam: {
|
|
116
|
+
_dataId: this.formTemplate.formCode
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
},
|
|
125
|
+
openPreformDialog() {
|
|
126
|
+
this.showPreformDialog = true;
|
|
127
|
+
},
|
|
128
|
+
confirmPreformDialog(preformData) {
|
|
129
|
+
this.saveDataHandle(preformData);
|
|
130
|
+
},
|
|
131
|
+
confirmInsertMenuKind(rows) {
|
|
132
|
+
if (rows.length > 0) {
|
|
133
|
+
let row = rows[0];
|
|
134
|
+
this.$set(this.formTemplate, 'menuKindCode', row.menuKindCode);
|
|
135
|
+
this.$set(this.formTemplate, 'menuKindName', row.name);
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
getBdEnv() {
|
|
139
|
+
getBdFlag({
|
|
140
|
+
success: res => {
|
|
141
|
+
this.isDev = res.objx == 1
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
},
|
|
145
|
+
openDesignDialog() {
|
|
146
|
+
this.$emit('openDesignDialog', {
|
|
147
|
+
row: this.formTemplate,
|
|
148
|
+
callback: () => {
|
|
149
|
+
this.$baseReload()
|
|
150
|
+
}
|
|
151
|
+
})
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
export default modules
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
let modules = {};
|
|
2
|
+
modules = {
|
|
3
|
+
props: {
|
|
4
|
+
_dataId: [String, Number],
|
|
5
|
+
formTemplate: Object
|
|
6
|
+
},
|
|
7
|
+
data() {
|
|
8
|
+
return {
|
|
9
|
+
isEdit: false,
|
|
10
|
+
tabIndex: 'first',
|
|
11
|
+
dataId: '',
|
|
12
|
+
wfObjConfig: {
|
|
13
|
+
objTypeCode: null,
|
|
14
|
+
objTypeName: null,
|
|
15
|
+
forms: true
|
|
16
|
+
},
|
|
17
|
+
showDialog: true
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
computed: {
|
|
21
|
+
current_prefix() {
|
|
22
|
+
return this.wfObjConfig.serviceId ? '/' + this.wfObjConfig.serviceId : '';
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
created() {
|
|
26
|
+
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
|
27
|
+
},
|
|
28
|
+
mounted() {
|
|
29
|
+
this.getData();
|
|
30
|
+
},
|
|
31
|
+
methods: {
|
|
32
|
+
getData(callback) {
|
|
33
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
|
34
|
+
this.isEdit = true;
|
|
35
|
+
this.$commonHttp({
|
|
36
|
+
aes:true,
|
|
37
|
+
url: this.current_prefix + `/wf_obj_config/get`,
|
|
38
|
+
method: `post`,
|
|
39
|
+
data: {
|
|
40
|
+
id: this.dataId
|
|
41
|
+
},
|
|
42
|
+
isLoading: true,
|
|
43
|
+
modalStrictly: true,
|
|
44
|
+
success: res => {
|
|
45
|
+
let row = res.objx || {};
|
|
46
|
+
this.wfObjConfig = row;
|
|
47
|
+
callback && callback(row);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
} else {
|
|
51
|
+
let formTemplate = this.formTemplate;
|
|
52
|
+
this.wfObjConfig.objTypeCode = formTemplate.objTypeCode;
|
|
53
|
+
this.wfObjConfig.objTypeName = formTemplate.formName;
|
|
54
|
+
this.wfObjConfig.serviceId = formTemplate.serviceName;
|
|
55
|
+
this.wfObjConfig.url = "form";
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
saveData() {
|
|
59
|
+
this.$refs.editForm.$baseValidate(valid => {
|
|
60
|
+
if (valid) {
|
|
61
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
62
|
+
var url = this.current_prefix + (this.isEdit ? `/wf_obj_config/update` : `/wf_obj_config/save`);
|
|
63
|
+
this.$http({
|
|
64
|
+
aes:true,
|
|
65
|
+
url: url,
|
|
66
|
+
method: `post`,
|
|
67
|
+
data: this.wfObjConfig,
|
|
68
|
+
isLoading: true,
|
|
69
|
+
success: res => {
|
|
70
|
+
this.$message({
|
|
71
|
+
message: res.content,
|
|
72
|
+
type: 'success',
|
|
73
|
+
duration: 500,
|
|
74
|
+
onClose: t => {
|
|
75
|
+
this.dataId = res.objx;
|
|
76
|
+
this.getData((row) => {
|
|
77
|
+
this.close();
|
|
78
|
+
this.$emit('confirm', row)
|
|
79
|
+
})
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
},
|
|
88
|
+
close() {
|
|
89
|
+
this.showDialog = false;
|
|
90
|
+
this.$emit('update:visiable', false)
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export default modules
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import {selectDialogMixins} from "@base/mixins/selectDialog";
|
|
2
|
+
|
|
3
|
+
let modules = {};
|
|
4
|
+
modules = {
|
|
5
|
+
name: 'ftHistoryDialog',
|
|
6
|
+
props: ['visiable', 'multi', 'rows', 'param', 'formCode'],
|
|
7
|
+
mixins: [selectDialogMixins],
|
|
8
|
+
components: {},
|
|
9
|
+
created() {
|
|
10
|
+
this.initSetting();
|
|
11
|
+
},
|
|
12
|
+
mounted() {
|
|
13
|
+
this.initTableM1();
|
|
14
|
+
},
|
|
15
|
+
data() {
|
|
16
|
+
return {
|
|
17
|
+
showDialog: true,
|
|
18
|
+
falseValue: false,
|
|
19
|
+
selectMulti: true,
|
|
20
|
+
formData: {},
|
|
21
|
+
vxeOption: {},
|
|
22
|
+
showSaleOrgDialog: false
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
methods: {
|
|
26
|
+
initTableM1() {
|
|
27
|
+
let that = this;
|
|
28
|
+
let tableOption = {
|
|
29
|
+
vue: that,
|
|
30
|
+
tableRef: 'table-m1',
|
|
31
|
+
tableName: 'bd_ft_history_dialog-m1',
|
|
32
|
+
path: USER_PREFIX + '/formTemplate/listPage',
|
|
33
|
+
param: () => {
|
|
34
|
+
return {
|
|
35
|
+
history: true,
|
|
36
|
+
formCode: this.formCode,
|
|
37
|
+
...this.formData,
|
|
38
|
+
...this.param
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
columns: [
|
|
42
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
43
|
+
{
|
|
44
|
+
title: '模板名称',
|
|
45
|
+
field: 'formName',
|
|
46
|
+
width: 150,
|
|
47
|
+
fixed: 'left'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
title: '模板编码',
|
|
51
|
+
field: 'formCode',
|
|
52
|
+
width: 150
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
title: '模板版本',
|
|
56
|
+
field: 'formVersion',
|
|
57
|
+
width: 150
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
title: '表单类型',
|
|
61
|
+
field: 'menuKindName',
|
|
62
|
+
width: 150,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
title: this.$t1('备注'),
|
|
66
|
+
field: 'remark',
|
|
67
|
+
width: 150
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
title: this.$t1('创建时间'),
|
|
71
|
+
field: 'createDate',
|
|
72
|
+
width: 150
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
width: 47,
|
|
76
|
+
fixed: 'right',
|
|
77
|
+
title: '',
|
|
78
|
+
sortable: false
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
config: {
|
|
82
|
+
checkboxConfig: {
|
|
83
|
+
checkStrictly: true,
|
|
84
|
+
showHeader: this.selectMulti,
|
|
85
|
+
trigger: 'row'
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
90
|
+
that.vxeOption = opts;
|
|
91
|
+
});
|
|
92
|
+
},
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
export default modules
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
let modules = {};
|
|
2
|
+
modules = {
|
|
3
|
+
name: 'wfObjConfigItemEdit',
|
|
4
|
+
props: {
|
|
5
|
+
_dataId: [String, Number],
|
|
6
|
+
formTemplate: Object,
|
|
7
|
+
wfObjConfig: Object
|
|
8
|
+
},
|
|
9
|
+
components: {},
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
tabIndex: 0,
|
|
13
|
+
isEdit: false,
|
|
14
|
+
dataId: '',
|
|
15
|
+
wfObjConfigItem: {
|
|
16
|
+
skipFirstTask: true,
|
|
17
|
+
skipAdjacentTask: false,
|
|
18
|
+
toRejectNode: false,
|
|
19
|
+
startMode: 3,
|
|
20
|
+
skipSameUserTask: false,
|
|
21
|
+
enabled: true
|
|
22
|
+
},
|
|
23
|
+
showWfObjConfigDialog: false,
|
|
24
|
+
configServiceId: null,
|
|
25
|
+
showCodeEditor: false
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
computed: {
|
|
29
|
+
current_prefix() {
|
|
30
|
+
// return this.configServiceId ? ('/' + this.configServiceId) : ''
|
|
31
|
+
return "/" + this.wfObjConfig.serviceId;
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
created() {
|
|
35
|
+
if (this._dataId && !isNaN(this._dataId)) {
|
|
36
|
+
this.dataId = this._dataId;
|
|
37
|
+
} else {
|
|
38
|
+
this.wfObjConfigItem.objConfigId = this.formTemplate.id;
|
|
39
|
+
this.wfObjConfigItem.objTypeCode = this.wfObjConfig.objTypeCode;
|
|
40
|
+
this.wfObjConfigItem.objTypeName = this.wfObjConfig.objTypeName;
|
|
41
|
+
}
|
|
42
|
+
this.configServiceId = this.serviceId || '';
|
|
43
|
+
},
|
|
44
|
+
mounted() {
|
|
45
|
+
this.getData();
|
|
46
|
+
},
|
|
47
|
+
methods: {
|
|
48
|
+
getData() {
|
|
49
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
|
50
|
+
this.isEdit = true;
|
|
51
|
+
this.$commonHttp({
|
|
52
|
+
aes:true,
|
|
53
|
+
url: this.current_prefix + `/wf_obj_config_item/get`,
|
|
54
|
+
method: `post`,
|
|
55
|
+
data: {
|
|
56
|
+
id: this.dataId
|
|
57
|
+
},
|
|
58
|
+
isLoading: true,
|
|
59
|
+
modalStrictly: true,
|
|
60
|
+
success: res => {
|
|
61
|
+
this.wfObjConfigItem = res.objx || {};
|
|
62
|
+
this.showCodeEditor = true;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
} else {
|
|
66
|
+
this.showCodeEditor = true;
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
saveData() {
|
|
70
|
+
this.$refs.editForm.$baseValidate(valid => {
|
|
71
|
+
if (valid) {
|
|
72
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
73
|
+
var url = this.current_prefix + (this.isEdit ? `/wf_obj_config_item/update` : `/wf_obj_config_item/save`);
|
|
74
|
+
this.$http({
|
|
75
|
+
aes:true,
|
|
76
|
+
url: url,
|
|
77
|
+
method: `post`,
|
|
78
|
+
data: this.wfObjConfigItem,
|
|
79
|
+
isLoading: true,
|
|
80
|
+
success: res => {
|
|
81
|
+
this.$message({
|
|
82
|
+
message: res.content,
|
|
83
|
+
type: 'success',
|
|
84
|
+
duration: 500,
|
|
85
|
+
onClose: t => {
|
|
86
|
+
if (this.isEdit) {
|
|
87
|
+
this.$baseReload();
|
|
88
|
+
} else {
|
|
89
|
+
this.$baseReload({
|
|
90
|
+
updateParam: {
|
|
91
|
+
_dataId: res.objx,
|
|
92
|
+
wfObjConfig: null
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
export default modules
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import editView from "@base/views/bd/setting/form_template/itemEdit.vue";
|
|
2
|
+
import wfObjConfigDialog from "@base/views/bd/setting/form_template/editWfObjConfigDialog.vue";
|
|
3
|
+
|
|
4
|
+
let modules = {};
|
|
5
|
+
modules = {
|
|
6
|
+
name: 'itemList',
|
|
7
|
+
components: {editView, wfObjConfigDialog},
|
|
8
|
+
props: ['formTemplate'],
|
|
9
|
+
data() {
|
|
10
|
+
return {
|
|
11
|
+
activeName: 'second',
|
|
12
|
+
dataId: 0,
|
|
13
|
+
showEdit: false,
|
|
14
|
+
vxeOption: {},
|
|
15
|
+
formData: {},
|
|
16
|
+
wfObjConfig: {},
|
|
17
|
+
wfObjConfigId: null,
|
|
18
|
+
showWfObjConfigDialog: false
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
mounted() {
|
|
22
|
+
this.initWfObjConfig();
|
|
23
|
+
this.initTableList();
|
|
24
|
+
},
|
|
25
|
+
methods: {
|
|
26
|
+
searchEvent() {
|
|
27
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
28
|
+
},
|
|
29
|
+
resetEvent() {
|
|
30
|
+
this.formData = {};
|
|
31
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
32
|
+
},
|
|
33
|
+
openEditDialog(id) {
|
|
34
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
|
35
|
+
this.activeName = 'first';
|
|
36
|
+
this.$openEditView('showEdit');
|
|
37
|
+
},
|
|
38
|
+
initTableList() {
|
|
39
|
+
let that = this;
|
|
40
|
+
let startModeMap = {
|
|
41
|
+
1: "节点无候选人,提示异常",
|
|
42
|
+
2: "节点无候选人,提示警告",
|
|
43
|
+
3: "节点无候选人,无提示",
|
|
44
|
+
}
|
|
45
|
+
let tableOption1 = {
|
|
46
|
+
vue: that,
|
|
47
|
+
tableRef: 'table-m1',
|
|
48
|
+
tableName: 'user_wf_obj_config_item_list-m1',
|
|
49
|
+
path: "/" + this.formTemplate.serviceName + '/wf_obj_config_item/list',
|
|
50
|
+
param: () => {
|
|
51
|
+
return {
|
|
52
|
+
objTypeCode: this.formTemplate.objTypeCode
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
config: {
|
|
56
|
+
maxHeight: '',
|
|
57
|
+
proxyConfig: {
|
|
58
|
+
props: {
|
|
59
|
+
result: "objx",
|
|
60
|
+
total: "objx.length",
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
columns: [
|
|
65
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
66
|
+
{
|
|
67
|
+
title: '流程模版名称',
|
|
68
|
+
field: 'modelName',
|
|
69
|
+
width: 150,
|
|
70
|
+
fixed: 'left'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
title: '流程模版KEY',
|
|
74
|
+
field: 'modelKey',
|
|
75
|
+
width: 150
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
title: '单据类型编码',
|
|
79
|
+
field: 'objTypeCode',
|
|
80
|
+
width: 150
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
field: 'enabled',
|
|
84
|
+
title: this.$t1('是否启用'),
|
|
85
|
+
width: 150,
|
|
86
|
+
slots: {
|
|
87
|
+
default: ({row}) => {
|
|
88
|
+
if (row.enabled) {
|
|
89
|
+
return [<div class="txt-status">{ this.$t1('启用') }</div>];
|
|
90
|
+
} else {
|
|
91
|
+
return [<div class="txt-status s-3">{ this.$t1('禁用') }</div>];
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
title: '跳过相邻任务',
|
|
98
|
+
field: 'skipAdjacentTask',
|
|
99
|
+
width: 150,
|
|
100
|
+
slots: {
|
|
101
|
+
default: ({row}) => {
|
|
102
|
+
if (row.skipAdjacentTask) {
|
|
103
|
+
return [<div class="txt-status">是</div>];
|
|
104
|
+
} else {
|
|
105
|
+
return [<div class="txt-status s-3">否</div>];
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
title: '驳回后提交模式',
|
|
112
|
+
field: 'toRejectNode',
|
|
113
|
+
width: 180,
|
|
114
|
+
slots: {
|
|
115
|
+
default: ({row}) => {
|
|
116
|
+
if (row.toRejectNode) {
|
|
117
|
+
return [<div class="txt-status">由提交人确定提交节点</div>];
|
|
118
|
+
} else {
|
|
119
|
+
return [<div class="txt-status s-3">由驳回人指定提交节点</div>];
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
title: '流程启动处理',
|
|
126
|
+
field: 'startMode',
|
|
127
|
+
width: 180,
|
|
128
|
+
slots: {
|
|
129
|
+
default: ({row}) => {
|
|
130
|
+
return startModeMap[row.startMode] || '';
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
title: '跨任务跳过',
|
|
136
|
+
field: 'skipSameUserTask',
|
|
137
|
+
width: 150,
|
|
138
|
+
slots: {
|
|
139
|
+
default: ({row}) => {
|
|
140
|
+
if (row.skipSameUserTask) {
|
|
141
|
+
return [<div class="txt-status">是</div>];
|
|
142
|
+
} else {
|
|
143
|
+
return [<div class="txt-status s-3">否</div>];
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
field: 'createDate',
|
|
150
|
+
title: this.$t1('创建时间'),
|
|
151
|
+
width: 200
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
width: 150,
|
|
155
|
+
fixed: 'right',
|
|
156
|
+
sortable: false,
|
|
157
|
+
title: '',
|
|
158
|
+
slots: {
|
|
159
|
+
default: ({row}) => {
|
|
160
|
+
return [
|
|
161
|
+
<a
|
|
162
|
+
href="javascript:void(0);"
|
|
163
|
+
class="a-link"
|
|
164
|
+
onclick={() => {
|
|
165
|
+
this.openEditDialog(row.id);
|
|
166
|
+
}}
|
|
167
|
+
>
|
|
168
|
+
<el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
|
|
169
|
+
popper-class="tooltip-skin">
|
|
170
|
+
<i class="el-icon-edit"/>
|
|
171
|
+
</el-tooltip>
|
|
172
|
+
</a>,
|
|
173
|
+
<a
|
|
174
|
+
href="javascript:void(0);"
|
|
175
|
+
onClick={() => {
|
|
176
|
+
this.wfEdit(row.modelId);
|
|
177
|
+
}}
|
|
178
|
+
class="a-link"
|
|
179
|
+
>
|
|
180
|
+
<el-tooltip enterable={false} effect="dark" content="流程设计" placement="top"
|
|
181
|
+
popper-class="tooltip-skin">
|
|
182
|
+
<i class="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
|
|
183
|
+
</el-tooltip>
|
|
184
|
+
</a>,
|
|
185
|
+
<a
|
|
186
|
+
href="javascript:void(0);"
|
|
187
|
+
class="a-link"
|
|
188
|
+
onClick={() => {
|
|
189
|
+
this.deleteItem(row);
|
|
190
|
+
}}
|
|
191
|
+
>
|
|
192
|
+
<el-tooltip enterable={false} effect="dark" content="删除" placement="top"
|
|
193
|
+
popper-class="tooltip-skin">
|
|
194
|
+
<i class="el-icon-delete"/>
|
|
195
|
+
</el-tooltip>
|
|
196
|
+
</a>
|
|
197
|
+
];
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
};
|
|
203
|
+
this.$vxeTableUtil.initVxeTable(tableOption1).then(opts => {
|
|
204
|
+
that.vxeOption = opts;
|
|
205
|
+
});
|
|
206
|
+
},
|
|
207
|
+
deleteItem(row) {
|
|
208
|
+
this.$baseConfirm('您确定要删除吗?').then(() => {
|
|
209
|
+
this.$http({
|
|
210
|
+
aes:true,
|
|
211
|
+
method: 'post',
|
|
212
|
+
url: "/" + this.formTemplate.serviceName + '/wf_obj_config_item/delete',
|
|
213
|
+
data: {id: row.id},
|
|
214
|
+
success: res => {
|
|
215
|
+
this.$message({
|
|
216
|
+
message: res.content,
|
|
217
|
+
type: 'success',
|
|
218
|
+
duration: 500,
|
|
219
|
+
});
|
|
220
|
+
this.searchEvent()
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
},
|
|
225
|
+
wfEdit(modelId) {
|
|
226
|
+
this.$emit('openWfDesignDialog', modelId);
|
|
227
|
+
},
|
|
228
|
+
initWfObjConfig() {
|
|
229
|
+
this.$http({
|
|
230
|
+
aes:true,
|
|
231
|
+
method: 'post',
|
|
232
|
+
url: "/" + this.formTemplate.serviceName + '/wf_obj_config/getByObjTypeCode',
|
|
233
|
+
data: {stringOne: this.formTemplate.objTypeCode},
|
|
234
|
+
success: res => {
|
|
235
|
+
let wfObjConfig = res.objx;
|
|
236
|
+
if (wfObjConfig) {
|
|
237
|
+
this.wfObjConfig = wfObjConfig;
|
|
238
|
+
} else {
|
|
239
|
+
this.openWfObjConfigDialog()
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
},
|
|
244
|
+
openWfObjConfigDialog(dataId) {
|
|
245
|
+
this.wfObjConfigId = dataId || null
|
|
246
|
+
this.showWfObjConfigDialog = true;
|
|
247
|
+
},
|
|
248
|
+
confirmWfObjConfigDialog(wfObjConfig) {
|
|
249
|
+
this.showWfObjConfigDialog = false;
|
|
250
|
+
this.wfObjConfig = wfObjConfig || {};
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
export default modules
|