cloud-web-corejs 1.0.54-dev.6 → 1.0.54-dev.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -2
- package/src/components/VabUpload/index.vue +2 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/view.vue +2 -1
- package/src/components/excelExport/exportFieldDialog.vue +160 -22
- package/src/components/excelExport/index.js +6 -5
- package/src/components/excelExport/index.vue +8 -5
- package/src/components/excelExport/mixins.js +4 -1
- package/src/components/excelImport/index.vue +2 -1
- package/src/components/excelImport/mixins.js +1 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +125 -103
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -1
- package/src/components/fileLibrary/fileObjNotifyEdit.vue +192 -0
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +16 -9
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +4 -1
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +1 -1
- package/src/components/fileLibrary/mixins/indexMixins.js +31 -17
- package/src/components/onlineTalk/index.vue +327 -5
- package/src/components/onlineTalk/mixins.js +1 -1
- package/src/components/table/index.js +2 -1
- package/src/components/tempStorage/tempStorageDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +1 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +1 -0
- package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +10 -2
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
- package/src/components/xform/form-designer/form-widget/dialog/preformDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +5 -4
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +3 -2
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +982 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +12 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +5 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +77 -0
- package/src/components/xform/form-designer/indexMixin.js +771 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +6 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +160 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +184 -82
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +3 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +8 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1668 -1
- package/src/components/xform/form-render/indexMixin.js +1 -23
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/router/modules/customer.js +15 -0
- package/src/store/config/index.js +1 -1
- package/src/store/modules/permission.js +1 -1
- package/src/utils/renderUtils.js +76 -0
- package/src/utils/request.js +28 -28
- package/src/utils/vab.js +1 -963
- package/src/views/bd/setting/bd_attach_setting/edit.vue +1 -1
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +1 -1
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
- package/src/views/bd/setting/form_template/edit.vue +2 -2
- package/src/views/bd/setting/form_template/list.vue +4 -2
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +280 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +434 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
- package/src/views/bd/setting/form_template/wf_list.vue +127 -0
- package/src/views/bd/setting/menu_kind/authDialog.vue +1 -1
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
- package/src/views/bd/setting/table_model/list.vue +4 -2
- package/src/views/user/area/dialog.vue +21 -8
- package/src/views/user/company_info/dialog.vue +17 -8
- package/src/views/user/file_type/edit.vue +30 -1
- package/src/views/user/file_type/list.vue +28 -0
- package/src/views/user/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- package/src/views/user/login/default.vue +4 -2
- package/src/views/user/outLink/form_view.vue +39 -12
- package/src/views/user/outLink/view.vue +39 -13
- package/src/views/user/user/edit.vue +7 -7
- package/src/views/user/user/form_edit.vue +117 -49
- package/src/views/user/user/form_list.vue +1 -0
- package/src/views/user/wf/wf_obj_config/list.vue +30 -2
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
- package/src/components/excelExport/export-panel.js +0 -458
@@ -35,7 +35,7 @@
|
|
35
35
|
</label>
|
36
36
|
</el-popover>
|
37
37
|
<el-popover
|
38
|
-
:disabled="!value1 || cities.length==0"
|
38
|
+
:disabled="selectTopLevel || (!value1 || cities.length==0)"
|
39
39
|
placement="bottom"
|
40
40
|
width="486"
|
41
41
|
trigger="click"
|
@@ -55,7 +55,7 @@
|
|
55
55
|
</label>
|
56
56
|
</el-popover>
|
57
57
|
<el-popover
|
58
|
-
:disabled="!value2 || districts.length==0"
|
58
|
+
:disabled="selectTopLevel || (!value2 || districts.length==0)"
|
59
59
|
placement="bottom"
|
60
60
|
width="486"
|
61
61
|
trigger="click"
|
@@ -75,7 +75,7 @@
|
|
75
75
|
</label>
|
76
76
|
</el-popover>
|
77
77
|
<el-popover
|
78
|
-
:disabled="!value3 || counties.length == 0"
|
78
|
+
:disabled="selectTopLevel || (!value3 || counties.length == 0)"
|
79
79
|
placement="bottom"
|
80
80
|
width="486"
|
81
81
|
trigger="click"
|
@@ -107,7 +107,7 @@
|
|
107
107
|
@checkbox-all="checkAll"
|
108
108
|
@cell-dblclick="checkWithSubmit"
|
109
109
|
>
|
110
|
-
<template #form>
|
110
|
+
<template #form v-if="!(param && param.onlySearchTopLevel)">
|
111
111
|
<div class="clearfix screen-btns">
|
112
112
|
<div class="fr">
|
113
113
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
@@ -175,7 +175,7 @@ import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
|
|
175
175
|
|
176
176
|
export default {
|
177
177
|
name: 'areaDialog',
|
178
|
-
props: ['visiable', 'multi', 'rows', 'param'],
|
178
|
+
props: ['visiable', 'multi', 'rows', 'param', 'selectTopLevel'],
|
179
179
|
mixins: [selectDialogMixins],
|
180
180
|
created() {
|
181
181
|
this.initSetting();
|
@@ -329,7 +329,8 @@ export default {
|
|
329
329
|
url: USER_PREFIX + '/area/getChildren',
|
330
330
|
method: "post",
|
331
331
|
data: {
|
332
|
-
id: id
|
332
|
+
id: id,
|
333
|
+
enabled: true
|
333
334
|
},
|
334
335
|
success: res => {
|
335
336
|
// const {level} = node;
|
@@ -378,7 +379,8 @@ export default {
|
|
378
379
|
field: 'name',
|
379
380
|
width: 250,
|
380
381
|
fixed: 'left',
|
381
|
-
treeNode: true,
|
382
|
+
// treeNode: true,
|
383
|
+
treeNode: !(this.param && this.param.onlySearchTopLevel)
|
382
384
|
},
|
383
385
|
{
|
384
386
|
field: 'fullName',
|
@@ -396,7 +398,18 @@ export default {
|
|
396
398
|
checkboxConfig: {
|
397
399
|
checkStrictly: true,
|
398
400
|
showHeader: this.selectMulti,
|
399
|
-
trigger: 'row'
|
401
|
+
trigger: 'row',
|
402
|
+
checkMethod: ({row}) => {
|
403
|
+
if (this.selectTopLevel) {
|
404
|
+
if (row.parent) {
|
405
|
+
return false;
|
406
|
+
} else {
|
407
|
+
return true;
|
408
|
+
}
|
409
|
+
}
|
410
|
+
|
411
|
+
return true;
|
412
|
+
}
|
400
413
|
}
|
401
414
|
}
|
402
415
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<el-dialog
|
3
|
-
:title="$t1('组织列表')"
|
3
|
+
:title="title || $t1('组织列表')"
|
4
4
|
:append-to-body="true"
|
5
5
|
:modal-append-to-body="true"
|
6
6
|
:close-on-click-modal="falseValue"
|
@@ -8,6 +8,7 @@
|
|
8
8
|
:modal="falseValue"
|
9
9
|
custom-class="dialog-style list-dialog dialog-checkbox pd_0"
|
10
10
|
width="1200px"
|
11
|
+
:before-close="handleBeforeClose"
|
11
12
|
@close="dialogClose"
|
12
13
|
v-el-drag-dialog
|
13
14
|
v-el-dialog-center
|
@@ -64,7 +65,7 @@
|
|
64
65
|
</div>
|
65
66
|
<span slot="footer" class="dialog-footer">
|
66
67
|
<span class="fl tips" v-if="!selectMulti">{{ $t1('注:双击确认选择(单选)') }}</span>
|
67
|
-
<el-button type="primary" plain class="button-sty" @click="
|
68
|
+
<el-button type="primary" plain class="button-sty" @click="dialogCancel">
|
68
69
|
<i class="el-icon-close el-icon"></i>
|
69
70
|
{{ $t1('取 消') }}
|
70
71
|
</el-button>
|
@@ -81,7 +82,7 @@ import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
|
|
81
82
|
|
82
83
|
export default {
|
83
84
|
name: 'company_info_dialog',
|
84
|
-
props: ['visiable', 'multi', 'rows', 'param', 'firstEnabled'],
|
85
|
+
props: ['title', 'visiable', 'multi', 'rows', 'param', 'firstEnabled', 'allCompany'],
|
85
86
|
mixins: [selectDialogMixins],
|
86
87
|
created() {
|
87
88
|
this.initSetting();
|
@@ -90,7 +91,6 @@ export default {
|
|
90
91
|
this.initTableM1();
|
91
92
|
},
|
92
93
|
data() {
|
93
|
-
var that = this;
|
94
94
|
return {
|
95
95
|
showDialog: true,
|
96
96
|
falseValue: false,
|
@@ -102,17 +102,26 @@ export default {
|
|
102
102
|
methods: {
|
103
103
|
initTableM1() {
|
104
104
|
let that = this;
|
105
|
+
let path = USER_PREFIX + '/user_company_info/getCurrentList';
|
106
|
+
let treeNodeUrl = USER_PREFIX + '/user_company_info/getChildren';
|
107
|
+
if (this.allCompany) {
|
108
|
+
path = USER_PREFIX + '/company_info/getRoot';
|
109
|
+
treeNodeUrl = USER_PREFIX + '/company_info/getChildren';
|
110
|
+
}
|
105
111
|
let tableOption = {
|
106
112
|
vue: that,
|
107
113
|
tableRef: 'table-m1',
|
108
114
|
tableName: 'basic_ompany_info_dialog_list',
|
109
|
-
path:
|
110
|
-
treeNodeUrl:
|
115
|
+
path: path,
|
116
|
+
treeNodeUrl: treeNodeUrl,
|
111
117
|
treeNodeParam: function (row) {
|
112
|
-
return {parentCompanyCode: row.companyCode};
|
118
|
+
return {enabled: true, parentCompanyCode: row.companyCode};
|
113
119
|
},
|
114
120
|
param: () => {
|
115
|
-
return
|
121
|
+
return {
|
122
|
+
enabled: true,
|
123
|
+
...this.formData
|
124
|
+
}
|
116
125
|
},
|
117
126
|
columns: [
|
118
127
|
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
@@ -55,6 +55,30 @@
|
|
55
55
|
</el-radio-group>
|
56
56
|
</el-form-item>
|
57
57
|
</td>
|
58
|
+
<th>
|
59
|
+
<em class="f-red">*</em>
|
60
|
+
{{ $t1('文件操作,是否发系统通知') }}
|
61
|
+
</th>
|
62
|
+
<td>
|
63
|
+
<el-form-item prop="toNotify" :rules="[{ required: true, trigger: 'blur' }]">
|
64
|
+
<el-radio-group v-model="fileStoreArea.toNotify">
|
65
|
+
<el-radio :label="1">{{ $t1('是') }}</el-radio>
|
66
|
+
<el-radio :label="0">{{ $t1('否') }}</el-radio>
|
67
|
+
</el-radio-group>
|
68
|
+
</el-form-item>
|
69
|
+
</td>
|
70
|
+
<th>
|
71
|
+
<em class="f-red">*</em>
|
72
|
+
{{ $t1('文件下载,是否打水印') }}
|
73
|
+
</th>
|
74
|
+
<td>
|
75
|
+
<el-form-item prop="toDownWatermark" :rules="[{ required: true, trigger: 'blur' }]">
|
76
|
+
<el-radio-group v-model="fileStoreArea.toDownWatermark">
|
77
|
+
<el-radio :label="1">{{ $t1('是') }}</el-radio>
|
78
|
+
<el-radio :label="0">{{ $t1('否') }}</el-radio>
|
79
|
+
</el-radio-group>
|
80
|
+
</el-form-item>
|
81
|
+
</td>
|
58
82
|
</tr>
|
59
83
|
<tr>
|
60
84
|
<th>{{ $t1('备注') }}</th>
|
@@ -94,7 +118,12 @@ export default {
|
|
94
118
|
tabIndex: 0,
|
95
119
|
isEdit: false,
|
96
120
|
dataId: '',
|
97
|
-
fileStoreArea: {
|
121
|
+
fileStoreArea: {
|
122
|
+
storeAreaType: 0,
|
123
|
+
hasAuth: 0,
|
124
|
+
toNotify: 0,
|
125
|
+
toDownWatermark: 0
|
126
|
+
},
|
98
127
|
};
|
99
128
|
},
|
100
129
|
created() {
|
@@ -154,6 +154,34 @@ export default {
|
|
154
154
|
}
|
155
155
|
}
|
156
156
|
},
|
157
|
+
{
|
158
|
+
field: 'toNotify',
|
159
|
+
title: this.$t1('文件操作,是否发系统通知'),
|
160
|
+
width: 220,
|
161
|
+
slots: {
|
162
|
+
default: ({row}) => {
|
163
|
+
if (row.toNotify == 1) {
|
164
|
+
return [<div class="txt-status">{this.$t1('是')}</div>];
|
165
|
+
} else {
|
166
|
+
return [<div class="txt-status s-3">{this.$t1('否')}</div>];
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
170
|
+
},
|
171
|
+
{
|
172
|
+
field: 'toDownWatermark',
|
173
|
+
title: this.$t1('文件下载,是否打水印'),
|
174
|
+
width: 200,
|
175
|
+
slots: {
|
176
|
+
default: ({row}) => {
|
177
|
+
if (row.toDownWatermark == 1) {
|
178
|
+
return [<div class="txt-status">{this.$t1('是')}</div>];
|
179
|
+
} else {
|
180
|
+
return [<div class="txt-status s-3">{this.$t1('否')}</div>];
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
},
|
157
185
|
{
|
158
186
|
title: this.$t1('备注'),
|
159
187
|
field: 'note',
|
@@ -76,6 +76,7 @@ export default {
|
|
76
76
|
if (this.dataId && !isNaN(this.dataId)) {
|
77
77
|
this.isEdit = true;
|
78
78
|
this.$commonHttp({
|
79
|
+
aes:true,
|
79
80
|
url: USER_PREFIX + `/groups/get`,
|
80
81
|
method: `post`,
|
81
82
|
data: {
|
@@ -95,6 +96,7 @@ export default {
|
|
95
96
|
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
96
97
|
var url = USER_PREFIX + (this.isEdit ? `/groups/update` : `/groups/save`);
|
97
98
|
this.$http({
|
99
|
+
aes:true,
|
98
100
|
url: url,
|
99
101
|
method: `post`,
|
100
102
|
data: this.groups,
|
@@ -59,8 +59,10 @@
|
|
59
59
|
</el-tabs>
|
60
60
|
</div>
|
61
61
|
<div class="tc copyright">
|
62
|
-
|
63
|
-
|
62
|
+
<slot name="footer">
|
63
|
+
© 广州同望科技发展有限公司
|
64
|
+
<span style="margin-left:50px;">4000646100</span>
|
65
|
+
</slot>
|
64
66
|
</div>
|
65
67
|
</div>
|
66
68
|
</template>
|
@@ -64,6 +64,25 @@ export default {
|
|
64
64
|
|
65
65
|
delete queryParam.urlmobile;
|
66
66
|
delete queryParam.url;
|
67
|
+
|
68
|
+
if (purl.indexOf('.html') >= 0) {
|
69
|
+
let eUrl = purl;
|
70
|
+
let pstr = Object.keys(queryParam).map(key => {
|
71
|
+
return key + "=" + queryParam[key]
|
72
|
+
}).join("&")
|
73
|
+
|
74
|
+
if (pstr) {
|
75
|
+
if (purl.indexOf('.html?') >= 0) {
|
76
|
+
eUrl = eUrl + '&' + pstr
|
77
|
+
} else {
|
78
|
+
eUrl = eUrl + '?' + pstr
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
location.href = eUrl;
|
83
|
+
return
|
84
|
+
}
|
85
|
+
|
67
86
|
delete queryParam.dataId;
|
68
87
|
delete queryParam.showWfContent;
|
69
88
|
delete queryParam.access_token;
|
@@ -74,7 +93,6 @@ export default {
|
|
74
93
|
let url = purl + '.vue';
|
75
94
|
this.queryParam = queryParam;
|
76
95
|
this.showWfContent = true;
|
77
|
-
await this.initI18n();
|
78
96
|
// this.wfContent = require('@/views' + url).default;
|
79
97
|
let t = "@base/views";
|
80
98
|
let urlArr = [
|
@@ -82,25 +100,34 @@ export default {
|
|
82
100
|
'/user/form/view/list.vue',
|
83
101
|
'/user/form/view/edit.vue'
|
84
102
|
]
|
85
|
-
|
86
|
-
this.
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
103
|
+
this.initUserInfo(() => {
|
104
|
+
this.initI18n();
|
105
|
+
if (urlArr.includes(url)) {
|
106
|
+
this.wfContent = require('@base/views' + url).default;
|
107
|
+
} else if (url.startsWith(t)) {
|
108
|
+
let path = url.slice(t.length);
|
109
|
+
this.wfContent = require('@base/views' + path).default;
|
110
|
+
} else {
|
111
|
+
this.wfContent = require('@/views' + url).default;
|
112
|
+
}
|
113
|
+
})
|
114
|
+
},
|
115
|
+
initUserInfo(callback) {
|
116
|
+
this.$store
|
117
|
+
.dispatch('user/getInfo2')
|
118
|
+
.then(() => {
|
119
|
+
callback && callback();
|
120
|
+
});
|
94
121
|
},
|
95
122
|
getI18nLang() {
|
96
123
|
let i18nLang = this.$route.query.i18nLang || "zh";
|
97
124
|
return i18nLang;
|
98
125
|
},
|
99
|
-
initI18n() {
|
126
|
+
async initI18n() {
|
100
127
|
let lang = this.getI18nLang();
|
101
128
|
this.$i18n.locale = lang // 设置给本地的i18n插件
|
102
129
|
localStorage.setItem("i18n-lang", lang);
|
103
|
-
|
130
|
+
await indexUtil.initI18nMessage("business", lang, true);
|
104
131
|
},
|
105
132
|
login() {
|
106
133
|
let token = this.$route.query.access_token;
|
@@ -55,6 +55,25 @@ export default {
|
|
55
55
|
|
56
56
|
delete queryParam.urlmobile;
|
57
57
|
delete queryParam.url;
|
58
|
+
|
59
|
+
if (purl.indexOf('.html') >= 0) {
|
60
|
+
let eUrl = purl;
|
61
|
+
let pstr = Object.keys(queryParam).map(key => {
|
62
|
+
return key + "=" + queryParam[key]
|
63
|
+
}).join("&")
|
64
|
+
|
65
|
+
if (pstr) {
|
66
|
+
if (purl.indexOf('.html?') >= 0) {
|
67
|
+
eUrl = eUrl + '&' + pstr
|
68
|
+
} else {
|
69
|
+
eUrl = eUrl + '?' + pstr
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
location.href = eUrl;
|
74
|
+
return
|
75
|
+
}
|
76
|
+
|
58
77
|
delete queryParam.dataId;
|
59
78
|
delete queryParam.showWfContent;
|
60
79
|
delete queryParam.access_token;
|
@@ -72,27 +91,34 @@ export default {
|
|
72
91
|
'/user/form/view/list.vue',
|
73
92
|
'/user/form/view/edit.vue'
|
74
93
|
]
|
75
|
-
|
76
|
-
this.
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
94
|
+
this.initUserInfo(() => {
|
95
|
+
this.initI18n();
|
96
|
+
if (urlArr.includes(url)) {
|
97
|
+
this.wfContent = require('@base/views' + url).default;
|
98
|
+
} else if (url.startsWith(t)) {
|
99
|
+
let path = url.slice(t.length);
|
100
|
+
this.wfContent = require('@base/views' + path).default;
|
101
|
+
} else {
|
102
|
+
this.wfContent = require('@/views' + url).default;
|
103
|
+
}
|
104
|
+
})
|
105
|
+
},
|
106
|
+
initUserInfo(callback) {
|
107
|
+
this.$store
|
108
|
+
.dispatch('user/getInfo2')
|
109
|
+
.then(() => {
|
110
|
+
callback && callback();
|
111
|
+
});
|
86
112
|
},
|
87
113
|
getI18nLang() {
|
88
114
|
let i18nLang = this.$route.query.i18nLang || "zh";
|
89
115
|
return i18nLang;
|
90
116
|
},
|
91
|
-
initI18n() {
|
117
|
+
async initI18n() {
|
92
118
|
let lang = this.getI18nLang();
|
93
119
|
this.$i18n.locale = lang // 设置给本地的i18n插件
|
94
120
|
localStorage.setItem("i18n-lang", lang);
|
95
|
-
indexUtil.initI18nMessage("business", lang, true);
|
121
|
+
await indexUtil.initI18nMessage("business", lang, true);
|
96
122
|
},
|
97
123
|
login() {
|
98
124
|
let token = this.$route.query.access_token;
|
@@ -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() {
|