fix: 参数配置行记录read-only ro
This commit is contained in:
@@ -1283,8 +1283,8 @@ onMounted(() => {
|
|||||||
<template v-else>{{ `${text}` || ' ' }}</template>
|
<template v-else>{{ `${text}` || ' ' }}</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
|
||||||
|
|||||||
Reference in New Issue
Block a user