| | |
| | | @refresh-change="handleRefresh" |
| | | @selection-change="selectChangeHandler" |
| | | @row-click="rowClickHandler"> |
| | | <template slot="plCSClass" slot-scope="{row}"> |
| | | <template slot="plImage" slot-scope="{row}"> |
| | | <span class="avue-icon"> |
| | | <icon-show :name="row.plCSClass"></icon-show> |
| | | <icon-show :name="row.plImage"></icon-show> |
| | | </span> |
| | | </template> |
| | | <template slot-scope="{type,disabled}" slot="plImageForm"> |
| | |
| | | label: '分类', |
| | | prop: 'plActionCls', |
| | | type: 'tree', |
| | | hide: true, |
| | | props: { |
| | | label: 'name', |
| | | value: 'id', |
| | |
| | | this.treeData = this.treeDataFormAtter([data],'Action分类'); |
| | | const selectTreeData = this.option.column.find(item => item.prop === 'plActionCls'); // 找到action添加分类树 |
| | | const dicData=this.treeData; |
| | | dicData[0].disabled=true;//根节点不能选 |
| | | dicData[0].disabled=true;//分类根节点不能选 |
| | | selectTreeData.dicData = dicData; |
| | | selectTreeData.hide=true;//隐藏分类列。不能直接在option设置,会导出dicData加载不出 |
| | | }) |
| | | }, |
| | | |