解决iview Radio 报错问题

master
lemon橪 2021-09-10 11:26:50 +08:00
parent 1ad729ca0e
commit f3914b63b3
1 changed files with 10 additions and 9 deletions

View File

@ -60,10 +60,10 @@
<div class="title">{{ item.title }}</div>
<div class="content">
<RadioGroup type="button" button-style="solid" v-model="item.isSuper">
<Radio :label="true">
<Radio :label="1">
<span>操作数据权限</span>
</Radio>
<Radio :label="false">
<Radio :label="0">
<span>查看权限</span>
</Radio>
</RadioGroup>
@ -280,23 +280,23 @@ export default {
{
props: {
color:
data.isSuper == true
data.isSuper == 1
? "red"
: data.isSuper == false
: data.isSuper == 0
? "default"
: "default",
},
style: {
"margin-left": "10px",
display:
data.isSuper == true || data.isSuper == false
data.isSuper == 1 || data.isSuper == 0
? "inline-block"
: "none",
},
},
data.isSuper == true
data.isSuper == 1
? "操作权限"
: data.isSuper == false
: data.isSuper == 0
? "查看权限"
: ""
),
@ -331,7 +331,7 @@ export default {
*/
setRole(val) {
let enable;
val == "onlyView" ? (enable = false) : (enable = true);
val == "onlyView" ? (enable = 0) : (enable = 1);
this.saveRoleWay.map((item) => {
item.isSuper = enable;
});
@ -586,7 +586,7 @@ export default {
console.log(e)
let perm = {
title: e.title,
isSuper: e.isSuper || false,
isSuper: e.isSuper ? e.isSuper = 1 : e.isSuper = 0 || 0,
menuId: e.id,
roleId: this.editRolePermId,
};
@ -594,6 +594,7 @@ export default {
this.$set(this,'saveRoleWay',way)
});
console.log(this.saveRoleWay)
},
/**保存权限 */