From ea6a87dc865f9fb0344019a29ce6a871c9d9c2c3 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期四, 17 八月 2023 12:05:47 +0800
Subject: [PATCH] 修改业务数据保存、修改参照快速查询
---
Source/UBCS-WEB/src/page/login/userlogin.vue | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/Source/UBCS-WEB/src/page/login/userlogin.vue b/Source/UBCS-WEB/src/page/login/userlogin.vue
index af14bc8..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({
@@ -271,6 +271,7 @@
//鎶婂垽鏂瘑鐮佺瓥鐣ヤ慨鏀圭殑鍊煎瓨杩涙湰鍦帮紝鐒跺悗鍐嶈矾鐢辨潈闄恓s鏂囦欢閲岄潰鑾峰彇鍐嶅仛鍒ゆ柇锛屼笉鐒跺埛鏂颁細杩涘叆棣栭〉锛堝洜涓哄湪鏈塱d鍜宼oken鐨勬儏鍐典笅锛屽埛鏂伴〉闈㈡垨鑰呰繘鍏ョ櫥褰曢〉浼氳嚜鍔ㄨ繘鍏ラ椤碉級
//index椤甸潰涔熷彲浠ョ敤鍒拌繖涓�兼潵鍒ゆ柇鏄惁鏄秴绠¤韩浠界櫥褰曟潵鍒ゆ柇鏄惁鎻愰啋杩囨湡鏃堕棿绛�
localStorage.setItem("updataid",JSON.stringify(this.userInfo))
+ localStorage.setItem("userId",this.userInfo.user_id)
loading.close();
}).catch(() => {
loading.close();
--
Gitblit v1.9.3