From acb7c4c272aa02c2ed24cde72db429defef9fb8f Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期四, 27 七月 2023 13:54:02 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/page/login/userlogin.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/UBCS-WEB/src/page/login/userlogin.vue b/Source/UBCS-WEB/src/page/login/userlogin.vue index 7e52c25..a0f5b6a 100644 --- a/Source/UBCS-WEB/src/page/login/userlogin.vue +++ b/Source/UBCS-WEB/src/page/login/userlogin.vue @@ -8,7 +8,7 @@ status-icon > <el-form-item prop="selectInput"> - <el-select v-model="loginForm.value" placeholder="璇烽�夋嫨缁勭粐" style="width: 326px" @change="selectchange"> + <el-select v-model="loginForm.tenantId" placeholder="璇烽�夋嫨绉熸埛" style="width: 326px" @change="selectchange"> <i slot="prefix" class="el-icon-s-operation"/> <el-option v-for="(item,index) in loginForm.region" @@ -67,7 +67,6 @@ </el-dialog> </div> - </template> <script> @@ -102,7 +101,7 @@ }, loginForm: { //绉熸埛ID - tenantId: "000000", + tenantId: "", //閮ㄩ棬ID deptId: "", //瑙掕壊ID @@ -126,7 +125,7 @@ }, value: { selectInput: [ - {required: true, message: "璇烽�夋嫨缁勭粐", trigger: "blur"} + {required: true, message: "璇烽�夋嫨绉熸埛", trigger: "blur"} ], username: [ {required: true, message: "璇疯緭鍏ョ敤鎴峰悕", trigger: "blur"} @@ -155,6 +154,7 @@ //鍦╩ounted鑾峰彇棣栭〉涓嬫媺鑿滃崟鏁版嵁 this.$axios.get('/api/ubcs-system/tenant/tenant-map').then(res => { if (res.data.code == 200) { + this.loginForm.tenantId = res.data.data[0].TENANT_ID; this.loginForm.region = res.data.data } }) @@ -229,7 +229,7 @@ }, handleLogin: function () { this.userInfo = this.$store.state.upadatastatus - //console.log(this.userInfo) + localStorage.setItem('username',this.loginForm.username) this.$refs.loginForm.validate(valid => { if (valid) { const loading = this.$loading({ -- Gitblit v1.9.3