Skip to content

Commit

Permalink
fix 去掉论坛客户端筛选
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchuana committed Jun 13, 2024
1 parent 7aa10fd commit 961fee2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/views/cms_community.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</el-input>

<div class="m-dashboard-work-filter" v-if="activeTab == 'topic'">
<clientBy class="u-client" @filter="filter" :showWujie="showWujie" />
<!-- <clientBy class="u-client" @filter="filter" :showWujie="showWujie" /> -->
<!-- <orderBy class="u-order" @filter="filter" /> -->
</div>

Expand Down Expand Up @@ -87,7 +87,7 @@
import { getMyList, del, getMyReplyList, deleteMyReply } from "@/service/community.js";
import dateFormat from "../utils/dateFormat";
import statusMap from "@/assets/data/status.json";
import {pick} from "lodash";
import { pick } from "lodash";
export default {
name: "work",
props: [],
Expand Down Expand Up @@ -168,7 +168,7 @@ export default {
loadPosts: function () {
this.loading = true;
this.data = [];
if (this.activeTab == 'topic') {
if (this.activeTab == "topic") {
getMyList(this.params)
.then((res) => {
this.data = res.data.data.list;
Expand All @@ -191,7 +191,7 @@ export default {
}
},
edit: function (item) {
const routeName = this.activeTab == 'topic' ? 'community' : 'community_reply';
const routeName = this.activeTab == "topic" ? "community" : "community_reply";
const path = this.$router.resolve({
name: routeName,
Expand All @@ -207,7 +207,7 @@ export default {
confirmButtonText: "确定",
callback: (action) => {
if (action == "confirm") {
const fn = this.activeTab == 'topic' ? del : deleteMyReply;
const fn = this.activeTab == "topic" ? del : deleteMyReply;
fn(item.id).then(() => {
this.$message({
type: "success",
Expand Down Expand Up @@ -244,7 +244,7 @@ export default {
});
},
postLink: function (item) {
return this.activeTab == 'topic' ? `/community/${item.id}` : `/community/${item.topic_id}`;
return this.activeTab == "topic" ? `/community/${item.id}` : `/community/${item.topic_id}`;
},
filter: function (o) {
this.page = 1;
Expand All @@ -254,12 +254,12 @@ export default {
return simpleTypes.includes(val);
},
getContent(item) {
const val = item.content
const val = item.content;
if (val) {
return `#${item.floor} 回复:${item?.topic?.title}` + val.slice(0, 12) + "...";
}
return "";
}
},
},
filters: {
dateFormat: function (val) {
Expand Down

0 comments on commit 961fee2

Please sign in to comment.