fix(项目设置): 系统自定义字段的选项值编辑禁用的问题

--bug=1015877 --user=宋昌昌 【项目设置】系统字段自带的选项值无法编辑 https://www.tapd.cn/55049933/s/1225055
This commit is contained in:
song-cc-rock 2022-08-17 15:03:34 +08:00 committed by f2c-ci-robot[bot]
parent f2bd84af30
commit 3ad7f4aadb
1 changed files with 8 additions and 5 deletions

View File

@ -41,12 +41,11 @@
{{ (element.value && isKv ? '(' : '') + element.value + (element.value && isKv ? ')' : '')}}
</span>
</span>
<i class="operator-icon" v-for="(item, index) in operators"
:key="index"
:class="item.icon"
:disabled="disable"
@click="item.click(element, idx)"/>
<el-link :underline="false" v-for="item in operators" :disabled="element.system && item.isEdit" :key="item.id">
<i :class="item.icon"
@click="item.click(element, idx)" />
</el-link>
</div>
</draggable>
@ -84,7 +83,9 @@ export default {
default() {
return [
{
id: 1,
icon: 'el-icon-edit',
isEdit: true,
click: (element, idx) => {
if (this.disable) {
return;
@ -95,7 +96,9 @@ export default {
}
},
{
id: 2,
icon: 'el-icon-close',
isEdit: false,
click: (element, idx) => {
if (this.disable) {
return;