|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="divBox">
|
|
<div class="divBox">
|
|
<el-card
|
|
<el-card
|
|
- v-hasPermi="['platform:community:note:page:list']"
|
|
|
|
|
|
+ v-hasPermi="['platform:secondHand:prod:page:list']"
|
|
:bordered="false"
|
|
:bordered="false"
|
|
shadow="never"
|
|
shadow="never"
|
|
class="ivu-mt"
|
|
class="ivu-mt"
|
|
@@ -44,7 +44,7 @@
|
|
<el-form-item label="内容标题:" label-width="66px">
|
|
<el-form-item label="内容标题:" label-width="66px">
|
|
<el-input v-model="title" @keyup.enter.native="getList(1)" placeholder="请输入内容标题" class="selWidth" />
|
|
<el-input v-model="title" @keyup.enter.native="getList(1)" placeholder="请输入内容标题" class="selWidth" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="话题名称:" style="display: inline-block">
|
|
|
|
|
|
+ <!--el-form-item label="话题名称:" style="display: inline-block">
|
|
<el-select
|
|
<el-select
|
|
@change="getList(1)"
|
|
@change="getList(1)"
|
|
class="selWidth"
|
|
class="selWidth"
|
|
@@ -60,7 +60,7 @@
|
|
>
|
|
>
|
|
<el-option v-for="user in topicSelect" :key="user.id" :label="user.name" :value="user.id"> </el-option>
|
|
<el-option v-for="user in topicSelect" :key="user.id" :label="user.name" :value="user.id"> </el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item-->
|
|
<el-form-item label="图文类型:">
|
|
<el-form-item label="图文类型:">
|
|
<el-select
|
|
<el-select
|
|
v-model="tableFrom.type"
|
|
v-model="tableFrom.type"
|
|
@@ -108,6 +108,11 @@
|
|
<div>{{ scope.row.title | filterEmpty }}</div>
|
|
<div>{{ scope.row.title | filterEmpty }}</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="内容" min-width="160" :show-overflow-tooltip="true">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>{{ scope.row.content | filterEmpty }}</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="内容作者" prop="authorName" min-width="140" />
|
|
<el-table-column label="内容作者" prop="authorName" min-width="140" />
|
|
<el-table-column label="内容类型" min-width="70">
|
|
<el-table-column label="内容类型" min-width="70">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -121,25 +126,36 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="推荐级别" min-width="130">
|
|
|
|
|
|
+ <el-table-column label="价格" prop="price" min-width="100" />
|
|
|
|
+ <el-table-column label="所在城市" prop="city" min-width="100">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>{{ scope.row.city | filterEmpty }}</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="所在学校" prop="school" min-width="130">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>{{ scope.row.school | filterEmpty }}</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <!--el-table-column label="推荐级别" min-width="130">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-rate disabled v-model="scope.row.star"> </el-rate>
|
|
<el-rate disabled v-model="scope.row.star"> </el-rate>
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
- <el-table-column prop="likeNum" label="点赞数" min-width="100" />
|
|
|
|
- <el-table-column prop="replyNum" label="评论数" min-width="100" />
|
|
|
|
|
|
+ </el-table-column-->
|
|
|
|
+ <!--el-table-column prop="likeNum" label="点赞数" min-width="100" />
|
|
|
|
+ <el-table-column prop="replyNum" label="评论数" min-width="100" /-->
|
|
<el-table-column prop="categoryName" label="分类" min-width="100" />
|
|
<el-table-column prop="categoryName" label="分类" min-width="100" />
|
|
- <el-table-column label="话题" min-width="130" :show-overflow-tooltip="true">
|
|
|
|
|
|
+ <!--el-table-column label="话题" min-width="130" :show-overflow-tooltip="true">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div v-if="!scope.row.topicList">无</div>
|
|
<div v-if="!scope.row.topicList">无</div>
|
|
<div v-for="(item, i) in scope.row.topicList" :key="i">{{ item }}<br /></div>
|
|
<div v-for="(item, i) in scope.row.topicList" :key="i">{{ item }}<br /></div>
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="评论" min-width="90">
|
|
|
|
|
|
+ </el-table-column-->
|
|
|
|
+ <!--el-table-column label="评论" min-width="90">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>{{ scope.row.replyStatus | communityReplyStatusFilter }}</div>
|
|
<div>{{ scope.row.replyStatus | communityReplyStatusFilter }}</div>
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column-->
|
|
<el-table-column v-if="tabActive === '10'" label="审核状态" min-width="100">
|
|
<el-table-column v-if="tabActive === '10'" label="审核状态" min-width="100">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-tag class="doingTag tag-background" v-if="scope.row.auditStatus === 0">待审核</el-tag>
|
|
<el-tag class="doingTag tag-background" v-if="scope.row.auditStatus === 0">待审核</el-tag>
|
|
@@ -172,11 +188,11 @@
|
|
<a @click="onAudit(scope.row.id, true)">审核</a>
|
|
<a @click="onAudit(scope.row.id, true)">审核</a>
|
|
<el-divider direction="vertical"></el-divider>
|
|
<el-divider direction="vertical"></el-divider>
|
|
</template>
|
|
</template>
|
|
- <template v-if="checkPermi(['platform:community:note:repley:force:off:switch'])">
|
|
|
|
|
|
+ <!--template v-if="checkPermi(['platform:community:note:repley:force:off:switch'])">
|
|
<a @click="onReplyOff(scope.row)">{{ scope.row.replyStatus !== 3 ? '关闭评论' : '取消关闭评论' }}</a>
|
|
<a @click="onReplyOff(scope.row)">{{ scope.row.replyStatus !== 3 ? '关闭评论' : '取消关闭评论' }}</a>
|
|
<el-divider direction="vertical"></el-divider>
|
|
<el-divider direction="vertical"></el-divider>
|
|
- </template>
|
|
|
|
- <template v-if="scope.row.auditStatus == 1 && checkPermi(['platform:community:note:forced:down'])">
|
|
|
|
|
|
+ </template-->
|
|
|
|
+ <template v-if="scope.row.auditStatus == 1 && checkPermi(['platform:secondHand:prod:forced:down'])">
|
|
<a @click="onOff(scope.row.id)">强制下架</a>
|
|
<a @click="onOff(scope.row.id)">强制下架</a>
|
|
<el-divider direction="vertical"></el-divider>
|
|
<el-divider direction="vertical"></el-divider>
|
|
</template>
|
|
</template>
|
|
@@ -185,22 +201,22 @@
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-item
|
|
<el-dropdown-item
|
|
@click.native="onAudit(scope.row.id, false)"
|
|
@click.native="onAudit(scope.row.id, false)"
|
|
- v-if="checkPermi(['platform:community:note:detail'])"
|
|
|
|
|
|
+ v-if="checkPermi(['platform:secondHand:prod:detail'])"
|
|
>
|
|
>
|
|
详情
|
|
详情
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
<el-dropdown-item
|
|
<el-dropdown-item
|
|
@click.native="handleDelete(scope.row.id, scope.$index)"
|
|
@click.native="handleDelete(scope.row.id, scope.$index)"
|
|
- v-if="checkPermi(['platform:community:note:delete'])"
|
|
|
|
|
|
+ v-if="checkPermi(['platform:secondHand:prod:delete'])"
|
|
>
|
|
>
|
|
删除
|
|
删除
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
- <el-dropdown-item
|
|
|
|
|
|
+ <!--el-dropdown-item
|
|
@click.native="onEdit(scope.row)"
|
|
@click.native="onEdit(scope.row)"
|
|
v-if="scope.row.auditStatus == 1 && checkPermi(['platform:community:note:star:update'])"
|
|
v-if="scope.row.auditStatus == 1 && checkPermi(['platform:community:note:star:update'])"
|
|
>
|
|
>
|
|
编辑星级
|
|
编辑星级
|
|
- </el-dropdown-item>
|
|
|
|
|
|
+ </el-dropdown-item-->
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
</template>
|
|
</template>
|
|
@@ -298,6 +314,19 @@
|
|
{{ formValidate.createTime }}
|
|
{{ formValidate.createTime }}
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</li>
|
|
|
|
+ <li class="item">
|
|
|
|
+ <div class="tips">城市:</div>
|
|
|
|
+ <div class="value">
|
|
|
|
+ {{ formValidate.city}}
|
|
|
|
+ </div>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="item">
|
|
|
|
+ <div class="tips">学校:</div>
|
|
|
|
+ <div class="value">
|
|
|
|
+ {{ formValidate.school }}
|
|
|
|
+ </div>
|
|
|
|
+ </li>
|
|
|
|
+
|
|
</ul>
|
|
</ul>
|
|
<div class="list" style="display: block">
|
|
<div class="list" style="display: block">
|
|
<div class="item">
|
|
<div class="item">
|
|
@@ -306,6 +335,16 @@
|
|
{{ formValidate.content | filterEmpty }}
|
|
{{ formValidate.content | filterEmpty }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="detailSection">
|
|
|
|
+ <ul class="list mt-16">
|
|
|
|
+ <li class="item">
|
|
|
|
+ <div class="tips">价格:</div>
|
|
|
|
+ <div class="value">
|
|
|
|
+ {{ formValidate.price }}
|
|
|
|
+ </div>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
<div class="item row-middle">
|
|
<div class="item row-middle">
|
|
<div class="tips">封面图:</div>
|
|
<div class="tips">封面图:</div>
|
|
<div class="upLoadPicBox">
|
|
<div class="upLoadPicBox">
|
|
@@ -352,7 +391,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
- <el-tab-pane label="关联商品" name="1">
|
|
|
|
|
|
+ <!--el-tab-pane label="关联商品" name="1">
|
|
<el-table
|
|
<el-table
|
|
class="mt20"
|
|
class="mt20"
|
|
ref="tableList"
|
|
ref="tableList"
|
|
@@ -408,8 +447,8 @@
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- </el-table>
|
|
|
|
- <div class="block">
|
|
|
|
|
|
+ </el-table-->
|
|
|
|
+ <!--div class="block">
|
|
<el-pagination
|
|
<el-pagination
|
|
:page-sizes="[20, 40, 60, 80]"
|
|
:page-sizes="[20, 40, 60, 80]"
|
|
:page-size="tableFromReply.limit"
|
|
:page-size="tableFromReply.limit"
|
|
@@ -419,7 +458,7 @@
|
|
@size-change="handleSizeChangeReply"
|
|
@size-change="handleSizeChangeReply"
|
|
@current-change="pageChangeReply"
|
|
@current-change="pageChangeReply"
|
|
/>
|
|
/>
|
|
- </div>
|
|
|
|
|
|
+ </div-->
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</div>
|
|
</div>
|
|
@@ -492,7 +531,7 @@
|
|
// +----------------------------------------------------------------------
|
|
// +----------------------------------------------------------------------
|
|
// | Author: CRMEB Team <admin@crmeb.com>
|
|
// | Author: CRMEB Team <admin@crmeb.com>
|
|
// +----------------------------------------------------------------------
|
|
// +----------------------------------------------------------------------
|
|
-import * as community from '@/api/community';
|
|
|
|
|
|
+import * as secondHand from '@/api/secondHand';
|
|
import { checkPermi } from '@/utils/permission';
|
|
import { checkPermi } from '@/utils/permission';
|
|
import { filterEmpty } from '@/filters';
|
|
import { filterEmpty } from '@/filters';
|
|
import { handleDeleteTable } from '@/libs/public'; // 权限判断函数
|
|
import { handleDeleteTable } from '@/libs/public'; // 权限判断函数
|
|
@@ -605,9 +644,9 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- if (checkPermi(['platform:community:note:page:list'])) this.getList(1);
|
|
|
|
|
|
+ if (checkPermi(['platform:secondHand:prod:page:list'])) this.getList(1);
|
|
this.getCateSelect();
|
|
this.getCateSelect();
|
|
- this.getTopicSelect();
|
|
|
|
|
|
+ //this.getTopicSelect();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
filterEmpty,
|
|
filterEmpty,
|
|
@@ -633,8 +672,8 @@ export default {
|
|
//审核提交
|
|
//审核提交
|
|
onAuditSubmit() {
|
|
onAuditSubmit() {
|
|
this.auditStatusFrom.id = this.community_id;
|
|
this.auditStatusFrom.id = this.community_id;
|
|
- community
|
|
|
|
- .communityNoteAuditApi(this.auditStatusFrom)
|
|
|
|
|
|
+ secondHand
|
|
|
|
+ .secondHandProdAuditApi(this.auditStatusFrom)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.$message.success('操作成功');
|
|
this.$message.success('操作成功');
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
@@ -692,8 +731,8 @@ export default {
|
|
},
|
|
},
|
|
// 分类列表;
|
|
// 分类列表;
|
|
getCateSelect() {
|
|
getCateSelect() {
|
|
- community
|
|
|
|
- .communityCategoryListApi({
|
|
|
|
|
|
+ secondHand
|
|
|
|
+ .secondHandCategoryListApi({
|
|
limit: 100,
|
|
limit: 100,
|
|
page: 1,
|
|
page: 1,
|
|
})
|
|
})
|
|
@@ -734,8 +773,8 @@ export default {
|
|
//批量移动提交
|
|
//批量移动提交
|
|
submitFormCategory() {
|
|
submitFormCategory() {
|
|
if (this.categoryId === 0) return this.$message.warning('请选择要移动到的分类');
|
|
if (this.categoryId === 0) return this.$message.warning('请选择要移动到的分类');
|
|
- community
|
|
|
|
- .communitycCategoryBatchApi({
|
|
|
|
|
|
+ secondHand
|
|
|
|
+ .secondHandCategoryBatchApi({
|
|
categoryId: this.categoryId,
|
|
categoryId: this.categoryId,
|
|
noteIdList: this.noteIdList,
|
|
noteIdList: this.noteIdList,
|
|
})
|
|
})
|
|
@@ -825,8 +864,8 @@ export default {
|
|
this.listLoading = true;
|
|
this.listLoading = true;
|
|
this.tableFrom.page = num ? num : this.tableFrom.page;
|
|
this.tableFrom.page = num ? num : this.tableFrom.page;
|
|
this.tableFrom.title = encodeURIComponent(this.title);
|
|
this.tableFrom.title = encodeURIComponent(this.title);
|
|
- community
|
|
|
|
- .communityNoteListApi(this.tableFrom)
|
|
|
|
|
|
+ secondHand
|
|
|
|
+ .secondHandProdListApi(this.tableFrom)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.tableData.data = res.list;
|
|
this.tableData.data = res.list;
|
|
this.tableData.total = res.total;
|
|
this.tableData.total = res.total;
|
|
@@ -880,11 +919,11 @@ export default {
|
|
onAudit(id, bl) {
|
|
onAudit(id, bl) {
|
|
this.loadingAudit = true;
|
|
this.loadingAudit = true;
|
|
this.currentTab = 0;
|
|
this.currentTab = 0;
|
|
- this.getReplyNoteList(id);
|
|
|
|
|
|
+ //this.getReplyNoteList(id);
|
|
this.community_id = id;
|
|
this.community_id = id;
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
this.isExamine = bl;
|
|
this.isExamine = bl;
|
|
- community.communityNoteDetailApi(id).then((res) => {
|
|
|
|
|
|
+ secondHand.secondHandProdDetailApi(id).then((res) => {
|
|
this.formValidate = res;
|
|
this.formValidate = res;
|
|
this.loadingAudit = false;
|
|
this.loadingAudit = false;
|
|
});
|
|
});
|
|
@@ -898,14 +937,14 @@ export default {
|
|
},
|
|
},
|
|
submit(id) {
|
|
submit(id) {
|
|
this.ruleForm.id = id;
|
|
this.ruleForm.id = id;
|
|
- community.communityNoteForcedDownApi(this.ruleForm).then((res) => {
|
|
|
|
|
|
+ secondHand.secondHandProdForcedDownApi(this.ruleForm).then((res) => {
|
|
this.$message.success('下架成功');
|
|
this.$message.success('下架成功');
|
|
this.getList();
|
|
this.getList();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
onSubmit() {
|
|
onSubmit() {
|
|
- community
|
|
|
|
- .communityAuditApi(this.community_id, this.ruleForm)
|
|
|
|
|
|
+ secondHand
|
|
|
|
+ .secondHandProdAuditApi(this.community_id, this.ruleForm)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
this.$message.success(res.message);
|
|
this.$message.success(res.message);
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
@@ -931,7 +970,7 @@ export default {
|
|
// 删除
|
|
// 删除
|
|
handleDelete(id) {
|
|
handleDelete(id) {
|
|
this.$modalSure('删除该内容吗').then(() => {
|
|
this.$modalSure('删除该内容吗').then(() => {
|
|
- community.communityNoteDelApi(id).then(() => {
|
|
|
|
|
|
+ secondHand.secondHandProdDelApi(id).then(() => {
|
|
this.$message.success('删除成功');
|
|
this.$message.success('删除成功');
|
|
handleDeleteTable(this.tableData.data.length, this.tableFrom);
|
|
handleDeleteTable(this.tableData.data.length, this.tableFrom);
|
|
this.getList();
|
|
this.getList();
|