提交 269bab2f authored 作者: 翟畅's avatar 翟畅

zc视频库锁定

上级 652fb20a
......@@ -39,7 +39,7 @@
<el-date-picker v-model="value" type="daterange" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" class="search_data"></el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" class="ml10" size="small" @click="getList(1)">搜索</el-button>
<el-button type="primary" class="ml10" size="small" @click="searchLockEvent">搜索</el-button>
<el-button class="mr10" @click="resetFilder" size="small">重置</el-button>
</el-form-item>
</el-form>
......@@ -233,6 +233,11 @@ export default {
currentCataLogueText:'',
};
},
computed:{
lockViews() {
return this.$store.state.tagsView.lockViews
},
},
mounted() {
window.addEventListener("click", this.clickOther);
this.getSortList();
......@@ -249,6 +254,18 @@ export default {
},0)
},
methods: {
lockTags(){
let view = this.$store.state.tagsView.visitedViews.find(item => {
return item.name == 'video_module'
})
this.$store.dispatch('tagsView/lockViews',view).then(() => {})
},
searchLockEvent(){
if(!this.lockViews.find(item=>item=='video_module')){
this.lockTags()
this.getList(1)
}
},
clickOther(){
this.classisyFlag = false
},
......@@ -549,7 +566,8 @@ export default {
});
this.classisyFlag = false
this.listQuery.diyTypeCode = data.code;
this.getList(1);
// this.getList(1);
this.searchLockEvent()
},
//批量上下架 // status 状态:1上架,2下架
async changeUpdata(status, text) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论