diff --git a/src/views/knowledge/index.vue b/src/views/knowledge/index.vue index 7e4d721..bca0c03 100644 --- a/src/views/knowledge/index.vue +++ b/src/views/knowledge/index.vue @@ -67,12 +67,7 @@ type="text" icon="el-icon-upload2" @click="openUploadTypeDialog" - v-if=" - (queryRightParams.cate_id == 0 && - queryRightParams.is_mine == 1) || - (queryRightParams.cate_id != 0 && - queryRightParams.is_mine === 0) - " + v-if="!(cate_id == 0 && (is_mine == 0 || is_mine == 2))" > 上传 @@ -336,6 +331,8 @@ export default { ], }, // 知识库右侧-查询参数 + cate_id: null, + is_mine: null, queryRightParams: { title: "", cate_id: 0, @@ -557,7 +554,8 @@ export default { postKnowledgeList(this.queryRightParams).then((res) => { this.list = res.data.list; this.queryRightParams.total = Number(res.data.total); - this.queryRightParams.is_mine = res.data.is_mine; + this.cate_id = res.data.cate_id; + this.is_mine = res.data.is_mine; console.log("知识库右侧-列表", this.queryRightParams); }); },