cloud-web-corejs 1.0.27 → 1.0.29
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 +1 -1
- package/src/components/formOplog/mixins.js +1 -1
- package/src/components/jsonImport/exportDialog.vue +1 -1
- package/src/components/jsonImport/index.vue +151 -202
- package/src/components/jsonImport/mixins.js +1 -309
- package/src/components/projectTag/addButton.vue +3 -50
- package/src/components/projectTag/deleteButton.vue +3 -50
- package/src/components/projectTag/mixins/addButton.js +5 -0
- package/src/components/projectTag/mixins/deleteButton.js +5 -0
- package/src/components/projectTag/mixins/view.js +5 -0
- package/src/components/projectTag/view.vue +33 -72
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/index.js +0 -2
- package/src/layout/components/Sidebar/default.vue +4 -6
- package/src/router/modules/system.js +1 -1
- package/src/store/config/index.js +3 -0
- package/src/store/getters.js +2 -0
- package/src/store/modules/permission.js +2 -2
- package/src/store/modules/user.js +2 -1
- package/src/utils/request.js +28 -29
- package/src/utils/vab.js +27 -27
- package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -87
- package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -92
- package/src/views/bd/setting/bd_attach_setting/list.vue +4 -214
- package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +89 -0
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +96 -0
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +219 -0
- package/src/views/bd/setting/form_script/dialog.vue +3 -137
- package/src/views/bd/setting/form_script/edit.vue +3 -127
- package/src/views/bd/setting/form_script/edit1.vue +3 -142
- package/src/views/bd/setting/form_script/form_list.vue +4 -259
- package/src/views/bd/setting/form_script/list.vue +55 -223
- package/src/views/bd/setting/form_script/list1.vue +117 -444
- package/src/views/bd/setting/form_script/list2.vue +3 -4
- package/src/views/bd/setting/form_script/mixins/dialog.js +142 -0
- package/src/views/bd/setting/form_script/mixins/edit.js +134 -0
- package/src/views/bd/setting/form_script/mixins/edit1.js +149 -0
- package/src/views/bd/setting/form_script/mixins/form_list.js +264 -0
- package/src/views/bd/setting/form_script/mixins/list.js +176 -0
- package/src/views/bd/setting/form_script/mixins/list1.js +336 -0
- package/src/views/bd/setting/form_script/mixins/list2.js +14 -0
- package/src/views/bd/setting/form_template/dialog.vue +104 -212
- package/src/views/bd/setting/form_template/edit.vue +183 -329
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +46 -131
- package/src/views/bd/setting/form_template/ftHistoryDialog.vue +88 -175
- package/src/views/bd/setting/form_template/itemEdit.vue +174 -270
- package/src/views/bd/setting/form_template/itemList.vue +56 -300
- package/src/views/bd/setting/form_template/list.vue +211 -766
- package/src/views/bd/setting/form_template/mixins/dialog.js +114 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +155 -0
- package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +94 -0
- package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +95 -0
- package/src/views/bd/setting/form_template/mixins/itemEdit.js +106 -0
- package/src/views/bd/setting/form_template/mixins/itemList.js +254 -0
- package/src/views/bd/setting/form_template/mixins/list.js +562 -0
- package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -0
- package/src/views/bd/setting/form_template/preformDialog.vue +57 -77
- package/src/views/bd/setting/menu_kind/authDialog.vue +84 -308
- package/src/views/bd/setting/menu_kind/dialog.vue +89 -226
- package/src/views/bd/setting/menu_kind/list.vue +86 -262
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +232 -0
- package/src/views/bd/setting/menu_kind/mixins/dialog.js +144 -0
- package/src/views/bd/setting/menu_kind/mixins/list.js +187 -0
- package/src/views/bd/setting/table_model/dialog.vue +95 -161
- package/src/views/bd/setting/table_model/edit.vue +5 -767
- package/src/views/bd/setting/table_model/list.vue +130 -491
- package/src/views/bd/setting/table_model/mixins/dialog.js +74 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +778 -0
- package/src/views/bd/setting/table_model/mixins/list.js +367 -0
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -0
- package/src/views/bd/setting/table_model/zdDialog.vue +95 -201
- package/src/views/support/export_template/edit.vue +40 -36
- package/src/views/support/export_template/list.vue +40 -52
- package/src/views/user/access_log/edit.vue +18 -17
- package/src/views/user/access_log/list.vue +27 -26
- package/src/views/user/access_log/statistics_list.vue +19 -17
- package/src/views/user/api_request/edit.vue +14 -11
- package/src/views/user/api_request/list.vue +13 -11
- package/src/views/user/area/dialog.vue +14 -27
- package/src/views/user/area_attribute/configDialog.vue +11 -13
- package/src/views/user/area_attribute/edit.vue +8 -6
- package/src/views/user/area_attribute/list.vue +1 -1
- package/src/views/user/attachment/uploadDialog.vue +1 -1
- package/src/views/user/bill_setting/button/previewButton.vue +2 -2
- package/src/views/user/bill_setting/compareView.vue +1 -1
- package/src/views/user/bill_setting/edit.vue +24 -17
- package/src/views/user/bill_setting/h5_ModifyDialog.vue +1 -1
- package/src/views/user/bill_setting/itemViewDialog.vue +3 -66
- package/src/views/user/bill_setting/list.vue +28 -26
- package/src/views/user/bill_setting/mixins/wf.js +8 -8
- package/src/views/user/bill_setting/previewDialog.vue +1 -1
- package/src/views/user/bill_setting/render.vue +29 -29
- package/src/views/user/bill_setting/userDialog.vue +7 -5
- package/src/views/user/code_rules/edit.vue +21 -18
- package/src/views/user/code_rules/list.vue +27 -19
- package/src/views/user/commMenu/index.vue +3 -3
- package/src/views/user/common_attribute/edit.vue +7 -5
- package/src/views/user/common_attribute/itemEdit.vue +22 -22
- package/src/views/user/common_attribute/list.vue +25 -24
- package/src/views/user/common_script/edit.vue +12 -12
- package/src/views/user/common_script/list.vue +30 -32
- package/src/views/user/company_info/dialog.vue +9 -9
- package/src/views/user/company_info/edit.vue +11 -8
- package/src/views/user/country/dialog.vue +11 -9
- package/src/views/user/country/edit.vue +12 -9
- package/src/views/user/country/list.vue +12 -12
- package/src/views/user/data_type_setting/dialog.vue +10 -10
- package/src/views/user/data_type_setting/editDialog.vue +6 -6
- package/src/views/user/ea/eagroup/eaobj_list.vue +25 -25
- package/src/views/user/ea/eagroup/edit.vue +48 -42
- package/src/views/user/ea/eaobj/edit.vue +6 -5
- package/src/views/user/ea/eaobj/list.vue +9 -8
- package/src/views/user/extend_datasource/dialog.vue +19 -24
- package/src/views/user/extend_datasource/edit.vue +20 -16
- package/src/views/user/extend_datasource/list.vue +23 -24
- package/src/views/user/fieldTranslation/editDialog.vue +28 -28
- package/src/views/user/fieldTranslation/list.vue +59 -57
- package/src/views/user/field_values_invisible/edit.vue +15 -14
- package/src/views/user/field_values_invisible/list.vue +23 -22
- package/src/views/user/file_type/edit.vue +12 -21
- package/src/views/user/file_type/list.vue +21 -36
- package/src/views/user/file_type/userEdit.vue +14 -9
- package/src/views/user/file_view_area/edit.vue +3 -3
- package/src/views/user/file_view_area/itemEdit.vue +11 -9
- package/src/views/user/file_view_area/list.vue +17 -16
- package/src/views/user/file_view_ins/list.vue +29 -28
- package/src/views/user/file_view_ins/propertiesDialog.vue +15 -15
- package/src/views/user/form/form_template/edit.vue +1 -1
- package/src/views/user/form/form_template/itemEdit.vue +1 -1
- package/src/views/user/form/form_template/itemList.vue +2 -2
- package/src/views/user/form/form_template/list.vue +3 -3
- package/src/views/user/form/form_type/edit.vue +1 -1
- package/src/views/user/form/form_type/list.vue +1 -1
- package/src/views/user/form/report_requestaccess/edit.vue +1 -1
- package/src/views/user/form/report_requestaccess/list.vue +1 -1
- package/src/views/user/form/vform/designer.vue +2 -0
- package/src/views/user/form/vform/out_render.vue +1 -0
- package/src/views/user/form/vform/render.vue +1 -0
- package/src/views/user/form/view/list.vue +2 -1
- package/src/views/user/groups/dialog.vue +159 -0
- package/src/views/user/groups/edit.vue +131 -0
- package/src/views/user/groups/list.vue +167 -0
- package/src/views/user/home/index.vue +3 -3
- package/src/views/user/lang_tag/dialog.vue +185 -0
- package/src/views/user/lang_tag/edit.vue +138 -0
- package/src/views/user/lang_tag/list.vue +170 -0
- package/src/views/user/language_setting/edit.vue +11 -9
- package/src/views/user/language_setting/list.vue +20 -18
- package/src/views/user/login/default.vue +129 -0
- package/src/views/user/login/index.vue +3 -117
- package/src/views/user/menu/list.vue +39 -55
- package/src/views/user/mobile_menu/list.vue +18 -54
- package/src/views/user/notify_message/dialog.vue +1 -1
- package/src/views/user/notify_message/infoDialog.vue +1 -1
- package/src/views/user/notify_message/list.vue +24 -23
- package/src/views/user/notify_template/edit.vue +13 -11
- package/src/views/user/notify_template/list.vue +19 -16
- package/src/views/user/oplog/edit.vue +12 -12
- package/src/views/user/oplog/list.vue +20 -18
- package/src/views/user/position/dialog.vue +6 -6
- package/src/views/user/position/edit.vue +11 -8
- package/src/views/user/position/list.vue +11 -11
- package/src/views/user/project_tag/dialog.vue +11 -9
- package/src/views/user/project_tag/edit.vue +8 -6
- package/src/views/user/project_tag/list.vue +15 -12
- package/src/views/user/push_setting/edit.vue +20 -17
- package/src/views/user/push_setting/list.vue +1 -1
- package/src/views/user/role/dialog.vue +11 -11
- package/src/views/user/role/edit.vue +14 -12
- package/src/views/user/role/list.vue +14 -12
- package/src/views/user/sale_org/dialog.vue +12 -12
- package/src/views/user/sale_org/list.vue +43 -48
- package/src/views/user/system_notice/edit.vue +13 -11
- package/src/views/user/system_notice/infoDialog.vue +2 -2
- package/src/views/user/system_notice/list.vue +19 -17
- package/src/views/user/system_parameter/edit.vue +7 -6
- package/src/views/user/system_parameter/list.vue +12 -10
- package/src/views/user/user/edit.vue +1 -1
- package/src/views/user/user/form_edit.vue +50 -7
- package/src/views/user/user/form_list.vue +34 -132
- package/src/views/user/user/info.vue +20 -19
- package/src/views/user/user/infoEdit.vue +18 -18
- package/src/views/user/user/infoIframeDialog.vue +1 -1
- package/src/views/user/user/modifyPasswordDialog.vue +9 -9
- package/src/views/user/wf/iframe/dialog.vue +1 -1
- package/src/views/user/wf/wf_auto_submit_data/edit.vue +11 -10
- package/src/views/user/wf/wf_auto_submit_data/edith.vue +14 -13
- package/src/views/user/wf/wf_auto_submit_data/list.vue +43 -41
- package/src/views/user/wf/wf_diy_attribute/edit.vue +11 -8
- package/src/views/user/wf/wf_manage/list.vue +66 -61
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/dialog.vue +11 -11
- package/src/views/user/wf/wf_obj_config/edit.vue +12 -9
- package/src/views/user/wf/wf_obj_config/edit_form.vue +11 -9
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +31 -27
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +8 -6
- package/src/views/user/wf/wf_obj_config/list.vue +42 -41
- package/src/views/user/wf/wf_obj_config/list_form.vue +14 -12
- package/src/views/user/wf/wf_param/edit.vue +7 -5
- package/src/views/user/wf/wf_work_calendar/configDialog.vue +9 -24
- package/src/views/user/wf/wf_work_calendar/list.vue +6 -3
- package/src/views/user/home/distributor.vue +0 -849
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="detail-wrap">
|
|
3
|
+
<el-form ref="editForm" :model="langTag">
|
|
4
|
+
<div class="d-header clearfix">
|
|
5
|
+
<div class="fl">
|
|
6
|
+
<i class="el-icon-info"/>
|
|
7
|
+
{{ dataId ? $t1('查看多语言标签') : $t1('新增多语言标签') }}
|
|
8
|
+
</div>
|
|
9
|
+
<div class="fr">
|
|
10
|
+
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
|
11
|
+
{{ $t1('重置') }}
|
|
12
|
+
</el-button>
|
|
13
|
+
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
|
|
14
|
+
</el-button>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="d-cont">
|
|
18
|
+
<div class="d-item">
|
|
19
|
+
<div class="title first"><b>{{ $t1('基本信息') }}</b></div>
|
|
20
|
+
<table class="table-detail">
|
|
21
|
+
<tbody>
|
|
22
|
+
<tr>
|
|
23
|
+
<th>
|
|
24
|
+
<em class="f-red">*</em>
|
|
25
|
+
{{ $t1('标签名称') }}
|
|
26
|
+
</th>
|
|
27
|
+
<td>
|
|
28
|
+
<el-form-item prop="tagName" :rules="[{ required: true, trigger: 'blur' }]">
|
|
29
|
+
<el-input type="text" autocomplete="off" v-model="langTag.tagName" clearable/>
|
|
30
|
+
</el-form-item>
|
|
31
|
+
</td>
|
|
32
|
+
<th>
|
|
33
|
+
{{ $t1('标签编码') }}
|
|
34
|
+
</th>
|
|
35
|
+
<td>
|
|
36
|
+
{{ langTag.tagCode }}
|
|
37
|
+
</td>
|
|
38
|
+
</tr>
|
|
39
|
+
<tr>
|
|
40
|
+
<th>{{ $t1('标签说明') }}</th>
|
|
41
|
+
<td colspan="5">
|
|
42
|
+
<el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small"
|
|
43
|
+
v-model="langTag.tagRemark"
|
|
44
|
+
clearable></el-input>
|
|
45
|
+
</td>
|
|
46
|
+
</tr>
|
|
47
|
+
<tr>
|
|
48
|
+
<th>{{ $t1('创建人') }}</th>
|
|
49
|
+
<td>{{ langTag._createBy }}</td>
|
|
50
|
+
<th>{{ $t1('创建时间') }}</th>
|
|
51
|
+
<td>{{ langTag.createDate }}</td>
|
|
52
|
+
<th>{{ $t1('更新人') }}</th>
|
|
53
|
+
<td>{{ langTag._modifyBy }}</td>
|
|
54
|
+
<th>{{ $t1('更新时间') }}</th>
|
|
55
|
+
<td>{{ langTag.modifyDate }}</td>
|
|
56
|
+
</tr>
|
|
57
|
+
</tbody>
|
|
58
|
+
</table>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</el-form>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<script>
|
|
66
|
+
export default {
|
|
67
|
+
name: 'langTagEdit',
|
|
68
|
+
props: {
|
|
69
|
+
_dataId: [String, Number]
|
|
70
|
+
},
|
|
71
|
+
components: {},
|
|
72
|
+
data() {
|
|
73
|
+
return {
|
|
74
|
+
isEdit: false,
|
|
75
|
+
dataId: '',
|
|
76
|
+
langTag: {}
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
created() {
|
|
80
|
+
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
|
81
|
+
},
|
|
82
|
+
mounted() {
|
|
83
|
+
this.getData();
|
|
84
|
+
},
|
|
85
|
+
methods: {
|
|
86
|
+
getData() {
|
|
87
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
|
88
|
+
this.isEdit = true;
|
|
89
|
+
this.$commonHttp({
|
|
90
|
+
url: USER_PREFIX + `/langTag/get`,
|
|
91
|
+
method: `post`,
|
|
92
|
+
data: {
|
|
93
|
+
id: this.dataId
|
|
94
|
+
},
|
|
95
|
+
isLoading: true,
|
|
96
|
+
modalStrictly: true,
|
|
97
|
+
success: res => {
|
|
98
|
+
this.langTag = res.objx || {};
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
saveData() {
|
|
104
|
+
this.$refs.editForm.$baseValidate(valid => {
|
|
105
|
+
if (valid) {
|
|
106
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
107
|
+
var url = USER_PREFIX + (this.isEdit ? `/langTag/update` : `/langTag/save`);
|
|
108
|
+
this.$http({
|
|
109
|
+
url: url,
|
|
110
|
+
method: `post`,
|
|
111
|
+
data: this.langTag,
|
|
112
|
+
isLoading: true,
|
|
113
|
+
success: res => {
|
|
114
|
+
this.$message({
|
|
115
|
+
message: res.content,
|
|
116
|
+
type: 'success',
|
|
117
|
+
duration: 500,
|
|
118
|
+
onClose: t => {
|
|
119
|
+
if (this.isEdit) {
|
|
120
|
+
this.$baseReload();
|
|
121
|
+
} else {
|
|
122
|
+
this.$baseReload({
|
|
123
|
+
updateParam: {
|
|
124
|
+
_dataId: res.objx
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
</script>
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="containt">
|
|
3
|
+
<el-tabs v-model="activeName" class="tab-box">
|
|
4
|
+
<el-tab-pane :label="$t1('常规')" name="first">
|
|
5
|
+
<editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
|
|
6
|
+
@reload="$reloadHandle"></editView>
|
|
7
|
+
</el-tab-pane>
|
|
8
|
+
<el-tab-pane :label="$t1('列表')" name="second">
|
|
9
|
+
<div class="grid-height">
|
|
10
|
+
<vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
11
|
+
@custom="$vxeTableUtil.customHandle">
|
|
12
|
+
<template #form>
|
|
13
|
+
<tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
|
|
14
|
+
<template #buttonLeft>
|
|
15
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
|
|
16
|
+
{{ $t1('新增') }}
|
|
17
|
+
</vxe-button>
|
|
18
|
+
<base-table-export :option="{ title: $t1('多语言标签导出'), targetRef: 'table-m1'}"
|
|
19
|
+
:parent-target="_self"/>
|
|
20
|
+
</template>
|
|
21
|
+
<template #buttonRight>
|
|
22
|
+
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
23
|
+
plain>{{ $t1('重置') }}
|
|
24
|
+
</vxe-button>
|
|
25
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
26
|
+
{{ $t1('搜索') }}
|
|
27
|
+
</vxe-button>
|
|
28
|
+
</template>
|
|
29
|
+
<template #tag>
|
|
30
|
+
<vxe-form-item :title="$t1('多语言标签')+':'" field="tag">
|
|
31
|
+
<template v-slot>
|
|
32
|
+
<el-input
|
|
33
|
+
class="search-input"
|
|
34
|
+
max="200"
|
|
35
|
+
:value="getTabNames()"
|
|
36
|
+
@clear="
|
|
37
|
+
checkTags = [];
|
|
38
|
+
"
|
|
39
|
+
v-el-readonly
|
|
40
|
+
clearable
|
|
41
|
+
>
|
|
42
|
+
<i slot="suffix" class="el-input__icon el-icon-search" @click="openProjectTagDialog3"></i>
|
|
43
|
+
</el-input>
|
|
44
|
+
</template>
|
|
45
|
+
</vxe-form-item>
|
|
46
|
+
</template>
|
|
47
|
+
</tableForm>
|
|
48
|
+
</template>
|
|
49
|
+
</vxe-grid>
|
|
50
|
+
</div>
|
|
51
|
+
</el-tab-pane>
|
|
52
|
+
</el-tabs>
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
<script>
|
|
57
|
+
import editView from './edit.vue';
|
|
58
|
+
import tableForm from "@base/components/table/tableForm.vue";
|
|
59
|
+
|
|
60
|
+
export default {
|
|
61
|
+
name: 'lang_tag:list',
|
|
62
|
+
components: {tableForm, editView},
|
|
63
|
+
data() {
|
|
64
|
+
return {
|
|
65
|
+
activeName: 'second',
|
|
66
|
+
dataId: 0,
|
|
67
|
+
showEdit: false,
|
|
68
|
+
vxeOption: {},
|
|
69
|
+
formData: {}
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
mounted() {
|
|
73
|
+
this.initTableList();
|
|
74
|
+
},
|
|
75
|
+
methods: {
|
|
76
|
+
searchEvent() {
|
|
77
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
78
|
+
},
|
|
79
|
+
resetEvent() {
|
|
80
|
+
this.formData = {};
|
|
81
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
82
|
+
},
|
|
83
|
+
openEditDialog(id) {
|
|
84
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
|
85
|
+
this.activeName = 'first';
|
|
86
|
+
this.$openEditView('showEdit');
|
|
87
|
+
},
|
|
88
|
+
initTableList() {
|
|
89
|
+
let that = this;
|
|
90
|
+
let tableOption = {
|
|
91
|
+
vue: this,
|
|
92
|
+
tableRef: 'table-m1',
|
|
93
|
+
tableName: 'user_langTag_list-m1',
|
|
94
|
+
path: USER_PREFIX + '/langTag/listPage',
|
|
95
|
+
param: () => {
|
|
96
|
+
return this.formData;
|
|
97
|
+
},
|
|
98
|
+
columns: [
|
|
99
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
100
|
+
{
|
|
101
|
+
title: this.$t1('标签名称'),
|
|
102
|
+
field: 'tagName',
|
|
103
|
+
width: 150,
|
|
104
|
+
fixed: 'left'
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
title: this.$t1('标签编码'),
|
|
108
|
+
field: 'tagCode',
|
|
109
|
+
width: 150
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
title: this.$t1('标签说明'),
|
|
113
|
+
field: 'tagRemark',
|
|
114
|
+
width: 250
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
field: 'createDate',
|
|
118
|
+
title: this.$t1('创建时间'),
|
|
119
|
+
width: 150
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
field: '_createBy',
|
|
123
|
+
title: this.$t1('创建人'),
|
|
124
|
+
width: 150
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
field: '_modifyBy',
|
|
128
|
+
title: this.$t1('更新人'),
|
|
129
|
+
width: 150
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
width: 47,
|
|
133
|
+
fixed: 'right',
|
|
134
|
+
title: '',
|
|
135
|
+
sortable: false,
|
|
136
|
+
slots: {
|
|
137
|
+
default: ({row}) => {
|
|
138
|
+
return [
|
|
139
|
+
<div>
|
|
140
|
+
<a
|
|
141
|
+
href="javascript:void(0);"
|
|
142
|
+
class="a-link"
|
|
143
|
+
onclick={() => {
|
|
144
|
+
this.openEditDialog(row.id);
|
|
145
|
+
}}
|
|
146
|
+
>
|
|
147
|
+
<el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
|
|
148
|
+
popper-class="tooltip-skin">
|
|
149
|
+
<i class="el-icon-edit"/>
|
|
150
|
+
</el-tooltip>
|
|
151
|
+
</a>
|
|
152
|
+
</div>
|
|
153
|
+
];
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
searchColumns: [
|
|
159
|
+
{title: this.$t1('标签名称'), field: "tagName", type: "input", common: true},
|
|
160
|
+
{title: this.$t1('标签编码'), field: "tagCode", type: "input", common: true},
|
|
161
|
+
{title: this.$t1('标签说明'), field: "tagRemark", type: "input", common: true}
|
|
162
|
+
]
|
|
163
|
+
};
|
|
164
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
165
|
+
this.vxeOption = opts;
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
</script>
|
|
@@ -4,12 +4,14 @@
|
|
|
4
4
|
<div class="d-header clearfix">
|
|
5
5
|
<div class="fl">
|
|
6
6
|
<i class="el-icon-info"/>
|
|
7
|
-
{{ dataId ? $t1('
|
|
7
|
+
{{ dataId ? $t1('查看语种') : $t1('新增语种') }}
|
|
8
8
|
</div>
|
|
9
9
|
<div class="fr">
|
|
10
|
-
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
|
10
|
+
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
|
11
|
+
{{ $t1('重置') }}
|
|
12
|
+
</el-button>
|
|
13
|
+
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
|
|
11
14
|
</el-button>
|
|
12
|
-
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{$t1('保存')}}</el-button>
|
|
13
15
|
</div>
|
|
14
16
|
</div>
|
|
15
17
|
<baseTabs>
|
|
@@ -20,7 +22,7 @@
|
|
|
20
22
|
<tr>
|
|
21
23
|
<th>
|
|
22
24
|
<em class="f-red">*</em>
|
|
23
|
-
语言名称
|
|
25
|
+
{{ $t1('语言名称') }}
|
|
24
26
|
</th>
|
|
25
27
|
<td>
|
|
26
28
|
<el-form-item prop="languageName" :rules="[{ required: true, trigger: 'blur' }]">
|
|
@@ -29,7 +31,7 @@
|
|
|
29
31
|
</td>
|
|
30
32
|
<th>
|
|
31
33
|
<em class="f-red">*</em>
|
|
32
|
-
对应翻译字段
|
|
34
|
+
{{ $t1('对应翻译字段') }}
|
|
33
35
|
</th>
|
|
34
36
|
<td>
|
|
35
37
|
<el-form-item prop="translationField" :rules="[{ required: true, trigger: 'blur' }]">
|
|
@@ -38,7 +40,7 @@
|
|
|
38
40
|
</td>
|
|
39
41
|
<th>
|
|
40
42
|
<em class="f-red">*</em>
|
|
41
|
-
语言编码
|
|
43
|
+
{{ $t1('语言编码') }}
|
|
42
44
|
</th>
|
|
43
45
|
<td>
|
|
44
46
|
<el-form-item prop="languageCode" :rules="[{ required: true, trigger: 'blur' }]">
|
|
@@ -46,13 +48,13 @@
|
|
|
46
48
|
</el-form-item>
|
|
47
49
|
</td>
|
|
48
50
|
<th>
|
|
49
|
-
是否启用
|
|
51
|
+
{{ $t1('是否启用') }}
|
|
50
52
|
</th>
|
|
51
53
|
<td>
|
|
52
54
|
<el-form-item prop="enabled" :rules="[{ required: false, trigger: 'blur' }]">
|
|
53
55
|
<el-radio-group v-model="languageSetting.enabled">
|
|
54
|
-
<el-radio :label="true"
|
|
55
|
-
<el-radio :label="false"
|
|
56
|
+
<el-radio :label="true">{{ $t1('启用') }}</el-radio>
|
|
57
|
+
<el-radio :label="false">{{ $t1('禁用') }}</el-radio>
|
|
56
58
|
</el-radio-group>
|
|
57
59
|
</el-form-item>
|
|
58
60
|
</td>
|
|
@@ -12,47 +12,49 @@
|
|
|
12
12
|
<template #form>
|
|
13
13
|
<div class="clearfix screen-btns">
|
|
14
14
|
<div class="fl">
|
|
15
|
-
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog"
|
|
15
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
|
|
16
|
+
{{ $t1('新增') }}
|
|
16
17
|
</vxe-button>
|
|
17
18
|
<vxe-button status="primary" class="button-sty" icon="el-icon-upload2"
|
|
18
|
-
@click="$excelExport({ title: '语种导出', targetRef: 'table-m1' })">
|
|
19
|
-
导出
|
|
19
|
+
@click="$excelExport({ title: $t1('语种导出'), targetRef: 'table-m1' })">
|
|
20
|
+
{{ $t1('导出') }}
|
|
20
21
|
</vxe-button>
|
|
21
22
|
</div>
|
|
22
23
|
<div class="fr">
|
|
23
24
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
24
|
-
plain>{{$t1('重置')}}
|
|
25
|
+
plain>{{ $t1('重置') }}
|
|
25
26
|
</vxe-button>
|
|
26
|
-
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent"
|
|
27
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
28
|
+
{{ $t1('搜索') }}
|
|
27
29
|
</vxe-button>
|
|
28
30
|
</div>
|
|
29
31
|
</div>
|
|
30
32
|
<vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
|
|
31
33
|
@submit="searchEvent" @reset="searchEvent">
|
|
32
|
-
<vxe-form-item title="
|
|
34
|
+
<vxe-form-item :title="$t1('语言名称')+':'" field="languageName">
|
|
33
35
|
<template v-slot>
|
|
34
36
|
<el-input v-model="formData.languageName" size="small" clearable/>
|
|
35
37
|
</template>
|
|
36
38
|
</vxe-form-item>
|
|
37
|
-
<vxe-form-item title="
|
|
39
|
+
<vxe-form-item :title="$t1('对应翻译字段')+':'" field="translationField">
|
|
38
40
|
<template v-slot>
|
|
39
41
|
<el-input v-model="formData.translationField" size="small" clearable/>
|
|
40
42
|
</template>
|
|
41
43
|
</vxe-form-item>
|
|
42
|
-
<vxe-form-item title="
|
|
44
|
+
<vxe-form-item :title="$t1('语言编码')+':'" field="languageCode">
|
|
43
45
|
<template v-slot>
|
|
44
46
|
<el-input v-model="formData.languageCode" size="small" clearable/>
|
|
45
47
|
</template>
|
|
46
48
|
</vxe-form-item>
|
|
47
|
-
<vxe-form-item title="
|
|
49
|
+
<vxe-form-item :title="$t1('是否启用')+':'" field="enabled">
|
|
48
50
|
<template v-slot>
|
|
49
51
|
<el-select v-model="formData.enabled" clearable>
|
|
50
|
-
<el-option :value="true" label="启用"></el-option>
|
|
51
|
-
<el-option :value="false" label="禁用"></el-option>
|
|
52
|
+
<el-option :value="true" :label="$t1('启用')"></el-option>
|
|
53
|
+
<el-option :value="false" :label="$t1('禁用')"></el-option>
|
|
52
54
|
</el-select>
|
|
53
55
|
</template>
|
|
54
56
|
</vxe-form-item>
|
|
55
|
-
<vxe-form-item title="
|
|
57
|
+
<vxe-form-item :title="$t1('备注')+':'" field="remark">
|
|
56
58
|
<template v-slot>
|
|
57
59
|
<el-input v-model="formData.remark" size="small" clearable/>
|
|
58
60
|
</template>
|
|
@@ -110,18 +112,18 @@ export default {
|
|
|
110
112
|
columns: [
|
|
111
113
|
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
112
114
|
{
|
|
113
|
-
title: '语言名称',
|
|
115
|
+
title: this.$t1('语言名称'),
|
|
114
116
|
field: 'languageName',
|
|
115
117
|
width: 150,
|
|
116
118
|
fixed: 'left'
|
|
117
119
|
},
|
|
118
120
|
{
|
|
119
|
-
title: '对应翻译字段',
|
|
121
|
+
title: this.$t1('对应翻译字段'),
|
|
120
122
|
field: 'translationField',
|
|
121
123
|
width: 150,
|
|
122
124
|
},
|
|
123
125
|
{
|
|
124
|
-
title: '语言编码',
|
|
126
|
+
title: this.$t1('语言编码'),
|
|
125
127
|
field: 'languageCode',
|
|
126
128
|
width: 150,
|
|
127
129
|
},
|
|
@@ -134,13 +136,13 @@ export default {
|
|
|
134
136
|
if (row.enabled) {
|
|
135
137
|
return [
|
|
136
138
|
<div class="txt-status">
|
|
137
|
-
<span
|
|
139
|
+
<span>{this.$t1('启用')}</span>
|
|
138
140
|
</div>
|
|
139
141
|
];
|
|
140
142
|
} else {
|
|
141
143
|
return [
|
|
142
144
|
<div class="txt-status disable">
|
|
143
|
-
<span
|
|
145
|
+
<span>{this.$t1('禁用')}</span>
|
|
144
146
|
</div>
|
|
145
147
|
];
|
|
146
148
|
}
|
|
@@ -173,7 +175,7 @@ export default {
|
|
|
173
175
|
this.openEditDialog(row.id);
|
|
174
176
|
}}
|
|
175
177
|
>
|
|
176
|
-
<el-tooltip enterable={false} effect="dark" content={
|
|
178
|
+
<el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
|
|
177
179
|
popper-class="tooltip-skin">
|
|
178
180
|
<i class="el-icon-edit"/>
|
|
179
181
|
</el-tooltip>
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="login-container" :class="backgroundClass" ref="login-container" v-show="showContent">
|
|
3
|
+
<div class="login-main" style="height: auto;">
|
|
4
|
+
<el-tabs v-model="activeName">
|
|
5
|
+
<el-tab-pane label="账号登录" name="first">
|
|
6
|
+
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="box-form login" autocomplete="on"
|
|
7
|
+
label-position="left">
|
|
8
|
+
<el-form-item prop="username" class="txt">
|
|
9
|
+
<span class="svg-container"><i class="el-icon-user"/></span>
|
|
10
|
+
<el-input ref="username" v-model="loginForm.username" placeholder="请输入用户名" name="" type="text"
|
|
11
|
+
tabindex="1" autocomplete="on" @keyup.enter.native="handleLogin"/>
|
|
12
|
+
</el-form-item>
|
|
13
|
+
<el-tooltip :enterable="false" v-model="capsTooltip" content="Caps lock is On" placement="right" manual>
|
|
14
|
+
<el-form-item prop="password" class="txt">
|
|
15
|
+
<span class="svg-container"><i class="el-icon-lock"/></span>
|
|
16
|
+
<el-input
|
|
17
|
+
:key="passwordType"
|
|
18
|
+
ref="password"
|
|
19
|
+
v-model="loginForm.password"
|
|
20
|
+
:type="passwordType"
|
|
21
|
+
placeholder="请输入密码"
|
|
22
|
+
name=""
|
|
23
|
+
tabindex="2"
|
|
24
|
+
autocomplete="on"
|
|
25
|
+
auto-complete="new-password"
|
|
26
|
+
@keyup.native="checkCapslock"
|
|
27
|
+
@blur="capsTooltip = false"
|
|
28
|
+
@keyup.enter.native="handleLogin"
|
|
29
|
+
/>
|
|
30
|
+
<span class="show-pwd" @click="showPwd"><svg-icon
|
|
31
|
+
:icon-class="passwordType === 'password' ? 'eye' : 'eye-open'"/></span>
|
|
32
|
+
</el-form-item>
|
|
33
|
+
</el-tooltip>
|
|
34
|
+
<div class="">
|
|
35
|
+
<el-checkbox v-model="isRememberPassword">记住密码</el-checkbox>
|
|
36
|
+
</div>
|
|
37
|
+
<el-button :loading="loading" type="primary" @click.prevent.stop="handleLogin" class="btn">登录</el-button>
|
|
38
|
+
</el-form>
|
|
39
|
+
</el-tab-pane>
|
|
40
|
+
<el-tab-pane label="手机验证码登录" name="second">
|
|
41
|
+
<el-form ref="loginForm" :model="loginForm2" :rules="loginRules" class="box-form login" autocomplete="on"
|
|
42
|
+
label-position="left">
|
|
43
|
+
<el-form-item prop="username" class="txt" style="width:66%">
|
|
44
|
+
<span class="svg-container"><i class="el-icon-mobile-phone"/></span>
|
|
45
|
+
<el-input ref="mobile" v-model="loginForm2.username" placeholder="请输入手机号" name="" type="text"
|
|
46
|
+
tabindex="1" autocomplete="on" @keyup.enter.native="handleLogin"/>
|
|
47
|
+
</el-form-item>
|
|
48
|
+
<el-button class="btn-send" type="success" :class="{'gray-btn':isCounting}" @click="sendCode">
|
|
49
|
+
{{ buttonText }}
|
|
50
|
+
</el-button>
|
|
51
|
+
<el-form-item prop="smsCode" class="txt">
|
|
52
|
+
<span class="svg-container"><i class="el-icon-message"/></span>
|
|
53
|
+
<el-input ref="smsCode" v-model="loginForm2.smsCode" placeholder="请输入验证码" name="" type="text"
|
|
54
|
+
tabindex="1" autocomplete="on" @keyup.enter.native="handleLogin"/>
|
|
55
|
+
</el-form-item>
|
|
56
|
+
<el-button :loading="loading" type="primary" @click.prevent.stop="handleLogin" class="btn">登录</el-button>
|
|
57
|
+
</el-form>
|
|
58
|
+
</el-tab-pane>
|
|
59
|
+
</el-tabs>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="tc copyright">
|
|
62
|
+
© 广州同望科技发展有限公司
|
|
63
|
+
<span style="margin-left:50px;">4000646100</span>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<script>
|
|
69
|
+
import mixin from "./indexMixin";
|
|
70
|
+
|
|
71
|
+
export default {
|
|
72
|
+
name: 'Login',
|
|
73
|
+
mixins: [mixin]
|
|
74
|
+
}
|
|
75
|
+
</script>
|
|
76
|
+
<style lang="scss" scoped>
|
|
77
|
+
@import '@/resources/css/login.scss';
|
|
78
|
+
|
|
79
|
+
.login-container.tc {
|
|
80
|
+
background: url(~@/resources/images/bg-login5.jpg) center center/cover no-repeat;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.login-container.chigo {
|
|
84
|
+
background: url(~@/resources/images/bg-login6.jpg) center center/cover no-repeat;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.login-container.pcp {
|
|
88
|
+
background: url(~@/resources/images/bg-login8.jpg) center center/cover no-repeat;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.el-select-dropdown {
|
|
92
|
+
right: 5px;
|
|
93
|
+
top: 25px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
::v-deep .login-main .el-tabs__header {
|
|
97
|
+
margin-bottom: 0;
|
|
98
|
+
|
|
99
|
+
.el-tabs__nav {
|
|
100
|
+
line-height: 65px;
|
|
101
|
+
margin: 0 25px;
|
|
102
|
+
width: calc(100% - 50px);
|
|
103
|
+
|
|
104
|
+
.el-tabs__item {
|
|
105
|
+
font-size: 18px;
|
|
106
|
+
width: 50%;
|
|
107
|
+
text-align: center;
|
|
108
|
+
margin-right: 0;
|
|
109
|
+
padding-right: 0 !important;
|
|
110
|
+
line-height: 65px;
|
|
111
|
+
height: 65px;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.btn-send {
|
|
117
|
+
position: absolute;
|
|
118
|
+
margin-top: -74px;
|
|
119
|
+
right: 35px;
|
|
120
|
+
height: 52px;
|
|
121
|
+
width: 27%;
|
|
122
|
+
|
|
123
|
+
&.gray-btn {
|
|
124
|
+
background: #dedede;
|
|
125
|
+
border-color: #dedede;
|
|
126
|
+
color: #8a8686;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
</style>
|