|
|
@@ -310,6 +310,7 @@ export default {
|
|
|
window.open(routeUrl.href, '_blank')
|
|
|
},
|
|
|
initFileList(list) {
|
|
|
+ this.data.length = 0
|
|
|
if (list && list.length === 0) {
|
|
|
return
|
|
|
}
|
|
|
@@ -322,7 +323,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
rowDel(row, index, done) {
|
|
|
- console.log(row)
|
|
|
if (!Object.hasOwn(row, 'file')) {
|
|
|
this.$message.error('暂无文件')
|
|
|
return
|
|
|
@@ -332,14 +332,14 @@ export default {
|
|
|
type: 'warning'
|
|
|
}).then(res => {
|
|
|
if (res === 'confirm') {
|
|
|
- this.$api.project.fileRemove({ids: row.pid, type:3}).then(res => {
|
|
|
- if (res.code === 200){
|
|
|
- this.$message.success(res.msg)
|
|
|
- this.proinfo()
|
|
|
- } else {
|
|
|
- this.$message.error(res.msg)
|
|
|
- }
|
|
|
- })
|
|
|
+ this.$api.project.fileRemove({ ids: row.pid, type: 3 }).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.$message.success(res.msg)
|
|
|
+ this.proInfo()
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
},
|