cloud-web-corejs 1.0.54-dev.12 → 1.0.54-dev.121
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 +9 -3
- package/src/components/Qrcode/fileParse.vue +0 -1
- 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 +16 -6
- package/src/components/excelExport/index.js +2 -1
- package/src/components/excelExport/index.vue +8 -6
- package/src/components/excelExport/mixins.js +1 -2
- package/src/components/excelImport/index.vue +2 -1
- package/src/components/excelImport/mixins.js +1 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +1 -1
- package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
- package/src/components/fileLibrary/filterDialog.vue +383 -0
- package/src/components/fileLibrary/index.vue +23 -24
- package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +15 -10
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +8 -5
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
- package/src/components/fileLibrary/mixins/indexMixins.js +76 -26
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
- package/src/components/fileLibrary/propertiesDialog.vue +18 -0
- package/src/components/fileLibrary/shareDialog.vue +1 -1
- package/src/components/jsonImport/mixins.js +1 -1
- 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/table/tableForm.vue +36 -2
- package/src/components/table/tableFormMixin.js +222 -1
- package/src/components/tempStorage/tempStorageDialog.vue +2 -2
- package/src/components/wf/wf.js +1763 -1
- package/src/components/wf/wfStartDialog.vue +1 -1
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +1514 -1
- 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 +35 -5
- 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 +11 -5
- 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 +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +10 -5
- 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 +1026 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +67 -3
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +9 -4
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +8 -2
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +80 -0
- package/src/components/xform/form-designer/indexMixin.js +773 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +59 -36
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +9 -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 +595 -299
- 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/event-handler/onAfterConfirmFile-editor.vue +32 -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-button/search-dialog-event-editor.vue +20 -1
- 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 +185 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
- 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-import-button/import-button-editor.vue +3 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +39 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +177 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +2 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
- 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 +242 -27
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +4 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +4 -3
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +145 -147
- package/src/components/xform/form-render/container-item/data-table-item.vue +6 -5
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2122 -18
- package/src/components/xform/form-render/indexMixin.js +1792 -1
- package/src/components/xform/mixins/defaultHandle.js +120 -1
- package/src/components/xform/mixins/scriptHttp.js +82 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/util.js +1631 -1
- package/src/layout/components/Sidebar/default.vue +50 -6
- package/src/layout/components/TagsView/index.vue +0 -1
- package/src/layout/components/extractedCode/createDialog.vue +92 -0
- package/src/layout/components/extractedCode/queryDialog.vue +96 -0
- package/src/layout/components/extractedCode/viewDialog.vue +192 -0
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/router/modules/customer.js +15 -0
- package/src/store/config/index.js +664 -1
- package/src/store/modules/permission.js +1 -1
- package/src/store/modules/user.js +1 -1
- package/src/utils/index.js +4 -2
- package/src/utils/pddLog.js +103 -0
- package/src/utils/request.js +28 -28
- package/src/utils/vab.js +1 -1
- package/src/views/bd/setting/form_import_log/edit.vue +120 -0
- package/src/views/bd/setting/form_import_log/list.vue +195 -0
- package/src/views/bd/setting/form_script/edit1.vue +1 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +167 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +165 -1
- package/src/views/bd/setting/form_script/mixins/list.js +176 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +345 -14
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
- package/src/views/bd/setting/form_template/edit.vue +9 -1
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/list.vue +4 -2
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +170 -1
- package/src/views/bd/setting/form_template/mixins/list.js +522 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -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/mixins/list.js +176 -1
- package/src/views/bd/setting/table_model/edit.vue +71 -13
- package/src/views/bd/setting/table_model/list.vue +4 -2
- package/src/views/bd/setting/table_model/mixins/edit.js +901 -13
- package/src/views/bd/setting/table_model/mixins/list.js +345 -14
- package/src/views/user/area/dialog.vue +21 -9
- package/src/views/user/bill_setting/edit.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/common_attribute/itemEdit.vue +2 -2
- package/src/views/user/common_attribute/list.vue +1 -1
- package/src/views/user/common_script/edit.vue +1 -1
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +19 -9
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +1 -0
- package/src/views/user/extend_datasource/edit.vue +3 -0
- package/src/views/user/extend_datasource/list.vue +2 -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/form/vform/designer.vue +5 -1
- package/src/views/user/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- package/src/views/user/home/default.vue +15 -11
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- package/src/views/user/login/default.vue +4 -2
- package/src/views/user/login/index2.vue +131 -0
- package/src/views/user/notify_message/dialog.vue +1 -1
- package/src/views/user/outLink/form_view.vue +39 -12
- package/src/views/user/outLink/index.vue +17 -0
- package/src/views/user/outLink/view.vue +39 -13
- package/src/views/user/push_setting/list.vue +2 -2
- package/src/views/user/user/edit.vue +9 -9
- package/src/views/user/user/form_edit.vue +117 -49
- package/src/views/user/user/form_info.vue +210 -0
- package/src/views/user/user/form_list.vue +1 -0
- package/src/views/user/user/list.vue +3 -3
- 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/list.vue +19 -3
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
@@ -0,0 +1,210 @@
|
|
1
|
+
<template>
|
2
|
+
<el-dialog
|
3
|
+
:title="$t1('个人设置')"
|
4
|
+
:append-to-body="true"
|
5
|
+
:modal-append-to-body="falseValue"
|
6
|
+
:close-on-click-modal="falseValue"
|
7
|
+
:visible.sync="showDialog"
|
8
|
+
:modal="falseValue"
|
9
|
+
custom-class="dialog-style list-dialog demo-sty_2"
|
10
|
+
width="500px"
|
11
|
+
@close="dialogClose"
|
12
|
+
v-el-drag-dialog
|
13
|
+
v-el-dialog-center
|
14
|
+
>
|
15
|
+
<div id="containt" style="height: 300px">
|
16
|
+
<div class="detail-wrap">
|
17
|
+
<el-form ref="editForm" :model="user">
|
18
|
+
<div class="d-header clearfix">
|
19
|
+
<div class="fl">
|
20
|
+
<i class="el-icon-info"/>
|
21
|
+
{{ dataId ? $t1('查看用户') : $t1('新增用户') }}
|
22
|
+
</div>
|
23
|
+
<div class="fr">
|
24
|
+
<el-button type="primary" plain class="button-sty" @click="reloadContent" icon="el-icon-refresh-right">
|
25
|
+
{{ $t1('重置') }}
|
26
|
+
</el-button>
|
27
|
+
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
|
28
|
+
</el-button>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
<div class="d-cont" style="height: auto">
|
32
|
+
<div class="d-item" style="padding-right: 0">
|
33
|
+
<div class="title first"><b>{{ $t1('基本信息') }}</b></div>
|
34
|
+
<table class="table-detail">
|
35
|
+
<tbody>
|
36
|
+
<tr>
|
37
|
+
<th>
|
38
|
+
<em class="f-red">*</em>
|
39
|
+
{{ $t1('登录名') }}
|
40
|
+
</th>
|
41
|
+
<td colspan="3">
|
42
|
+
{{ user.loginAccount }}
|
43
|
+
</td>
|
44
|
+
</tr>
|
45
|
+
<tr>
|
46
|
+
<th>
|
47
|
+
<em class="f-red">*</em>
|
48
|
+
{{ $t1('姓名') }}
|
49
|
+
</th>
|
50
|
+
<td colspan="3">
|
51
|
+
<el-form-item prop="nickName" :rules="[{ required: true, trigger: 'blur' }]">
|
52
|
+
<el-input size="small" v-model="user.nickName" maxlength="200" lay-verify="required" required=""
|
53
|
+
clearable/>
|
54
|
+
</el-form-item>
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr>
|
58
|
+
<th>{{ $t1('密码') }}</th>
|
59
|
+
<td colspan="3">
|
60
|
+
<el-form-item prop="password" :rules="passRules">
|
61
|
+
<el-input
|
62
|
+
size="small"
|
63
|
+
type="password"
|
64
|
+
v-model="user.password"
|
65
|
+
show-password
|
66
|
+
maxlength="255"
|
67
|
+
autocomplete="off"
|
68
|
+
auto-complete="new-password"
|
69
|
+
clearable
|
70
|
+
/>
|
71
|
+
</el-form-item>
|
72
|
+
</td>
|
73
|
+
</tr>
|
74
|
+
<tr>
|
75
|
+
<th>{{ $t1('确认密码') }}</th>
|
76
|
+
<td colspan="3">
|
77
|
+
<el-form-item prop="rePassword" :rules="pass2Rules">
|
78
|
+
<el-input
|
79
|
+
size="small"
|
80
|
+
type="password"
|
81
|
+
v-model="user.rePassword"
|
82
|
+
show-password
|
83
|
+
maxlength="255"
|
84
|
+
autocomplete="off"
|
85
|
+
auto-complete="new-password"
|
86
|
+
lay-verify="confirmPass"
|
87
|
+
clearable
|
88
|
+
/>
|
89
|
+
</el-form-item>
|
90
|
+
</td>
|
91
|
+
</tr>
|
92
|
+
</tbody>
|
93
|
+
</table>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
</el-form>
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
</el-dialog>
|
100
|
+
</template>
|
101
|
+
|
102
|
+
<script>
|
103
|
+
export default {
|
104
|
+
name: 'userInfo',
|
105
|
+
components: {},
|
106
|
+
props: ['_dataId'],
|
107
|
+
created() {
|
108
|
+
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
109
|
+
},
|
110
|
+
mounted() {
|
111
|
+
this.getData();
|
112
|
+
},
|
113
|
+
data() {
|
114
|
+
var validatePass = (rule, value, callback) => {
|
115
|
+
const isPassRequired = !this.dataId;
|
116
|
+
if (isPassRequired && (value == '' || value == undefined)) {
|
117
|
+
callback(new Error(this.$t1('密码不能为空')));
|
118
|
+
} else {
|
119
|
+
callback();
|
120
|
+
}
|
121
|
+
this.$refs.editForm.validateField('rePassword');
|
122
|
+
};
|
123
|
+
var validatePass2 = (rule, value, callback) => {
|
124
|
+
const isPassRequired = !this.dataId;
|
125
|
+
const rePassword = value != undefined ? value : '';
|
126
|
+
const password = this.user.password != undefined ? this.user.password : '';
|
127
|
+
|
128
|
+
if (isPassRequired && rePassword == '') {
|
129
|
+
callback(new Error(this.$t1('确认密码不能为空')));
|
130
|
+
} else if (rePassword != password) {
|
131
|
+
callback(new Error(this.$t1('两次输入密码不一致!')));
|
132
|
+
} else {
|
133
|
+
callback();
|
134
|
+
}
|
135
|
+
};
|
136
|
+
return {
|
137
|
+
showDialog: true,
|
138
|
+
falseValue: false,
|
139
|
+
dataId: '',
|
140
|
+
hBtn: true,
|
141
|
+
user: {},
|
142
|
+
vxeOption: {},
|
143
|
+
companyInfoOption: {},
|
144
|
+
userRoleOption: {},
|
145
|
+
showContent: true,
|
146
|
+
passRules: [{validator: validatePass, trigger: 'blur', required: false}],
|
147
|
+
pass2Rules: [{validator: validatePass2, trigger: 'blur', required: false}]
|
148
|
+
};
|
149
|
+
},
|
150
|
+
methods: {
|
151
|
+
getData() {
|
152
|
+
let t = this._dataId;
|
153
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
154
|
+
this.isEdit = true;
|
155
|
+
this.$commonHttp({
|
156
|
+
url: USER_PREFIX + `/user/get`,
|
157
|
+
method: `post`,
|
158
|
+
data: {
|
159
|
+
id: this.dataId
|
160
|
+
},
|
161
|
+
isLoading: true,
|
162
|
+
modalStrictly: true,
|
163
|
+
success: res => {
|
164
|
+
var user = res.objx || {};
|
165
|
+
this.user = res.objx || {};
|
166
|
+
this.user.password = '';
|
167
|
+
}
|
168
|
+
});
|
169
|
+
} else {
|
170
|
+
this.isEdit = false;
|
171
|
+
this.user = {
|
172
|
+
enabled: true
|
173
|
+
};
|
174
|
+
}
|
175
|
+
},
|
176
|
+
saveData() {
|
177
|
+
this.$refs.editForm.$baseValidate(valid => {
|
178
|
+
if (valid) {
|
179
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
180
|
+
var url = USER_PREFIX + '/user/updateUserInfo';
|
181
|
+
this.$http({
|
182
|
+
url: url,
|
183
|
+
method: `post`,
|
184
|
+
data: this.user,
|
185
|
+
isLoading: true,
|
186
|
+
success: res => {
|
187
|
+
this.$message({
|
188
|
+
message: res.content,
|
189
|
+
type: 'success',
|
190
|
+
duration: 500,
|
191
|
+
onClose: t => {
|
192
|
+
this.reloadContent();
|
193
|
+
}
|
194
|
+
});
|
195
|
+
}
|
196
|
+
});
|
197
|
+
});
|
198
|
+
}
|
199
|
+
});
|
200
|
+
},
|
201
|
+
dialogClose() {
|
202
|
+
this.$emit('update:visiable', false);
|
203
|
+
},
|
204
|
+
reloadContent() {
|
205
|
+
this.user = {};
|
206
|
+
this.getData();
|
207
|
+
}
|
208
|
+
}
|
209
|
+
};
|
210
|
+
</script>
|
@@ -217,7 +217,7 @@ export default {
|
|
217
217
|
};
|
218
218
|
let outUserCodes = this.outUserCodes;
|
219
219
|
if (this.userType == 1) {
|
220
|
-
|
220
|
+
//组织用户
|
221
221
|
formData.neRoleCodes = [...outUserCodes];
|
222
222
|
} else if (this.userType == 2) {
|
223
223
|
//外部用户
|
@@ -493,7 +493,7 @@ export default {
|
|
493
493
|
let rows = res.objx || [];
|
494
494
|
let outUserCodes = this.outUserCodes;
|
495
495
|
if (this.userType == 1) {
|
496
|
-
|
496
|
+
//组织用户
|
497
497
|
rows = rows.filter(row => !outUserCodes.includes(row.code));
|
498
498
|
} else if (this.userType == 2) {
|
499
499
|
//外部用户
|
@@ -535,7 +535,7 @@ export default {
|
|
535
535
|
let rows = res.objx || [];
|
536
536
|
let outUserCodes = this.outUserCodes;
|
537
537
|
if (this.userType == 1) {
|
538
|
-
|
538
|
+
//组织用户
|
539
539
|
rows = rows.filter(row => !outUserCodes.includes(row.code));
|
540
540
|
} else if (this.userType == 2) {
|
541
541
|
//外部用户
|
@@ -370,7 +370,7 @@ export default {
|
|
370
370
|
dataId: wfDataId
|
371
371
|
};
|
372
372
|
let url = '/user/form/vform/render.vue';
|
373
|
-
this.wfContent = require('
|
373
|
+
this.wfContent = require('@base/views' + url).default;
|
374
374
|
} else {
|
375
375
|
this.param = {
|
376
376
|
_dataId: wfDataId
|
@@ -87,7 +87,7 @@ export default {
|
|
87
87
|
dataId: wfDataId
|
88
88
|
});
|
89
89
|
let url = '/user/form/vform/render.vue';
|
90
|
-
this.wfContent = require('
|
90
|
+
this.wfContent = require('@base/views' + url).default;
|
91
91
|
} else {
|
92
92
|
this.param = Object.assign(param, {
|
93
93
|
_dataId: wfDataId
|
@@ -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: {
|
@@ -458,7 +467,7 @@ export default {
|
|
458
467
|
width: 200
|
459
468
|
},
|
460
469
|
{
|
461
|
-
width:
|
470
|
+
width: 100,
|
462
471
|
fixed: 'right',
|
463
472
|
sortable: false,
|
464
473
|
title: '',
|
@@ -608,6 +617,13 @@ export default {
|
|
608
617
|
this.showScriptDescriptionDialog = true;
|
609
618
|
};
|
610
619
|
},
|
620
|
+
openWfBizDataSettingDialog(row) {
|
621
|
+
this.objConfigItem = row;
|
622
|
+
this.showWfBizDataSettingDialog = true
|
623
|
+
},
|
624
|
+
confirmWfBizDataSettingDialog(rows) {
|
625
|
+
|
626
|
+
}
|
611
627
|
}
|
612
628
|
};
|
613
629
|
</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>
|