소스 검색

:zap: 优化租户配置逻辑

smallchill 6 년 전
부모
커밋
baf85345d8
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  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) {