提交 774b7cb3 authored 作者: 翟畅's avatar 翟畅

zc外链查详情、资讯列表锁定检索

上级 652b3f72
...@@ -8,8 +8,14 @@ ...@@ -8,8 +8,14 @@
<el-button v-for="item in btnList" :key="item.id" v-if="item.type == 8" size="small" type="primary" <el-button v-for="item in btnList" :key="item.id" v-if="item.type == 8" size="small" type="primary"
@click="handleBtn(item.url)">{{item.name}}</el-button> @click="handleBtn(item.url)">{{item.name}}</el-button>
</div> </div>
</div>
<!-- 页面检索模块 --> <!-- 页面检索模块 -->
<div class="box_button">
<el-form inline :model="listQuery" style="float:right;" size="small"> <el-form inline :model="listQuery" style="float:right;" size="small">
<el-form-item style="margin-right:20px;">
<el-button size="small" type="primary" @click="lockTags">{{lockViews.find(item=>item=='contentInformation')?"解除锁定":"锁定"}}检索条件</el-button>
<el-tooltip content="锁定后在第二次及以后进入时,页面数据将会被缓存,重复进入不会自动刷新" placement="top"><i class="el-icon-question" style="font-size: 14px;"></i></el-tooltip>
</el-form-item>
<el-form-item style="width:120px;margin-right:0"> <el-form-item style="width:120px;margin-right:0">
<el-select clearable placeholder="所属栏目" v-model="listQuery.columnId"> <el-select clearable placeholder="所属栏目" v-model="listQuery.columnId">
<el-option label="全部栏目" :value="null"></el-option> <el-option label="全部栏目" :value="null"></el-option>
...@@ -151,7 +157,18 @@ export default { ...@@ -151,7 +157,18 @@ export default {
setTimeout(() => {this.btnList = this.$store.state.btn.btnList}, 0); setTimeout(() => {this.btnList = this.$store.state.btn.btnList}, 0);
}, },
computed:{
lockViews() {
return this.$store.state.tagsView.lockViews
},
},
methods: { methods: {
lockTags(){
let view = this.$store.state.tagsView.visitedViews.find(item => {
return item.name == 'contentInformation'
})
this.$store.dispatch('tagsView/lockViews',view).then(() => {})
},
getList() { //获取列表 getList() { //获取列表
this.listLoading = true this.listLoading = true
this.listQuery.beginReleaserTime = this.value ? this.value[0] : null this.listQuery.beginReleaserTime = this.value ? this.value[0] : null
...@@ -329,3 +346,10 @@ export default { ...@@ -329,3 +346,10 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped>
.box_button{
width: 100%;
height: auto;
margin-bottom: 16px;
}
</style>
...@@ -415,23 +415,17 @@ export default { ...@@ -415,23 +415,17 @@ export default {
}, },
//查看二维码 //查看二维码
viewLinkCode(item){ viewLinkCode(item){
outsideLinksDetailAPI(item.resourceId).then((res) => {
if(res.data.code == 0){
this.qrCodeViewDialog = true this.qrCodeViewDialog = true
setTimeout(() => { setTimeout(() => {
let qr = new QRCode('qrCodeUr', { let qr = new QRCode('qrCodeUr', {
text:this.baseUrl + '/h5/resource/outsideLink/index?id=' + item.resourceId + '&urlLink=' + res.data.data.link + '&phyId=' + this.$route.query.id, text:this.baseUrl + '/h5/resource/outsideLink/index?id=' + item.resourceId + '&phyId=' + this.$route.query.id,
width: 200, width: 200,
height: 200, height: 200,
colorDark: '#000000', colorDark: '#000000',
colorLight: '#ffffff', colorLight: '#ffffff',
correctLevel: QRCode.CorrectLevel.H correctLevel: 3
}) })
},1000) },1000)
}else{
this.$message.error(res.data.msg)
}
})
}, },
contentTypeSubmit(){ contentTypeSubmit(){
if(this.contentType == '1'){ if(this.contentType == '1'){
......
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
<div class="top_title">专题</div> <div class="top_title">专题</div>
<div class="container" style="float:right;"> <div class="container" style="float:right;">
<el-form inline size="small" :model="listQuery" ref="listQuery" :label-position="labelPosition" label-width="100px"> <el-form inline size="small" :model="listQuery" ref="listQuery" :label-position="labelPosition" label-width="100px">
<el-form-item style="margin-right:20px;">
<el-button size="small" type="primary" @click="lockTags">{{lockViews.find(item=>item=='special')?"解除锁定":"锁定"}}检索条件</el-button>
<el-tooltip content="锁定后在第二次及以后进入时,页面数据将会被缓存,重复进入不会自动刷新" placement="top"><i class="el-icon-question" style="font-size: 14px;"></i></el-tooltip>
</el-form-item>
<el-form-item label="专题名称:"> <el-form-item label="专题名称:">
<el-input v-model="listQuery.name" placeholder="请输入专题名称" clearable class="selWidth"/> <el-input v-model="listQuery.name" placeholder="请输入专题名称" clearable class="selWidth"/>
</el-form-item> </el-form-item>
...@@ -127,6 +131,11 @@ export default { ...@@ -127,6 +131,11 @@ export default {
sortId: [] sortId: []
} }
}, },
computed:{
lockViews() {
return this.$store.state.tagsView.lockViews
},
},
mounted() { mounted() {
this.getList() this.getList()
setTimeout(() => { setTimeout(() => {
...@@ -141,6 +150,12 @@ export default { ...@@ -141,6 +150,12 @@ export default {
},0) },0)
}, },
methods: { methods: {
lockTags(){
let view = this.$store.state.tagsView.visitedViews.find(item => {
return item.name == 'special'
})
this.$store.dispatch('tagsView/lockViews',view).then(() => {})
},
filterChange(filters){ filterChange(filters){
if(filters.status){ if(filters.status){
this.listQuery.status = filters.status[0] this.listQuery.status = filters.status[0]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论