cloud-web-corejs 1.0.27 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/formOplog/mixins.js +1 -1
- package/src/components/jsonImport/exportDialog.vue +1 -1
- package/src/components/jsonImport/index.vue +151 -202
- package/src/components/jsonImport/mixins.js +1 -309
- package/src/components/projectTag/addButton.vue +3 -50
- package/src/components/projectTag/deleteButton.vue +3 -50
- package/src/components/projectTag/mixins/addButton.js +5 -0
- package/src/components/projectTag/mixins/deleteButton.js +5 -0
- package/src/components/projectTag/mixins/view.js +5 -0
- package/src/components/projectTag/view.vue +33 -72
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/index.js +0 -2
- package/src/layout/components/Sidebar/default.vue +4 -6
- package/src/router/modules/system.js +1 -1
- package/src/store/config/index.js +3 -0
- package/src/store/getters.js +2 -0
- package/src/store/modules/permission.js +2 -2
- package/src/store/modules/user.js +2 -1
- package/src/utils/request.js +28 -29
- package/src/utils/vab.js +27 -27
- package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -87
- package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -92
- package/src/views/bd/setting/bd_attach_setting/list.vue +4 -214
- package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +89 -0
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +96 -0
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +219 -0
- package/src/views/bd/setting/form_script/dialog.vue +3 -137
- package/src/views/bd/setting/form_script/edit.vue +3 -127
- package/src/views/bd/setting/form_script/edit1.vue +3 -142
- package/src/views/bd/setting/form_script/form_list.vue +4 -259
- package/src/views/bd/setting/form_script/list.vue +55 -223
- package/src/views/bd/setting/form_script/list1.vue +117 -444
- package/src/views/bd/setting/form_script/list2.vue +3 -4
- package/src/views/bd/setting/form_script/mixins/dialog.js +142 -0
- package/src/views/bd/setting/form_script/mixins/edit.js +134 -0
- package/src/views/bd/setting/form_script/mixins/edit1.js +149 -0
- package/src/views/bd/setting/form_script/mixins/form_list.js +264 -0
- package/src/views/bd/setting/form_script/mixins/list.js +176 -0
- package/src/views/bd/setting/form_script/mixins/list1.js +336 -0
- package/src/views/bd/setting/form_script/mixins/list2.js +14 -0
- package/src/views/bd/setting/form_template/dialog.vue +104 -212
- package/src/views/bd/setting/form_template/edit.vue +183 -329
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +46 -131
- package/src/views/bd/setting/form_template/ftHistoryDialog.vue +88 -175
- package/src/views/bd/setting/form_template/itemEdit.vue +174 -270
- package/src/views/bd/setting/form_template/itemList.vue +56 -300
- package/src/views/bd/setting/form_template/list.vue +211 -766
- package/src/views/bd/setting/form_template/mixins/dialog.js +114 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +155 -0
- package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +94 -0
- package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +95 -0
- package/src/views/bd/setting/form_template/mixins/itemEdit.js +106 -0
- package/src/views/bd/setting/form_template/mixins/itemList.js +254 -0
- package/src/views/bd/setting/form_template/mixins/list.js +562 -0
- package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -0
- package/src/views/bd/setting/form_template/preformDialog.vue +57 -77
- package/src/views/bd/setting/menu_kind/authDialog.vue +84 -308
- package/src/views/bd/setting/menu_kind/dialog.vue +89 -226
- package/src/views/bd/setting/menu_kind/list.vue +86 -262
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +232 -0
- package/src/views/bd/setting/menu_kind/mixins/dialog.js +144 -0
- package/src/views/bd/setting/menu_kind/mixins/list.js +187 -0
- package/src/views/bd/setting/table_model/dialog.vue +95 -161
- package/src/views/bd/setting/table_model/edit.vue +5 -767
- package/src/views/bd/setting/table_model/list.vue +130 -491
- package/src/views/bd/setting/table_model/mixins/dialog.js +74 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +778 -0
- package/src/views/bd/setting/table_model/mixins/list.js +367 -0
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -0
- package/src/views/bd/setting/table_model/zdDialog.vue +95 -201
- package/src/views/support/export_template/edit.vue +40 -36
- package/src/views/support/export_template/list.vue +40 -52
- package/src/views/user/access_log/edit.vue +18 -17
- package/src/views/user/access_log/list.vue +27 -26
- package/src/views/user/access_log/statistics_list.vue +19 -17
- package/src/views/user/api_request/edit.vue +14 -11
- package/src/views/user/api_request/list.vue +13 -11
- package/src/views/user/area/dialog.vue +14 -27
- package/src/views/user/area_attribute/configDialog.vue +11 -13
- package/src/views/user/area_attribute/edit.vue +8 -6
- package/src/views/user/area_attribute/list.vue +1 -1
- package/src/views/user/attachment/uploadDialog.vue +1 -1
- package/src/views/user/bill_setting/button/previewButton.vue +2 -2
- package/src/views/user/bill_setting/compareView.vue +1 -1
- package/src/views/user/bill_setting/edit.vue +24 -17
- package/src/views/user/bill_setting/h5_ModifyDialog.vue +1 -1
- package/src/views/user/bill_setting/itemViewDialog.vue +3 -66
- package/src/views/user/bill_setting/list.vue +28 -26
- package/src/views/user/bill_setting/mixins/wf.js +8 -8
- package/src/views/user/bill_setting/previewDialog.vue +1 -1
- package/src/views/user/bill_setting/render.vue +29 -29
- package/src/views/user/bill_setting/userDialog.vue +7 -5
- package/src/views/user/code_rules/edit.vue +21 -18
- package/src/views/user/code_rules/list.vue +27 -19
- package/src/views/user/commMenu/index.vue +3 -3
- package/src/views/user/common_attribute/edit.vue +7 -5
- package/src/views/user/common_attribute/itemEdit.vue +22 -22
- package/src/views/user/common_attribute/list.vue +25 -24
- package/src/views/user/common_script/edit.vue +12 -12
- package/src/views/user/common_script/list.vue +30 -32
- package/src/views/user/company_info/dialog.vue +9 -9
- package/src/views/user/company_info/edit.vue +11 -8
- package/src/views/user/country/dialog.vue +11 -9
- package/src/views/user/country/edit.vue +12 -9
- package/src/views/user/country/list.vue +12 -12
- package/src/views/user/data_type_setting/dialog.vue +10 -10
- package/src/views/user/data_type_setting/editDialog.vue +6 -6
- package/src/views/user/ea/eagroup/eaobj_list.vue +25 -25
- package/src/views/user/ea/eagroup/edit.vue +48 -42
- package/src/views/user/ea/eaobj/edit.vue +6 -5
- package/src/views/user/ea/eaobj/list.vue +9 -8
- package/src/views/user/extend_datasource/dialog.vue +19 -24
- package/src/views/user/extend_datasource/edit.vue +20 -16
- package/src/views/user/extend_datasource/list.vue +23 -24
- package/src/views/user/fieldTranslation/editDialog.vue +28 -28
- package/src/views/user/fieldTranslation/list.vue +59 -57
- package/src/views/user/field_values_invisible/edit.vue +15 -14
- package/src/views/user/field_values_invisible/list.vue +23 -22
- package/src/views/user/file_type/edit.vue +12 -21
- package/src/views/user/file_type/list.vue +21 -36
- package/src/views/user/file_type/userEdit.vue +14 -9
- package/src/views/user/file_view_area/edit.vue +3 -3
- package/src/views/user/file_view_area/itemEdit.vue +11 -9
- package/src/views/user/file_view_area/list.vue +17 -16
- package/src/views/user/file_view_ins/list.vue +29 -28
- package/src/views/user/file_view_ins/propertiesDialog.vue +15 -15
- package/src/views/user/form/form_template/edit.vue +1 -1
- package/src/views/user/form/form_template/itemEdit.vue +1 -1
- package/src/views/user/form/form_template/itemList.vue +2 -2
- package/src/views/user/form/form_template/list.vue +3 -3
- package/src/views/user/form/form_type/edit.vue +1 -1
- package/src/views/user/form/form_type/list.vue +1 -1
- package/src/views/user/form/report_requestaccess/edit.vue +1 -1
- package/src/views/user/form/report_requestaccess/list.vue +1 -1
- package/src/views/user/form/vform/designer.vue +2 -0
- package/src/views/user/form/vform/out_render.vue +1 -0
- package/src/views/user/form/vform/render.vue +1 -0
- package/src/views/user/form/view/list.vue +2 -1
- package/src/views/user/groups/dialog.vue +159 -0
- package/src/views/user/groups/edit.vue +131 -0
- package/src/views/user/groups/list.vue +167 -0
- package/src/views/user/home/index.vue +3 -3
- package/src/views/user/lang_tag/dialog.vue +185 -0
- package/src/views/user/lang_tag/edit.vue +138 -0
- package/src/views/user/lang_tag/list.vue +170 -0
- package/src/views/user/language_setting/edit.vue +11 -9
- package/src/views/user/language_setting/list.vue +20 -18
- package/src/views/user/login/default.vue +129 -0
- package/src/views/user/login/index.vue +3 -117
- package/src/views/user/menu/list.vue +39 -55
- package/src/views/user/mobile_menu/list.vue +18 -54
- package/src/views/user/notify_message/dialog.vue +1 -1
- package/src/views/user/notify_message/infoDialog.vue +1 -1
- package/src/views/user/notify_message/list.vue +24 -23
- package/src/views/user/notify_template/edit.vue +13 -11
- package/src/views/user/notify_template/list.vue +19 -16
- package/src/views/user/oplog/edit.vue +12 -12
- package/src/views/user/oplog/list.vue +20 -18
- package/src/views/user/position/dialog.vue +6 -6
- package/src/views/user/position/edit.vue +11 -8
- package/src/views/user/position/list.vue +11 -11
- package/src/views/user/project_tag/dialog.vue +11 -9
- package/src/views/user/project_tag/edit.vue +8 -6
- package/src/views/user/project_tag/list.vue +15 -12
- package/src/views/user/push_setting/edit.vue +20 -17
- package/src/views/user/push_setting/list.vue +1 -1
- package/src/views/user/role/dialog.vue +11 -11
- package/src/views/user/role/edit.vue +14 -12
- package/src/views/user/role/list.vue +14 -12
- package/src/views/user/sale_org/dialog.vue +12 -12
- package/src/views/user/sale_org/list.vue +43 -48
- package/src/views/user/system_notice/edit.vue +13 -11
- package/src/views/user/system_notice/infoDialog.vue +2 -2
- package/src/views/user/system_notice/list.vue +19 -17
- package/src/views/user/system_parameter/edit.vue +7 -6
- package/src/views/user/system_parameter/list.vue +12 -10
- package/src/views/user/user/edit.vue +1 -1
- package/src/views/user/user/form_edit.vue +50 -7
- package/src/views/user/user/form_list.vue +34 -132
- package/src/views/user/user/info.vue +20 -19
- package/src/views/user/user/infoEdit.vue +18 -18
- package/src/views/user/user/infoIframeDialog.vue +1 -1
- package/src/views/user/user/modifyPasswordDialog.vue +9 -9
- package/src/views/user/wf/iframe/dialog.vue +1 -1
- package/src/views/user/wf/wf_auto_submit_data/edit.vue +11 -10
- package/src/views/user/wf/wf_auto_submit_data/edith.vue +14 -13
- package/src/views/user/wf/wf_auto_submit_data/list.vue +43 -41
- package/src/views/user/wf/wf_diy_attribute/edit.vue +11 -8
- package/src/views/user/wf/wf_manage/list.vue +66 -61
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/dialog.vue +11 -11
- package/src/views/user/wf/wf_obj_config/edit.vue +12 -9
- package/src/views/user/wf/wf_obj_config/edit_form.vue +11 -9
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +31 -27
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +8 -6
- package/src/views/user/wf/wf_obj_config/list.vue +42 -41
- package/src/views/user/wf/wf_obj_config/list_form.vue +14 -12
- package/src/views/user/wf/wf_param/edit.vue +7 -5
- package/src/views/user/wf/wf_work_calendar/configDialog.vue +9 -24
- package/src/views/user/wf/wf_work_calendar/list.vue +6 -3
- package/src/views/user/home/distributor.vue +0 -849
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import projectTagView from "@base/components/projectTag/view.vue";
|
|
2
|
+
import projectTagAddButton from "@base/components/projectTag/addButton.vue";
|
|
3
|
+
import projectTagDeleteButton from "@base/components/projectTag/deleteButton.vue";
|
|
4
|
+
import tableForm from "@base/components/table/tableForm.vue";
|
|
5
|
+
import editView from "@base/views/bd/setting/table_model/edit.vue";
|
|
6
|
+
import MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
|
|
7
|
+
import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
|
|
8
|
+
import {treeScollx} from "@base/utils/global";
|
|
9
|
+
import {getBdFlag} from "@base/api/user";
|
|
10
|
+
|
|
11
|
+
let modules = {};
|
|
12
|
+
modules = {
|
|
13
|
+
name: 'table_model:list',
|
|
14
|
+
components: {
|
|
15
|
+
projectTagView,
|
|
16
|
+
projectTagAddButton, projectTagDeleteButton,
|
|
17
|
+
tableForm,
|
|
18
|
+
editView,
|
|
19
|
+
MenuKindDialog,
|
|
20
|
+
projectTagDialog
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
},
|
|
24
|
+
async mounted() {
|
|
25
|
+
treeScollx({target: this, type: 'default'});
|
|
26
|
+
this.getBdEnv();
|
|
27
|
+
this.initTableList();
|
|
28
|
+
},
|
|
29
|
+
data() {
|
|
30
|
+
return {
|
|
31
|
+
activeName: 'second',
|
|
32
|
+
dataId: 0,
|
|
33
|
+
showEdit: false,
|
|
34
|
+
vxeOption: {},
|
|
35
|
+
checkRows: [],
|
|
36
|
+
szTaMbIds: [],
|
|
37
|
+
formData: {},
|
|
38
|
+
defaultProps: {
|
|
39
|
+
label: 'name', //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
|
|
40
|
+
children: [],
|
|
41
|
+
isLeaf: 'leaf'
|
|
42
|
+
},
|
|
43
|
+
showItemView: false,
|
|
44
|
+
showMenuKindDialog: false,
|
|
45
|
+
currentFormType: {},
|
|
46
|
+
addProjectTagOption: {
|
|
47
|
+
url: USER_PREFIX + `/szTaMb/saveTag`,
|
|
48
|
+
tableDatas: () => {
|
|
49
|
+
return this.$refs["table-m1"].getCheckboxRecords(true);
|
|
50
|
+
},
|
|
51
|
+
reqData: (tagDatas, tableDatas) => {
|
|
52
|
+
let sids = tableDatas.map(item => item.sid);
|
|
53
|
+
let tagCodes = tagDatas.map(item => item.tagCode);
|
|
54
|
+
let reqData = {
|
|
55
|
+
tagCodes,
|
|
56
|
+
sids
|
|
57
|
+
};
|
|
58
|
+
return reqData;
|
|
59
|
+
},
|
|
60
|
+
callback: () => {
|
|
61
|
+
this.searchEvent()
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
deleteProjectTagOption: {
|
|
65
|
+
url: USER_PREFIX + `/szTaMb/deleteTag`,
|
|
66
|
+
tableDatas: () => {
|
|
67
|
+
return this.$refs["table-m1"].getCheckboxRecords(true);
|
|
68
|
+
},
|
|
69
|
+
reqData: (tagDatas, tableDatas) => {
|
|
70
|
+
let sids = tableDatas.map(item => item.sid);
|
|
71
|
+
let tagCodes = tagDatas.map(item => item.tagCode);
|
|
72
|
+
let reqData = {
|
|
73
|
+
tagCodes,
|
|
74
|
+
sids
|
|
75
|
+
};
|
|
76
|
+
return reqData;
|
|
77
|
+
},
|
|
78
|
+
callback: () => {
|
|
79
|
+
this.searchEvent()
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
showProjectTagDialog3: false,
|
|
83
|
+
checkTags: [],
|
|
84
|
+
isDev: true,
|
|
85
|
+
menuKindAuth: {},
|
|
86
|
+
showTree: false
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
computed: {
|
|
90
|
+
currentMenuKindId() {
|
|
91
|
+
return this.currentFormType?.id || null
|
|
92
|
+
},
|
|
93
|
+
currentMenuKindName() {
|
|
94
|
+
return this.currentFormType?.name || null
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
methods: {
|
|
98
|
+
searchEvent() {
|
|
99
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
100
|
+
},
|
|
101
|
+
resetEvent() {
|
|
102
|
+
this.formData = {};
|
|
103
|
+
this.checkTags = [];
|
|
104
|
+
this.$refs['table-m1'].commitProxy('reload');
|
|
105
|
+
},
|
|
106
|
+
openEditDialog(row) {
|
|
107
|
+
/*this.dataId = !id || typeof id == 'object' ? 0 : id;
|
|
108
|
+
this.activeName = 'first';
|
|
109
|
+
this.$openEditView('showEdit');*/
|
|
110
|
+
|
|
111
|
+
let dataId = row?.id || 0;
|
|
112
|
+
if (!dataId) {
|
|
113
|
+
this.dataId = dataId;
|
|
114
|
+
this.activeName = 'first';
|
|
115
|
+
this.$openEditView('showEdit');
|
|
116
|
+
} else {
|
|
117
|
+
this.$refs.xTabs.openEditTab(row);
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
getSearchParam() {
|
|
121
|
+
let tagCodes = null;
|
|
122
|
+
if (this.checkTags.length) {
|
|
123
|
+
tagCodes = this.checkTags.map(item => item.tagCode);
|
|
124
|
+
}
|
|
125
|
+
let currentFormType = this.currentFormType || {}
|
|
126
|
+
return {
|
|
127
|
+
...this.formData,
|
|
128
|
+
menuKindCode: currentFormType.menuKindCode || null,
|
|
129
|
+
tagCodes
|
|
130
|
+
};
|
|
131
|
+
},
|
|
132
|
+
initTableList() {
|
|
133
|
+
let tableOption = {
|
|
134
|
+
vue: this,
|
|
135
|
+
tableRef: 'table-m1',
|
|
136
|
+
tableName: 'bd_table_model_list-m1',
|
|
137
|
+
path: USER_PREFIX + '/szTaMb/listPage',
|
|
138
|
+
param: () => {
|
|
139
|
+
return this.getSearchParam();
|
|
140
|
+
},
|
|
141
|
+
columns: [
|
|
142
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
143
|
+
{title: '实体名称', field: 'taEn', width: 150, fixed: 'left'},
|
|
144
|
+
{title: '数据库表名', field: 'taBm', width: 150},
|
|
145
|
+
{title: '表描述', field: 'taCh', width: 150},
|
|
146
|
+
{
|
|
147
|
+
title: '表类型', field: 'taType', width: 150,
|
|
148
|
+
slots: {
|
|
149
|
+
default: ({row}) => {
|
|
150
|
+
return row.taType == 0 ? '主表' : '明细表'
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
title: '是否树结构', field: 'taRule', width: 150,
|
|
156
|
+
slots: {
|
|
157
|
+
default: ({row}) => {
|
|
158
|
+
return row.taRule == 1 ? '是' : '否'
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
title: '数据范围', field: 'dataRange', width: 150,
|
|
164
|
+
slots: {
|
|
165
|
+
default: ({row}) => {
|
|
166
|
+
return row.dataRange == 1 ? '集团' : '当前企业'
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{title: '表单分类', field: 'menuKindName', width: 150},
|
|
171
|
+
{
|
|
172
|
+
title: '项目标签', field: 'tag', width: 250, slots: {default: "tag"}, params: {
|
|
173
|
+
exportVal: ({row}) => {
|
|
174
|
+
if (row.szTaMbTagDTOs) {
|
|
175
|
+
return row.szTaMbTagDTOs.map(item => item.tagName).join(",")
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{title: '表编码', field: 'taCode', width: 150},
|
|
181
|
+
{title: this.$t1('创建人'), field: 'createBy', width: 150},
|
|
182
|
+
{title: this.$t1('创建时间'), field: 'createDate', width: 150},
|
|
183
|
+
{title: this.$t1('更新人'), field: 'modifyBy', width: 150},
|
|
184
|
+
{title: this.$t1('更新时间'), field: 'modifyDate', width: 150},
|
|
185
|
+
{
|
|
186
|
+
width: 47,
|
|
187
|
+
fixed: 'right',
|
|
188
|
+
title: '',
|
|
189
|
+
sortable: false,
|
|
190
|
+
slots: {
|
|
191
|
+
default: ({row}) => {
|
|
192
|
+
return [
|
|
193
|
+
<div>
|
|
194
|
+
<a
|
|
195
|
+
href="javascript:void(0);"
|
|
196
|
+
class="a-link"
|
|
197
|
+
onclick={() => {
|
|
198
|
+
this.openEditDialog(row);
|
|
199
|
+
}}
|
|
200
|
+
>
|
|
201
|
+
<el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
|
|
202
|
+
popper-class="tooltip-skin">
|
|
203
|
+
<i class="el-icon-edit"/>
|
|
204
|
+
</el-tooltip>
|
|
205
|
+
</a>
|
|
206
|
+
<a
|
|
207
|
+
href="javascript:void(0);"
|
|
208
|
+
onClick={() => {
|
|
209
|
+
this.openDesingerDialog(row);
|
|
210
|
+
}}
|
|
211
|
+
className="a-link"
|
|
212
|
+
>
|
|
213
|
+
<el-tooltip enterable={false} effect="dark" content="表单设计" placement="top"
|
|
214
|
+
popper-class="tooltip-skin">
|
|
215
|
+
<i className="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
|
|
216
|
+
</el-tooltip>
|
|
217
|
+
</a>
|
|
218
|
+
<a
|
|
219
|
+
href="javascript:void(0);"
|
|
220
|
+
className="a-link"
|
|
221
|
+
onClick={() => {
|
|
222
|
+
this.openTmHistoryDialog(row);
|
|
223
|
+
}}
|
|
224
|
+
>
|
|
225
|
+
<el-tooltip enterable={false} effect="dark" content="历史" placement="top"
|
|
226
|
+
popper-class="tooltip-skin">
|
|
227
|
+
<i className="el-icon-s-order"/>
|
|
228
|
+
</el-tooltip>
|
|
229
|
+
</a>
|
|
230
|
+
</div>
|
|
231
|
+
];
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
searchColumns: [
|
|
237
|
+
{
|
|
238
|
+
title: "表单分类",
|
|
239
|
+
field: "menuKindName",
|
|
240
|
+
type: "input",
|
|
241
|
+
common: true,
|
|
242
|
+
disabled: true,
|
|
243
|
+
defaultValueEnabled: false,
|
|
244
|
+
slot: "menuKindName"
|
|
245
|
+
},
|
|
246
|
+
{title: "实体名称", field: "taEn", type: "input", common: true},
|
|
247
|
+
{title: "数据库表名", field: "taBm", type: "input", common: true},
|
|
248
|
+
{title: "表描述", field: "taCh", type: "input", common: true},
|
|
249
|
+
{title: "项目标签", field: "tag", type: "input", common: true, slot: "tag"},
|
|
250
|
+
],
|
|
251
|
+
config: {
|
|
252
|
+
proxyConfig: {
|
|
253
|
+
autoLoad: false
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
258
|
+
this.vxeOption = opts;
|
|
259
|
+
this.showTree = true;
|
|
260
|
+
});
|
|
261
|
+
},
|
|
262
|
+
handleNodeClick(data, node, v) {
|
|
263
|
+
this.handleNodeData(node)
|
|
264
|
+
this.$forceUpdate();
|
|
265
|
+
this.searchEvent();
|
|
266
|
+
},
|
|
267
|
+
loadNode(node, resolve) {
|
|
268
|
+
let id = node && node.data && node.data.id ? node.data.id || '' : 0;
|
|
269
|
+
let param = {enabled: true};
|
|
270
|
+
let url = !id ? USER_PREFIX + '/menuKind/getAllList' : USER_PREFIX + '/menuKind/getChildren';
|
|
271
|
+
this.$http({
|
|
272
|
+
aes:true,
|
|
273
|
+
url: url,
|
|
274
|
+
method: 'post',
|
|
275
|
+
data: {
|
|
276
|
+
parent: id,
|
|
277
|
+
enabled: true
|
|
278
|
+
},
|
|
279
|
+
success: res => {
|
|
280
|
+
let rows = res.objx || [];
|
|
281
|
+
rows.forEach(value => {
|
|
282
|
+
value.leaf = !value.hasChild;
|
|
283
|
+
});
|
|
284
|
+
if (node.level === 0) {
|
|
285
|
+
if (rows.length > 0) {
|
|
286
|
+
this.$nextTick(() => {
|
|
287
|
+
let firstNode = node.childNodes[0];
|
|
288
|
+
if (rows[0].hasChild) {
|
|
289
|
+
firstNode.expand();
|
|
290
|
+
}
|
|
291
|
+
this.$refs.tree.setCurrentKey(firstNode.data);
|
|
292
|
+
this.handleNodeClick(firstNode.data, firstNode, this)
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
resolve(rows);
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
},
|
|
300
|
+
handleNodeData(node) {
|
|
301
|
+
this.currentFormType = node ? node.data : null;
|
|
302
|
+
this.currentNode = node;
|
|
303
|
+
},
|
|
304
|
+
addFormType() {
|
|
305
|
+
this.editFormTypeId = null;
|
|
306
|
+
this.currentFormType = null;
|
|
307
|
+
this.showFormTypeDialog = true;
|
|
308
|
+
},
|
|
309
|
+
editFormType() {
|
|
310
|
+
let row = this.currentFormType;
|
|
311
|
+
this.editFormTypeId = row.id;
|
|
312
|
+
this.showFormTypeDialog = true;
|
|
313
|
+
},
|
|
314
|
+
confirmFormTypeEditDialog(row) {
|
|
315
|
+
row.leaf = true;
|
|
316
|
+
let editFormTypeId = this.editFormTypeId;
|
|
317
|
+
if (!editFormTypeId) {
|
|
318
|
+
this.$refs.tree.append(row);
|
|
319
|
+
} else {
|
|
320
|
+
let node = this.$refs.tree.getNode(row.id + "")
|
|
321
|
+
node.data = row;
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
confirmInsertMenuKind(rows) {
|
|
325
|
+
this.$baseReload();
|
|
326
|
+
},
|
|
327
|
+
moveClick() {
|
|
328
|
+
this.szTaMbIds = [];
|
|
329
|
+
this.$refs["table-m1"].getCheckboxRecords(true).map((item) => {
|
|
330
|
+
this.szTaMbIds.push(item.id);
|
|
331
|
+
});
|
|
332
|
+
this.showMenuKindDialog = true;
|
|
333
|
+
},
|
|
334
|
+
openProjectTagDialog3() {
|
|
335
|
+
this.showProjectTagDialog3 = true;
|
|
336
|
+
},
|
|
337
|
+
confirmProjectTagDialog3(rows) {
|
|
338
|
+
this.checkTags = rows;
|
|
339
|
+
},
|
|
340
|
+
getTabNames() {
|
|
341
|
+
return this.checkTags.map(item => item.tagName).join(",");
|
|
342
|
+
},
|
|
343
|
+
jsonImport() {
|
|
344
|
+
this.$jsonImport({
|
|
345
|
+
saveUrl: USER_PREFIX + '/form_develop/importSzTaMb',
|
|
346
|
+
callback: () => {
|
|
347
|
+
this.searchEvent();
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
},
|
|
351
|
+
jsonExport() {
|
|
352
|
+
this.$jsonExport({
|
|
353
|
+
targetRef: "table-m1",
|
|
354
|
+
url: USER_PREFIX + "/form_develop/exportSzTaMb",
|
|
355
|
+
abcEnabled: true
|
|
356
|
+
})
|
|
357
|
+
},
|
|
358
|
+
getBdEnv() {
|
|
359
|
+
getBdFlag({
|
|
360
|
+
success: res => {
|
|
361
|
+
this.isDev = res.objx == 1
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
export default modules
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import {selectDialogMixins} from "@base/mixins/selectDialog";
|
|
2
|
+
|
|
3
|
+
let modules = {};
|
|
4
|
+
modules = {
|
|
5
|
+
name: 'zdDialog',
|
|
6
|
+
props: ['visiable', 'multi', 'rows', 'param', 'taBm'],
|
|
7
|
+
mixins: [selectDialogMixins],
|
|
8
|
+
components: {},
|
|
9
|
+
created() {
|
|
10
|
+
this.initSetting();
|
|
11
|
+
},
|
|
12
|
+
mounted() {
|
|
13
|
+
this.initTableM1();
|
|
14
|
+
},
|
|
15
|
+
data() {
|
|
16
|
+
return {
|
|
17
|
+
showDialog: true,
|
|
18
|
+
falseValue: false,
|
|
19
|
+
selectMulti: true,
|
|
20
|
+
formData: {},
|
|
21
|
+
vxeOption: {},
|
|
22
|
+
showSaleOrgDialog: false,
|
|
23
|
+
fieldKey: "taZdMc"
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
methods: {
|
|
27
|
+
initTableM1() {
|
|
28
|
+
let that = this;
|
|
29
|
+
|
|
30
|
+
let zdTypeMap = {
|
|
31
|
+
Boolean: "布尔",
|
|
32
|
+
Integer: "整数",
|
|
33
|
+
Decimal: "精度小数",
|
|
34
|
+
Money: "金额",
|
|
35
|
+
Text: "文本",
|
|
36
|
+
TextArea: "长文本",
|
|
37
|
+
Option: "单选项",
|
|
38
|
+
AreaSelect: "地区选择",
|
|
39
|
+
DateTime: "日期时间",
|
|
40
|
+
File: "文件",
|
|
41
|
+
Reference: "关联表"
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
let tableOption = {
|
|
45
|
+
vue: that,
|
|
46
|
+
tableRef: 'table-m1',
|
|
47
|
+
tableName: 'bd_table_model_field_dialog-m1',
|
|
48
|
+
path: USER_PREFIX + '/szTaMb/getSzTaZdMbsByTaBm',
|
|
49
|
+
param: () => {
|
|
50
|
+
return {
|
|
51
|
+
taBm: this.taBm,
|
|
52
|
+
enabled: true,
|
|
53
|
+
searchDb: true,
|
|
54
|
+
...this.formData,
|
|
55
|
+
...this.param
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
columns: [
|
|
59
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
60
|
+
{
|
|
61
|
+
title: '实体字段名称',
|
|
62
|
+
field: 'zdEn',
|
|
63
|
+
width: 150
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
title: '数据库表字段名',
|
|
67
|
+
field: 'taZdMc',
|
|
68
|
+
width: 150
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
title: '字段描述',
|
|
72
|
+
field: 'zdCh',
|
|
73
|
+
width: 150
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
title: '字段类型', field: 'zdType', width: 150, slots: {
|
|
77
|
+
default: ({row, rowIndex, $table}) => {
|
|
78
|
+
return zdTypeMap[row.zdType];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
title: '关联字段',
|
|
84
|
+
field: 'referenceZd',
|
|
85
|
+
width: 150
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
width: 47,
|
|
89
|
+
fixed: 'right',
|
|
90
|
+
title: '',
|
|
91
|
+
sortable: false
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
config: {
|
|
95
|
+
checkboxConfig: {
|
|
96
|
+
checkStrictly: true,
|
|
97
|
+
showHeader: this.selectMulti,
|
|
98
|
+
trigger: 'row'
|
|
99
|
+
},
|
|
100
|
+
proxyConfig: {
|
|
101
|
+
props: {
|
|
102
|
+
result: "objx", // 配置响应结果列表字段
|
|
103
|
+
total: "objx.length", // 配置响应结果总页数字段
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
109
|
+
that.vxeOption = opts;
|
|
110
|
+
});
|
|
111
|
+
},
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
export default modules
|