src/views/login.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/system/check/result/detail/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/system/work-order/threshold/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/login.vue
@@ -105,6 +105,7 @@ loginInfo: { firstLogin: 1 }, roles:[], newPassword: undefined, confirmPassword: undefined, loginRules: { @@ -185,13 +186,15 @@ this.$store.dispatch("Login", this.loginForm).then((res) => { getInfo().then(loginInfo => { this.loginInfo = loginInfo.user this.roles = loginInfo.roles //如果返回为1正常跳转 if (this.loginInfo.firstLogin == 1) { // this.$router.push({ path: "/" }).catch(() => { }); // return; if (this.loginInfo.roles.includes("admin") || this.loginInfo.roles.includes("city_leader") || this.loginInfo.roles.includes("county_leader")) { this.$router.push({path: this.redirect || "/screen"}).catch(() => { }); if (this.roles .includes("admin") || this.roles .includes("city_leader") || this.roles .includes("county_leader")) { this.$router.push({ path: '/screen' }) } else { this.$router.push({path: this.redirect || "/index"}).catch(() => { }); src/views/system/check/result/detail/index.vue
@@ -190,7 +190,7 @@ return department ? department.value : '未知'; }, /** 导航切换 */ handlefSelect(key) { handleSelect(key) { this.activeIndex = key; this.queryParams.examineTag = key; this.queryParamsList.examineTag = key; @@ -367,10 +367,6 @@ observer.unobserve(this.$refs.chartContent); } }, handleSelect(key, keyPath) { console.log(key, keyPath); }, } </script> src/views/system/work-order/threshold/index.vue
@@ -14,8 +14,8 @@ <!-- </el-col>--> <!-- </el-row>--> <el-row> <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="8"> <el-card style="margin-bottom: 20px; height: 450px; margin-right: 20px;color: #656565;"> <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8"> <el-card style="margin-bottom: 20px; height: 350px; margin-right: 20px;color: #656565;"> <div style="display: flex; justify-content: space-between"> <div class="header—text">视频</div> <div> @@ -103,8 +103,8 @@ </div> </el-card> </el-col> <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="8"> <el-card style="margin-bottom: 20px; height: 450px; margin-right: 20px;color: #656565;"> <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8"> <el-card style="margin-bottom: 20px; height: 350px; margin-right: 20px;color: #656565;"> <div style="display: flex; justify-content: space-between"> <div class="header—text">人脸</div> <div> @@ -193,8 +193,8 @@ </div> </el-card></el-col > <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="8"> <el-card style="margin-bottom: 20px; height: 450px; margin-right: 20px;color: #656565;"> <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8"> <el-card style="margin-bottom: 20px; height: 350px; margin-right: 20px;color: #656565;"> <div style="display: flex; justify-content: space-between"> <div class="header—text">车辆</div> <div> @@ -230,13 +230,13 @@ font-size: small; display: flex; flex-direction: row-reverse; width: 232px; width: 206px; " > 工单阈值 </div> <div> <el-form ref="form" label-width="180px"> <el-form ref="form" label-width="160px"> <el-form-item v-for="(item, index) in thresholdList.car" :label="item.name + ':'" @@ -774,6 +774,7 @@ .header—text { font-weight: bold; font-size: large; } ::v-deep .el-form-item { margin-bottom: 0px; /* 根据需求调整这个值 */