| | |
| | | <!-- |
| | | * @Date: 2024-04-18 19:53:35 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-06-04 21:28:29 |
| | | * @LastEditTime: 2024-06-16 16:21:59 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/MYTree.vue |
| | | --> |
| | | <template> |
| | | <el-tree ref="treeRef" v-bind="$attrs" :show-checkbox="showCheckbox" :current-node-key="currentNodeKey" |
| | | node-key="id" :props="defalutProps" :data="data" @check-change="checkChange" @node-click="handleNodeClick" |
| | | highlight-current default-expand-all :expand-on-click-node="false" :render-content="renderContent"></el-tree> |
| | | <el-tree :expand-on-click-node="false" ref="treeRef" v-bind="$attrs" :show-checkbox="showCheckbox" |
| | | :current-node-key="currentNodeKey" node-key="id" :props="defalutProps" :data="data" @check-change="checkChange" |
| | | @node-click="handleNodeClick" highlight-current default-expand-all :render-content="renderContent"></el-tree> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | data.title) |
| | | }, |
| | | getList() { |
| | | this.$HTTP.post('/api/blade-cps/group/groupWorkstation/type', { |
| | | this.$HTTP.post('/api/smis/group/groupWorkstation/type', { |
| | | groupCategory: 1, |
| | | groupType: "group_workstation" |
| | | }).then(({ code, data }) => { |
| | |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .active .el-tree-node__content { |
| | | background: var(--el-color-primary) !important; |
| | | .is-current>.el-tree-node__content { |
| | | // background: var(--el-color-primary) !important; |
| | | } |
| | | |
| | | a.disabled { |