Explorar o código

:zap: 优化租户配置逻辑

smallchill %!s(int64=6) %!d(string=hai) anos
pai
achega
baf85345d8
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      src/views/system/tenant.vue

+ 10 - 0
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) {