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

main
15036302109 9 months ago
parent 65968dac2a
commit add705dc08

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

Loading…
Cancel
Save