Sfoglia il codice sorgente

用户个人信息更改,绑定数据后的bug修改

yf_zd 5 anni fa
parent
commit
87bd817141

+ 6 - 3
bigdata2/src/components/Index.vue

@@ -7,7 +7,7 @@
 			<div class="navbarBtn">
 				<!-- 用户 -->
 				<div class="userinfo">
-					<img :src="userphoto" class="userheadImg" alt="" />{{ username }}
+					欢迎您,{{ username }}
 				</div>
 				<!-- 标题 -->
 				<div class="caption">
@@ -28,12 +28,12 @@
 			<!-- 菜单 -->
 			<el-aside width="200px">
 				<el-menu
-					default-active="/index/xycb"
+					:default-active="currRouter"
 					:collapse-transition="false"
 					class="el-menu-vertical-demo"
 					unique-opened
 					:router="isRouter"
-					 text-color="#333"
+					text-color="#333"
 					active-text-color="#fff"
 				>
 					<el-menu-item
@@ -91,6 +91,7 @@ export default {
 				6: 'iconfont icon-xitong'
 			},
 			userinfo:'',
+			currRouter:'/index/bzy',
 			menuList1: [{
 			"purview_name": "智能性诱测报",
 			"menu": "xycb",
@@ -154,6 +155,7 @@ export default {
 	watch: {
 	},
 	mounted() {
+		this.currRouter = this.$route.path
 	},
 	methods: {
 		getuserinfo() {
@@ -217,6 +219,7 @@ export default {
 	.navbarBtn {
 		color: #fff;
 		.userinfo {
+			font-size: 12px;
 			text-align: right;
 			margin-top: 10px;
 			.userheadImg {

+ 1 - 1
bigdata2/src/components/UserManger.vue

@@ -324,7 +324,7 @@ export default {
         method: "POST",
         url: "/user_list",
         data: this.qs.stringify({
-          typelist: 4,
+          typelist: 1,
           page_size:8,
           page: this.page,
           uname: this.username,

+ 0 - 1
bigdata2/src/pages/forecasting/bzy/BzyPhotos.vue

@@ -20,7 +20,6 @@
 			<el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6" v-for="item in photoList" :key="item.addr">
 				<div class="photoItem">
 					<div class="photoInfo">
-						<span>{{item.upl_time}}</span>
 						<template v-if="userType==1">
 							<i class="iconfont icon-shanchu" v-show="delBtnState" @click="delectImg(item.addr)"></i>
 							<el-checkbox v-show="!delBtnState" v-model="item.checked"></el-checkbox>

+ 6 - 6
bigdata2/src/pages/forecasting/cbd/cbdDataPhotos.vue

@@ -416,18 +416,18 @@ export default {
 				})
 				.then((res) => {
 					that.loading = false
-					if (res.data.message == '') {
-						//识别成功
-						that.recognitionData = res.data.data.result //数组数据
-						that.recognitionImage = res.data.data.image //图片
-					} else {
+					if (res.data == 1) {
 						//识别失败
 						this.$message({
 							showClose: true,
-							message: res.data.message,
+							message: '识别失败',
 							type: 'error'
 						})
 						this.discernVisible = false
+					} else {
+						//识别成功
+						that.recognitionData = res.data.data.result //数组数据
+						that.recognitionImage = res.data.data.image //图片
 					}
 				})
 				.catch((err) => {