|
|
@ -121,7 +121,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<ellipsis slot="name" slot-scope="text" :length="15" tooltip>{{ text }}</ellipsis> |
|
|
|
<ellipsis slot="name" slot-scope="text" :length="15" tooltip>{{ text }}</ellipsis> |
|
|
|
<span slot="action" slot-scope="text, record"> |
|
|
|
<span slot="action" slot-scope="text, record"> |
|
|
|
<a-button class="!p-0" type="link" @click="form.model = record">编辑</a-button> |
|
|
|
<a-button class="!p-0" type="link" @click="handleEdit(record)">编辑</a-button> |
|
|
|
<a-divider type="vertical" /> |
|
|
|
<a-divider type="vertical" /> |
|
|
|
<a-popconfirm |
|
|
|
<a-popconfirm |
|
|
|
:title="'你确定要删除【' + record.name + '】链接?'" |
|
|
|
:title="'你确定要删除【' + record.name + '】链接?'" |
|
|
@ -274,6 +274,10 @@ export default { |
|
|
|
this.optionsModal.data = response.data |
|
|
|
this.optionsModal.data = response.data |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
handleEdit(record) { |
|
|
|
|
|
|
|
this.form.model = record |
|
|
|
|
|
|
|
this.$refs.linkForm.clearValidate() |
|
|
|
|
|
|
|
}, |
|
|
|
handleDeleteLink(id) { |
|
|
|
handleDeleteLink(id) { |
|
|
|
apiClient.link |
|
|
|
apiClient.link |
|
|
|
.delete(id) |
|
|
|
.delete(id) |
|
|
|