chenrui 4 anos atrás
pai
commit
a5172f0d74

+ 2 - 0
pages/index/index.vue

@@ -100,6 +100,8 @@ export default {
 		this.getLookUpList('WEEK', 'vuex_weeks');
 		// 获取点检任务状态
 		this.getLookUpList('POINT_TASK_STATUS','vuex_spotCheckStatus')
+		// 获取巡店任务状态
+		this.getLookUpList('TASK_STATUS','vuex_taskStatus')
 	},
 	methods: {
 		// 或某一项字典列表,参数code

+ 3 - 13
pages/myShopTour/myShopTour.vue

@@ -68,7 +68,6 @@
 	import moment from "moment"
 	import searchModal from './searchModal.vue'
 	import wPicker from "@/components/w-picker/w-picker.vue"
-	import { getLookUpDatas } from '@/api/data.js'
 	import { queryMyTask } from '@/api/task.js'
 	export default {
 		components: { wPicker, searchModal },
@@ -125,7 +124,9 @@
 			}
 		},
 		onLoad() {
-			this.getLookUpData('TASK_STATUS')  // 获取任务状态
+			// 获取任务状态   对象深度克隆
+			this.tabList = this.$u.deepClone(this.$store.state.vuex_taskStatus)
+			this.tabList.unshift({dispName: '全部', code: ''})
 			this.searchForm.beginDate = this.get7day(-6)
 			this.searchForm.endDate = this.get7day(0)
 			this.resetPage()
@@ -143,17 +144,6 @@
 				this.searchForm = params
 				this.pageInit(1)
 			},
-			// 获取数据字典数据
-			getLookUpData(code) {
-				getLookUpDatas({ type: code }).then(res => {
-					if (res.status == 200) {
-						if(code == 'TASK_STATUS'){  //  状态
-							res.data.unshift({dispName: '全部', code: ''})
-							this.tabList = res.data
-						}
-					}
-				})
-			},
 			// 查询列表
 			pageInit(pageNo){
 				if (pageNo) {

+ 1 - 1
pages/shopTourDetails/shopTourDetails.vue

@@ -68,7 +68,7 @@
 				if(item.taskTargetPhotoList){
 					let arr = []
 					item.taskTargetPhotoList.map(params => {
-						arr.push(params.photoBasePath + params.photoPath)
+						arr.push(params.photoPath)
 					})
 					this.taskTargetPhotoList = arr
 				}else{

+ 2 - 1
pages/spotCheckDetails/spotCheckDetails.vue

@@ -16,7 +16,8 @@
 						<u-image class="pic" width="100%" height="150upx" :src="pic.photoPath" @click="clickPic(index, ind)"></u-image>
 					</u-col>
 				</u-row>
-				<view class="comment-main">{{item.comments}}</view>
+				<view class="comment-main" v-if="item.comments">{{item.comments}}</view>
+				<view class="comment-main" v-else>--</view>
 			</view>
 		</view>
 	</view>

Diferenças do arquivo suprimidas por serem muito extensas
+ 9 - 9
unpackage/dist/dev/app-plus/app-service.js


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff