Ver código fonte

图片限制3张,巡检员分配路段数据集接口

gcz 3 anos atrás
pai
commit
0288dd0854

+ 10 - 10
pages/deviceList/deviceList.vue

@@ -61,20 +61,20 @@
 				// console.log('page',page)
 				//联网加载数据
 				// let keyword = this.tabs[this.tabIndex]?.text;
-				let type = '';
-				if(this.deviceType==1){
-					type=1
-				}else if(this.deviceType==2){
-					type=1
-				}else if(this.deviceType==3){
-					type=2
-				}
+				// let type = '';
+				// if(this.deviceType==1){
+				// 	type=1
+				// }else if(this.deviceType==2){
+				// 	type=2
+				// }else if(this.deviceType==3){
+				// 	type=3
+				// }
 				let params ={
-					type:type,
+					type:this.deviceType,
 					pageNum:page.num,
 					pageSize:page.size
 				} 
-				this.$u.api.getRoadAllList(params).then(curPageData=>{
+				this.$u.api.getRoadList(params).then(curPageData=>{
 					console.log('curPageData',curPageData)
 					//联网成功的回调,隐藏下拉刷新和上拉加载的状态;
 					// this.mescroll.endSuccess(curPageData.data.total);

+ 1 - 1
pages/deviceList/deviceListType1/deviceInfo.vue

@@ -59,7 +59,7 @@
 					<u-input type="textarea" :border="true" maxlength="200" v-model="form.exceprionDes" />
 				</u-form-item>
 				<u-form-item label="图片说明" :label-width="labelWidth" :border-bottom="false">
-					<u-upload ref="uploadRef" :action="action" max-count="5"></u-upload>
+					<u-upload ref="uploadRef" :action="action" max-count="3"></u-upload>
 				</u-form-item>
 			</u-form>
 			<u-button type="primary" @click="submit" style="margin-top: 20vh;">提交</u-button>

+ 1 - 1
pages/deviceList/deviceListType2/deviceInfo.vue

@@ -59,7 +59,7 @@
 					<u-input type="textarea" :border="true" maxlength="200" v-model="form.exceprionDes" />
 				</u-form-item>
 				<u-form-item label="图片说明" :label-width="labelWidth" :border-bottom="false">
-					<u-upload ref="uploadRef" :action="action" max-count="5"></u-upload>
+					<u-upload ref="uploadRef" :action="action" max-count="3"></u-upload>
 				</u-form-item>
 			</u-form>
 			<u-button type="primary" @click="submit" style="margin-top: 20vh;">提交</u-button>

+ 1 - 1
pages/deviceList/deviceListType3/deviceInfo.vue

@@ -33,7 +33,7 @@
 					<u-input type="textarea" :border="true" maxlength="200" v-model="form.exceprionDes" />
 				</u-form-item>
 				<u-form-item label="图片说明" :label-width="labelWidth" :border-bottom="false">
-					<u-upload ref="uploadRef" :action="action" max-count="5"></u-upload>
+					<u-upload ref="uploadRef" :action="action" max-count="3"></u-upload>
 				</u-form-item>
 			</u-form>
 			<u-button type="primary" @click="submit" style="margin-top: 20vh;">提交</u-button>

+ 1 - 1
pages/report/report.vue

@@ -16,7 +16,7 @@
 				<u-input type="textarea" :border="true" maxlength="200" v-model="form.exceprionDes" />
 			</u-form-item>
 			<u-form-item label="图片说明" :label-width="labelWidth" :border-bottom="false">
-				<u-upload ref="uploadRef" :action="action" max-count="5"></u-upload>
+				<u-upload ref="uploadRef" :action="action" max-count="3"></u-upload>
 			</u-form-item>
 		</u-form>
 		<u-button type="primary" @click="submit" style="margin-top: 20vh;">提交</u-button>