Browse Source

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
待办单修改

1004749546@qq.com 4 years ago
parent
commit
2c8f6d0e3c
3 changed files with 35 additions and 29 deletions
  1. 17 9
      pages/toDoList/backlogDetail.vue
  2. 18 20
      pages/toDoList/toDoList.vue
  3. BIN
      static/noPic.jpg

+ 17 - 9
pages/toDoList/backlogDetail.vue

@@ -2,17 +2,18 @@
 	<view class="back-content">
 	<view class="back-content">
 		<!-- 轮播图 -->
 		<!-- 轮播图 -->
 		<swiper class="top-ad-swiper" :indicator-dots="false" :autoplay="true" :interval="5000" :duration="600" :circular="true">
 		<swiper class="top-ad-swiper" :indicator-dots="false" :autoplay="true" :interval="5000" :duration="600" :circular="true">
-			<swiper-item v-for="(item,index) in imageTopList" :key="index">
+			<swiper-item v-if="infoData.backlogPhotoList && infoData.backlogPhotoList.length" v-for="(item,index) in infoData.backlogPhotoList" :key="index">
 				<div class="swiper-item uni-bg-red">
 				<div class="swiper-item uni-bg-red">
 					<!-- <image class="swiper-item-imgse" :fade-show='true' :src="item.photo"></image> -->
 					<!-- <image class="swiper-item-imgse" :fade-show='true' :src="item.photo"></image> -->
 					<u-image mode="scaleToFill" width="750upx" height="400upx" :src="item.photo"></u-image>
 					<u-image mode="scaleToFill" width="750upx" height="400upx" :src="item.photo"></u-image>
 				</div>
 				</div>
 			</swiper-item>
 			</swiper-item>
+			<u-image v-else mode="scaleToFill" width="750upx" height="400upx" src="/static/noPic.jpg"></u-image>
 		</swiper>
 		</swiper>
 		<view class="back-text">
 		<view class="back-text">
 			<!-- 门店 -->
 			<!-- 门店 -->
 			<view class="text-item">
 			<view class="text-item">
-				常青二路店
+				{{infoData.storeName}}
 			</view>
 			</view>
 			<!-- 处理人 -->
 			<!-- 处理人 -->
 			<view class="text-item">
 			<view class="text-item">
@@ -21,7 +22,7 @@
 					<text class="margin-left ellipsis-one">张三丰</text>
 					<text class="margin-left ellipsis-one">张三丰</text>
 				</view>
 				</view>
 				<view class="time ">
 				<view class="time ">
-					2020-08-07 到期
+					{{infoData.effectiveEndTime}} 到期
 				</view>
 				</view>
 			</view>
 			</view>
 			<!-- 创建人 -->
 			<!-- 创建人 -->
@@ -31,7 +32,7 @@
 					<text class="margin-left ellipsis-one">张三丰</text>
 					<text class="margin-left ellipsis-one">张三丰</text>
 				</view>
 				</view>
 				<view class="time">
 				<view class="time">
-					2020-08-07 创建
+					{{infoData.createTime}} 创建
 				</view>
 				</view>
 			</view>
 			</view>
 			<!-- 指标 -->
 			<!-- 指标 -->
@@ -40,7 +41,7 @@
 					考评指标
 					考评指标
 				</view>
 				</view>
 				<view class="margin-left">
 				<view class="margin-left">
-					正常营业
+					{{infoData.clsName}}
 				</view>
 				</view>
 			</view>
 			</view>
 			<!-- 描述 -->
 			<!-- 描述 -->
@@ -49,7 +50,7 @@
 					描述
 					描述
 				</view>
 				</view>
 				<view class="margin-left">
 				<view class="margin-left">
-					正常营业
+					{{infoData.problemDesc}}
 				</view>
 				</view>
 			</view>
 			</view>
 		</view>
 		</view>
@@ -57,13 +58,13 @@
 </template>
 </template>
 
 
 <script>
 <script>
+	import { getBackLogDetail } from '@/api/backLog.js'
 	export default {
 	export default {
 		components: {
 		components: {
 		},
 		},
 		data() {
 		data() {
 			return {
 			return {
-				// 顶部轮播图片
-				imageTopList:[],
+				infoData:{}, // 详情数据
 			}
 			}
 		},
 		},
 		onLoad(option) {
 		onLoad(option) {
@@ -73,7 +74,14 @@
 		methods: {
 		methods: {
 			// 获取详情数据
 			// 获取详情数据
 			getData (id) {
 			getData (id) {
-				
+				getBackLogDetail({id:id}).then(res=>{
+					if(res.status==200){
+						this.infoData = res.data
+					} else {
+						this.toashMsg(res.message)
+						this.infoData = {}
+					}
+				})
 			}
 			}
 			
 			
 		}
 		}

+ 18 - 20
pages/toDoList/toDoList.vue

@@ -164,13 +164,11 @@
 			// tabs通知swiper切换
 			// tabs通知swiper切换
 			tabsChange(index) {
 			tabsChange(index) {
 				this.swiperCurrent = index;
 				this.swiperCurrent = index;
-				// this.list = []
-				// this.status = "loading"
+				this.list = []
 			},
 			},
 			swiperChange(event){
 			swiperChange(event){
 				console.log(event.detail)
 				console.log(event.detail)
-				// this.list = []
-				// this.status = "loading"
+				this.list = []
 			},
 			},
 			// swiper-item左右移动,通知tabs的滑块跟随移动
 			// swiper-item左右移动,通知tabs的滑块跟随移动
 			transition(e) {
 			transition(e) {
@@ -209,22 +207,22 @@
 			    pageNo: this.pageNo,
 			    pageNo: this.pageNo,
 			    pageSize: this.pageSize
 			    pageSize: this.pageSize
 			  }
 			  }
-			  // this.status = "loading"
-			 //  orderQueryLike(params).then(res => {
-				// if (res.code == 200 || res.status == 204 || res.status == 200) {
-				//   if(_this.pageNo>1){
-				// 	  _this.list = _this.list.concat(res.data.list || [])
-				//   }else{
-				// 	  _this.list = res.data.list || []
-				//   }
-				//   _this.total = res.data.count || 0
-				// } else {
-				//   _this.list = []
-				//   _this.total = 0
-				//   _this.noDataText = res.message
-				// }
-				// _this.status = "loadmore"
-			 //  })
+			  this.status = "loading"
+			  getBackLogList(params).then(res => {
+				if (res.code == 200 || res.status == 204 || res.status == 200) {
+				  if(_this.pageNo>1){
+					  _this.list = _this.list.concat(res.data.list || [])
+				  }else{
+					  _this.list = res.data.list || []
+				  }
+				  _this.total = res.data.count || 0
+				} else {
+				  _this.list = []
+				  _this.total = 0
+				  _this.noDataText = res.message
+				}
+				_this.status = "loadmore"
+			  })
 			},
 			},
 			// 查询刷新
 			// 查询刷新
 			refresh(params){
 			refresh(params){

BIN
static/noPic.jpg