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
|
@@ -1,491 +1,130 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="containt">
|
|
3
|
-
<x-tabs ref="xTabs" 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" :currentFormType="currentFormType"
|
|
6
|
-
:parent-target="_self" @reload="$reloadHandle"></editView>
|
|
7
|
-
</el-tab-pane>
|
|
8
|
-
<el-tab-pane :label="$t1('列表')" name="second">
|
|
9
|
-
<div class="tree-box fl">
|
|
10
|
-
<div class="tit"><b>表单分类</b></div>
|
|
11
|
-
<div class="tree-btns" style="margin-top: 10px;">
|
|
12
|
-
<!-- <el-button type="primary" plain icon="el-icon-circle-plus-outline" class="btn" @click="addFormType()"
|
|
13
|
-
<!-- </el-button>-->
|
|
14
|
-
<!-- <el-button type="primary" plain icon="el-icon-edit-outline" class="btn" @click="editFormType()"-->
|
|
15
|
-
<!-- :disabled="!currentFormType">编辑-->
|
|
16
|
-
<!-- </el-button>-->
|
|
17
|
-
</div>
|
|
18
|
-
<el-tree
|
|
19
|
-
v-if="showTree"
|
|
20
|
-
:props="defaultProps"
|
|
21
|
-
:load="loadNode"
|
|
22
|
-
node-key="id"
|
|
23
|
-
ref="tree"
|
|
24
|
-
highlight-current
|
|
25
|
-
lazy
|
|
26
|
-
:expand-on-click-node="false"
|
|
27
|
-
@node-click="handleNodeClick"
|
|
28
|
-
class="tree-list"
|
|
29
|
-
icon-class="el-icon-arrow-down"
|
|
30
|
-
></el-tree>
|
|
31
|
-
</div>
|
|
32
|
-
<label id="labBtn">
|
|
33
|
-
<div class="icon">
|
|
34
|
-
<i class="el-icon-more"></i>
|
|
35
|
-
<i class="el-icon-more"></i>
|
|
36
|
-
</div>
|
|
37
|
-
</label>
|
|
38
|
-
<div class="main-right fr" style="padding-left:6px;">
|
|
39
|
-
<div class="grid-height">
|
|
40
|
-
<vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
41
|
-
@custom="$vxeTableUtil.customHandle">
|
|
42
|
-
<template #form>
|
|
43
|
-
<tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
|
|
44
|
-
<template #buttonLeft>
|
|
45
|
-
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog"
|
|
46
|
-
v-if="isDev && currentFormType.addAuth===1"
|
|
47
|
-
</vxe-button>
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</vxe-button>
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
<vxe-button icon="el-icon-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
</template>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
import tableForm from "@base/components/table/tableForm.vue";
|
|
132
|
-
import {getBdFlag} from "@base/api/user";
|
|
133
|
-
import projectTagDeleteButton from "@base/components/projectTag/deleteButton.vue";
|
|
134
|
-
import projectTagAddButton from "@base/components/projectTag/addButton.vue";
|
|
135
|
-
import projectTagView from "@base/components/projectTag/view.vue";
|
|
136
|
-
|
|
137
|
-
export default {
|
|
138
|
-
name: 'table_model:list',
|
|
139
|
-
components: {
|
|
140
|
-
projectTagView,
|
|
141
|
-
projectTagAddButton, projectTagDeleteButton,
|
|
142
|
-
tableForm,
|
|
143
|
-
editView,
|
|
144
|
-
MenuKindDialog,
|
|
145
|
-
projectTagDialog
|
|
146
|
-
},
|
|
147
|
-
created() {
|
|
148
|
-
},
|
|
149
|
-
async mounted() {
|
|
150
|
-
treeScollx({target: this, type: 'default'});
|
|
151
|
-
this.getBdEnv();
|
|
152
|
-
this.initTableList();
|
|
153
|
-
},
|
|
154
|
-
data() {
|
|
155
|
-
return {
|
|
156
|
-
activeName: 'second',
|
|
157
|
-
dataId: 0,
|
|
158
|
-
showEdit: false,
|
|
159
|
-
vxeOption: {},
|
|
160
|
-
checkRows: [],
|
|
161
|
-
szTaMbIds: [],
|
|
162
|
-
formData: {},
|
|
163
|
-
defaultProps: {
|
|
164
|
-
label: 'name', //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
|
|
165
|
-
children: [],
|
|
166
|
-
isLeaf: 'leaf'
|
|
167
|
-
},
|
|
168
|
-
showItemView: false,
|
|
169
|
-
showMenuKindDialog: false,
|
|
170
|
-
currentFormType: {},
|
|
171
|
-
addProjectTagOption: {
|
|
172
|
-
url: USER_PREFIX + `/szTaMb/saveTag`,
|
|
173
|
-
tableDatas: () => {
|
|
174
|
-
return this.$refs["table-m1"].getCheckboxRecords(true);
|
|
175
|
-
},
|
|
176
|
-
reqData: (tagDatas, tableDatas) => {
|
|
177
|
-
let taCodes = tableDatas.map(item => item.taCode);
|
|
178
|
-
let tagCodes = tagDatas.map(item => item.tagCode);
|
|
179
|
-
let reqData = {
|
|
180
|
-
tagCodes,
|
|
181
|
-
taCodes
|
|
182
|
-
};
|
|
183
|
-
return reqData;
|
|
184
|
-
},
|
|
185
|
-
callback: () => {
|
|
186
|
-
this.searchEvent()
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
deleteProjectTagOption: {
|
|
190
|
-
url: USER_PREFIX + `/szTaMb/deleteTag`,
|
|
191
|
-
tableDatas: () => {
|
|
192
|
-
return this.$refs["table-m1"].getCheckboxRecords(true);
|
|
193
|
-
},
|
|
194
|
-
reqData: (tagDatas, tableDatas) => {
|
|
195
|
-
let taCodes = tableDatas.map(item => item.taCode);
|
|
196
|
-
let tagCodes = tagDatas.map(item => item.tagCode);
|
|
197
|
-
let reqData = {
|
|
198
|
-
tagCodes,
|
|
199
|
-
taCodes
|
|
200
|
-
};
|
|
201
|
-
return reqData;
|
|
202
|
-
},
|
|
203
|
-
callback: () => {
|
|
204
|
-
this.searchEvent()
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
showProjectTagDialog3: false,
|
|
208
|
-
checkTags: [],
|
|
209
|
-
isDev: true,
|
|
210
|
-
menuKindAuth: {},
|
|
211
|
-
showTree: false
|
|
212
|
-
};
|
|
213
|
-
},
|
|
214
|
-
computed: {
|
|
215
|
-
currentMenuKindId() {
|
|
216
|
-
return this.currentFormType?.id || null
|
|
217
|
-
},
|
|
218
|
-
currentMenuKindName() {
|
|
219
|
-
return this.currentFormType?.name || null
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
methods: {
|
|
223
|
-
searchEvent() {
|
|
224
|
-
this.$refs['table-m1'].commitProxy('reload');
|
|
225
|
-
},
|
|
226
|
-
resetEvent() {
|
|
227
|
-
this.formData = {};
|
|
228
|
-
this.checkTags = [];
|
|
229
|
-
this.$refs['table-m1'].commitProxy('reload');
|
|
230
|
-
},
|
|
231
|
-
openEditDialog(row) {
|
|
232
|
-
/*this.dataId = !id || typeof id == 'object' ? 0 : id;
|
|
233
|
-
this.activeName = 'first';
|
|
234
|
-
this.$openEditView('showEdit');*/
|
|
235
|
-
|
|
236
|
-
let dataId = row?.id || 0;
|
|
237
|
-
if (!dataId) {
|
|
238
|
-
this.dataId = dataId;
|
|
239
|
-
this.activeName = 'first';
|
|
240
|
-
this.$openEditView('showEdit');
|
|
241
|
-
} else {
|
|
242
|
-
this.$refs.xTabs.openEditTab(row);
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
getSearchParam() {
|
|
246
|
-
let tagCodes = null;
|
|
247
|
-
if (this.checkTags.length) {
|
|
248
|
-
tagCodes = this.checkTags.map(item => item.tagCode);
|
|
249
|
-
}
|
|
250
|
-
let currentFormType = this.currentFormType || {}
|
|
251
|
-
return {
|
|
252
|
-
...this.formData,
|
|
253
|
-
menuKindCode: currentFormType.menuKindCode || null,
|
|
254
|
-
tagCodes
|
|
255
|
-
};
|
|
256
|
-
},
|
|
257
|
-
initTableList() {
|
|
258
|
-
let tableOption = {
|
|
259
|
-
vue: this,
|
|
260
|
-
tableRef: 'table-m1',
|
|
261
|
-
tableName: 'bd_table_model_list-m1',
|
|
262
|
-
path: USER_PREFIX + '/szTaMb/listPage',
|
|
263
|
-
param: () => {
|
|
264
|
-
return this.getSearchParam();
|
|
265
|
-
},
|
|
266
|
-
columns: [
|
|
267
|
-
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
268
|
-
{title: '实体名称', field: 'taEn', width: 150, fixed: 'left'},
|
|
269
|
-
{title: '数据库表名', field: 'taBm', width: 150},
|
|
270
|
-
{title: '表描述', field: 'taCh', width: 150},
|
|
271
|
-
{
|
|
272
|
-
title: '表类型', field: 'taType', width: 150,
|
|
273
|
-
slots: {
|
|
274
|
-
default: ({row}) => {
|
|
275
|
-
return row.taType == 0 ? '主表' : '明细表'
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
title: '是否树结构', field: 'taRule', width: 150,
|
|
281
|
-
slots: {
|
|
282
|
-
default: ({row}) => {
|
|
283
|
-
return row.taRule == 1 ? '是' : '否'
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
title: '数据范围', field: 'dataRange', width: 150,
|
|
289
|
-
slots: {
|
|
290
|
-
default: ({row}) => {
|
|
291
|
-
return row.dataRange == 1 ? '集团' : '当前企业'
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
{title: '表单分类', field: 'menuKindName', width: 150},
|
|
296
|
-
{
|
|
297
|
-
title: '项目标签', field: 'tag', width: 250, slots: {default: "tag"}, params: {
|
|
298
|
-
exportVal: ({row}) => {
|
|
299
|
-
if (row.szTaMbTagDTOs) {
|
|
300
|
-
return row.szTaMbTagDTOs.map(item => item.tagName).join(",")
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
{title: '表编码', field: 'taCode', width: 150},
|
|
306
|
-
{title: this.$t1('创建人'), field: 'createBy', width: 150},
|
|
307
|
-
{title: this.$t1('创建时间'), field: 'createDate', width: 150},
|
|
308
|
-
{title: this.$t1('更新人'), field: 'modifyBy', width: 150},
|
|
309
|
-
{title: this.$t1('更新时间'), field: 'modifyDate', width: 150},
|
|
310
|
-
{
|
|
311
|
-
width: 47,
|
|
312
|
-
fixed: 'right',
|
|
313
|
-
title: '',
|
|
314
|
-
sortable: false,
|
|
315
|
-
slots: {
|
|
316
|
-
default: ({row}) => {
|
|
317
|
-
return [
|
|
318
|
-
<div>
|
|
319
|
-
<a
|
|
320
|
-
href="javascript:void(0);"
|
|
321
|
-
class="a-link"
|
|
322
|
-
onclick={() => {
|
|
323
|
-
this.openEditDialog(row);
|
|
324
|
-
}}
|
|
325
|
-
>
|
|
326
|
-
<el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
|
|
327
|
-
popper-class="tooltip-skin">
|
|
328
|
-
<i class="el-icon-edit"/>
|
|
329
|
-
</el-tooltip>
|
|
330
|
-
</a>
|
|
331
|
-
<a
|
|
332
|
-
href="javascript:void(0);"
|
|
333
|
-
onClick={() => {
|
|
334
|
-
this.openDesingerDialog(row);
|
|
335
|
-
}}
|
|
336
|
-
className="a-link"
|
|
337
|
-
>
|
|
338
|
-
<el-tooltip enterable={false} effect="dark" content="表单设计" placement="top"
|
|
339
|
-
popper-class="tooltip-skin">
|
|
340
|
-
<i className="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
|
|
341
|
-
</el-tooltip>
|
|
342
|
-
</a>
|
|
343
|
-
<a
|
|
344
|
-
href="javascript:void(0);"
|
|
345
|
-
className="a-link"
|
|
346
|
-
onClick={() => {
|
|
347
|
-
this.openTmHistoryDialog(row);
|
|
348
|
-
}}
|
|
349
|
-
>
|
|
350
|
-
<el-tooltip enterable={false} effect="dark" content="历史" placement="top"
|
|
351
|
-
popper-class="tooltip-skin">
|
|
352
|
-
<i className="el-icon-s-order"/>
|
|
353
|
-
</el-tooltip>
|
|
354
|
-
</a>
|
|
355
|
-
</div>
|
|
356
|
-
];
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
],
|
|
361
|
-
searchColumns: [
|
|
362
|
-
{
|
|
363
|
-
title: "表单分类",
|
|
364
|
-
field: "menuKindName",
|
|
365
|
-
type: "input",
|
|
366
|
-
common: true,
|
|
367
|
-
disabled: true,
|
|
368
|
-
defaultValueEnabled: false,
|
|
369
|
-
slot: "menuKindName"
|
|
370
|
-
},
|
|
371
|
-
{title: "实体名称", field: "taEn", type: "input", common: true},
|
|
372
|
-
{title: "数据库表名", field: "taBm", type: "input", common: true},
|
|
373
|
-
{title: "表描述", field: "taCh", type: "input", common: true},
|
|
374
|
-
{title: "项目标签", field: "tag", type: "input", common: true, slot: "tag"},
|
|
375
|
-
],
|
|
376
|
-
config: {
|
|
377
|
-
proxyConfig: {
|
|
378
|
-
autoLoad: false
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
|
-
};
|
|
382
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
383
|
-
this.vxeOption = opts;
|
|
384
|
-
this.showTree = true;
|
|
385
|
-
});
|
|
386
|
-
},
|
|
387
|
-
handleNodeClick(data, node, v) {
|
|
388
|
-
this.handleNodeData(node)
|
|
389
|
-
this.$forceUpdate();
|
|
390
|
-
this.searchEvent();
|
|
391
|
-
},
|
|
392
|
-
loadNode(node, resolve) {
|
|
393
|
-
let id = node && node.data && node.data.id ? node.data.id || '' : 0;
|
|
394
|
-
let param = {enabled: true};
|
|
395
|
-
let url = !id ? USER_PREFIX + '/menuKind/getAllList' : USER_PREFIX + '/menuKind/getChildren';
|
|
396
|
-
this.$http({
|
|
397
|
-
url: url,
|
|
398
|
-
method: 'post',
|
|
399
|
-
data: {
|
|
400
|
-
parent: id,
|
|
401
|
-
enabled: true
|
|
402
|
-
},
|
|
403
|
-
success: res => {
|
|
404
|
-
let rows = res.objx || [];
|
|
405
|
-
rows.forEach(value => {
|
|
406
|
-
value.leaf = !value.hasChild;
|
|
407
|
-
});
|
|
408
|
-
if (node.level === 0) {
|
|
409
|
-
if (rows.length > 0) {
|
|
410
|
-
this.$nextTick(() => {
|
|
411
|
-
let firstNode = node.childNodes[0];
|
|
412
|
-
if (rows[0].hasChild) {
|
|
413
|
-
firstNode.expand();
|
|
414
|
-
}
|
|
415
|
-
this.$refs.tree.setCurrentKey(firstNode.data);
|
|
416
|
-
this.handleNodeClick(firstNode.data, firstNode, this)
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
resolve(rows);
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
},
|
|
424
|
-
handleNodeData(node) {
|
|
425
|
-
this.currentFormType = node ? node.data : null;
|
|
426
|
-
this.currentNode = node;
|
|
427
|
-
},
|
|
428
|
-
addFormType() {
|
|
429
|
-
this.editFormTypeId = null;
|
|
430
|
-
this.currentFormType = null;
|
|
431
|
-
this.showFormTypeDialog = true;
|
|
432
|
-
},
|
|
433
|
-
editFormType() {
|
|
434
|
-
let row = this.currentFormType;
|
|
435
|
-
this.editFormTypeId = row.id;
|
|
436
|
-
this.showFormTypeDialog = true;
|
|
437
|
-
},
|
|
438
|
-
confirmFormTypeEditDialog(row) {
|
|
439
|
-
row.leaf = true;
|
|
440
|
-
let editFormTypeId = this.editFormTypeId;
|
|
441
|
-
if (!editFormTypeId) {
|
|
442
|
-
this.$refs.tree.append(row);
|
|
443
|
-
} else {
|
|
444
|
-
let node = this.$refs.tree.getNode(row.id + "")
|
|
445
|
-
node.data = row;
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
confirmInsertMenuKind(rows) {
|
|
449
|
-
this.$baseReload();
|
|
450
|
-
},
|
|
451
|
-
moveClick() {
|
|
452
|
-
this.szTaMbIds = [];
|
|
453
|
-
this.$refs["table-m1"].getCheckboxRecords(true).map((item) => {
|
|
454
|
-
this.szTaMbIds.push(item.id);
|
|
455
|
-
});
|
|
456
|
-
this.showMenuKindDialog = true;
|
|
457
|
-
},
|
|
458
|
-
openProjectTagDialog3() {
|
|
459
|
-
this.showProjectTagDialog3 = true;
|
|
460
|
-
},
|
|
461
|
-
confirmProjectTagDialog3(rows) {
|
|
462
|
-
this.checkTags = rows;
|
|
463
|
-
},
|
|
464
|
-
getTabNames() {
|
|
465
|
-
return this.checkTags.map(item => item.tagName).join(",");
|
|
466
|
-
},
|
|
467
|
-
jsonImport() {
|
|
468
|
-
this.$jsonImport({
|
|
469
|
-
saveUrl: USER_PREFIX + '/form_develop/importSzTaMb',
|
|
470
|
-
callback: () => {
|
|
471
|
-
this.searchEvent();
|
|
472
|
-
}
|
|
473
|
-
});
|
|
474
|
-
},
|
|
475
|
-
jsonExport() {
|
|
476
|
-
this.$jsonExport({
|
|
477
|
-
targetRef: "table-m1",
|
|
478
|
-
url: USER_PREFIX + "/form_develop/exportSzTaMb",
|
|
479
|
-
abcEnabled: true
|
|
480
|
-
})
|
|
481
|
-
},
|
|
482
|
-
getBdEnv() {
|
|
483
|
-
getBdFlag({
|
|
484
|
-
success: res => {
|
|
485
|
-
this.isDev = res.objx == 1
|
|
486
|
-
}
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
};
|
|
491
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="containt">
|
|
3
|
+
<x-tabs ref="xTabs" 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" :currentFormType="currentFormType"
|
|
6
|
+
:parent-target="_self" @reload="$reloadHandle"></editView>
|
|
7
|
+
</el-tab-pane>
|
|
8
|
+
<el-tab-pane :label="$t1('列表')" name="second">
|
|
9
|
+
<div class="tree-box fl">
|
|
10
|
+
<div class="tit"><b>表单分类</b></div>
|
|
11
|
+
<div class="tree-btns" style="margin-top: 10px;">
|
|
12
|
+
<!-- <el-button type="primary" plain icon="el-icon-circle-plus-outline" class="btn" @click="addFormType()">{{ $t1('新增') }}-->
|
|
13
|
+
<!-- </el-button>-->
|
|
14
|
+
<!-- <el-button type="primary" plain icon="el-icon-edit-outline" class="btn" @click="editFormType()"-->
|
|
15
|
+
<!-- :disabled="!currentFormType">编辑-->
|
|
16
|
+
<!-- </el-button>-->
|
|
17
|
+
</div>
|
|
18
|
+
<el-tree
|
|
19
|
+
v-if="showTree"
|
|
20
|
+
:props="defaultProps"
|
|
21
|
+
:load="loadNode"
|
|
22
|
+
node-key="id"
|
|
23
|
+
ref="tree"
|
|
24
|
+
highlight-current
|
|
25
|
+
lazy
|
|
26
|
+
:expand-on-click-node="false"
|
|
27
|
+
@node-click="handleNodeClick"
|
|
28
|
+
class="tree-list"
|
|
29
|
+
icon-class="el-icon-arrow-down"
|
|
30
|
+
></el-tree>
|
|
31
|
+
</div>
|
|
32
|
+
<label id="labBtn">
|
|
33
|
+
<div class="icon">
|
|
34
|
+
<i class="el-icon-more"></i>
|
|
35
|
+
<i class="el-icon-more"></i>
|
|
36
|
+
</div>
|
|
37
|
+
</label>
|
|
38
|
+
<div class="main-right fr" style="padding-left:6px;">
|
|
39
|
+
<div class="grid-height">
|
|
40
|
+
<vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
41
|
+
@custom="$vxeTableUtil.customHandle">
|
|
42
|
+
<template #form>
|
|
43
|
+
<tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
|
|
44
|
+
<template #buttonLeft>
|
|
45
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog"
|
|
46
|
+
v-if="isDev && currentFormType.addAuth===1">{{ $t1('新增') }}
|
|
47
|
+
</vxe-button>
|
|
48
|
+
<vxe-button status="success" class="button-sty" icon="el-icon-download" @click="jsonImport">{{ $t1('导入发布') }}
|
|
49
|
+
</vxe-button>
|
|
50
|
+
<vxe-button status="success" class="button-sty" icon="el-icon-upload2" @click="jsonExport"
|
|
51
|
+
v-if="isDev">{{ $t1('导出发布') }}
|
|
52
|
+
</vxe-button>
|
|
53
|
+
<projectTagAddButton :option="addProjectTagOption" v-if="isDev"></projectTagAddButton>
|
|
54
|
+
<projectTagDeleteButton :option="deleteProjectTagOption" v-if="isDev"></projectTagDeleteButton>
|
|
55
|
+
</template>
|
|
56
|
+
<template #buttonRight>
|
|
57
|
+
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
58
|
+
plain>{{$t1('重置')}}
|
|
59
|
+
</vxe-button>
|
|
60
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
|
|
61
|
+
</vxe-button>
|
|
62
|
+
</template>
|
|
63
|
+
<template #menuKindName>
|
|
64
|
+
<vxe-form-item title="表单分类:" field="tag">
|
|
65
|
+
<template v-slot>
|
|
66
|
+
<el-input v-model="currentMenuKindName" disabled></el-input>
|
|
67
|
+
</template>
|
|
68
|
+
</vxe-form-item>
|
|
69
|
+
</template>
|
|
70
|
+
<template #tag>
|
|
71
|
+
<vxe-form-item title="项目标签:" field="tag">
|
|
72
|
+
<template v-slot>
|
|
73
|
+
<el-input
|
|
74
|
+
class="search-input"
|
|
75
|
+
max="200"
|
|
76
|
+
:value="getTabNames()"
|
|
77
|
+
@clear="
|
|
78
|
+
checkTags = [];
|
|
79
|
+
"
|
|
80
|
+
v-el-readonly
|
|
81
|
+
clearable
|
|
82
|
+
>
|
|
83
|
+
<i slot="suffix" class="el-input__icon el-icon-search" @click="openProjectTagDialog3"></i>
|
|
84
|
+
</el-input>
|
|
85
|
+
</template>
|
|
86
|
+
</vxe-form-item>
|
|
87
|
+
</template>
|
|
88
|
+
</tableForm>
|
|
89
|
+
</template>
|
|
90
|
+
<template #tag="{row}">
|
|
91
|
+
<projectTagView v-model="row.szTaMbTagDTOs" :readonly="true"></projectTagView>
|
|
92
|
+
</template>
|
|
93
|
+
</vxe-grid>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</el-tab-pane>
|
|
97
|
+
<template #editTab="{tab,index,reloadTabContent}">
|
|
98
|
+
<el-tab-pane :key="tab.data.id" :label="tab.data.taCh" :name="tab.data.id+''"
|
|
99
|
+
:closable="true">
|
|
100
|
+
<editView v-if="tab.showContent" :_dataId="tab.dataId" :currentFormType="currentFormType"
|
|
101
|
+
:parent-target="_self"
|
|
102
|
+
@reload="reloadTabContent"></editView>
|
|
103
|
+
</el-tab-pane>
|
|
104
|
+
</template>
|
|
105
|
+
</x-tabs>
|
|
106
|
+
|
|
107
|
+
<MenuKindDialog v-if="showMenuKindDialog"
|
|
108
|
+
:visiable.sync="showMenuKindDialog"
|
|
109
|
+
@confirm="confirmInsertMenuKind"
|
|
110
|
+
:param="{ taType: 0,moveButton:true }"
|
|
111
|
+
:checkRowIds="szTaMbIds"
|
|
112
|
+
:multi="false"
|
|
113
|
+
/>
|
|
114
|
+
<projectTagDialog v-if="showProjectTagDialog3"
|
|
115
|
+
:visiable.sync="showProjectTagDialog3"
|
|
116
|
+
@confirm="confirmProjectTagDialog3"
|
|
117
|
+
:rows="checkTags"
|
|
118
|
+
:multi="true"></projectTagDialog>
|
|
119
|
+
|
|
120
|
+
</div>
|
|
121
|
+
</template>
|
|
122
|
+
|
|
123
|
+
<script>
|
|
124
|
+
import mixin from "./mixins/list";
|
|
125
|
+
|
|
126
|
+
export default {
|
|
127
|
+
name: 'table_model:list',
|
|
128
|
+
mixins: [mixin]
|
|
129
|
+
}
|
|
130
|
+
</script>
|