cloud-web-corejs-haier 1.0.43 → 1.0.45
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 -6
- 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/content2.vue +604 -604
- package/src/components/wf/mixins/setCandidateDialog.js +228 -2
- package/src/components/wf/mixins/setCandidateDialog2.js +116 -101
- 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 +2325 -2209
- 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
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
v-el-drag-dialog
|
|
14
14
|
v-el-dialog-center
|
|
15
15
|
>
|
|
16
|
-
<div class="cont" style="height:65vh">
|
|
16
|
+
<div class="cont" style="height: 65vh">
|
|
17
17
|
<vxe-grid
|
|
18
18
|
class="is-pointer"
|
|
19
19
|
ref="table-m1"
|
|
@@ -27,19 +27,37 @@
|
|
|
27
27
|
<template #form>
|
|
28
28
|
<div class="clearfix screen-btns">
|
|
29
29
|
<div class="fr">
|
|
30
|
-
<vxe-button
|
|
31
|
-
|
|
30
|
+
<vxe-button
|
|
31
|
+
icon="el-icon-brush"
|
|
32
|
+
class="button-sty"
|
|
33
|
+
@click="resetEvent"
|
|
34
|
+
type="text"
|
|
35
|
+
status="primary"
|
|
36
|
+
plain
|
|
37
|
+
>{{ $t1("重置") }}
|
|
32
38
|
</vxe-button>
|
|
33
|
-
<vxe-button
|
|
34
|
-
|
|
39
|
+
<vxe-button
|
|
40
|
+
status="warning"
|
|
41
|
+
icon="el-icon-search"
|
|
42
|
+
class="button-sty"
|
|
43
|
+
@click="searchEvent"
|
|
44
|
+
>
|
|
45
|
+
{{ $t1("搜索") }}
|
|
35
46
|
</vxe-button>
|
|
36
47
|
</div>
|
|
37
48
|
</div>
|
|
38
|
-
<vxe-form
|
|
39
|
-
|
|
40
|
-
|
|
49
|
+
<vxe-form
|
|
50
|
+
class="screen-box"
|
|
51
|
+
title-width="92px"
|
|
52
|
+
title-align="right"
|
|
53
|
+
:data="formData"
|
|
54
|
+
@submit="searchEvent"
|
|
55
|
+
@reset="resetEvent"
|
|
56
|
+
v-if="!allCompany"
|
|
57
|
+
>
|
|
58
|
+
<vxe-form-item :title="$t1('组织名称') + ':'" field="companyName">
|
|
41
59
|
<template v-slot>
|
|
42
|
-
<el-input v-model="formData.companyName" size="small" clearable/>
|
|
60
|
+
<el-input v-model="formData.companyName" size="small" clearable />
|
|
43
61
|
</template>
|
|
44
62
|
</vxe-form-item>
|
|
45
63
|
<vxe-button type="submit" @click="searchEvent" v-show="false"></vxe-button>
|
|
@@ -54,8 +72,13 @@
|
|
|
54
72
|
</div>
|
|
55
73
|
</label>
|
|
56
74
|
<div class="multipleChoice">
|
|
57
|
-
<el-tooltip
|
|
58
|
-
|
|
75
|
+
<el-tooltip
|
|
76
|
+
:enterable="false"
|
|
77
|
+
effect="dark"
|
|
78
|
+
:content="$t1('全部删除')"
|
|
79
|
+
placement="top"
|
|
80
|
+
><a class="allDel icon-quanbushanchu" @click="clearChecked()"></a
|
|
81
|
+
></el-tooltip>
|
|
59
82
|
<div class="list">
|
|
60
83
|
<div class="item" v-for="(checkRow, index) in checkRows" :key="index">
|
|
61
84
|
<p>{{ checkRow.companyName }}</p>
|
|
@@ -64,25 +87,27 @@
|
|
|
64
87
|
</div>
|
|
65
88
|
</div>
|
|
66
89
|
<span slot="footer" class="dialog-footer">
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
90
|
+
<span class="fl tips" v-if="!selectMulti">{{
|
|
91
|
+
$t1("注:双击确认选择(单选)")
|
|
92
|
+
}}</span>
|
|
93
|
+
<el-button type="primary" plain class="button-sty" @click="dialogCancel">
|
|
94
|
+
<i class="el-icon-close el-icon"></i>
|
|
95
|
+
{{ $t1("取 消") }}
|
|
96
|
+
</el-button>
|
|
97
|
+
<el-button type="primary" @click="dialogPrimary" class="button-sty">
|
|
98
|
+
<i class="el-icon-check el-icon"></i>
|
|
99
|
+
{{ $t1("确 定") }}
|
|
100
|
+
</el-button>
|
|
101
|
+
</span>
|
|
77
102
|
</el-dialog>
|
|
78
103
|
</template>
|
|
79
104
|
|
|
80
105
|
<script>
|
|
81
|
-
import {selectDialogMixins} from
|
|
106
|
+
import { selectDialogMixins } from "@base/mixins/selectDialog/index.js";
|
|
82
107
|
|
|
83
108
|
export default {
|
|
84
|
-
name:
|
|
85
|
-
props: [
|
|
109
|
+
name: "company_info_dialog",
|
|
110
|
+
props: ["title", "visiable", "multi", "rows", "param", "firstEnabled", "allCompany"],
|
|
86
111
|
mixins: [selectDialogMixins],
|
|
87
112
|
created() {
|
|
88
113
|
if (this.$attrs.fieldKey) this.fieldKey = this.$attrs.fieldKey;
|
|
@@ -103,45 +128,51 @@ export default {
|
|
|
103
128
|
methods: {
|
|
104
129
|
initTableM1() {
|
|
105
130
|
let that = this;
|
|
106
|
-
let path = USER_PREFIX +
|
|
107
|
-
let treeNodeUrl = USER_PREFIX +
|
|
131
|
+
let path = USER_PREFIX + "/user_company_info/getCurrentList";
|
|
132
|
+
let treeNodeUrl = USER_PREFIX + "/user_company_info/getChildren";
|
|
108
133
|
if (this.allCompany) {
|
|
109
|
-
path = USER_PREFIX +
|
|
110
|
-
treeNodeUrl = USER_PREFIX +
|
|
134
|
+
path = USER_PREFIX + "/company_info/getRoot";
|
|
135
|
+
treeNodeUrl = USER_PREFIX + "/company_info/getChildren";
|
|
111
136
|
}
|
|
112
137
|
let tableOption = {
|
|
113
138
|
vue: that,
|
|
114
|
-
tableRef:
|
|
115
|
-
tableName:
|
|
139
|
+
tableRef: "table-m1",
|
|
140
|
+
tableName: "basic_ompany_info_dialog_list",
|
|
116
141
|
path: path,
|
|
117
142
|
treeNodeUrl: treeNodeUrl,
|
|
118
143
|
treeNodeParam: function (row) {
|
|
119
|
-
return {enabled: true, parentCompanyCode: row.companyCode};
|
|
144
|
+
return { enabled: true, parentCompanyCode: row.companyCode };
|
|
120
145
|
},
|
|
121
146
|
param: () => {
|
|
122
147
|
return {
|
|
123
148
|
enabled: true,
|
|
124
|
-
...this.formData
|
|
125
|
-
}
|
|
149
|
+
...this.formData,
|
|
150
|
+
};
|
|
126
151
|
},
|
|
127
152
|
columns: [
|
|
128
|
-
{type:
|
|
129
|
-
{
|
|
130
|
-
|
|
153
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
154
|
+
{
|
|
155
|
+
title: this.$t1("组织名称"),
|
|
156
|
+
field: "companyName",
|
|
157
|
+
width: 250,
|
|
158
|
+
fixed: "left",
|
|
159
|
+
treeNode: true,
|
|
160
|
+
},
|
|
161
|
+
{ title: this.$t1("组织编码"), field: "companyCode", width: 200 },
|
|
131
162
|
{
|
|
132
163
|
width: 47,
|
|
133
|
-
fixed:
|
|
134
|
-
title:
|
|
135
|
-
sortable: false
|
|
136
|
-
}
|
|
164
|
+
fixed: "right",
|
|
165
|
+
title: "",
|
|
166
|
+
sortable: false,
|
|
167
|
+
},
|
|
137
168
|
],
|
|
138
169
|
config: {
|
|
139
170
|
checkboxConfig: {
|
|
140
171
|
checkStrictly: true,
|
|
141
172
|
showHeader: this.selectMulti,
|
|
142
|
-
trigger:
|
|
143
|
-
checkMethod: ({row}) => {
|
|
144
|
-
if (this.firstEnabled ===
|
|
173
|
+
trigger: "row",
|
|
174
|
+
checkMethod: ({ row }) => {
|
|
175
|
+
if (this.firstEnabled === "true" || this.firstEnabled === true) {
|
|
145
176
|
return true;
|
|
146
177
|
} else {
|
|
147
178
|
if (!row.parentCompanyCode) {
|
|
@@ -150,15 +181,15 @@ export default {
|
|
|
150
181
|
return true;
|
|
151
182
|
}
|
|
152
183
|
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
},
|
|
156
187
|
};
|
|
157
188
|
|
|
158
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
189
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
159
190
|
that.vxeOption = opts;
|
|
160
191
|
});
|
|
161
|
-
}
|
|
162
|
-
}
|
|
192
|
+
},
|
|
193
|
+
},
|
|
163
194
|
};
|
|
164
195
|
</script>
|
|
@@ -1,197 +1,197 @@
|
|
|
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
|
-
<div class="clearfix screen-btns">
|
|
14
|
-
<div class="fl">
|
|
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'}" :parent-target="_self"/>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="fr">
|
|
21
|
-
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
22
|
-
plain>{{ $t1('重置') }}
|
|
23
|
-
</vxe-button>
|
|
24
|
-
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
25
|
-
{{ $t1('搜索') }}
|
|
26
|
-
</vxe-button>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
<vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
|
|
30
|
-
@submit="searchEvent" @reset="searchEvent">
|
|
31
|
-
<vxe-form-item :title="$t1('国家名称')+':'" field="countryName">
|
|
32
|
-
<template v-slot>
|
|
33
|
-
<el-input v-model="formData.countryName" size="small" clearable/>
|
|
34
|
-
</template>
|
|
35
|
-
</vxe-form-item>
|
|
36
|
-
<vxe-form-item :title="$t1('国家简称')+':'" field="simpleName">
|
|
37
|
-
<template v-slot>
|
|
38
|
-
<el-input v-model="formData.simpleName" size="small" clearable/>
|
|
39
|
-
</template>
|
|
40
|
-
</vxe-form-item>
|
|
41
|
-
<vxe-form-item :title="$t1('国家编码')+':'" field="countryCode">
|
|
42
|
-
<template v-slot>
|
|
43
|
-
<el-input v-model="formData.countryCode" size="small" clearable/>
|
|
44
|
-
</template>
|
|
45
|
-
</vxe-form-item>
|
|
46
|
-
</vxe-form>
|
|
47
|
-
</template>
|
|
48
|
-
</vxe-grid>
|
|
49
|
-
</div>
|
|
50
|
-
</el-tab-pane>
|
|
51
|
-
</el-tabs>
|
|
52
|
-
</div>
|
|
53
|
-
</template>
|
|
54
|
-
|
|
55
|
-
<script>
|
|
56
|
-
import editView from './edit.vue';
|
|
57
|
-
|
|
58
|
-
export default {
|
|
59
|
-
name: 'country:list',
|
|
60
|
-
components: {editView},
|
|
61
|
-
data() {
|
|
62
|
-
return {
|
|
63
|
-
activeName: 'second',
|
|
64
|
-
dataId: 0,
|
|
65
|
-
showEdit: false,
|
|
66
|
-
vxeOption: {},
|
|
67
|
-
formData: {}
|
|
68
|
-
};
|
|
69
|
-
},
|
|
70
|
-
mounted() {
|
|
71
|
-
this.initTableList();
|
|
72
|
-
},
|
|
73
|
-
methods: {
|
|
74
|
-
searchEvent() {
|
|
75
|
-
this.$refs['table-m1'].commitProxy('reload');
|
|
76
|
-
},
|
|
77
|
-
resetEvent() {
|
|
78
|
-
this.formData = {};
|
|
79
|
-
this.$refs['table-m1'].commitProxy('reload');
|
|
80
|
-
},
|
|
81
|
-
openEditDialog(id) {
|
|
82
|
-
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
|
83
|
-
this.activeName = 'first';
|
|
84
|
-
this.$openEditView('showEdit');
|
|
85
|
-
},
|
|
86
|
-
initTableList() {
|
|
87
|
-
let that = this;
|
|
88
|
-
let tableOption = {
|
|
89
|
-
vue: this,
|
|
90
|
-
tableRef: 'table-m1',
|
|
91
|
-
tableName: 'user_country_list-m1',
|
|
92
|
-
path: USER_PREFIX + '/country/listPage',
|
|
93
|
-
param: () => {
|
|
94
|
-
return this.formData;
|
|
95
|
-
},
|
|
96
|
-
columns: [
|
|
97
|
-
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
98
|
-
{
|
|
99
|
-
title: this.$t1('国家名称'),
|
|
100
|
-
field: 'countryName',
|
|
101
|
-
width: 250,
|
|
102
|
-
fixed: 'left'
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
field: 'simpleName',
|
|
106
|
-
title: this.$t1('国家简称'),
|
|
107
|
-
width: 150
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
field: 'countryCode',
|
|
111
|
-
title: this.$t1('国家编码'),
|
|
112
|
-
width: 150
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
field: 'enabled',
|
|
116
|
-
title: this.$t1('是否启用'),
|
|
117
|
-
width: 150,
|
|
118
|
-
slots: {
|
|
119
|
-
default: ({row}) => {
|
|
120
|
-
if (row.enabled) {
|
|
121
|
-
return [
|
|
122
|
-
<div class="txt-status">
|
|
123
|
-
<span>{this.$t1('启用')}</span>
|
|
124
|
-
</div>
|
|
125
|
-
];
|
|
126
|
-
} else {
|
|
127
|
-
return [
|
|
128
|
-
<div class="txt-status disable">
|
|
129
|
-
<span>{this.$t1('禁用')}</span>
|
|
130
|
-
</div>
|
|
131
|
-
];
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
field: 'createDate',
|
|
138
|
-
title: this.$t1('创建时间'),
|
|
139
|
-
width: 150
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
field: '_createBy',
|
|
143
|
-
title: this.$t1('创建人'),
|
|
144
|
-
width: 150
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
field: '_modifyBy',
|
|
148
|
-
title: this.$t1('更新人'),
|
|
149
|
-
width: 150
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
width: 47,
|
|
153
|
-
fixed: 'right',
|
|
154
|
-
title: '',
|
|
155
|
-
sortable: false,
|
|
156
|
-
slots: {
|
|
157
|
-
default: ({row}) => {
|
|
158
|
-
return [
|
|
159
|
-
<div>
|
|
160
|
-
<a
|
|
161
|
-
href="javascript:void(0);"
|
|
162
|
-
class="a-link"
|
|
163
|
-
onclick={() => {
|
|
164
|
-
this.openEditDialog(row.id);
|
|
165
|
-
}}
|
|
166
|
-
>
|
|
167
|
-
<el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
|
|
168
|
-
popper-class="tooltip-skin">
|
|
169
|
-
<i class="el-icon-edit"/>
|
|
170
|
-
</el-tooltip>
|
|
171
|
-
</a>
|
|
172
|
-
</div>
|
|
173
|
-
];
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
]
|
|
178
|
-
};
|
|
179
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
180
|
-
this.vxeOption = opts;
|
|
181
|
-
});
|
|
182
|
-
},
|
|
183
|
-
importExcel() {
|
|
184
|
-
let that = this;
|
|
185
|
-
that.$excelImport({
|
|
186
|
-
prefix: USER_PREFIX,
|
|
187
|
-
excel: USER_PREFIX + '/excelTemplate/country/country.xlsx',
|
|
188
|
-
multi: false,
|
|
189
|
-
saveUrl: USER_PREFIX + '/country/save',
|
|
190
|
-
callback: () => {
|
|
191
|
-
that.searchEvent();
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
};
|
|
197
|
-
</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
|
+
<div class="clearfix screen-btns">
|
|
14
|
+
<div class="fl">
|
|
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'}" :parent-target="_self"/>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="fr">
|
|
21
|
+
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
22
|
+
plain>{{ $t1('重置') }}
|
|
23
|
+
</vxe-button>
|
|
24
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
|
25
|
+
{{ $t1('搜索') }}
|
|
26
|
+
</vxe-button>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
<vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
|
|
30
|
+
@submit="searchEvent" @reset="searchEvent">
|
|
31
|
+
<vxe-form-item :title="$t1('国家名称')+':'" field="countryName">
|
|
32
|
+
<template v-slot>
|
|
33
|
+
<el-input v-model="formData.countryName" size="small" clearable/>
|
|
34
|
+
</template>
|
|
35
|
+
</vxe-form-item>
|
|
36
|
+
<vxe-form-item :title="$t1('国家简称')+':'" field="simpleName">
|
|
37
|
+
<template v-slot>
|
|
38
|
+
<el-input v-model="formData.simpleName" size="small" clearable/>
|
|
39
|
+
</template>
|
|
40
|
+
</vxe-form-item>
|
|
41
|
+
<vxe-form-item :title="$t1('国家编码')+':'" field="countryCode">
|
|
42
|
+
<template v-slot>
|
|
43
|
+
<el-input v-model="formData.countryCode" size="small" clearable/>
|
|
44
|
+
</template>
|
|
45
|
+
</vxe-form-item>
|
|
46
|
+
</vxe-form>
|
|
47
|
+
</template>
|
|
48
|
+
</vxe-grid>
|
|
49
|
+
</div>
|
|
50
|
+
</el-tab-pane>
|
|
51
|
+
</el-tabs>
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
54
|
+
|
|
55
|
+
<script>
|
|
56
|
+
import editView from './edit.vue';
|
|
57
|
+
|
|
58
|
+
export default {
|
|
59
|
+
name: 'country:list',
|
|
60
|
+
components: {editView},
|
|
61
|
+
data() {
|
|
62
|
+
return {
|
|
63
|
+
activeName: 'second',
|
|
64
|
+
dataId: 0,
|
|
65
|
+
showEdit: false,
|
|
66
|
+
vxeOption: {},
|
|
67
|
+
formData: {}
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
mounted() {
|
|
71
|
+
this.initTableList();
|
|
72
|
+
},
|
|
73
|
+
methods: {
|
|
74
|
+
searchEvent() {
|
|
75
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
76
|
+
},
|
|
77
|
+
resetEvent() {
|
|
78
|
+
this.formData = {};
|
|
79
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
80
|
+
},
|
|
81
|
+
openEditDialog(id) {
|
|
82
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
|
83
|
+
this.activeName = 'first';
|
|
84
|
+
this.$openEditView('showEdit');
|
|
85
|
+
},
|
|
86
|
+
initTableList() {
|
|
87
|
+
let that = this;
|
|
88
|
+
let tableOption = {
|
|
89
|
+
vue: this,
|
|
90
|
+
tableRef: 'table-m1',
|
|
91
|
+
tableName: 'user_country_list-m1',
|
|
92
|
+
path: USER_PREFIX + '/country/listPage',
|
|
93
|
+
param: () => {
|
|
94
|
+
return this.formData;
|
|
95
|
+
},
|
|
96
|
+
columns: [
|
|
97
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
98
|
+
{
|
|
99
|
+
title: this.$t1('国家名称'),
|
|
100
|
+
field: 'countryName',
|
|
101
|
+
width: 250,
|
|
102
|
+
fixed: 'left'
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
field: 'simpleName',
|
|
106
|
+
title: this.$t1('国家简称'),
|
|
107
|
+
width: 150
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
field: 'countryCode',
|
|
111
|
+
title: this.$t1('国家编码'),
|
|
112
|
+
width: 150
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
field: 'enabled',
|
|
116
|
+
title: this.$t1('是否启用'),
|
|
117
|
+
width: 150,
|
|
118
|
+
slots: {
|
|
119
|
+
default: ({row}) => {
|
|
120
|
+
if (row.enabled) {
|
|
121
|
+
return [
|
|
122
|
+
<div class="txt-status">
|
|
123
|
+
<span>{this.$t1('启用')}</span>
|
|
124
|
+
</div>
|
|
125
|
+
];
|
|
126
|
+
} else {
|
|
127
|
+
return [
|
|
128
|
+
<div class="txt-status disable">
|
|
129
|
+
<span>{this.$t1('禁用')}</span>
|
|
130
|
+
</div>
|
|
131
|
+
];
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
field: 'createDate',
|
|
138
|
+
title: this.$t1('创建时间'),
|
|
139
|
+
width: 150
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
field: '_createBy',
|
|
143
|
+
title: this.$t1('创建人'),
|
|
144
|
+
width: 150
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
field: '_modifyBy',
|
|
148
|
+
title: this.$t1('更新人'),
|
|
149
|
+
width: 150
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
width: 47,
|
|
153
|
+
fixed: 'right',
|
|
154
|
+
title: '',
|
|
155
|
+
sortable: false,
|
|
156
|
+
slots: {
|
|
157
|
+
default: ({row}) => {
|
|
158
|
+
return [
|
|
159
|
+
<div>
|
|
160
|
+
<a
|
|
161
|
+
href="javascript:void(0);"
|
|
162
|
+
class="a-link"
|
|
163
|
+
onclick={() => {
|
|
164
|
+
this.openEditDialog(row.id);
|
|
165
|
+
}}
|
|
166
|
+
>
|
|
167
|
+
<el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
|
|
168
|
+
popper-class="tooltip-skin">
|
|
169
|
+
<i class="el-icon-edit"/>
|
|
170
|
+
</el-tooltip>
|
|
171
|
+
</a>
|
|
172
|
+
</div>
|
|
173
|
+
];
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
};
|
|
179
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
180
|
+
this.vxeOption = opts;
|
|
181
|
+
});
|
|
182
|
+
},
|
|
183
|
+
importExcel() {
|
|
184
|
+
let that = this;
|
|
185
|
+
that.$excelImport({
|
|
186
|
+
prefix: USER_PREFIX,
|
|
187
|
+
excel: USER_PREFIX + '/excelTemplate/country/country.xlsx',
|
|
188
|
+
multi: false,
|
|
189
|
+
saveUrl: USER_PREFIX + '/country/save',
|
|
190
|
+
callback: () => {
|
|
191
|
+
that.searchEvent();
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
</script>
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
<el-select v-model="formData.dsType" clearable>
|
|
52
52
|
<el-option :value="0" label="mysql"></el-option>
|
|
53
53
|
<el-option :value="1" label="oracle"></el-option>
|
|
54
|
-
<el-option :value="2" label="doris"></el-option>
|
|
55
54
|
</el-select>
|
|
56
55
|
</template>
|
|
57
56
|
</vxe-form-item>
|
|
@@ -157,8 +156,6 @@ export default {
|
|
|
157
156
|
return 'mysql';
|
|
158
157
|
} else if (row.dsType === 1) {
|
|
159
158
|
return 'oracle';
|
|
160
|
-
} else if (row.dsType === 2) {
|
|
161
|
-
return 'doris';
|
|
162
159
|
}
|
|
163
160
|
}
|
|
164
161
|
}
|
|
@@ -61,12 +61,11 @@
|
|
|
61
61
|
<em class="f-red">*</em>
|
|
62
62
|
{{ $t1('数据源类型') }}
|
|
63
63
|
</th>
|
|
64
|
-
<td
|
|
64
|
+
<td>
|
|
65
65
|
<el-form-item prop="dsType" :rules="[{ required: true, trigger: 'blur' }]">
|
|
66
66
|
<el-radio-group v-model="dataSource.dsType">
|
|
67
67
|
<el-radio :label="0">mysql</el-radio>
|
|
68
68
|
<el-radio :label="1">oracle</el-radio>
|
|
69
|
-
<el-radio :label="2">doris</el-radio>
|
|
70
69
|
</el-radio-group>
|
|
71
70
|
</el-form-item>
|
|
72
71
|
</td>
|