From dc7953ed1f3ad9117a8eb1991e3742966cbffd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com> Date: Tue, 15 Nov 2022 16:35:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modular/main/UserEmail.js | 53 ++++++++++++++ src/views/main/DJYTenantParam/addForm.vue | 5 ++ src/views/main/DJYTenantParam/addItemForm.vue | 71 +++++++++++++++++-- src/views/main/DJYTenantParam/editForm.vue | 8 ++- .../main/DJYTenantParam/editItemForm.vue | 67 +++++++++++++++-- src/views/main/DJYTenantParam/indexItem.vue | 50 +++++++++++-- .../main/DJYTenantParam/itemEditForm.vue | 9 ++- src/views/main/UserEmail/addForm.vue | 6 +- src/views/main/UserEmail/editForm.vue | 6 +- src/views/main/UserEmail/index.vue | 12 ++-- 10 files changed, 253 insertions(+), 34 deletions(-) create mode 100644 src/api/modular/main/UserEmail.js diff --git a/src/api/modular/main/UserEmail.js b/src/api/modular/main/UserEmail.js new file mode 100644 index 0000000..452147f --- /dev/null +++ b/src/api/modular/main/UserEmail.js @@ -0,0 +1,53 @@ +import { axios } from '@/utils/request' + +/** + * 分页查询用户邮箱账号 + * + * @author Myshipping + */ +export function DjyUserMailAccountPage(parameter) { + return axios({ + url: '/DjyUserMailAccount/page', + method: 'get', + params: parameter + }) +} + +/** + * 增加用户邮箱账号 + * + * @author Myshipping + */ +export function DjyUserMailAccountAdd(parameter) { + return axios({ + url: '/DjyUserMailAccount/add', + method: 'post', + data: parameter + }) +} + +/** + * 更新用户邮箱账号 + * + * @author Myshipping + */ +export function DjyUserMailAccountEdit(parameter) { + return axios({ + url: '/DjyUserMailAccount/edit', + method: 'post', + data: parameter + }) +} + +/** + * 删除用户邮箱账号 + * + * @author Myshipping + */ +export function DjyUserMailAccountDelete(parameter) { + return axios({ + url: '/DjyUserMailAccount/delete', + method: 'post', + data: parameter + }) +} diff --git a/src/views/main/DJYTenantParam/addForm.vue b/src/views/main/DJYTenantParam/addForm.vue index 517d39a..e3b5176 100644 --- a/src/views/main/DJYTenantParam/addForm.vue +++ b/src/views/main/DJYTenantParam/addForm.vue @@ -43,6 +43,11 @@ + + + + + diff --git a/src/views/main/DJYTenantParam/addItemForm.vue b/src/views/main/DJYTenantParam/addItemForm.vue index 218486d..1f18ac8 100644 --- a/src/views/main/DJYTenantParam/addItemForm.vue +++ b/src/views/main/DJYTenantParam/addItemForm.vue @@ -31,7 +31,7 @@ - {{ item.paraName }} + --> + + + + {{ item2.paraName }} + + @@ -62,11 +77,17 @@ - - + + + + + + + + @@ -80,10 +101,12 @@ import { SysTenantPage, DJYTenantParamGetParamItem } from '@/api/modular/main/DJYTenantParam' +import { sysDictDataPage } from '@/api/modular/system/dictDataManage' export default { data() { return { TypeData: [], + WTypeData: [], labelCol: { xs: { span: 24 }, sm: { span: 9 } @@ -94,11 +117,11 @@ export default { }, labelCol2: { xs: { span: 24 }, - sm: { span: 3 } + sm: { span: 5 } }, wrapperCol2: { xs: { span: 24 }, - sm: { span: 20 } + sm: { span: 2 } }, typeData: [], visible: false, @@ -106,20 +129,54 @@ export default { form: this.$form.createForm(this), TenantData: [], ItemData: [], - ItemCodeDisabled: true + ItemCodeDisabled: true, + YWData: [] } }, mounted() { DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => { this.TypeData = res.data - console.log(this.TypeData) + let data = [] + let type = '' + let num = -1 + res.data.forEach(item => { + if (type != item.type) { + num = num + 1 + type = item.type + } + // if (data.length == 0) { + if (data[num]) { + data[num].push(item) + } else { + data[num] = [] + data[num].push(item) + } + // } + }) + this.WTypeData = data + console.log(data) + }) + sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '353559512399941' }).then(res => { + this.YWData = res.data.rows }) SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => { this.TenantData = res.data.rows }) }, methods: { + FnTypeD(data) { + let Rdata = '' + this.YWData.forEach(item => { + if (item.code == data) { + Rdata = item.value + } + }) + return Rdata + }, FnChangeTypeCode(e) { + this.form.setFieldsValue({ + itemCode: '' + }) if (e) { this.ItemCodeDisabled = false DJYTenantParamGetParamItem({ paraCode: e }).then(res => { diff --git a/src/views/main/DJYTenantParam/editForm.vue b/src/views/main/DJYTenantParam/editForm.vue index eb611fb..1457d2d 100644 --- a/src/views/main/DJYTenantParam/editForm.vue +++ b/src/views/main/DJYTenantParam/editForm.vue @@ -43,6 +43,11 @@ + + + + + @@ -98,7 +103,8 @@ export default { type: record.type, paraName: record.paraName, paraCode: record.paraCode, - remark: record.remark + remark: record.remark, + sort: record.sort }) console.log(this.form.getFieldsValue()) }, 100) diff --git a/src/views/main/DJYTenantParam/editItemForm.vue b/src/views/main/DJYTenantParam/editItemForm.vue index 277b237..67974ea 100644 --- a/src/views/main/DJYTenantParam/editItemForm.vue +++ b/src/views/main/DJYTenantParam/editItemForm.vue @@ -31,7 +31,7 @@ - {{ item.paraName }} + --> + + + + {{ item2.paraName }} + + @@ -62,11 +77,16 @@ - - + + + + + + + @@ -80,10 +100,12 @@ import { SysTenantPage, DJYTenantParamGetParamItem } from '@/api/modular/main/DJYTenantParam' +import { sysDictDataPage } from '@/api/modular/system/dictDataManage' export default { data() { return { TypeData: [], + WTypeData: [], labelCol: { xs: { span: 24 }, sm: { span: 7 } @@ -107,20 +129,54 @@ export default { data: {}, TenantData: [], ItemData: [], - ItemCodeDisabled: true + ItemCodeDisabled: true, + YWData: [] } }, mounted() { DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => { this.TypeData = res.data - console.log(this.TypeData) + let data = [] + let type = '' + let num = -1 + res.data.forEach(item => { + if (type != item.type) { + num = num + 1 + type = item.type + } + // if (data.length == 0) { + if (data[num]) { + data[num].push(item) + } else { + data[num] = [] + data[num].push(item) + } + // } + }) + this.WTypeData = data + console.log(data) + }) + sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '353559512399941' }).then(res => { + this.YWData = res.data.rows }) SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => { this.TenantData = res.data.rows }) }, methods: { + FnTypeD(data) { + let Rdata = '' + this.YWData.forEach(item => { + if (item.code == data) { + Rdata = item.value + } + }) + return Rdata + }, FnChangeTypeCode(e) { + this.form.setFieldsValue({ + itemCode: '' + }) if (e) { this.ItemCodeDisabled = false DJYTenantParamGetParamItem({ paraCode: e }).then(res => { @@ -149,6 +205,7 @@ export default { itemCode: record.itemCode, itemName: record.itemName, remark: record.remark, + sort: record.sort, tenantId: record.tenantId }) console.log(this.form.getFieldsValue()) diff --git a/src/views/main/DJYTenantParam/indexItem.vue b/src/views/main/DJYTenantParam/indexItem.vue index bd9fe56..7d1ea3d 100644 --- a/src/views/main/DJYTenantParam/indexItem.vue +++ b/src/views/main/DJYTenantParam/indexItem.vue @@ -48,9 +48,15 @@ v-else-if="item.title == '租户参数类别'" allow-clear > - - {{ item.paraName }} - + + + {{ item2.paraName }} + + { if (item.paraCode == data) { @@ -222,6 +229,15 @@ export default { }) return Rdata }, + FnTypeD(data) { + let Rdata = '' + this.YWData.forEach(item => { + if (item.code == data) { + Rdata = item.value + } + }) + return Rdata + }, toggleAdvanced() { this.advanced = !this.advanced }, @@ -229,9 +245,30 @@ export default { Object.assign(this.$data, this.$options.data()) this.ColumnsQuery = this.columns this.FnGetData() + sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '353559512399941' }).then(res => { + this.YWData = res.data.rows + }) DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => { this.TypeData = res.data - console.log(this.TypeData) + let data = [] + let type = '' + let num = -1 + res.data.forEach(item => { + if (type != item.type) { + num = num + 1 + type = item.type + } + // if (data.length == 0) { + if (data[num]) { + data[num].push(item) + } else { + data[num] = [] + data[num].push(item) + } + // } + }) + this.WTypeData = data + console.log(data) }) SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => { this.TenantData = res.data.rows @@ -267,7 +304,6 @@ export default { this.DJYTenantParamDeleteParamValue(data) }, DJYTenantParamDeleteParamValue(record) { - console.log(record) DJYTenantParamDeleteParamValue({ id: record.id }).then(res => { if (res.success) { this.$message.success('删除成功') diff --git a/src/views/main/DJYTenantParam/itemEditForm.vue b/src/views/main/DJYTenantParam/itemEditForm.vue index cdfb42a..c9fbbd7 100644 --- a/src/views/main/DJYTenantParam/itemEditForm.vue +++ b/src/views/main/DJYTenantParam/itemEditForm.vue @@ -57,9 +57,14 @@ - + + + + diff --git a/src/views/main/UserEmail/addForm.vue b/src/views/main/UserEmail/addForm.vue index 8470788..6de5f92 100644 --- a/src/views/main/UserEmail/addForm.vue +++ b/src/views/main/UserEmail/addForm.vue @@ -1,6 +1,6 @@