cloud-web-corejs-haier 1.0.42 → 1.0.44
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 -7
- package/src/api/user.js +54 -46
- package/src/components/baseAlert/index.vue +57 -53
- package/src/components/baseInputExport/index.vue +3 -3
- package/src/components/baseTabs/mixins.js +12 -1
- package/src/components/errorMsg/index.vue +78 -78
- package/src/components/excelExport/button.vue +54 -45
- package/src/components/excelExport/exportFieldDialog.vue +3 -3
- package/src/components/excelExport/index.js +1 -43
- package/src/components/excelExport/index.vue +62 -34
- package/src/components/excelExport/mixins.js +74 -87
- package/src/components/excelImport/index.js +1 -62
- package/src/components/excelImport/mixins.js +1 -774
- package/src/components/fileLibrary/index.vue +113 -33
- package/src/components/fileLibrary/propertiesDialog.vue +6 -0
- package/src/components/hiprint/view/design/index.vue +139 -47
- package/src/components/hiprint/view/design/preview.vue +75 -52
- package/src/components/hiprint/view/json-view.vue +31 -31
- package/src/components/luckysheet/dialog.vue +159 -0
- package/src/components/luckysheet/export.js +595 -0
- package/src/components/luckysheet/fileUtils.js +147 -0
- package/src/components/luckysheet/index.js +69 -0
- package/src/components/luckysheet/templateJson.js +12078 -0
- package/src/components/luckysheet/view.vue +210 -0
- package/src/components/onlineTalk/index.vue +328 -6
- package/src/components/onlineTalk/talkUserDialog.vue +280 -0
- package/src/components/wf/addTaskUserdialog.vue +5 -5
- package/src/components/wf/content.vue +1244 -1169
- package/src/components/wf/mixins/setCandidateDialog.js +228 -2
- package/src/components/wf/mixins/setCandidateDialog2.js +115 -100
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +67 -1
- package/src/components/wf/setCandidateDialog.vue +5 -7
- package/src/components/wf/setCandidateDialog2.vue +14 -10
- package/src/components/wf/wf.js +527 -411
- package/src/components/wf/wfTaskUserRangeDialog.vue +1 -1
- package/src/components/wf/wfUtil.js +129 -91
- package/src/components/xform/form-designer/designer.js +1994 -9
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +10 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-pane-widget.vue +3 -2
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1756 -2
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +10 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +170 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1630 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +153 -40
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +65 -46
- package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +231 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +7 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +281 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +659 -221
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +133 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +48 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +18 -17
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +26 -26
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +67 -13
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +2 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/showViewButton-editor.vue +29 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +8 -6
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +20 -17
- package/src/components/xform/form-render/container-item/detail-item.vue +72 -48
- package/src/components/xform/form-render/container-item/sub-form-item.vue +10 -2
- package/src/components/xform/form-render/container-item/table2-item.vue +40 -10
- package/src/components/xform/form-render/indexMixin.js +3705 -1
- package/src/components/xform/icon-picker/icons.json +284 -0
- package/src/components/xform/icon-picker/index.vue +145 -0
- package/src/components/xform/lang/zh-CN.js +2 -1
- package/src/components/xform/mixins/defaultHandle.js +366 -2
- package/src/components/xform/utils/formula-util.js +3 -0
- package/src/components/xform/utils/sfc-generator.js +2 -2
- package/src/components/xform/utils/smart-vue-i18n/index.js +2 -1
- package/src/components/xform/utils/tableColumnHelper.js +54 -10
- package/src/components/xform/utils/util.js +1547 -1
- package/src/index.js +190 -211
- package/src/lang/locale/en/login.js +26 -19
- package/src/lang/locale/zh/login.js +25 -19
- package/src/layout/components/Sidebar/default.vue +252 -71
- package/src/layout/components/Sidebar/index.vue +6 -1
- package/src/layout/components/TagsView/index.vue +6 -0
- package/src/layout/components/langTool.vue +32 -29
- package/src/layout/defaultLayout.vue +16 -8
- package/src/layout/index.vue +5 -3
- package/src/permission.js +135 -1
- package/src/router/index.js +1 -4
- package/src/store/config/index.js +667 -1
- package/src/store/getters.js +2 -1
- package/src/store/modules/permission.js +332 -1
- package/src/store/modules/settings.js +26 -1
- package/src/store/modules/tagsView.js +190 -1
- package/src/store/modules/user.js +358 -1
- package/src/utils/aes.js +15 -1
- package/src/utils/auth.js +27 -1
- package/src/utils/componentDialog.js +217 -0
- package/src/utils/request.js +368 -1
- package/src/utils/vab.js +1256 -7
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/bd_company_env/edit.vue +193 -193
- package/src/views/bd/setting/formVersion/button.vue +55 -0
- package/src/views/bd/setting/formVersion/compareBasicSection.vue +125 -0
- package/src/views/bd/setting/formVersion/compareCodeSection.vue +539 -0
- package/src/views/bd/setting/formVersion/compareContMixin.scss +65 -0
- package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
- package/src/views/bd/setting/formVersion/compareDialog.vue +88 -0
- package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
- package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
- package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
- package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +491 -0
- package/src/views/bd/setting/formVersion/link.vue +58 -0
- package/src/views/bd/setting/formVersion/preformDialog.vue +87 -0
- package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
- package/src/views/bd/setting/formVersion/tableDetailDiff.js +99 -0
- package/src/views/bd/setting/formVersion/tableModelCompareView.vue +514 -0
- package/src/views/bd/setting/formVersion/textDiff.js +102 -0
- package/src/views/bd/setting/form_import_log/edit.vue +6 -3
- package/src/views/bd/setting/form_import_log/list.vue +5 -0
- package/src/views/bd/setting/form_script/edit.vue +196 -83
- package/src/views/bd/setting/form_script/edit1.vue +410 -220
- package/src/views/bd/setting/form_script/form_list.vue +19 -0
- package/src/views/bd/setting/form_script/list.vue +95 -21
- package/src/views/bd/setting/form_script/list1.vue +24 -0
- package/src/views/bd/setting/form_script/mixins/dialog.js +2 -2
- package/src/views/bd/setting/form_script/mixins/edit.js +265 -207
- package/src/views/bd/setting/form_script/mixins/edit1.js +259 -201
- package/src/views/bd/setting/form_script/mixins/form_list.js +322 -296
- package/src/views/bd/setting/form_script/mixins/list.js +163 -95
- package/src/views/bd/setting/form_script/mixins/list1.js +244 -155
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +1 -1
- package/src/views/bd/setting/form_template/edit.vue +355 -205
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
- package/src/views/bd/setting/form_template/list.vue +49 -74
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +3 -3
- package/src/views/bd/setting/form_template/mixins/edit.js +51 -8
- package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.js +114 -82
- package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -7
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -254
- package/src/views/bd/setting/form_template/wf_list.vue +161 -127
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -320
- package/src/views/bd/setting/request_setting/edit.vue +300 -300
- package/src/views/bd/setting/request_setting/list.vue +15 -25
- package/src/views/bd/setting/table_model/edit.vue +702 -498
- package/src/views/bd/setting/table_model/list.vue +28 -0
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit copy.js +903 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +228 -121
- package/src/views/bd/setting/table_model/mixins/list.js +55 -20
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +50 -46
- package/src/views/bd/setting/utils/index.js +15 -0
- package/src/views/user/api_request/list.vue +203 -203
- package/src/views/user/bill_setting/list.vue +345 -345
- package/src/views/user/code_rules/list.vue +204 -204
- package/src/views/user/common_attribute/list.vue +378 -378
- package/src/views/user/common_script/list.vue +341 -341
- package/src/views/user/company_info/dialog.vue +80 -49
- package/src/views/user/country/list.vue +197 -197
- package/src/views/user/extend_datasource/dialog.vue +0 -3
- package/src/views/user/extend_datasource/edit.vue +1 -2
- package/src/views/user/extend_datasource/list.vue +221 -224
- package/src/views/user/fieldTranslation/editDialog.vue +1 -1
- package/src/views/user/fieldTranslation/list.vue +473 -473
- package/src/views/user/field_values_invisible/list.vue +207 -207
- package/src/views/user/file_type/list.vue +271 -271
- package/src/views/user/file_view_area/list.vue +331 -331
- package/src/views/user/form/vform/designer.vue +303 -287
- package/src/views/user/form/vform/formFieldMapping.js +2 -3
- package/src/views/user/form/view/edit.vue +19 -1
- package/src/views/user/form/view/list.vue +59 -17
- package/src/views/user/groups/list.vue +158 -158
- package/src/views/user/home/default.vue +274 -182
- package/src/views/user/home/default2.vue +1148 -0
- package/src/views/user/home/index.vue +2 -1
- package/src/views/user/lang_tag/list.vue +170 -170
- package/src/views/user/language_setting/list.vue +208 -208
- package/src/views/user/ledger_library/list.vue +12 -10
- package/src/views/user/login/default.vue +1 -1
- package/src/views/user/login/indexMixin.js +204 -169
- package/src/views/user/menu/list.vue +575 -575
- package/src/views/user/notify_message/dialog.vue +7 -1
- package/src/views/user/notify_template/list.vue +192 -192
- package/src/views/user/notify_template/list2.vue +190 -190
- package/src/views/user/position/list.vue +188 -188
- package/src/views/user/project_tag/list.vue +175 -175
- package/src/views/user/push_setting/list.vue +236 -236
- package/src/views/user/request_setting/list.vue +248 -248
- package/src/views/user/role/list.vue +182 -182
- package/src/views/user/system_notice/infoDialog.vue +61 -2
- package/src/views/user/system_notice/list.vue +203 -203
- package/src/views/user/system_parameter/list.vue +141 -141
- package/src/views/user/user/edit.vue +45 -0
- package/src/views/user/user/form_list.vue +245 -245
- package/src/views/user/user/info.vue +253 -140
- package/src/views/user/user_log_classify/list.vue +197 -197
- package/src/views/user/wf/iframe/index.vue +46 -46
- package/src/views/user/wf/wfReport/index.vue +1 -1
- package/src/views/user/wf/wf_auto_submit_data/list.vue +659 -659
- package/src/views/user/wf/wf_diy_attribute/edit.vue +1 -1
- package/src/views/user/wf/wf_manage/list.vue +795 -795
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +106 -106
- package/src/views/user/wf/wf_obj_config/dialog.vue +2 -2
- package/src/views/user/wf/wf_obj_config/edit.vue +1 -1
- package/src/views/user/wf/wf_obj_config/edit_form.vue +2 -2
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +1 -1
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +1 -1
- package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +4 -4
- package/src/views/user/wf/wf_obj_config/list.vue +28 -28
- package/src/views/user/wf/wf_obj_config/list_form.vue +5 -5
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -292
- package/src/views/user/wf/wf_param/edit.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/edit.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/list.vue +321 -319
- package/src/views/user/wf/wf_work_calendar/components/calendar.vue +369 -367
- package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +401 -399
- package/src/views/user/wf/wf_work_calendar/configDialog.vue +6 -6
- package/src/views/user/wf/wf_work_calendar/date.js +84 -83
- package/src/views/user/wf/wf_work_calendar/list.vue +6 -6
- package/src/views/user/workbench_menu/list.vue +555 -0
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
<script>
|
|
14
14
|
import corejsConfig from "@/corejsConfig";
|
|
15
|
+
import settingConfig from "@/settings";
|
|
15
16
|
|
|
16
17
|
export default {
|
|
17
18
|
name: 'home',
|
|
@@ -86,7 +87,7 @@ export default {
|
|
|
86
87
|
url = menuUrl + '.vue';
|
|
87
88
|
} else {
|
|
88
89
|
let defaultHomePage = this.userInfo.defaultHomePage;
|
|
89
|
-
url =
|
|
90
|
+
url = defaultHomePage || settingConfig.defaultHomePage || '@base/views/user/home/default.vue'
|
|
90
91
|
}
|
|
91
92
|
if (url.startsWith(str1)) {
|
|
92
93
|
this.homeContent = require('@base/views' + url.slice(str1.length)).default;
|
|
@@ -1,170 +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>
|
|
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>
|