From baf85345d8b20000351f26407f172abe12794cad Mon Sep 17 00:00:00 2001 From: smallchill Date: Thu, 2 Jan 2020 21:57:14 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E7=A7=9F=E6=88=B7?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/tenant.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/system/tenant.vue b/src/views/system/tenant.vue index 364ea08..c49bbdd 100644 --- a/src/views/system/tenant.vue +++ b/src/views/system/tenant.vue @@ -309,6 +309,16 @@ this.$message.warning("请选择至少一条数据"); return; } + if (this.selectionList.length === 1) { + getDetail(this.selectionList[0].id).then(res => { + const data = res.data.data; + this.settingForm.accountNumber = data.accountNumber; + this.settingForm.expireTime = data.expireTime; + }); + } else { + this.settingForm.accountNumber = -1; + this.settingForm.expireTime = ''; + } this.box = true; }, handleSubmit(form, done) {