cloud-web-corejs 1.0.54-dev.8 → 1.0.54-dev.80
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 +116 -18
- package/src/components/excelExport/index.js +6 -31
- package/src/components/excelExport/index.vue +8 -6
- package/src/components/excelExport/mixins.js +2 -707
- 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 +1 -1
- package/src/components/fileLibrary/fileObjNotifyEdit.vue +192 -0
- package/src/components/fileLibrary/index.vue +3 -3
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +12 -6
- 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/fileLibrary/mixins/propertiesDialogMixins.js +2 -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/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 +11 -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 +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 +1 -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/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 +1 -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/data-table-editor.vue +6 -0
- 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/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-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/showRuleFlag-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +53 -4
- package/src/components/xform/form-render/container-item/data-table-item.vue +2 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1873 -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 +598 -1
- package/src/store/modules/permission.js +1 -1
- package/src/utils/request.js +28 -28
- package/src/utils/vab.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/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 +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 +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/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 +4 -2
- 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 +17 -8
- 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/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/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_list.vue +1 -0
- package/src/views/user/user/list.vue +11 -18
- 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
@@ -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'},
|
@@ -168,6 +168,7 @@ export default {
|
|
168
168
|
if (this.dataId && !isNaN(this.dataId)) {
|
169
169
|
this.isEdit = true;
|
170
170
|
this.$http({
|
171
|
+
aes: true,
|
171
172
|
url: USER_PREFIX + `/extend_datasource/get`,
|
172
173
|
method: `post`,
|
173
174
|
data: {
|
@@ -189,6 +190,7 @@ export default {
|
|
189
190
|
if (valid) {
|
190
191
|
this.$baseConfirm(this.$t1('您确定要测试数据库链接吗?')).then(() => {
|
191
192
|
this.$http({
|
193
|
+
aes: true,
|
192
194
|
url: USER_PREFIX + '/extend_datasource/dblinktest',
|
193
195
|
method: `post`,
|
194
196
|
data: this.dataSource,
|
@@ -211,6 +213,7 @@ export default {
|
|
211
213
|
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
212
214
|
var url = USER_PREFIX + (this.isEdit ? `/extend_datasource/update` : `/extend_datasource/save`);
|
213
215
|
this.$http({
|
216
|
+
aes: true,
|
214
217
|
url: url,
|
215
218
|
method: `post`,
|
216
219
|
data: this.dataSource,
|
@@ -72,7 +72,7 @@
|
|
72
72
|
import editView from './edit.vue';
|
73
73
|
|
74
74
|
export default {
|
75
|
-
name: '
|
75
|
+
name: 'extend_datasource:list',
|
76
76
|
components: {editView},
|
77
77
|
data() {
|
78
78
|
return {
|
@@ -106,6 +106,7 @@ export default {
|
|
106
106
|
tableRef: 'table-m1',
|
107
107
|
tableName: 'user_report_datasource_list-m1',
|
108
108
|
path: USER_PREFIX + '/extend_datasource/listPage',
|
109
|
+
aes: true,
|
109
110
|
param: () => {
|
110
111
|
return this.formData;
|
111
112
|
},
|
@@ -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;
|
@@ -8,6 +8,8 @@
|
|
8
8
|
</template>
|
9
9
|
|
10
10
|
<script>
|
11
|
+
import {getToken} from "@base/utils/auth";
|
12
|
+
|
11
13
|
export default {
|
12
14
|
name: 'outLink',
|
13
15
|
data() {
|
@@ -36,6 +38,21 @@ export default {
|
|
36
38
|
this.type = 1;
|
37
39
|
}
|
38
40
|
});
|
41
|
+
}else if (url.indexOf('token=platform_token') >= 0) {
|
42
|
+
this.$http({
|
43
|
+
url: YX_PREFIX + `/fundPlatform/getToken`,
|
44
|
+
method: `post`,
|
45
|
+
data: {},
|
46
|
+
isLoading: true,
|
47
|
+
success: res => {
|
48
|
+
this.url = url.replace('token=platform_token', 'token=' + res.objx);
|
49
|
+
this.type = 1;
|
50
|
+
}
|
51
|
+
});
|
52
|
+
} else if (url.indexOf('token=true') >= 0) {
|
53
|
+
let token = getToken();
|
54
|
+
this.url = url.replace('token=true', ('token=' + token))
|
55
|
+
this.type = 1;
|
39
56
|
} else {
|
40
57
|
this.url = url;
|
41
58
|
this.type = 1;
|
@@ -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;
|
@@ -32,7 +32,7 @@
|
|
32
32
|
<el-input v-model="formData.dataType" size="small" clearable/>
|
33
33
|
</template>
|
34
34
|
</vxe-form-item>
|
35
|
-
<vxe-form-item title="
|
35
|
+
<vxe-form-item title="推送组织编码:" field="pushCompanyCode">
|
36
36
|
<template v-slot>
|
37
37
|
<el-input v-model="formData.pushCompanyCode" size="small" clearable/>
|
38
38
|
</template>
|
@@ -142,7 +142,7 @@ export default {
|
|
142
142
|
fixed: 'left'
|
143
143
|
},
|
144
144
|
{
|
145
|
-
title: '
|
145
|
+
title: '推送组织编码',
|
146
146
|
field: 'pushCompanyCode',
|
147
147
|
width: 150
|
148
148
|
},
|
@@ -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]
|