From d1dd52fe906faa857252e36da6a2a8f438e416b5 Mon Sep 17 00:00:00 2001 From: g7hoo Date: Fri, 12 Aug 2022 14:26:46 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=AE=BE=E5=A4=87=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base-dialog/addOrUpdate/index.vue | 14 ++++++++--- .../modules/monitoring/equipmentType.vue | 24 +++++++++++++++++-- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/src/components/base-dialog/addOrUpdate/index.vue b/src/components/base-dialog/addOrUpdate/index.vue index cd427fd..1df1347 100644 --- a/src/components/base-dialog/addOrUpdate/index.vue +++ b/src/components/base-dialog/addOrUpdate/index.vue @@ -30,7 +30,12 @@ - + @@ -275,6 +280,8 @@ export default { return 'input' } else if (['select' /** add more.. */].includes(opt.type)) { return 'select' + } else if (['cascader'].includes(opt.type)) { + return 'cascader' } // add more... } else { @@ -329,7 +336,7 @@ export default { this.$http({ url: this.$http.adornUrl(urls[btn.name].url), method: btn.name === 'save' ? 'POST' : 'PUT', - data: { ...this.dataForm, ...urls[btn.name].extraFields} + data: { ...this.dataForm, ...urls[btn.name].extraFields } }) .then(({ data: res }) => { if (res && res.code === 0) { @@ -382,7 +389,8 @@ export default {