|
|
|
@ -55,7 +55,7 @@ export default { |
|
|
|
status:[{required:true,message:' ',tagger:['blur','change']}], |
|
|
|
}, |
|
|
|
// 选择的表格列 |
|
|
|
selectionDictTypeList:[], |
|
|
|
selectionDictDataList:[], |
|
|
|
// 选中的标签页 |
|
|
|
activeTabs:'dictData', |
|
|
|
} |
|
|
|
@ -151,12 +151,17 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
delBatchDictData(){ |
|
|
|
let some = this.selectionDictDataList.some(item=>item.isSystem === 'N'); |
|
|
|
if (!some){ |
|
|
|
this.$alert('系统参数,无法删除', '警告', {confirmButtonText: '确定',}); |
|
|
|
return; |
|
|
|
} |
|
|
|
this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
delBatchDictData(this.selectionDictTypeList).then(({data})=>{ |
|
|
|
delBatchDictData(this.selectionDictDataList).then(({data})=>{ |
|
|
|
if (data && data.code === 0){ |
|
|
|
this.$message.success(data.msg); |
|
|
|
this.initDictData(); |
|
|
|
@ -168,14 +173,11 @@ export default { |
|
|
|
this.$message.error(error) |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: 'info', |
|
|
|
message: '已取消删除' |
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
handleSelectionChange(val){ |
|
|
|
this.selectionDictTypeList = val; |
|
|
|
this.selectionDictDataList = val; |
|
|
|
}, |
|
|
|
dictTypeSizeChange(val){ |
|
|
|
this.no = 1 |
|
|
|
|