| | |
| | | > |
| | | <el-table-column type="selection" :reserve-selection="true" width="55"></el-table-column> |
| | | <el-table-column label="安全风险事件名称" prop="riskEventId" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div v-for="item in riskEventList"> |
| | | <div v-if="item.id === scope.row.riskEventId"> |
| | | {{item.riskEventName}} |
| | | </div> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="管控方式" prop="dataSrc" align="center"> |
| | | </el-table-column> |
| | |
| | | export default { |
| | | name: 'index', |
| | | filters: { |
| | | parseMain(type){ |
| | | if(type === 1){ |
| | | return "是" |
| | | }else if(type === 0){ |
| | | return "否" |
| | | } |
| | | }, |
| | | }, |
| | | computed: { |
| | | ...mapGetters([ |
| | |
| | | ifShowButton (value){ |
| | | this.showCurrent = false |
| | | this.showOther = true |
| | | // this.$refs.table.clearSelection() |
| | | // value.forEach(row => { |
| | | // this.$refs.table.toggleRowSelection(this.riskControlMeasureData.find(item => { |
| | | // return row.id === item.id |
| | | // }) , this.riskControlMeasureData.find(item => {return row.id === item.id}) === undefined ? false :true) |
| | | // }) |
| | | this.listQuery.pageSize = 1000 |
| | | this.getRiskControlMeasureData() |
| | | this.$refs.table.clearSelection() |
| | | value.forEach(row => { |
| | | this.$refs.table.toggleRowSelection(this.riskControlMeasureData.find(item => { |
| | | return row.id === item.id |
| | | }) , this.riskControlMeasureData.find(item => {return row.id === item.id}) === undefined ? false :true) |
| | | }) |
| | | |
| | | }, |
| | | |
| | | handleSelectionChange(val){ |
| | | debugger |
| | | this.riskControlMeasureIdList = val |
| | | }, |
| | | |