Fixed style error.

pull/3445/head
ruibaby 2019-05-04 20:51:31 +08:00
parent d9e6465072
commit 51134726b9
3 changed files with 55 additions and 8 deletions

View File

@ -1,7 +1,7 @@
@import './index.less';
body {
overflow-y: scroll!important;
overflow-y: scroll;
padding: 0!important;
}

View File

@ -53,7 +53,10 @@
<div class="table-operator">
<a-dropdown v-show="queryParam.status!=null && queryParam.status!=''">
<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
href="javascript:void(0);"
@click="handlePublishMore"
@ -61,7 +64,10 @@
通过
</a>
</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
href="javascript:void(0);"
@click="handleRecycleMore"
@ -69,7 +75,10 @@
移到回收站
</a>
</a-menu-item>
<a-menu-item key="3" v-if="queryParam.status === 'RECYCLE'">
<a-menu-item
key="3"
v-if="queryParam.status === 'RECYCLE'"
>
<a
href="javascript:void(0);"
@click="handleDeleteMore"
@ -370,16 +379,37 @@ export default {
if (this.selectedRowKeys.length <= 0) {
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() {
if (this.selectedRowKeys.length <= 0) {
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() {
if (this.selectedRowKeys.length <= 0) {
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() {
this.replyComment = {}

View File

@ -110,9 +110,14 @@
slot="cover"
>
<a-card-meta
:title="themeProperty.author.name"
:description="themeProperty.description"
>
<template slot="title">
<a
:href="themeProperty.author.website"
target="_blank"
>{{ themeProperty.author.name }}</a>
</template>
<a-avatar
v-if="themeProperty.logo"
:src="themeProperty.logo"
@ -134,6 +139,7 @@
:md="12"
:sm="24"
:xs="24"
style="padding-bottom: 50px;"
>
<a-skeleton
active
@ -215,7 +221,10 @@
<AttachmentDrawer v-model="attachmentDrawerVisible" />
</a-drawer>
<div class="upload-button">
<a-dropdown placement="topLeft" :trigger="['click']">
<a-dropdown
placement="topLeft"
:trigger="['click']"
>
<a-button
type="primary"
shape="circle"
@ -224,10 +233,18 @@
></a-button>
<a-menu slot="overlay">
<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 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>
</a-dropdown>