@@ -84,7 +84,7 @@ export default { | |||||
file.response = resp; | file.response = resp; | ||||
console.log(resp); | console.log(resp); | ||||
file.fileList = item.fileList; | file.fileList = item.fileList; | ||||
this.onFileListChanged("ADD", resp.id); | |||||
this.onFileListChanged("ADD", resp); | |||||
this.setFileStatus(file, 'done', '文件上传成功'); | this.setFileStatus(file, 'done', '文件上传成功'); | ||||
this.$emit('onUploadSuccess', file); | this.$emit('onUploadSuccess', file); | ||||
} | } | ||||
@@ -146,15 +146,15 @@ export default { | |||||
return UfileList; | return UfileList; | ||||
} | } | ||||
}, | }, | ||||
onFileListChanged(type, id) { | |||||
onFileListChanged(type, data) { | |||||
if(this.proposerId != -1) return; | if(this.proposerId != -1) return; | ||||
if(type === "ADD") | if(type === "ADD") | ||||
{ | { | ||||
this.newAttachments.push(id); | |||||
this.newAttachments.push(data); | |||||
} | } | ||||
else if(type === "REMOVE") | else if(type === "REMOVE") | ||||
{ | { | ||||
let index = this.newAttachments.indexOf(id); | |||||
let index = this.newAttachments.indexOf(data.id); | |||||
if(index !== -1) | if(index !== -1) | ||||
this.newAttachments.splice(index, 1); | this.newAttachments.splice(index, 1); | ||||
} | } | ||||
@@ -53,7 +53,7 @@ | |||||
<van-button square text="提交" type="primary" v-if="item.homeApplyStatus=='11' || item.homeApplyStatus=='31' || item.homeApplyStatus=='71'" @click="submitApplyProposer(item)" class="delete-button" /> | <van-button square text="提交" type="primary" v-if="item.homeApplyStatus=='11' || item.homeApplyStatus=='31' || item.homeApplyStatus=='71'" @click="submitApplyProposer(item)" class="delete-button" /> | ||||
</van-col> | </van-col> | ||||
<van-col> | <van-col> | ||||
<van-button square text="修改" type="info" v-if="item.homeApplyStatus=='11' || item.homeApplyStatus=='31' || item.homeApplyStatus=='71'" :to="{name:'sunVillageInfoProposerLite', query: {id:item.id, type: 'modify'}}" class="delete-button" /> | |||||
<van-button square text="修改" type="info" v-if="item.homeApplyStatus=='11' || item.homeApplyStatus=='31' || item.homeApplyStatus=='71'" :to="{name:'sunVillageInfoProposerLiteNew', query: {id:item.id, type: 'modify'}}" class="delete-button" /> | |||||
</van-col> | </van-col> | ||||
<van-col> | <van-col> | ||||
<van-button square text="删除" type="danger" v-if="item.homeApplyStatus=='11'" @click="deleteList(item.id,index)" class="delete-button" /> | <van-button square text="删除" type="danger" v-if="item.homeApplyStatus=='11'" @click="deleteList(item.id,index)" class="delete-button" /> | ||||