| | |
| | | <!-- |
| | | * @Date: 2024-05-26 22:26:35 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-06-02 21:20:21 |
| | | * @LastEditTime: 2024-06-16 16:19:27 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/dnc/setting/FTP.vue |
| | | --> |
| | | <template> |
| | |
| | | </el-icon> --> |
| | | </div> |
| | | </div> |
| | | <el-tree v-if="rootNodeId && showTree" ref="group" node-key="id" :props="{ |
| | | label: 'name', |
| | | hasChildren: 'id' |
| | | }" @node-click="nodeClick" highlight-current :current-node-key="selectNode.id" :load="loadNode" |
| | | <el-tree :expand-on-click-node="false" v-if="rootNodeId && showTree" ref="group" node-key="id" |
| | | :props="{ |
| | | label: 'name', |
| | | hasChildren: 'id' |
| | | }" @node-click="nodeClick" highlight-current :current-node-key="selectNode.id" :load="loadNode" |
| | | lazy> |
| | | <template #default="{ node, data }"> |
| | | <div class="custom-tree-node"> |
| | |
| | | }, |
| | | methods: { |
| | | init() { |
| | | this.$HTTP.post(`/api/blade-cps/group/groupWorkstation`, { groupCategory: 1, groupType: 'group_workstation' }).then(res => { |
| | | this.$HTTP.post(`/api/smis/group/groupWorkstation`, { groupCategory: 1, groupType: 'group_workstation' }).then(res => { |
| | | this.treeData = this.formatData(res.data) |
| | | |
| | | }) |
| | |
| | | }) |
| | | }, |
| | | getAddList(transferDirectorId) { |
| | | return this.$HTTP.post(`/api/blade-cps/group/groupFtpDirectory/ftp`, { groupCategory: 1, groupType: 'group_workstation', transferDirectorId }).then(res => { |
| | | return this.$HTTP.post(`/api/smis/group/groupFtpDirectory/ftp`, { groupCategory: 1, groupType: 'group_workstation', transferDirectorId }).then(res => { |
| | | this.addTreeData = this.formatData(res.data, null, 'disabled') |
| | | return this.addTreeData |
| | | }) |