|
|
@@ -11,7 +11,7 @@
|
|
|
<el-option key="0" label="已上传" value="0">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- <el-button type="primary" size="mini" style="float:right;margin-top:25px;margin-right:20px" class="btn" plain @click="dialogVisible=true,upLoadImg=[],addImage=[],num=0">批量上传</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="float:right;margin-top:25px;margin-right:20px" class="btn" plain @click="dialogVisible=true,upLoadImg=[],addImage=[],num=0">批量上传</el-button>
|
|
|
</div>
|
|
|
|
|
|
<div class="content">
|
|
|
@@ -169,7 +169,7 @@ export default {
|
|
|
allNumber: 0,
|
|
|
num: 0,
|
|
|
isLoading: false,
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -190,9 +190,11 @@ export default {
|
|
|
}).then(res => {
|
|
|
if (res.data) {
|
|
|
if (res.data.statusFlag == 1) {
|
|
|
+
|
|
|
reject()
|
|
|
}
|
|
|
else {
|
|
|
+ this.num++
|
|
|
resolve()
|
|
|
}
|
|
|
|
|
|
@@ -303,17 +305,17 @@ export default {
|
|
|
},
|
|
|
handleRemove(file, fileList) {
|
|
|
console.log(file, fileList);
|
|
|
- var list = []
|
|
|
- fileList.forEach(item => {
|
|
|
- item.response.data.forEach(todo => {
|
|
|
- var jsop = {
|
|
|
- originalImage: todo,
|
|
|
- remark: ''
|
|
|
- }
|
|
|
- list.push(jsop)
|
|
|
- })
|
|
|
- })
|
|
|
- this.addImage = list
|
|
|
+ // var list = []
|
|
|
+ // fileList.forEach(item => {
|
|
|
+ // item.response.data.forEach(todo => {
|
|
|
+ // var jsop = {
|
|
|
+ // originalImage: todo,
|
|
|
+ // remark: ''
|
|
|
+ // }
|
|
|
+ // list.push(jsop)
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // this.addImage = list
|
|
|
this.num = this.addImage.length
|
|
|
},
|
|
|
handleProgress(e, file) {
|