[update] 友情链接数据不超过6条的时候,可以新增

This commit is contained in:
lideqin
2024-04-08 12:03:21 +08:00
parent eb203248a3
commit 45317a946f
2 changed files with 8 additions and 0 deletions
@@ -32,6 +32,11 @@
</a-form>
</div>
<div class="table-operator" v-if="dataSource.length < 6" v-has="'sys:friendshipLink:add'">
<!-- 新增 -->
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
</div>
<!-- table区域-begin -->
<div>
<j-table
@@ -99,6 +99,9 @@ export default {
}
},
methods: {
add () {
this.edit({})
},
edit (record) {
this.visible = true
this.form.resetFields()