浏览代码

bug 修复

lilei 4 年之前
父节点
当前提交
eb5304156d
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 0
      pages/siteInspection/siteInspection.vue
  2. 4 1
      pages/userCenter/personInfo.vue

+ 1 - 0
pages/siteInspection/siteInspection.vue

@@ -111,6 +111,7 @@
 				//  校验是否有历史巡店记录
 				//  type  VIDEO_INSPECTION:视频巡店、SPOT_INSPECTION:现场巡店、POINT_INSPECTION:点检任务
 				queryCurrentTaskUsing({ storeId: item.id, type: 'SPOT_INSPECTION' }).then(res => {
+					console.log(res,'----')
 					if(res.status == 200){
 						if(res.data){  //  为true有历史巡店记录
 							clzConfirm({

+ 4 - 1
pages/userCenter/personInfo.vue

@@ -11,7 +11,7 @@
 			</view>
 			<view class="content-item">
 				<text>性别</text>
-				<view>{{pageData.sex}}</view>
+				<view>{{pageData.sex|fiterSex}}</view>
 			</view>
 			<view class="content-item">
 				<text>角色</text>
@@ -50,6 +50,9 @@
 		},
 		// 角色
 		filters: {
+			fiterSex(val){
+				return ['女','男'][val]
+			},
 			filterRoles(val){
 				 if(val){
 					let arr = []