项目中添加模板时,搜索条件展示的用户类型只显示与业务相关的用户类型
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2024-11-11 15:05:39 +08:00
parent c51dedbd1e
commit 07fd3ab863
2 changed files with 16 additions and 2 deletions

View File

@ -61,7 +61,7 @@
>
<el-select v-model="searchData.ToUserType" clearable class="mr">
<el-option
v-for="item of $d.UserType"
v-for="item of UserTypeList"
:key="`ToUserTypeList${item.label}`"
:label="item.label"
:value="item.value"
@ -407,6 +407,13 @@ export default {
total: 0,
}
},
computed: {
UserTypeList() {
return this.$d.UserType.filter(
(item) => ![7, 31, 32, 21, 26, 27].includes(item.value)
)
},
},
mounted() {
this.trialId = this.$route.query.trialId
this.getList()

View File

@ -42,7 +42,7 @@
>
<el-select v-model="searchData.ToUserType" clearable class="mr">
<el-option
v-for="item of $d.UserType"
v-for="item of UserTypeList"
:key="`ToUserTypeList${item.label}`"
:label="item.label"
:value="item.value"
@ -422,6 +422,13 @@ export default {
})
},
},
computed: {
UserTypeList() {
return this.$d.UserType.filter(
(item) => ![7, 31, 32, 21, 26, 27].includes(item.value)
)
},
},
mounted() {
this.trialId = this.$route.query.trialId
this.getList()