cloud-web-corejs 1.0.54-dev.1 → 1.0.54-dev.100
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/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 +211 -0
- package/src/components/excelExport/index.js +6 -5
- package/src/components/excelExport/index.vue +8 -5
- package/src/components/excelExport/mixins.js +3 -1
- package/src/components/excelImport/index.js +13 -13
- package/src/components/excelImport/index.vue +9 -6
- 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/filterDialog.vue +379 -0
- package/src/components/fileLibrary/index.vue +28 -17
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +27 -7
- 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 +68 -15
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +2 -1
- package/src/components/fileLibrary/propertiesDialog.vue +4 -0
- 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/tempStorage/tempStorageDialog.vue +2 -2
- package/src/components/wf/wf.js +1737 -1
- package/src/components/wf/wfUtil.js +278 -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 +8 -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/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 +989 -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 +26 -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 +79 -0
- package/src/components/xform/form-designer/indexMixin.js +864 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +43 -3
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +322 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +6 -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 +13 -0
- 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/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +66 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +83 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +269 -27
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/setting-panel/wfObjConfigDialog.vue +189 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +57 -7
- package/src/components/xform/form-render/container-item/data-table-item.vue +5 -4
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1881 -1
- package/src/components/xform/form-render/indexMixin.js +1703 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/layout/components/Sidebar/default.vue +1234 -1222
- package/src/layout/components/notify_message/unreadDialog.vue +11 -5
- 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/store/modules/user.js +302 -1
- 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/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_script/list1.vue +1 -2
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
- package/src/views/bd/setting/form_template/edit.vue +6 -2
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/list.vue +5 -4
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.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/edit.vue +1 -1
- package/src/views/bd/setting/table_model/list.vue +5 -4
- package/src/views/bd/setting/table_model/mixins/list.js +14 -14
- package/src/views/user/area/dialog.vue +21 -8
- 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 +9 -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/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +20 -8
- package/src/views/user/login/default.vue +4 -2
- 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/system_notice/infoDialog.vue +25 -1
- 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 +563 -563
- 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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
{{ dataId ? $t1('查看用户') : $t1('新增用户') }}
|
|
8
8
|
</div>
|
|
9
9
|
<div class="fr">
|
|
10
|
-
|
|
10
|
+
<temp-storage-button :option="tempStorageOption" v-if="!dataId"></temp-storage-button>
|
|
11
11
|
<base-input-export :option="exportOption" :parent-target="_self" v-if="dataId"/>
|
|
12
12
|
<el-button type="primary" plain class="button-sty" icon="el-icon-unlock" @click="unlock" v-if="user.locked"
|
|
13
13
|
v-hasPermi="'user:unlock'">{{ $t1('解锁') }}
|
|
@@ -136,14 +136,14 @@
|
|
|
136
136
|
<el-input size="small" v-model="user.email" maxlength="200" clearable/>
|
|
137
137
|
</el-form-item>
|
|
138
138
|
</td>
|
|
139
|
-
<th v-if="flag!=='2'">
|
|
139
|
+
<!-- <th v-if="flag!=='2'">
|
|
140
140
|
GUID
|
|
141
141
|
</th>
|
|
142
142
|
<td v-if="flag!=='2'">
|
|
143
143
|
<el-form-item prop="guid" :rules="[{ required: false, trigger: 'blur' }]">
|
|
144
144
|
<el-input size="small" v-model="user.guid" maxlength="200" clearable/>
|
|
145
145
|
</el-form-item>
|
|
146
|
-
</td
|
|
146
|
+
</td>-->
|
|
147
147
|
<th>{{ $t1('地址') }}</th>
|
|
148
148
|
<td colspan="3">
|
|
149
149
|
<el-input size="small" v-model="user.address" class="b" maxlength="255" clearable/>
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
</el-button>
|
|
216
216
|
</div>
|
|
217
217
|
<div class="title-form">
|
|
218
|
-
<span
|
|
218
|
+
<span>
|
|
219
219
|
<el-form-item label="GUID" :prop="'userCompanyInfoDTOs.'+index1+'.guid'"
|
|
220
220
|
:rules="[{ required: false, trigger: 'blur' }]">
|
|
221
221
|
<el-input size="small" v-model="item.guid" maxlength="200" clearable/>
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
|
|
298
298
|
<script>
|
|
299
299
|
import xeUtils from "xe-utils";
|
|
300
|
-
|
|
300
|
+
import tempStorageButton from "@base/components/tempStorage/index.vue";
|
|
301
301
|
|
|
302
302
|
|
|
303
303
|
export default {
|
|
@@ -307,8 +307,8 @@ export default {
|
|
|
307
307
|
companyDialog: () => import('../../../views/user/company_info/dialog.vue'),
|
|
308
308
|
saleOrgDialog: () => import('../../../views/user/sale_org/dialog.vue'),
|
|
309
309
|
positionDialog: () => import('../../../views/user/position/dialog.vue'),
|
|
310
|
-
countryDialog: () => import('../../../views/user/country/dialog.vue')
|
|
311
|
-
tempStorageButton
|
|
310
|
+
countryDialog: () => import('../../../views/user/country/dialog.vue'),
|
|
311
|
+
tempStorageButton
|
|
312
312
|
},
|
|
313
313
|
props: ['_dataId', 'userType', 'flag'],
|
|
314
314
|
data() {
|
|
@@ -698,7 +698,7 @@ export default {
|
|
|
698
698
|
if (rows.length > 0) {
|
|
699
699
|
let outUserCodes = this.outUserCodes;
|
|
700
700
|
if (this.userType === 1) {
|
|
701
|
-
|
|
701
|
+
//组织用户
|
|
702
702
|
rows = rows.filter(row => !outUserCodes.includes(row.code));
|
|
703
703
|
} else if (this.userType === 2) {
|
|
704
704
|
//外部用户
|
|
@@ -973,7 +973,7 @@ export default {
|
|
|
973
973
|
initRoleDialogParam() {
|
|
974
974
|
//初始化角色弹框的查询参数
|
|
975
975
|
if (this.userType == 1) {
|
|
976
|
-
|
|
976
|
+
//组织用户
|
|
977
977
|
this.roleDialogParam = {
|
|
978
978
|
queryAll: true,
|
|
979
979
|
neCodes: [...this.outUserCodes]
|
|
@@ -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>
|
|
@@ -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>
|