|
|
@@ -306,11 +306,9 @@ export default {
|
|
|
},
|
|
|
getFileList() {
|
|
|
//循环获取this.$refs.upload.fileList中的name和url,放到 this.form.fileList中去
|
|
|
- let fileList = [];
|
|
|
- for (let i = 0; i < this.$refs.upload.fileList.length; i++) {
|
|
|
- fileList.push({name: this.$refs.upload.fileList[i].name, url: this.$refs.upload.fileList[i].url})
|
|
|
- }
|
|
|
- this.fileList = JSON.stringify(fileList);
|
|
|
+ this.form.fileList = this.$refs.upload.fileList.map(file => {
|
|
|
+ return JSON.stringify({ name: file.name, url: file.url });
|
|
|
+ });
|
|
|
},
|
|
|
checkCanEditOrDel(row) {
|
|
|
return row.createId == this.$store.getters.userId && row.isOpen == 0;
|