From f59e0c2622ef47db0f684a7024a3ce1103fafe18 Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期一, 09 三月 2026 16:48:36 +0800
Subject: [PATCH] 1.递交
---
src/views/basicSettings/powerDivider.vue | 73 ++++++++++++++++++------------------
1 files changed, 36 insertions(+), 37 deletions(-)
diff --git a/src/views/basicSettings/powerDivider.vue b/src/views/basicSettings/powerDivider.vue
index 0806996..8e250dd 100644
--- a/src/views/basicSettings/powerDivider.vue
+++ b/src/views/basicSettings/powerDivider.vue
@@ -64,7 +64,7 @@
@mouseover="isScroll='left'"
>
<div style=" ">
- <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}"/> 鑿滃崟鏉冮檺
+ <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" /> 鑿滃崟鏉冮檺
</div>
<el-tree
@@ -131,37 +131,36 @@
<!-- </div>-->
</div>
</el-tab-pane>
- <!-- <el-tab-pane label="APP绔�" name="APP">-->
- <!-- <div style="display: flex;">-->
- <!-- <div-->
- <!-- ref="scrollLeft"-->
- <!-- style="border-right: 1px solid rgba(0,0,0,0.2);width:100%;-->
- <!-- overflow-y: auto;overflow-x:hidden;"-->
- <!-- :style="{height:(tableHeight-40)+'px'}"-->
- <!-- @scroll="scrollLeftScroll()"-->
- <!-- @mouseover="isScroll='left'"-->
- <!-- >-->
- <!-- <div style=" ">-->
- <!-- <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" /> 鑿滃崟鏉冮檺-->
- <!-- </div>-->
+ <el-tab-pane label="APP绔�" name="APP">
+ <div style="display: flex;">
+ <div
+ ref="scrollLeft"
+ style="border-right: 1px solid rgba(0,0,0,0.2);width:100%;
+ overflow-y: auto;overflow-x:hidden;"
+ :style="{height:(tableHeight-40)+'px'}"
+ @scroll="scrollLeftScroll()"
+ @mouseover="isScroll='left'"
+ >
+ <div style=" ">
+ <i class="el-icon-s-operation" :style="{color:$store.state.settings.theme}" /> 鑿滃崟鏉冮檺
+ </div>
- <!-- <el-tree-->
- <!-- ref="treeCenterAPPRef"-->
- <!-- style="padding-top: 10px;"-->
- <!-- :data="treeCenter"-->
- <!-- highlight-current-->
- <!-- :props="defaultPropsCenter"-->
- <!-- show-checkbox-->
- <!-- node-key="menucode"-->
- <!-- :default-expand-all="true"-->
- <!-- @check-change="handleTreeCenterCheckChange"-->
- <!-- @check="handleTreeCenterCheck"-->
- <!-- @node-click="getLeftTreeNode"-->
- <!-- />-->
- <!-- </div>-->
- <!-- </div>-->
- <!-- </el-tab-pane>-->
- <!-- <el-tab-pane label="宸ユ帶绔�" name="宸ユ帶绔�">宸ユ帶绔�</el-tab-pane>-->
+ <el-tree
+ ref="treeCenterAPPRef"
+ style="padding-top: 10px;"
+ :data="treeCenter"
+ highlight-current
+ :props="defaultPropsCenter"
+ show-checkbox
+ node-key="menucode"
+ :default-expand-all="true"
+ @check-change="handleTreeCenterCheckChange"
+ @check="handleTreeCenterCheck"
+ @node-click="getLeftTreeNode"
+ />
+ </div>
+ </div>
+ </el-tab-pane>
</el-tabs>
</div>
@@ -185,7 +184,7 @@
export default {
name: 'PowerDivider',
- directives: {waves},
+ directives: { waves },
data() {
return {
mainHeight: 0,
@@ -234,7 +233,7 @@
// 鑾峰彇瑙掕壊鏉冮檺鏌ヨ瑙掕壊
async getRolePermissionSearchRole() {
- const {data: res} = await RolePermissionSearchRole()
+ const { data: res } = await RolePermissionSearchRole()
this.treeLeft = res
let rolecode = ''
@@ -262,12 +261,12 @@
// 鑾峰彇鑿滃崟鏉冮檺瀵瑰簲鐨勬寜閽�
async getRolePermissionSearchRoleMenuButton(rolecode) {
- const {data: res} = await RolePermissionSearchRoleMenuButton({rolecode, type: this.activeName})
+ const { data: res } = await RolePermissionSearchRoleMenuButton({ rolecode, type: this.activeName })
this.allButtonData = res.length > 0 ? JSON.parse(res[0].jsondate) : []
},
// 鑾峰彇鑿滃崟鏉冮檺
async getRolePermissionSearchRoleMenu(rolecode) {
- const {data: res} = await RolePermissionSearchRoleMenu({rolecode, type: this.activeName})
+ const { data: res } = await RolePermissionSearchRoleMenu({ rolecode, type: this.activeName })
// 鎷垮埌鏁扮粍list杞崲鎴愭爲褰ree
const result = arrayToTree(res, {
@@ -277,7 +276,7 @@
})
this.treeCenter = [
- {menucode: '-1', menuname: '鍏ㄩ儴', children: result}
+ { menucode: '-1', menuname: '鍏ㄩ儴', children: result }
]
this.treeCenter[0].children.sort((a, b) => a.menu_seq - b.menu_seq)
@@ -429,7 +428,7 @@
this.$forceUpdate()
},
// 澶勭悊涓棿鏍戝舰鍕鹃��
- handleTreeCenterCheck(obj, {checkedNodes, checkedKeys, halfCheckedNodes, halfCheckedKeys}) {
+ handleTreeCenterCheck(obj, { checkedNodes, checkedKeys, halfCheckedNodes, halfCheckedKeys }) {
// console.log(obj, checkedNodes, checkedKeys, halfCheckedNodes, halfCheckedKeys, '鍔犲瀹�')
if (checkedKeys.length === 0) { // 鏍戝舰鑿滃崟鍏ㄤ笉閫夌殑鎯呭喌涓�
--
Gitblit v1.9.3