协办图标优化,协办报错Bug修复

main
15036302109 9 months ago
parent 65968dac2a
commit add705dc08

@ -374,7 +374,7 @@
<!--<el-button v-if="scope.row.isSupervise==0"
size="mini"
type="text"
icon="el-icon-delete"
icon="el-icon-s-tools"
@click="handleIsSupervise(scope.row)"
v-hasPermi="['ehsHiddenDanger:ehsHiddenDanger:supervise']"
>督办</el-button>-->
@ -382,21 +382,21 @@
<el-button
size="mini"
type="text"
icon="el-icon-delete"
icon="el-icon-setting"
@click="handleAssist(scope.row)"
v-hasPermi="['ehsHiddenDanger:ehsHiddenDanger:assist']"
>协办</el-button>
<el-button v-if="scope.row.isSupervise==1 && ( scope.row.superviseResult=='' || scope.row.superviseResult==null)"
size="mini"
type="text"
icon="el-icon-delete"
icon="el-icon-s-comment"
@click="handleAssistResult(scope.row)"
v-hasPermi="['ehsHiddenDanger:ehsHiddenDanger:assistResult']"
>录入反馈</el-button>
<el-button v-if="scope.row.superviseResult!=null && scope.row.superviseResult!='' "
size="mini"
type="text"
icon="el-icon-delete"
icon="el-icon-document"
@click="handleShowAssistResult(scope.row)"
v-hasPermi="['ehsHiddenDanger:ehsHiddenDanger:showAssistResult']"
>显示反馈</el-button>
@ -1041,13 +1041,16 @@ export default {
handleAssist(row) {
this.reset();
this.openAssist = true;
if (row.assistDept) {
this.assistDeptList = row.assistDept.split(",").map(Number);
} else {
this.assistDeptList = [];
}
this.currAssistHiddenDangerId = row.hiddenDangerId;
},
/** 协办提交*/
assistForm() {
let deptIds = this.assistDeptList.join();
console.log(this.currAssistHiddenDangerId)
if (this.currAssistHiddenDangerId != null) {
assistEhsHiddenDanger({"hiddenDangerId":this.currAssistHiddenDangerId,"assistDept":deptIds}).then(response => {
this.$modal.msgSuccess("协办成功");

Loading…
Cancel
Save