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) {