mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
问答管理
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
|
||||
<el-button style="margin-left:0px" type="success" @click="setEssence('set')" >设置精华</el-button>
|
||||
<el-button type="warning" @click="setEssence('cancel')" >取消精华</el-button>
|
||||
<div style="padding-left:10px"><el-checkbox v-model="queryObj.isEssence">精华问题</el-checkbox></div>
|
||||
<div style="padding-left:10px"><el-checkbox v-model="queryObj.isEssence" @change="isEssenceChange()">精华问题</el-checkbox></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -52,34 +52,34 @@
|
||||
border stripe
|
||||
@selection-change="handleSelectionChange"
|
||||
:row-key="getRowKeys">
|
||||
<el-table-column type="selection" width="55" :reserve-selection="true"></el-table-column>
|
||||
<el-table-column label="标题" width="200px" show-overflow-tooltip prop="title" :reserve-selection="true">
|
||||
<el-table-column type="selection" width="55"></el-table-column>
|
||||
<el-table-column label="标题" width="200px" show-overflow-tooltip prop="title">
|
||||
<template slot-scope="scope">
|
||||
<span @click="viewTopic(scope.row)" :class="scope.row.isEssence ? 'isSelect' : 'previewStyle'">{{ scope.row.title }}</span>
|
||||
<!-- <a :style="cursor:pointer;" target="_blank" :href="`${webBaseUrl}/qa/answer`">{{scope.row.name}}</a> -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="浏览" width="60px" prop="views" :reserve-selection="true"></el-table-column>
|
||||
<el-table-column label="点赞" width="60px" prop="praises" :reserve-selection="true"></el-table-column>
|
||||
<el-table-column label="收藏" width="60px" prop="favorites" :reserve-selection="true"></el-table-column>
|
||||
<el-table-column label="回复" width="60px" prop="answers" :reserve-selection="true"></el-table-column>
|
||||
<el-table-column width="100px" label="发布时间" prop="sysCreateTime" :reserve-selection="true">
|
||||
<el-table-column label="浏览" width="60px" prop="views"></el-table-column>
|
||||
<el-table-column label="点赞" width="60px" prop="praises"></el-table-column>
|
||||
<el-table-column label="收藏" width="60px" prop="favorites"></el-table-column>
|
||||
<el-table-column label="回复" width="60px" prop="answers"></el-table-column>
|
||||
<el-table-column width="100px" label="发布时间" prop="sysCreateTime">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.sysCreateTime | sysCreateTimeFilter }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="作者" prop="sysCreateBy" :reserve-selection="true"></el-table-column>
|
||||
<el-table-column label="状态" prop="status" :reserve-selection="true">
|
||||
<el-table-column label="作者" prop="sysCreateBy"></el-table-column>
|
||||
<el-table-column label="状态" prop="status">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.isResolve ? '已解决' : '待解决' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审核状态" prop="status" :reserve-selection="true">
|
||||
<el-table-column label="审核状态" prop="status">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.status === 0 ? '待审核' : scope.row.status === 1 ? '已通过' : scope.row.status === 2 ? '未通过' : '已撤销' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" fixed="right" width="120px" :reserve-selection="true">
|
||||
<el-table-column label="操作" fixed="right" width="120px">
|
||||
<template slot-scope="scope">
|
||||
<el-button-group>
|
||||
<el-button type="text" v-if="scope.row.status==0" icon="el-icon-s-check" @click="aduit(scope.row)" size="small">审核</el-button>
|
||||
@@ -163,6 +163,9 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
isEssenceChange(){
|
||||
this.getQaList();
|
||||
},
|
||||
search(){
|
||||
this.queryObj.pageIndex = 1;
|
||||
this.getQaList();
|
||||
|
||||
Reference in New Issue
Block a user