|
|
|
@ -42,7 +42,7 @@ |
|
|
|
width="115" |
|
|
|
:label="'操作'"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a class="customer-a" @click="warnReopenSfdcRollsConfirm(scope.row)">删除</a> |
|
|
|
<a class="customer-a" @click="warnDeleteCustomerReportSearchColumnConfirm(scope.row)">删除</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
@ -89,6 +89,7 @@ import { |
|
|
|
getReportTypeList, |
|
|
|
autoProcessSearchColumn, |
|
|
|
saveCustomerSearchColumns, |
|
|
|
deleteCustomerReportSearchColumn, |
|
|
|
} from '@/api/report/com_edit_customer_report_search_column.js'; |
|
|
|
export default { |
|
|
|
name: "com_finish_roll", |
|
|
|
@ -306,6 +307,33 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
/*提醒是否删除的提示*/ |
|
|
|
warnDeleteCustomerReportSearchColumnConfirm(currentSearchColumn) { |
|
|
|
this.$confirm('确实要删除报表'+currentSearchColumn.columnField+'吗?', '提示', { |
|
|
|
confirmButtonText: '确认', |
|
|
|
celButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
//执行删除定制报表的功能 |
|
|
|
this.deleteCustomerReportSearchColumnOperation(currentSearchColumn); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
/*执行删除定制报表的查询列功能*/ |
|
|
|
deleteCustomerReportSearchColumnOperation(currentSearchColumn) { |
|
|
|
//执行删除卷的操作 |
|
|
|
deleteCustomerReportSearchColumn(currentSearchColumn).then(({data}) => { |
|
|
|
//判断是否成功 |
|
|
|
if (data.code === 200) { |
|
|
|
this.$message.success(data.msg); |
|
|
|
//刷新报工的页面 |
|
|
|
this.refreshSearchColumnTable(); |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
created() { |
|
|
|
//查询报表的类型 |
|
|
|
|