fix: 参数配置行记录read-only ro

This commit is contained in:
TsMask
2023-11-27 17:19:50 +08:00
parent 7be72be2f8
commit 37d59bf7da

View File

@@ -1283,8 +1283,8 @@ onMounted(() => {
<template v-else>{{ `${text}` || '&nbsp;' }}</template> <template v-else>{{ `${text}` || '&nbsp;' }}</template>
<EditOutlined <EditOutlined
class="editable-cell__icon" class="editable-cell__icon"
v-if="record.access !== 'read'"
@click="listEdit(record)" @click="listEdit(record)"
v-if="!['read-only', 'ro'].includes(record.access)"
/> />
</div> </div>
</div> </div>
@@ -1330,7 +1330,11 @@ onMounted(() => {
<!-- 多列数据渲染 --> <!-- 多列数据渲染 -->
<template #bodyCell="{ column, text, record }"> <template #bodyCell="{ column, text, record }">
<template v-if="column?.key === 'index'"> <template v-if="column?.key === 'index'">
<a-space :size="16" align="center"> <a-space
:size="16"
align="center"
v-if="!['read-only', 'ro'].includes(text.access)"
>
<a-tooltip> <a-tooltip>
<template #title>{{ t('common.editText') }}</template> <template #title>{{ t('common.editText') }}</template>
<a-button type="link" @click.prevent="arrayEdit(text)"> <a-button type="link" @click.prevent="arrayEdit(text)">
@@ -1419,7 +1423,11 @@ onMounted(() => {
</template> </template>
<template #bodyCell="{ column, text, record }"> <template #bodyCell="{ column, text, record }">
<template v-if="column?.key === 'index'"> <template v-if="column?.key === 'index'">
<a-space :size="8" align="center"> <a-space
:size="8"
align="center"
v-if="!['read-only', 'ro'].includes(text.access)"
>
<a-tooltip> <a-tooltip>
<template #title>{{ t('common.editText') }}</template> <template #title>{{ t('common.editText') }}</template>
<a-button <a-button