Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
396572590@qq.com
2022-06-30 14:02:19 +08:00
3 changed files with 10 additions and 3 deletions
+8 -3
View File
@@ -251,18 +251,19 @@ export default {
} }
}, },
methods: { methods: {
// 删除
handleRemoveFile(file){ handleRemoveFile(file){
console.log('file = ', file)
const index = this.$refs.importFileAboutStand.uploadFiles.findIndex(e => e.response.data.id === file.response.data.id); const index = this.$refs.importFileAboutStand.uploadFiles.findIndex(e => e.response.data.id === file.response.data.id);
console.log('index = ', index)
this.$refs.importFileAboutStand.uploadFiles.splice(index, 1); this.$refs.importFileAboutStand.uploadFiles.splice(index, 1);
this.showFileList.splice(index, 1) this.showFileList.splice(index, 1)
}, },
// 修改
handleModifyName(file) { handleModifyName(file) {
this.modifyFile.fileName = file.name this.modifyFile.fileName = file.name
this.modifyFile.fileId = file.response.data.id this.modifyFile.fileId = file.response.data.id
this.openModifyFileNameDialog = true this.openModifyFileNameDialog = true
}, },
// 修改dialog-确认
handleModifyNameSubmite(){ handleModifyNameSubmite(){
this.modifyFileNameLoading = true this.modifyFileNameLoading = true
this.$http.get('att/attFile/updateFileName', this.modifyFile, { this.$http.get('att/attFile/updateFileName', this.modifyFile, {
@@ -271,7 +272,11 @@ export default {
if(res.ok){ if(res.ok){
this.modifyFileNameLoading = false this.modifyFileNameLoading = false
this.openModifyFileNameDialog = false this.openModifyFileNameDialog = false
// TODO 查修改成功后 回显新的 名称 this.showFileList.forEach(item=>{
if(item.response.data.id === this.modifyFile.fileId){
item.name = this.modifyFile.fileName
}
})
} }
}, e => { }, e => {
this.modifyFileNameLoading = false this.modifyFileNameLoading = false
@@ -823,6 +823,7 @@
:config="field" :config="field"
v-model="sarBussionessStandEO[field.attrField]" v-model="sarBussionessStandEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
:show-modify-name="true"
></custom-file> ></custom-file>
</template> </template>
<template v-else-if="field.attrType === 'TEXTAREA'"> <template v-else-if="field.attrType === 'TEXTAREA'">
@@ -913,6 +913,7 @@
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
:show-modify-name="true"
@fileSuccess="fileSuccess" @fileSuccess="fileSuccess"
></custom-file> ></custom-file>
</template> </template>