Your Name
2022-05-19 a8caf77ebfd5080b4b484eca91a44bfdcae34f49
src/views/doublePreventAction/riskLevelManage/controlAction/index.vue
@@ -35,6 +35,13 @@
            >
                 <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>
@@ -150,13 +157,6 @@
    export default {
        name: 'index',
        filters: {
            parseMain(type){
                if(type === 1){
                    return "是"
                }else if(type === 0){
                    return "否"
                }
            },
        },
        computed: {
            ...mapGetters([
@@ -406,16 +406,18 @@
            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
            },