fix(项目管理): 修复消息管理只读权限无法显示机器人开关状态的缺陷
--bug=1036632 --user=王孝刚 【项目管理】消息管理只有查询权限-消息设置&机器人列表未显示开关状态 https://www.tapd.cn/55049933/s/1472090
This commit is contained in:
parent
90b4cf8172
commit
2a86504f10
|
@ -86,7 +86,8 @@
|
||||||
<div v-if="!record.children && record.projectRobotConfigMap?.[dataIndex as string]" class="flex items-center">
|
<div v-if="!record.children && record.projectRobotConfigMap?.[dataIndex as string]" class="flex items-center">
|
||||||
<a-switch
|
<a-switch
|
||||||
v-model:model-value="record.projectRobotConfigMap[dataIndex as string].enable"
|
v-model:model-value="record.projectRobotConfigMap[dataIndex as string].enable"
|
||||||
v-permission="['PROJECT_MESSAGE:READ+UPDATE']"
|
v-permission="['PROJECT_MESSAGE:READ+UPDATE', 'PROJECT_MESSAGE:READ']"
|
||||||
|
:disabled="robotEnable"
|
||||||
:before-change="(val) => handleChangeIntercept(!!val, record, dataIndex as string)"
|
:before-change="(val) => handleChangeIntercept(!!val, record, dataIndex as string)"
|
||||||
size="small"
|
size="small"
|
||||||
type="line"
|
type="line"
|
||||||
|
@ -156,6 +157,7 @@
|
||||||
|
|
||||||
const robotFilters = ref<string[]>([]);
|
const robotFilters = ref<string[]>([]);
|
||||||
const robotOptions = ref<(SelectOptionData & RobotItem)[]>([]);
|
const robotOptions = ref<(SelectOptionData & RobotItem)[]>([]);
|
||||||
|
const robotEnable = ref<boolean>(!hasAnyPermission(['PROJECT_MESSAGE:READ+UPDATE']));
|
||||||
|
|
||||||
const tableRef = ref<InstanceType<typeof MsBaseTable> | null>(null);
|
const tableRef = ref<InstanceType<typeof MsBaseTable> | null>(null);
|
||||||
const staticColumns: MsTableColumn = [
|
const staticColumns: MsTableColumn = [
|
||||||
|
|
Loading…
Reference in New Issue