Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
17ee60de81
|
@ -56,13 +56,12 @@
|
||||||
>
|
>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.ToUserTypeList"
|
v-model="form.ToUserTypeList"
|
||||||
disabled
|
|
||||||
clearable
|
clearable
|
||||||
multiple
|
multiple
|
||||||
class="mr"
|
class="mr"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item of $d.UserType"
|
v-for="item of UserTypeList"
|
||||||
:key="`ToUserTypeList${item.label}`"
|
:key="`ToUserTypeList${item.label}`"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
|
@ -77,13 +76,12 @@
|
||||||
>
|
>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.CopyUserTypeList"
|
v-model="form.CopyUserTypeList"
|
||||||
disabled
|
|
||||||
clearable
|
clearable
|
||||||
multiple
|
multiple
|
||||||
class="mr"
|
class="mr"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item of $d.UserType"
|
v-for="item of UserTypeList"
|
||||||
:key="`CopyUserTypeList${item.label}`"
|
:key="`CopyUserTypeList${item.label}`"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
|
@ -310,6 +308,12 @@ export default {
|
||||||
return {}
|
return {}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
UserTypeList: {
|
||||||
|
type: Array,
|
||||||
|
default() {
|
||||||
|
return []
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
components: { vcrontab },
|
components: { vcrontab },
|
||||||
data() {
|
data() {
|
||||||
|
|
|
@ -339,6 +339,7 @@
|
||||||
:data="currentRow"
|
:data="currentRow"
|
||||||
:criterion-type="criterionType"
|
:criterion-type="criterionType"
|
||||||
:is-distinguish-criteria="isDistinguishCriteria"
|
:is-distinguish-criteria="isDistinguishCriteria"
|
||||||
|
:UserTypeList="UserTypeList"
|
||||||
@closeDialog="closeDialog"
|
@closeDialog="closeDialog"
|
||||||
@getList="getList"
|
@getList="getList"
|
||||||
/>
|
/>
|
||||||
|
@ -422,7 +423,7 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
UserTypeList() {
|
UserTypeList() {
|
||||||
return this.$d.UserType.filter(
|
return this.$d.UserType.filter(
|
||||||
(item) => ![7, 31, 32, 21, 26, 27].includes(item.value)
|
(item) => ![7, 8, 31, 32, 21, 26, 27].includes(item.value)
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -148,25 +148,9 @@
|
||||||
:label="$t('trials:staff:table:userType')"
|
:label="$t('trials:staff:table:userType')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
sortable
|
sortable
|
||||||
width="140"
|
width="160"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tooltip
|
|
||||||
class="item"
|
|
||||||
effect="dark"
|
|
||||||
:content="$t('trials:staff:tip:userTypeDisabled')"
|
|
||||||
placement="top"
|
|
||||||
style="margin-right: 3px"
|
|
||||||
v-if="
|
|
||||||
Array.isArray(scope.row.TrialUserRoleList) &&
|
|
||||||
scope.row.TrialUserRoleList.length > 0 &&
|
|
||||||
scope.row.TrialUserRoleList.some(
|
|
||||||
(item) => item.IsDeleted || item.IsUserRoleDisabled
|
|
||||||
)
|
|
||||||
"
|
|
||||||
>
|
|
||||||
<i class="el-icon-warning icon-i"></i>
|
|
||||||
</el-tooltip>
|
|
||||||
<el-button
|
<el-button
|
||||||
v-if="
|
v-if="
|
||||||
Array.isArray(scope.row.TrialUserRoleList) &&
|
Array.isArray(scope.row.TrialUserRoleList) &&
|
||||||
|
@ -175,6 +159,20 @@
|
||||||
type="text"
|
type="text"
|
||||||
@click.stop="openRoleList(scope.row)"
|
@click.stop="openRoleList(scope.row)"
|
||||||
>
|
>
|
||||||
|
<el-tooltip
|
||||||
|
class="item"
|
||||||
|
effect="dark"
|
||||||
|
:content="$t('trials:staff:tip:userTypeDisabled')"
|
||||||
|
placement="top"
|
||||||
|
style="margin-right: 2px"
|
||||||
|
v-if="
|
||||||
|
scope.row.TrialUserRoleList.some(
|
||||||
|
(item) => item.IsDeleted || item.IsUserRoleDisabled
|
||||||
|
)
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<i class="el-icon-warning icon-i"></i>
|
||||||
|
</el-tooltip>
|
||||||
<span>{{
|
<span>{{
|
||||||
scope.row.TrialUserRoleList.map(
|
scope.row.TrialUserRoleList.map(
|
||||||
(item) => item.UserTypeShortName
|
(item) => item.UserTypeShortName
|
||||||
|
|
Loading…
Reference in New Issue