mirror of https://github.com/halo-dev/halo
Fixed style error.
parent
d9e6465072
commit
51134726b9
|
@ -1,7 +1,7 @@
|
||||||
@import './index.less';
|
@import './index.less';
|
||||||
|
|
||||||
body {
|
body {
|
||||||
overflow-y: scroll!important;
|
overflow-y: scroll;
|
||||||
padding: 0!important;
|
padding: 0!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,10 @@
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<a-dropdown v-show="queryParam.status!=null && queryParam.status!=''">
|
<a-dropdown v-show="queryParam.status!=null && queryParam.status!=''">
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item key="1" v-if="queryParam.status ==='AUDITING'">
|
<a-menu-item
|
||||||
|
key="1"
|
||||||
|
v-if="queryParam.status ==='AUDITING'"
|
||||||
|
>
|
||||||
<a
|
<a
|
||||||
href="javascript:void(0);"
|
href="javascript:void(0);"
|
||||||
@click="handlePublishMore"
|
@click="handlePublishMore"
|
||||||
|
@ -61,7 +64,10 @@
|
||||||
通过
|
通过
|
||||||
</a>
|
</a>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="2" v-if="queryParam.status === 'PUBLISHED' || queryParam.status ==='AUDITING'">
|
<a-menu-item
|
||||||
|
key="2"
|
||||||
|
v-if="queryParam.status === 'PUBLISHED' || queryParam.status ==='AUDITING'"
|
||||||
|
>
|
||||||
<a
|
<a
|
||||||
href="javascript:void(0);"
|
href="javascript:void(0);"
|
||||||
@click="handleRecycleMore"
|
@click="handleRecycleMore"
|
||||||
|
@ -69,7 +75,10 @@
|
||||||
移到回收站
|
移到回收站
|
||||||
</a>
|
</a>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="3" v-if="queryParam.status === 'RECYCLE'">
|
<a-menu-item
|
||||||
|
key="3"
|
||||||
|
v-if="queryParam.status === 'RECYCLE'"
|
||||||
|
>
|
||||||
<a
|
<a
|
||||||
href="javascript:void(0);"
|
href="javascript:void(0);"
|
||||||
@click="handleDeleteMore"
|
@click="handleDeleteMore"
|
||||||
|
@ -370,16 +379,37 @@ export default {
|
||||||
if (this.selectedRowKeys.length <= 0) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.$message.success('请至少选择一项!')
|
this.$message.success('请至少选择一项!')
|
||||||
}
|
}
|
||||||
|
for (let index = 0; index < this.selectedRowKeys.length; index++) {
|
||||||
|
const element = this.selectedRowKeys[index]
|
||||||
|
commentApi.updateStatus(element, 'PUBLISHED').then(response => {
|
||||||
|
this.$log.debug(`commentId: ${element}, status: PUBLISHED`)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.loadComments()
|
||||||
},
|
},
|
||||||
handleRecycleMore() {
|
handleRecycleMore() {
|
||||||
if (this.selectedRowKeys.length <= 0) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.$message.success('请至少选择一项!')
|
this.$message.success('请至少选择一项!')
|
||||||
}
|
}
|
||||||
|
for (let index = 0; index < this.selectedRowKeys.length; index++) {
|
||||||
|
const element = this.selectedRowKeys[index]
|
||||||
|
commentApi.updateStatus(element, 'RECYCLE').then(response => {
|
||||||
|
this.$log.debug(`commentId: ${element}, status: RECYCLE`)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.loadComments()
|
||||||
},
|
},
|
||||||
handleDeleteMore() {
|
handleDeleteMore() {
|
||||||
if (this.selectedRowKeys.length <= 0) {
|
if (this.selectedRowKeys.length <= 0) {
|
||||||
this.$message.success('请至少选择一项!')
|
this.$message.success('请至少选择一项!')
|
||||||
}
|
}
|
||||||
|
for (let index = 0; index < this.selectedRowKeys.length; index++) {
|
||||||
|
const element = this.selectedRowKeys[index]
|
||||||
|
commentApi.delete(element).then(response => {
|
||||||
|
this.$log.debug(`delete: ${element}`)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.loadComments()
|
||||||
},
|
},
|
||||||
onReplyClose() {
|
onReplyClose() {
|
||||||
this.replyComment = {}
|
this.replyComment = {}
|
||||||
|
|
|
@ -110,9 +110,14 @@
|
||||||
slot="cover"
|
slot="cover"
|
||||||
>
|
>
|
||||||
<a-card-meta
|
<a-card-meta
|
||||||
:title="themeProperty.author.name"
|
|
||||||
:description="themeProperty.description"
|
:description="themeProperty.description"
|
||||||
>
|
>
|
||||||
|
<template slot="title">
|
||||||
|
<a
|
||||||
|
:href="themeProperty.author.website"
|
||||||
|
target="_blank"
|
||||||
|
>{{ themeProperty.author.name }}</a>
|
||||||
|
</template>
|
||||||
<a-avatar
|
<a-avatar
|
||||||
v-if="themeProperty.logo"
|
v-if="themeProperty.logo"
|
||||||
:src="themeProperty.logo"
|
:src="themeProperty.logo"
|
||||||
|
@ -134,6 +139,7 @@
|
||||||
:md="12"
|
:md="12"
|
||||||
:sm="24"
|
:sm="24"
|
||||||
:xs="24"
|
:xs="24"
|
||||||
|
style="padding-bottom: 50px;"
|
||||||
>
|
>
|
||||||
<a-skeleton
|
<a-skeleton
|
||||||
active
|
active
|
||||||
|
@ -215,7 +221,10 @@
|
||||||
<AttachmentDrawer v-model="attachmentDrawerVisible" />
|
<AttachmentDrawer v-model="attachmentDrawerVisible" />
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
<div class="upload-button">
|
<div class="upload-button">
|
||||||
<a-dropdown placement="topLeft" :trigger="['click']">
|
<a-dropdown
|
||||||
|
placement="topLeft"
|
||||||
|
:trigger="['click']"
|
||||||
|
>
|
||||||
<a-button
|
<a-button
|
||||||
type="primary"
|
type="primary"
|
||||||
shape="circle"
|
shape="circle"
|
||||||
|
@ -224,10 +233,18 @@
|
||||||
></a-button>
|
></a-button>
|
||||||
<a-menu slot="overlay">
|
<a-menu slot="overlay">
|
||||||
<a-menu-item>
|
<a-menu-item>
|
||||||
<a rel="noopener noreferrer" href="javascript:void(0);" @click="handleShowUploadModal">安装主题</a>
|
<a
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href="javascript:void(0);"
|
||||||
|
@click="handleShowUploadModal"
|
||||||
|
>安装主题</a>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item>
|
<a-menu-item>
|
||||||
<a rel="noopener noreferrer" href="javascript:void(0);" @click="handleReload">刷新列表</a>
|
<a
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
href="javascript:void(0);"
|
||||||
|
@click="handleReload"
|
||||||
|
>刷新列表</a>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
|
|
Loading…
Reference in New Issue