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
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
<template #buttonRight>
|
|
31
31
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
32
|
-
plain>{{$t1('重置')}}
|
|
32
|
+
plain>{{ $t1('重置') }}
|
|
33
33
|
</vxe-button>
|
|
34
|
-
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent"
|
|
34
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
|
|
35
35
|
</vxe-button>
|
|
36
36
|
</template>
|
|
37
37
|
</tableForm>
|
|
@@ -70,92 +70,9 @@
|
|
|
70
70
|
</template>
|
|
71
71
|
|
|
72
72
|
<script>
|
|
73
|
-
import
|
|
74
|
-
import tableForm from "@base/components/table/tableForm.vue";
|
|
73
|
+
import mixin from "./mixins/dialog";
|
|
75
74
|
|
|
76
75
|
export default {
|
|
77
|
-
|
|
78
|
-
props: ['visiable', 'multi', 'rows', 'param'],
|
|
79
|
-
mixins: [selectDialogMixins],
|
|
80
|
-
components: {tableForm},
|
|
81
|
-
created() {
|
|
82
|
-
this.initSetting();
|
|
83
|
-
},
|
|
84
|
-
mounted() {
|
|
85
|
-
this.initTableM1();
|
|
86
|
-
},
|
|
87
|
-
data() {
|
|
88
|
-
return {
|
|
89
|
-
showDialog: true,
|
|
90
|
-
falseValue: false,
|
|
91
|
-
selectMulti: true,
|
|
92
|
-
formData: {},
|
|
93
|
-
vxeOption: {},
|
|
94
|
-
showSaleOrgDialog: false
|
|
95
|
-
};
|
|
96
|
-
},
|
|
97
|
-
methods: {
|
|
98
|
-
initTableM1() {
|
|
99
|
-
let that = this;
|
|
100
|
-
let tableOption = {
|
|
101
|
-
vue: that,
|
|
102
|
-
tableRef: 'table-m1',
|
|
103
|
-
tableName: 'bd_attach_setting_dialog-m1',
|
|
104
|
-
path: USER_PREFIX + '/bd_attach_setting/listPage',
|
|
105
|
-
param: () => {
|
|
106
|
-
return {
|
|
107
|
-
...this.formData,
|
|
108
|
-
type: "importTemplate"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
columns: [
|
|
112
|
-
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
113
|
-
{
|
|
114
|
-
title: '模板文件名称',
|
|
115
|
-
field: 'name',
|
|
116
|
-
width: 180,
|
|
117
|
-
fixed: 'left'
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
title: '模板文件编码',
|
|
121
|
-
field: 'code',
|
|
122
|
-
width: 180
|
|
123
|
-
},
|
|
124
|
-
{title: '表单分类', field: 'menuKindName', width: 150},
|
|
125
|
-
{
|
|
126
|
-
title: this.$t1('备注'),
|
|
127
|
-
field: 'remark',
|
|
128
|
-
width: 250
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
field: 'createDate',
|
|
132
|
-
title: this.$t1('创建时间'),
|
|
133
|
-
width: 150
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
width: 47,
|
|
137
|
-
fixed: 'right',
|
|
138
|
-
title: '',
|
|
139
|
-
sortable: false
|
|
140
|
-
}
|
|
141
|
-
],
|
|
142
|
-
searchColumns: [
|
|
143
|
-
{title: "模板文件名称", field: "name", type: "input", common: true},
|
|
144
|
-
{title: "模板文件编码", field: "code", type: "input", common: true},
|
|
145
|
-
{title: this.$t1('备注'), field: "remark", type: "input", common: true},
|
|
146
|
-
],
|
|
147
|
-
config: {
|
|
148
|
-
checkboxConfig: {
|
|
149
|
-
checkStrictly: true,
|
|
150
|
-
showHeader: this.selectMulti,
|
|
151
|
-
trigger: 'row'
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
156
|
-
that.vxeOption = opts;
|
|
157
|
-
});
|
|
158
|
-
},
|
|
159
|
-
}
|
|
76
|
+
mixins: [mixin]
|
|
160
77
|
};
|
|
161
78
|
</script>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div class="d-header clearfix">
|
|
5
5
|
<div class="fl">
|
|
6
6
|
<i class="el-icon-info"/>
|
|
7
|
-
{{ dataId ? $t1('
|
|
7
|
+
{{ dataId ? $t1('查看导入模板文件') : $t1('新增导入模板文件') }}
|
|
8
8
|
</div>
|
|
9
9
|
<div class="fr">
|
|
10
10
|
<el-form>
|
|
@@ -113,98 +113,9 @@
|
|
|
113
113
|
</template>
|
|
114
114
|
|
|
115
115
|
<script>
|
|
116
|
-
|
|
117
|
-
import MenuKindDialog from '../../../../views/bd/setting/menu_kind/dialog.vue';
|
|
116
|
+
import mixin from "./mixins/edit";
|
|
118
117
|
|
|
119
118
|
export default {
|
|
120
|
-
|
|
121
|
-
props: {
|
|
122
|
-
_dataId: [String, Number],
|
|
123
|
-
currentFormType: Object
|
|
124
|
-
},
|
|
125
|
-
components: {MenuKindDialog},
|
|
126
|
-
data() {
|
|
127
|
-
return {
|
|
128
|
-
isEdit: false,
|
|
129
|
-
tabIndex: 'first',
|
|
130
|
-
dataId: '',
|
|
131
|
-
bdAttachSetting: {
|
|
132
|
-
type: "importTemplate",
|
|
133
|
-
menuKindName: null,
|
|
134
|
-
menuKindCode: null
|
|
135
|
-
},
|
|
136
|
-
showMenuKindDialog: false
|
|
137
|
-
};
|
|
138
|
-
},
|
|
139
|
-
created() {
|
|
140
|
-
if (this._dataId && !isNaN(this._dataId)) {
|
|
141
|
-
this.dataId = this._dataId;
|
|
142
|
-
} else {
|
|
143
|
-
this.bdAttachSetting.menuKindName = this.currentFormType?.name || null;
|
|
144
|
-
this.bdAttachSetting.menuKindCode = this.currentFormType?.menuKindCode || null;
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
mounted() {
|
|
148
|
-
this.getData();
|
|
149
|
-
},
|
|
150
|
-
methods: {
|
|
151
|
-
getData() {
|
|
152
|
-
if (this.dataId && !isNaN(this.dataId)) {
|
|
153
|
-
this.isEdit = true;
|
|
154
|
-
this.$commonHttp({
|
|
155
|
-
url: USER_PREFIX + `/bd_attach_setting/get`,
|
|
156
|
-
method: `post`,
|
|
157
|
-
data: {
|
|
158
|
-
id: this.dataId
|
|
159
|
-
},
|
|
160
|
-
isLoading: true,
|
|
161
|
-
modalStrictly: true,
|
|
162
|
-
success: res => {
|
|
163
|
-
this.bdAttachSetting = res.objx || {};
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
saveData() {
|
|
169
|
-
this.$refs.editForm.$baseValidate(valid => {
|
|
170
|
-
if (valid) {
|
|
171
|
-
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
172
|
-
var url = USER_PREFIX + (this.isEdit ? `/bd_attach_setting/update` : `/bd_attach_setting/save`);
|
|
173
|
-
this.$http({
|
|
174
|
-
url: url,
|
|
175
|
-
method: `post`,
|
|
176
|
-
data: this.bdAttachSetting,
|
|
177
|
-
isLoading: true,
|
|
178
|
-
success: res => {
|
|
179
|
-
this.$message({
|
|
180
|
-
message: res.content,
|
|
181
|
-
type: 'success',
|
|
182
|
-
duration: 500,
|
|
183
|
-
onClose: t => {
|
|
184
|
-
if (this.isEdit) {
|
|
185
|
-
this.$baseReload();
|
|
186
|
-
} else {
|
|
187
|
-
this.$baseReload({
|
|
188
|
-
updateParam: {
|
|
189
|
-
_dataId: res.objx
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
},
|
|
201
|
-
confirmInsertMenuKind(rows) {
|
|
202
|
-
if (rows.length > 0) {
|
|
203
|
-
let row = rows[0];
|
|
204
|
-
this.$set(this.bdAttachSetting, 'menuKindCode', row.menuKindCode);
|
|
205
|
-
this.$set(this.bdAttachSetting, 'menuKindName', row.name);
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
}
|
|
119
|
+
mixins: [mixin]
|
|
209
120
|
};
|
|
210
121
|
</script>
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
<tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
|
|
39
39
|
<template #buttonLeft>
|
|
40
40
|
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog"
|
|
41
|
-
v-if="currentFormType.addAuth===1"
|
|
41
|
+
v-if="currentFormType.addAuth===1">{{ $t1('新增') }}
|
|
42
42
|
</vxe-button>
|
|
43
43
|
</template>
|
|
44
44
|
<template #buttonRight>
|
|
45
45
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
46
46
|
plain>{{ $t1('重置') }}
|
|
47
47
|
</vxe-button>
|
|
48
|
-
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent"
|
|
48
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
|
|
49
49
|
</vxe-button>
|
|
50
50
|
</template>
|
|
51
51
|
<template #menuKindName>
|
|
@@ -74,220 +74,10 @@
|
|
|
74
74
|
</template>
|
|
75
75
|
|
|
76
76
|
<script>
|
|
77
|
-
import
|
|
78
|
-
import {treeScollx} from '@base/utils/global.js';
|
|
79
|
-
import tableForm from "@base/components/table/tableForm.vue";
|
|
77
|
+
import mixin from "./mixins/list";
|
|
80
78
|
|
|
81
79
|
export default {
|
|
82
80
|
name: 'bd_attach_setting:list',
|
|
83
|
-
|
|
84
|
-
tableForm,
|
|
85
|
-
editView
|
|
86
|
-
},
|
|
87
|
-
created() {
|
|
88
|
-
},
|
|
89
|
-
async mounted() {
|
|
90
|
-
treeScollx({target: this, type: 'default'});
|
|
91
|
-
this.initTableList();
|
|
92
|
-
},
|
|
93
|
-
data() {
|
|
94
|
-
return {
|
|
95
|
-
activeName: 'second',
|
|
96
|
-
dataId: 0,
|
|
97
|
-
showEdit: false,
|
|
98
|
-
vxeOption: {},
|
|
99
|
-
checkRows: [],
|
|
100
|
-
szTaMbIds: [],
|
|
101
|
-
formData: {},
|
|
102
|
-
defaultProps: {
|
|
103
|
-
label: 'name', //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
|
|
104
|
-
children: [],
|
|
105
|
-
isLeaf: 'leaf'
|
|
106
|
-
},
|
|
107
|
-
showItemView: false,
|
|
108
|
-
showMenuKindDialog: false,
|
|
109
|
-
currentFormType: {},
|
|
110
|
-
menuKindAuth: {},
|
|
111
|
-
showTree: false
|
|
112
|
-
};
|
|
113
|
-
},
|
|
114
|
-
computed: {
|
|
115
|
-
currentMenuKindId() {
|
|
116
|
-
return this.currentFormType?.id || null
|
|
117
|
-
},
|
|
118
|
-
currentMenuKindName() {
|
|
119
|
-
return this.currentFormType?.name || null
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
methods: {
|
|
123
|
-
searchEvent() {
|
|
124
|
-
this.$refs['table-m1'].commitProxy('reload');
|
|
125
|
-
},
|
|
126
|
-
resetEvent() {
|
|
127
|
-
this.formData = {};
|
|
128
|
-
this.checkTags = [];
|
|
129
|
-
this.$refs['table-m1'].commitProxy('reload');
|
|
130
|
-
},
|
|
131
|
-
openEditDialog(row) {
|
|
132
|
-
/*this.dataId = !id || typeof id == 'object' ? 0 : id;
|
|
133
|
-
this.activeName = 'first';
|
|
134
|
-
this.$openEditView('showEdit');*/
|
|
135
|
-
|
|
136
|
-
let dataId = row?.id || 0;
|
|
137
|
-
if (!dataId) {
|
|
138
|
-
this.dataId = dataId;
|
|
139
|
-
this.activeName = 'first';
|
|
140
|
-
this.$openEditView('showEdit');
|
|
141
|
-
} else {
|
|
142
|
-
this.$refs.xTabs.openEditTab(row);
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
getSearchParam() {
|
|
146
|
-
let currentFormType = this.currentFormType || {}
|
|
147
|
-
return {
|
|
148
|
-
...this.formData,
|
|
149
|
-
type: "importTemplate",
|
|
150
|
-
menuKindCode: currentFormType.menuKindCode || null
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
initTableList() {
|
|
154
|
-
let that = this;
|
|
155
|
-
let tableOption = {
|
|
156
|
-
vue: this,
|
|
157
|
-
tableRef: 'table-m1',
|
|
158
|
-
tableName: 'bd_attach_setting_list-m1',
|
|
159
|
-
path: USER_PREFIX + '/bd_attach_setting/listPage',
|
|
160
|
-
param: () => {
|
|
161
|
-
return this.getSearchParam()
|
|
162
|
-
},
|
|
163
|
-
columns: [
|
|
164
|
-
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
165
|
-
{
|
|
166
|
-
title: '模板文件名称',
|
|
167
|
-
field: 'name',
|
|
168
|
-
width: 180,
|
|
169
|
-
fixed: 'left'
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
title: '模板文件编码',
|
|
173
|
-
field: 'code',
|
|
174
|
-
width: 180
|
|
175
|
-
},
|
|
176
|
-
{title: '表单分类', field: 'menuKindName', width: 150},
|
|
177
|
-
{
|
|
178
|
-
title: this.$t1('备注'),
|
|
179
|
-
field: 'remark',
|
|
180
|
-
width: 250
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
field: 'createDate',
|
|
184
|
-
title: this.$t1('创建时间'),
|
|
185
|
-
width: 150
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
width: 47,
|
|
189
|
-
fixed: 'right',
|
|
190
|
-
title: '',
|
|
191
|
-
sortable: false,
|
|
192
|
-
slots: {
|
|
193
|
-
default: ({row}) => {
|
|
194
|
-
return [
|
|
195
|
-
<div>
|
|
196
|
-
<a
|
|
197
|
-
href="javascript:void(0);"
|
|
198
|
-
class="a-link"
|
|
199
|
-
onclick={() => {
|
|
200
|
-
this.openEditDialog(row);
|
|
201
|
-
}}
|
|
202
|
-
>
|
|
203
|
-
<el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
|
|
204
|
-
popper-class="tooltip-skin">
|
|
205
|
-
<i class="el-icon-edit"/>
|
|
206
|
-
</el-tooltip>
|
|
207
|
-
</a>
|
|
208
|
-
</div>
|
|
209
|
-
];
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
],
|
|
214
|
-
searchColumns: [
|
|
215
|
-
{
|
|
216
|
-
title: "表单分类",
|
|
217
|
-
field: "menuKindName",
|
|
218
|
-
type: "input",
|
|
219
|
-
common: true,
|
|
220
|
-
disabled: true,
|
|
221
|
-
defaultValueEnabled: false,
|
|
222
|
-
slot: "menuKindName"
|
|
223
|
-
},
|
|
224
|
-
{title: "模板文件名称", field: "name", type: "input", common: true},
|
|
225
|
-
{title: "模板文件编码", field: "code", type: "input", common: true},
|
|
226
|
-
{title: this.$t1('备注'), field: "remark", type: "input", common: true},
|
|
227
|
-
],
|
|
228
|
-
config: {
|
|
229
|
-
proxyConfig: {
|
|
230
|
-
autoLoad: false
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
};
|
|
234
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
235
|
-
this.vxeOption = opts;
|
|
236
|
-
this.showTree = true;
|
|
237
|
-
});
|
|
238
|
-
},
|
|
239
|
-
handleNodeClick(data, node, v) {
|
|
240
|
-
this.handleNodeData(node)
|
|
241
|
-
this.$forceUpdate();
|
|
242
|
-
this.searchEvent();
|
|
243
|
-
},
|
|
244
|
-
// 异步树叶子节点懒加载逻辑
|
|
245
|
-
loadNode(node, resolve) {
|
|
246
|
-
let id = node && node.data && node.data.id ? node.data.id || '' : 0;
|
|
247
|
-
let param = {enabled: true};
|
|
248
|
-
let url = !id ? USER_PREFIX + '/menuKind/getAllList' : USER_PREFIX + '/menuKind/getChildren';
|
|
249
|
-
this.$http({
|
|
250
|
-
url: url,
|
|
251
|
-
method: 'post',
|
|
252
|
-
data: {
|
|
253
|
-
parent: id,
|
|
254
|
-
enabled: true
|
|
255
|
-
},
|
|
256
|
-
success: res => {
|
|
257
|
-
let rows = res.objx || [];
|
|
258
|
-
rows.forEach(value => {
|
|
259
|
-
value.leaf = !value.hasChild;
|
|
260
|
-
});
|
|
261
|
-
if (node.level === 0) {
|
|
262
|
-
if (rows.length > 0) {
|
|
263
|
-
this.$nextTick(() => {
|
|
264
|
-
let firstNode = node.childNodes[0];
|
|
265
|
-
if (rows[0].hasChild) {
|
|
266
|
-
firstNode.expand();
|
|
267
|
-
}
|
|
268
|
-
this.$refs.tree.setCurrentKey(firstNode.data);
|
|
269
|
-
this.handleNodeClick(firstNode.data, firstNode, this)
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
resolve(rows);
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
},
|
|
277
|
-
handleNodeData(node) {
|
|
278
|
-
this.currentFormType = node ? node.data : null;
|
|
279
|
-
this.currentNode = node;
|
|
280
|
-
},
|
|
281
|
-
confirmInsertMenuKind(rows) {
|
|
282
|
-
this.$baseReload();
|
|
283
|
-
},
|
|
284
|
-
moveClick() {
|
|
285
|
-
this.szTaMbIds = [];
|
|
286
|
-
this.$refs["table-m1"].getCheckboxRecords(true).map((item) => {
|
|
287
|
-
this.szTaMbIds.push(item.id);
|
|
288
|
-
});
|
|
289
|
-
this.showMenuKindDialog = true;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
81
|
+
mixins: [mixin]
|
|
292
82
|
};
|
|
293
83
|
</script>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
|
|
2
|
+
import tableForm from "@base/components/table/tableForm.vue";
|
|
3
|
+
|
|
4
|
+
let modules = {};
|
|
5
|
+
modules = {
|
|
6
|
+
props: ['visiable', 'multi', 'rows', 'param'],
|
|
7
|
+
mixins: [selectDialogMixins],
|
|
8
|
+
components: {tableForm},
|
|
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
|
+
};
|
|
24
|
+
},
|
|
25
|
+
methods: {
|
|
26
|
+
initTableM1() {
|
|
27
|
+
let that = this;
|
|
28
|
+
let tableOption = {
|
|
29
|
+
vue: that,
|
|
30
|
+
tableRef: 'table-m1',
|
|
31
|
+
tableName: 'bd_attach_setting_dialog-m1',
|
|
32
|
+
path: USER_PREFIX + '/bd_attach_setting/listPage',
|
|
33
|
+
param: () => {
|
|
34
|
+
return {
|
|
35
|
+
...this.formData,
|
|
36
|
+
type: "importTemplate"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
columns: [
|
|
40
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
41
|
+
{
|
|
42
|
+
title: '模板文件名称',
|
|
43
|
+
field: 'name',
|
|
44
|
+
width: 180,
|
|
45
|
+
fixed: 'left'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
title: '模板文件编码',
|
|
49
|
+
field: 'code',
|
|
50
|
+
width: 180
|
|
51
|
+
},
|
|
52
|
+
{title: '表单分类', field: 'menuKindName', width: 150},
|
|
53
|
+
{
|
|
54
|
+
title: this.$t1('备注'),
|
|
55
|
+
field: 'remark',
|
|
56
|
+
width: 250
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
field: 'createDate',
|
|
60
|
+
title: this.$t1('创建时间'),
|
|
61
|
+
width: 150
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
width: 47,
|
|
65
|
+
fixed: 'right',
|
|
66
|
+
title: '',
|
|
67
|
+
sortable: false
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
searchColumns: [
|
|
71
|
+
{title: "模板文件名称", field: "name", type: "input", common: true},
|
|
72
|
+
{title: "模板文件编码", field: "code", type: "input", common: true},
|
|
73
|
+
{title: this.$t1('备注'), field: "remark", type: "input", common: true},
|
|
74
|
+
],
|
|
75
|
+
config: {
|
|
76
|
+
checkboxConfig: {
|
|
77
|
+
checkStrictly: true,
|
|
78
|
+
showHeader: this.selectMulti,
|
|
79
|
+
trigger: 'row'
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
84
|
+
that.vxeOption = opts;
|
|
85
|
+
});
|
|
86
|
+
},
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
export default modules
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
|
|
2
|
+
|
|
3
|
+
let modules = {};
|
|
4
|
+
modules = {
|
|
5
|
+
props: {
|
|
6
|
+
_dataId: [String, Number],
|
|
7
|
+
currentFormType: Object
|
|
8
|
+
},
|
|
9
|
+
components: {MenuKindDialog},
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
isEdit: false,
|
|
13
|
+
tabIndex: 'first',
|
|
14
|
+
dataId: '',
|
|
15
|
+
bdAttachSetting: {
|
|
16
|
+
type: "importTemplate",
|
|
17
|
+
menuKindName: null,
|
|
18
|
+
menuKindCode: null
|
|
19
|
+
},
|
|
20
|
+
showMenuKindDialog: false
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
created() {
|
|
24
|
+
if (this._dataId && !isNaN(this._dataId)) {
|
|
25
|
+
this.dataId = this._dataId;
|
|
26
|
+
} else {
|
|
27
|
+
this.bdAttachSetting.menuKindName = this.currentFormType?.name || null;
|
|
28
|
+
this.bdAttachSetting.menuKindCode = this.currentFormType?.menuKindCode || null;
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
mounted() {
|
|
32
|
+
this.getData();
|
|
33
|
+
},
|
|
34
|
+
methods: {
|
|
35
|
+
getData() {
|
|
36
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
|
37
|
+
this.isEdit = true;
|
|
38
|
+
this.$commonHttp({
|
|
39
|
+
aes:true,
|
|
40
|
+
url: USER_PREFIX + `/bd_attach_setting/get`,
|
|
41
|
+
method: `post`,
|
|
42
|
+
data: {
|
|
43
|
+
id: this.dataId
|
|
44
|
+
},
|
|
45
|
+
isLoading: true,
|
|
46
|
+
modalStrictly: true,
|
|
47
|
+
success: res => {
|
|
48
|
+
this.bdAttachSetting = res.objx || {};
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
saveData() {
|
|
54
|
+
this.$refs.editForm.$baseValidate(valid => {
|
|
55
|
+
if (valid) {
|
|
56
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
57
|
+
var url = USER_PREFIX + (this.isEdit ? `/bd_attach_setting/update` : `/bd_attach_setting/save`);
|
|
58
|
+
this.$http({
|
|
59
|
+
aes:true,
|
|
60
|
+
url: url,
|
|
61
|
+
method: `post`,
|
|
62
|
+
data: this.bdAttachSetting,
|
|
63
|
+
isLoading: true,
|
|
64
|
+
success: res => {
|
|
65
|
+
this.$message({
|
|
66
|
+
message: res.content,
|
|
67
|
+
type: 'success',
|
|
68
|
+
duration: 500,
|
|
69
|
+
onClose: t => {
|
|
70
|
+
if (this.isEdit) {
|
|
71
|
+
this.$baseReload();
|
|
72
|
+
} else {
|
|
73
|
+
this.$baseReload({
|
|
74
|
+
updateParam: {
|
|
75
|
+
_dataId: res.objx
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
},
|
|
87
|
+
confirmInsertMenuKind(rows) {
|
|
88
|
+
if (rows.length > 0) {
|
|
89
|
+
let row = rows[0];
|
|
90
|
+
this.$set(this.bdAttachSetting, 'menuKindCode', row.menuKindCode);
|
|
91
|
+
this.$set(this.bdAttachSetting, 'menuKindName', row.name);
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
export default modules
|