【update】数据字典、标签管理是否可修改bug的处理
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
</a-row>
|
||||
<a-row>
|
||||
<a-col :md="2" :sm="24">
|
||||
<a-button style="margin-bottom: 10px" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
|
||||
<a-button style="margin-bottom: 10px" type="primary" @click="handleAdd" v-if="model.isReadOnly === IsReadOnlyEnums.configurable.value || model.isReadOnly === IsReadOnlyEnums.subConfigurable.value">{{ $t('newlyAdded') }}</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
@@ -62,9 +62,9 @@
|
||||
>
|
||||
|
||||
<span slot="action" slot-scope="text, record">
|
||||
<a @click="handleEdit(record)">{{ $t('edit') }}</a>
|
||||
<a @click="handleEdit(record)" v-if="record.isReadOnly === IsReadOnlyEnums.subConfigurable.value || record.isReadOnly === IsReadOnlyEnums.configurable.value">{{ $t('edit') }}</a>
|
||||
<a-divider type="vertical"/>
|
||||
<a-popconfirm :title="$t('areYouSure')" @confirm="() => handleDelete(record.id)">
|
||||
<a-popconfirm :title="$t('areYouSure')" @confirm="() => handleDelete(record.id)" v-if="record.isReadOnly === IsReadOnlyEnums.subConfigurable.value || record.isReadOnly === IsReadOnlyEnums.configurable.value">
|
||||
<a>{{ $t('delete') }}</a>
|
||||
</a-popconfirm>
|
||||
</span>
|
||||
@@ -83,6 +83,7 @@ import { filterObj } from '@/utils/util'
|
||||
import DictItemModal from './modules/DictItemModal'
|
||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||
import JInput from '@/components/jero/JInput'
|
||||
import { IsReadOnlyEnums } from '../../enums/commonEnums'
|
||||
|
||||
export default {
|
||||
name: 'DictItemList',
|
||||
@@ -90,6 +91,7 @@ export default {
|
||||
components: { DictItemModal, JInput },
|
||||
data () {
|
||||
return {
|
||||
IsReadOnlyEnums,
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('name'),
|
||||
@@ -124,6 +126,7 @@ export default {
|
||||
delFlag: '1',
|
||||
status: []
|
||||
},
|
||||
isReadOnly: IsReadOnlyEnums.configurable.value,
|
||||
title: this.$t('operation'),
|
||||
visible: false,
|
||||
screenWidth: 1000,
|
||||
@@ -162,6 +165,7 @@ export default {
|
||||
edit (record) {
|
||||
if (record.id) {
|
||||
this.dictId = record.id
|
||||
this.isReadOnly = record.isReadOnly // 父级readonly的值 用于判断是否可以编辑
|
||||
}
|
||||
this.queryParam = {}
|
||||
this.form.resetFields()
|
||||
|
||||
Reference in New Issue
Block a user