新增、编辑角色时去除RC和Dash
continuous-integration/drone/push Build is running Details

uat_us
wangxiaoshuang 2024-12-27 16:21:01 +08:00
parent 328359dfde
commit d790a95952
2 changed files with 4 additions and 3 deletions

View File

@ -89,7 +89,7 @@
> >
<template v-for="userType of userTypeOptions"> <template v-for="userType of userTypeOptions">
<el-option <el-option
v-if="userType.UserTypeEnum !== 20" v-if="![4, 6, 20].includes(userType.UserTypeEnum)"
:key="userType.Id" :key="userType.Id"
:label="userType.UserType" :label="userType.UserType"
:value="userType.Id" :value="userType.Id"
@ -109,7 +109,7 @@
> >
<template v-for="userType of userTypeOptions"> <template v-for="userType of userTypeOptions">
<el-option <el-option
v-if="userType.UserTypeEnum !== 20" v-if="![4, 6, 20].includes(userType.UserTypeEnum)"
:key="userType.Id" :key="userType.Id"
:label="userType.UserType" :label="userType.UserType"
:value="userType.Id" :value="userType.Id"

View File

@ -155,7 +155,8 @@ export default {
roleList() { roleList() {
let arr = this.list.map((item) => item.UserTypeId) let arr = this.list.map((item) => item.UserTypeId)
return this.userTypeOptions.filter( return this.userTypeOptions.filter(
(item) => !arr.includes(item.Id) && item.UserTypeEnum !== 20 (item) =>
!arr.includes(item.Id) && ![4, 6, 20].includes(userType.UserTypeEnum)
) )
}, },
}, },