zhengkaixin 4 天之前
父節點
當前提交
23b6df0fc4
共有 2 個文件被更改,包括 12 次插入10 次删除
  1. 5 3
      pages/index/index.vue
  2. 7 7
      pages/task/maintenanceTaks.vue

+ 5 - 3
pages/index/index.vue

@@ -440,7 +440,7 @@
 					this.datainsList[0] = response.data.data
 					this.datainsList[0] = response.data.data
 					
 					
 					this.tabslist2[0].count=response.data.recordsTotal
 					this.tabslist2[0].count=response.data.recordsTotal
-					
+					this.$forceUpdate()
 					this.isReadyinsList = true
 					this.isReadyinsList = true
 				}).catch(error => {
 				}).catch(error => {
 					uni.showToast({
 					uni.showToast({
@@ -459,7 +459,7 @@
 					this.datainsList[1] = response.data.data
 					this.datainsList[1] = response.data.data
 					
 					
 					this.tabslist2[1].count=response.data.recordsTotal
 					this.tabslist2[1].count=response.data.recordsTotal
-					
+					this.$forceUpdate()
 					this.isReadyinsList = true
 					this.isReadyinsList = true
 				}).catch(error => {
 				}).catch(error => {
 					uni.showToast({
 					uni.showToast({
@@ -558,7 +558,8 @@
 					
 					
 					//this.dataerrRecordsTotal = response.data.recordsTotal
 					//this.dataerrRecordsTotal = response.data.recordsTotal
 					this.tabslist[0].count=response.data.recordsTotal
 					this.tabslist[0].count=response.data.recordsTotal
-					this.isReadyerrList = true
+					this.isReadyerrList = true
+					this.$forceUpdate()
 				}).catch(error => {
 				}).catch(error => {
 					uni.showToast({
 					uni.showToast({
 						title: error,
 						title: error,
@@ -576,6 +577,7 @@
 					this.tabslist[1].count=response.data.recordsTotal
 					this.tabslist[1].count=response.data.recordsTotal
 					//this.dataerrRecordsTotal = response.data.recordsTotal
 					//this.dataerrRecordsTotal = response.data.recordsTotal
 					this.isReadyerrList = true
 					this.isReadyerrList = true
+					this.$forceUpdate()
 				}).catch(error => {
 				}).catch(error => {
 					uni.showToast({
 					uni.showToast({
 						title: error,
 						title: error,

+ 7 - 7
pages/task/maintenanceTaks.vue

@@ -168,7 +168,7 @@
 			</view>
 			</view>
 			<view class="item item-plus">
 			<view class="item item-plus">
 				<view class="name">
 				<view class="name">
-					<span style="color: red;">*</span>现场照片
+					现场照片
 
 
 
 
 				</view>
 				</view>
@@ -528,12 +528,12 @@
 			var imgUrl = files.map(item => {
 			var imgUrl = files.map(item => {
 				return item.response.data;
 				return item.response.data;
 			})
 			})
-			if (imgUrl.length==0) {
-				uni.showToast({
-					title: "请拍照上传现场照片"
-				})
-				return
-			}
+			// if (imgUrl.length==0) {
+			// 	uni.showToast({
+			// 		title: "请拍照上传现场照片"
+			// 	})
+			// 	return
+			// }
 			//(imgUrl);
 			//(imgUrl);
 			this.taskInfo.images = imgUrl.join(',');
 			this.taskInfo.images = imgUrl.join(',');