From 5b212ae7f253125d8262de44cd6c1353ba26f239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com> Date: Wed, 4 Jan 2023 14:18:21 +0800 Subject: [PATCH] 1/4 --- src/api/modular/main/TenantConfig.js | 6 +- src/views/main/TenantConfig/addForm.vue | 17 +- src/views/main/TenantConfig/editForm.vue | 203 ++--------------------- src/views/main/TenantConfig/index.vue | 76 +++++++-- 4 files changed, 85 insertions(+), 217 deletions(-) diff --git a/src/api/modular/main/TenantConfig.js b/src/api/modular/main/TenantConfig.js index 5e74f24..183e52d 100644 --- a/src/api/modular/main/TenantConfig.js +++ b/src/api/modular/main/TenantConfig.js @@ -33,11 +33,11 @@ export function DjyTenantConfigEdit(parameter) { /** * 删除 */ -export function DjyTenantConfigDelete(parameter) { +export function DjyTenantConfigDelete(data) { return axios({ url: '/DjyTenantConfig/delete', - method: 'get', - params: parameter + method: 'post', + data: data }) } /** diff --git a/src/views/main/TenantConfig/addForm.vue b/src/views/main/TenantConfig/addForm.vue index f92d148..ada1464 100644 --- a/src/views/main/TenantConfig/addForm.vue +++ b/src/views/main/TenantConfig/addForm.vue @@ -10,7 +10,7 @@ - + - + {{ item2.name }} @@ -69,14 +69,10 @@ export default { Data, visible: false, confirmLoading: false, - form: this.$form.createForm(this), - TypeData: [] + form: this.$form.createForm(this) } }, - mounted() { - this.TypeData = this.$options.filters['dictData']('customer_config_type') - console.log(this.TypeData) - }, + mounted() {}, methods: { // 初始化方法 add(record) { @@ -101,7 +97,8 @@ export default { values[key] = JSON.stringify(values[key]) } } - DjyTenantConfigAdd(values) + values.configJson = values.WebData + DjyTenantConfigAdd({ ...values, type: 'booking_form_col' }) .then(res => { if (res.success) { this.$message.success('新增成功') diff --git a/src/views/main/TenantConfig/editForm.vue b/src/views/main/TenantConfig/editForm.vue index 168e24c..be8fdc8 100644 --- a/src/views/main/TenantConfig/editForm.vue +++ b/src/views/main/TenantConfig/editForm.vue @@ -10,165 +10,15 @@ - - - - - {{ item.name }} - - - - - - - - - - - - - - - - - - - {{ item.enName }} - - - - - - - - - {{ item.enName }} - - - - - - - - - {{ item.enName }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ item.cnName }} - - - - - - - + + + + + + {{ item2.name }} + + + @@ -179,21 +29,22 @@