From 7d5c6a5a4645fb68d6c715d2027518ea455a7eff Mon Sep 17 00:00:00 2001
From: wangxia <779219182@qq.com>
Date: Tue, 24 Oct 2023 17:06:28 +0800
Subject: [PATCH] 1
---
src/components/FirstJob/joblist.vue | 4 +-
src/components/merchantManagement/memberInfo.vue | 58 +++++++++++-----------
.../merchantManagement/roleManagement.vue | 3 ++
src/views/merchantBack.vue | 28 +++++++++--
4 files changed, 60 insertions(+), 33 deletions(-)
diff --git a/src/components/FirstJob/joblist.vue b/src/components/FirstJob/joblist.vue
index 021f1be..7f02c3f 100644
--- a/src/components/FirstJob/joblist.vue
+++ b/src/components/FirstJob/joblist.vue
@@ -1816,7 +1816,7 @@ export default {
}
> .ant-input {
width: 607px;
- height: 36px;
+ height: 40px;
text-indent: 60px;
background: #fff;
border: 2px solid #ff4400;
@@ -1839,7 +1839,7 @@ export default {
}
button {
width: 80px;
- height: 36px;
+ height: 40px;
color: white;
background: #ff4400;
border-color: #ff4400;
diff --git a/src/components/merchantManagement/memberInfo.vue b/src/components/merchantManagement/memberInfo.vue
index d240a22..40b69cc 100644
--- a/src/components/merchantManagement/memberInfo.vue
+++ b/src/components/merchantManagement/memberInfo.vue
@@ -40,30 +40,8 @@
自定义角色(8人)
-
- {{'角色1(8人)'}}
-
-
-
-
-
-
- {{'角色2(8人)'}}
-
-
-
-
-
+ {{'角色1(8人)'}}
+ {{'角色2(8人)'}}
@@ -81,8 +59,8 @@
修改名称
删除
-
上移
-
下移
+
上移
+
下移
@@ -100,7 +78,7 @@
{{modalTitle ? modalTitle : selectedKeys[0] == 'all' ? '全部成员(19人)':selectedKeys[0] + '(8人)' }}
-
+
添加成员
@@ -909,6 +887,19 @@ export default {
that.$forceUpdate()
}, 10)
},
+ moveList(index, type) {
+ console.log(index)
+ if (type == 'up') {
+ let middle = this.groupList[index - 1]
+ this.groupList[index - 1] = this.groupList[index]
+ this.groupList[index] = middle
+ } else {
+ let middle = this.groupList[index + 1]
+ this.groupList[index + 1] = this.groupList[index]
+ this.groupList[index] = middle
+ }
+ this.$forceUpdate()
+ },
},
}
@@ -1057,6 +1048,9 @@ export default {
i {
font-size: 12px;
}
+ &:hover {
+ background: #40a9ff;
+ }
}
.addRole {
position: absolute;
@@ -1260,7 +1254,7 @@ export default {
text-align: left;
box-shadow: 0px 0px 10px rgba(128, 128, 128, 0.4);
padding: 8px 0;
- > div {
+ > div:not(.unactive) {
height: 32px;
padding: 0 12px;
line-height: 32px;
@@ -1271,5 +1265,13 @@ export default {
}
}
}
+ .unactive {
+ color: #cccccc;
+ height: 32px;
+ padding: 0 12px;
+ line-height: 32px;
+ cursor: no-drop;
+
+ }
}
diff --git a/src/components/merchantManagement/roleManagement.vue b/src/components/merchantManagement/roleManagement.vue
index 9eb154b..a45b64c 100644
--- a/src/components/merchantManagement/roleManagement.vue
+++ b/src/components/merchantManagement/roleManagement.vue
@@ -870,6 +870,9 @@ export default {
i {
font-size: 12px;
}
+ &:hover {
+ background: #40a9ff;
+ }
}
.addItem {
width: 468px;
diff --git a/src/views/merchantBack.vue b/src/views/merchantBack.vue
index 66ec9b2..b79105a 100644
--- a/src/views/merchantBack.vue
+++ b/src/views/merchantBack.vue
@@ -18,7 +18,7 @@
-
+
@@ -292,7 +292,29 @@ export default {
* el 被新创建的 vm.el 替换,并挂载到实例上去之后调用该钩子。
* 如果 root 实例挂载了一个文档内元素,当 mounted 被调用时 vm.el 也在文档内。
*/
- mounted() {},
+ mounted() {
+ console.log(this.$route)
+ var _openKey = []
+ this.roles.forEach((item) => {
+ if (item.children) {
+ item.children.forEach((sItem) => {
+ if (sItem.name == this.$route.name) {
+ _openKey[0] = item.name
+ }
+ })
+ }
+ })
+ this.openKeys = _openKey
+ // if (this.$route.meta.menuName != '' && this.$route.meta.menuName != undefined && this.$route.meta.menuName != null) {
+ // var _openKey = []
+ // if (this.$route.meta.menuName != this.$route.name) {
+ // //有子菜单
+ // _openKey.push(this.$route.meta.menuName, this.$route.name)
+ // } else {
+ // _openKey.push(this.$route.name)
+ // }
+ // }
+ },
// 组件方法
methods: {
handleClick(e) {