|
|
|
@ -1,7 +1,7 @@ |
|
|
|
<script> |
|
|
|
import UploadFileList from "../../common/uploadFileList.vue"; |
|
|
|
import {getFileContentList, removeFile} from "../../../../api/test/testInformation"; |
|
|
|
import {downLoadQuotationFile} from "../../../../api/quotation/quotationInformation"; |
|
|
|
import {deleteQuotationFile, downLoadQuotationFile} from "../../../../api/quotation/quotationInformation"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "testFile", |
|
|
|
@ -69,17 +69,23 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
removeFile(row){ |
|
|
|
removeFile(row).then(({data})=>{ |
|
|
|
if (data && data.code === 0){ |
|
|
|
this.getFileContentList() |
|
|
|
this.$message.success(data.msg) |
|
|
|
}else { |
|
|
|
this.$message.warning(data.msg) |
|
|
|
} |
|
|
|
}).catch((error)=>{ |
|
|
|
this.$message.error(error) |
|
|
|
this.$confirm('确定要删除此文件?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
deleteQuotationFile(row).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getFileContentList() |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch:{ |
|
|
|
uploadDialog(newValue,oldValue){ |
|
|
|
|