稽查文档删除添加二次确定
parent
06a2361ea0
commit
9408ce12e2
|
@ -694,6 +694,8 @@ export default {
|
||||||
async delData(Ids) {
|
async delData(Ids) {
|
||||||
if (!this.isManage) return false
|
if (!this.isManage) return false
|
||||||
try {
|
try {
|
||||||
|
let confirm = await this.$confirm(this.$t('trials:trials-workbench:auditDocument:delData'))
|
||||||
|
if (!confirm) return false
|
||||||
let data = { Ids }
|
let data = { Ids }
|
||||||
let res = await deleteAuditDocument(data)
|
let res = await deleteAuditDocument(data)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
|
@ -966,6 +968,9 @@ export default {
|
||||||
},
|
},
|
||||||
// 单行左键双击(进入文件夹或者预览文件)
|
// 单行左键双击(进入文件夹或者预览文件)
|
||||||
handleRowDblclick(row, column, event) {
|
handleRowDblclick(row, column, event) {
|
||||||
|
if (this.$refs.contextmenu) {
|
||||||
|
this.$refs.contextmenu.foo()
|
||||||
|
}
|
||||||
// 判断点击目标是否为展开按钮
|
// 判断点击目标是否为展开按钮
|
||||||
let isExpandButton = event.target.closest('.el-table__expand-icon');
|
let isExpandButton = event.target.closest('.el-table__expand-icon');
|
||||||
if (isExpandButton) return; // 阻止触发
|
if (isExpandButton) return; // 阻止触发
|
||||||
|
|
Loading…
Reference in New Issue