|
@@ -163,19 +163,23 @@
|
|
|
count:num,
|
|
|
success: (chooseImageRes) => {
|
|
|
const tempFilePaths = chooseImageRes.tempFilePaths;
|
|
|
- uni.uploadFile({
|
|
|
- url: that.$request.baseUrl+'accompany/SuperCheckSheet/uploadFile', //仅为示例,非真实的接口地址
|
|
|
- filePath: tempFilePaths[0],
|
|
|
- name: 'file',
|
|
|
- formData: {
|
|
|
- 'user': 'test'
|
|
|
- },
|
|
|
- success: (uploadFileRes) => {
|
|
|
- console.log(JSON.parse(uploadFileRes.data).data );
|
|
|
- item.imgArr=item.imgArr.concat(JSON.parse(uploadFileRes.data).data) ;
|
|
|
- that.categoryList.splice(1,0)
|
|
|
- }
|
|
|
- });
|
|
|
+ tempFilePaths.forEach(v=>{
|
|
|
+ uni.uploadFile({
|
|
|
+ url: that.$request.baseUrl+'accompany/SuperCheckSheet/uploadFile', //仅为示例,非真实的接口地址
|
|
|
+ filePath: v,
|
|
|
+ name: 'file',
|
|
|
+ formData: {
|
|
|
+ 'user': 'test'
|
|
|
+ },
|
|
|
+ success: (uploadFileRes) => {
|
|
|
+ console.log(JSON.parse(uploadFileRes.data).data );
|
|
|
+ console.log(item.imgArr)
|
|
|
+ item.imgArr=item.imgArr.concat(JSON.parse(uploadFileRes.data).data) ;
|
|
|
+ that.categoryList.splice(1,0)
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+
|
|
|
/* that.$http('accompany/SuperCheckSheet/uploadFile', tempFilePaths[0], 'POST').then(res => {
|
|
|
|
|
|
}) */
|
|
@@ -203,6 +207,8 @@
|
|
|
|
|
|
}else if(item.itemValue===''){
|
|
|
go=false
|
|
|
+ }else if(!item.itemValue){
|
|
|
+ go=false
|
|
|
}
|
|
|
})
|
|
|
console.log(this.categoryList[this.index1].sectionList[this.index2].itemList)
|
|
@@ -214,6 +220,7 @@
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
+ //return false;
|
|
|
this.categoryList[this.index1].sectionList[this.index2].check=true;
|
|
|
uni.navigateBack({
|
|
|
delta:1
|