Skip to content

Commit

Permalink
chore: banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Nov 14, 2024
1 parent 62aee38 commit ac1c83f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"dependencies": {
"@jx3box/jx3box-bmap": "^0.1.13",
"@jx3box/jx3box-comment-ui": "^1.9.9",
"@jx3box/jx3box-common": "^8.4.8",
"@jx3box/jx3box-common-ui": "^9.0.5",
"@jx3box/jx3box-common": "^8.5.2",
"@jx3box/jx3box-common-ui": "^9.0.9",
"@jx3box/jx3box-data": "^3.7.0",
"@jx3box/jx3box-editor": "^2.2.16",
"axios": "^0.21.1",
Expand Down
18 changes: 18 additions & 0 deletions src/views/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<markBy @filter="filterMeta"></markBy>
<!-- 排序过滤 -->
<orderBy @filter="filterMeta"></orderBy>
<versionBy :value="is_wujie" @filter="filterIsWujie"></versionBy>
</div>

<!-- 列表 -->
Expand Down Expand Up @@ -73,6 +74,7 @@ import {getDesignLog} from "@/service/design";
import DesignTask from "@jx3box/jx3box-common-ui/src/bread/DesignTask.vue";
import bus from "@/utils/bus";
import User from "@jx3box/jx3box-common/js/user";
import versionBy from "@jx3box/jx3box-common-ui/src/filters/versionBy.vue"
export default {
name: "Index",
props: [],
Expand All @@ -93,6 +95,7 @@ export default {
client: this.$store.state.client, //版本选择
search: "", //搜索字串
topic: "", //专题
is_wujie: 0,
showDesignTask: false,
currentPost: {},
Expand All @@ -115,6 +118,7 @@ export default {
mark: this.mark,
client: this.client,
topic: this.topic,
is_wujie: this.is_wujie,
};
},
// 分页相关参数
Expand Down Expand Up @@ -228,6 +232,11 @@ export default {
filterMeta: function (o) {
this.replaceRoute({ [o["type"]]: o["val"], page: 1 });
},
filterIsWujie: function (o) {
const val = o["val"];
this.is_wujie = val;
},
// 条件过滤(不附加路由)
filterImperceptibly: function (o) {
this[o["type"]] = o["val"];
Expand Down Expand Up @@ -282,16 +291,25 @@ export default {
this.loadData();
},
},
is_wujie() {
this.page = 1;
this.replaceRoute({ page: 1 })
}
},
mounted: function () {
bus.on("design-task", (post) => {
this.currentPost = post;
this.showDesignTask = true;
});
if (this.client !== "origin") {
this.is_wujie = this.isPhone ? 1 : 0;
}
},
components: {
listItem,
DesignTask,
versionBy
},
};
</script>
Expand Down

0 comments on commit ac1c83f

Please sign in to comment.