[update] 友情链接数据不超过6条的时候,可以新增
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user