|
|
|
@ -1,7 +1,13 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="page-header-index-wide">
|
|
|
|
|
<a-row :gutter="12">
|
|
|
|
|
<a-col :xl="10" :lg="10" :md="10" :sm="24" :xs="24" :style="{ 'padding-bottom': '12px' }">
|
|
|
|
|
<a-col
|
|
|
|
|
:xl="10"
|
|
|
|
|
:lg="10"
|
|
|
|
|
:md="10"
|
|
|
|
|
:sm="24"
|
|
|
|
|
:xs="24"
|
|
|
|
|
:style="{ 'padding-bottom': '12px' }">
|
|
|
|
|
<a-card :title="title">
|
|
|
|
|
<a-form layout="horizontal">
|
|
|
|
|
<a-form-item label="网站名称:">
|
|
|
|
@ -29,7 +35,13 @@
|
|
|
|
|
</a-form>
|
|
|
|
|
</a-card>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :xl="14" :lg="14" :md="14" :sm="24" :xs="24" :style="{ 'padding-bottom': '12px' }">
|
|
|
|
|
<a-col
|
|
|
|
|
:xl="14"
|
|
|
|
|
:lg="14"
|
|
|
|
|
:md="14"
|
|
|
|
|
:sm="24"
|
|
|
|
|
:xs="24"
|
|
|
|
|
:style="{ 'padding-bottom': '12px' }">
|
|
|
|
|
<a-card title="所有友情链接">
|
|
|
|
|
<a-table
|
|
|
|
|
:columns="columns"
|
|
|
|
@ -135,13 +147,14 @@ export default {
|
|
|
|
|
createOrUpdateLink() {
|
|
|
|
|
if (this.link.id) {
|
|
|
|
|
linkApi.update(this.link.id, this.link).then(response => {
|
|
|
|
|
this.loadLinks()
|
|
|
|
|
this.$message.success('更新成功!')
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
linkApi.create(this.link).then(response => {
|
|
|
|
|
this.loadLinks()
|
|
|
|
|
this.$message.success('保存成功!')
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
this.loadLinks()
|
|
|
|
|
this.link = {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|