提交 652fb20a authored 作者: 翟畅's avatar 翟畅

zc资源码

上级 4234bc5f
......@@ -47,9 +47,9 @@
</div>
<div class="top_tips" @click="searchDialog = true"><i class="el-icon-question"></i></div>
<div class="search_box">
<el-input class="search" @keyup.enter.native="getList(1)" placeholder="请输入资源关键字模糊搜索,展开高级搜索可使用更多搜索条件" v-model="listQuery.params">
<el-input class="search" @keyup.enter.native="searchLockEvent" placeholder="请输入资源关键字模糊搜索,展开高级搜索可使用更多搜索条件" v-model="listQuery.params">
<template slot="prepend">
<i class="el-icon-search" @click="getList(1)"></i>
<i class="el-icon-search" @click="searchLockEvent"></i>
</template>
<template slot="append">
<span class="search_right" @click.stop="changeSearch">高级搜索 <i class=" search_right_icon" :class="collapse?'el-icon-arrow-up':'el-icon-arrow-down'"></i> </span>
......@@ -77,7 +77,7 @@
<el-input v-model="listQuery.seriesname" clearable class="selWidth"/>
</el-form-item>
<div class="search_btn_box">
<el-button type="primary" icon="ios-search" label="default" class="mr15" size="small" @click="getList(1)">搜索</el-button>
<el-button type="primary" icon="ios-search" label="default" class="mr15" size="small" @click="searchLockEvent">搜索</el-button>
<el-button class="mr10" @click="resetFilder" size="small">重置</el-button>
</div>
</el-form>
......@@ -283,6 +283,11 @@ import QRCode from "qrcodejs2";
qrCodeViewDialog:false,
}
},
computed:{
lockViews() {
return this.$store.state.tagsView.lockViews
},
},
mounted() {
window.addEventListener("click", this.clickOther);
this.getSortList();
......@@ -300,6 +305,18 @@ import QRCode from "qrcodejs2";
},0)
},
methods: {
lockTags(){
let view = this.$store.state.tagsView.visitedViews.find(item => {
return item.name == 'paper_book'
})
this.$store.dispatch('tagsView/lockViews',view).then(() => {})
},
searchLockEvent(){
if(!this.lockViews.find(item=>item=='paper_book')){
this.lockTags()
this.getList(1)
}
},
getDepartList(){
departListAPI().then((res) => {
this.departList = res
......@@ -588,7 +605,8 @@ import QRCode from "qrcodejs2";
});
this.classisyFlag = false
this.listQuery.diyTypeCode = data.code;
this.getList(1);
// this.getList(1);
this.searchLockEvent()
this.action = this.action + "/?code=" + this.listQuery.diyTypeCode;
},
//批量上下架 // bookStatus 状态:1上架,2下架
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论