|
@@ -35,7 +35,7 @@
|
|
|
@selection-change='handleSelectionChange'
|
|
|
:header-cell-style='{background:"rgba(2,91,170,0.1)",fontFamily:"PingFangSC-Medium,PingFang SC;",color:"rgba(0,0,0,0.85);",fontSize:"12px"}'
|
|
|
>
|
|
|
- <el-table-column type='selection' width='45' align='center'></el-table-column>
|
|
|
+ <el-table-column type='selection' :selectable='checkSelectable' width='45' align='center'></el-table-column>
|
|
|
<el-table-column prop='Name' :show-overflow-tooltip='true' label='项目' width='100'>
|
|
|
<template slot-scope='{row}'>{{row.Name||'--'}}</template>
|
|
|
</el-table-column>
|
|
@@ -82,6 +82,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 所属分类 非图例 默认不能勾选
|
|
|
+ checkSelectable(row, index) {
|
|
|
+ let flag = false
|
|
|
+ if (row.Type != 'None') {
|
|
|
+ flag = true
|
|
|
+ }
|
|
|
+ return flag
|
|
|
+ },
|
|
|
handleSelectionChange(val) {
|
|
|
this.multipleSelection = val
|
|
|
const tempArr = val.map(t => {
|