Merge remote-tracking branch 'origin/dev_test' into dev_test

This commit is contained in:
zhoulingpo
2023-11-28 10:20:19 +08:00
7 changed files with 85 additions and 36 deletions
+4 -1
View File
@@ -13,7 +13,10 @@
<customerService v-if="customerServiceShow"></customerService> <customerService v-if="customerServiceShow"></customerService>
<!-- <router-view v-if="!isBoolean"/>--> <!-- <router-view v-if="!isBoolean"/>-->
<span v-if="this.$route.name === 'Login'|| !isBoolean"> <span v-if="this.$route.name === 'Login'|| !isBoolean">
<router-view/> <keep-alive>
<router-view v-if="$route.meta.keepAlive"/>
</keep-alive>
<router-view v-if="!$route.meta.keepAlive"/>
</span> </span>
<span v-else> <span v-else>
<div class="content-box" v-if="isCollapse"> <div class="content-box" v-if="isCollapse">
@@ -85,9 +85,7 @@ export default {
this.bs.finishPullUp() this.bs.finishPullUp()
}) })
this.bs.on('scroll', (x, y ,z) => { this.bs.on('scroll', ({x, y}) => { })
console.log(x,y,z)
})
} else { } else {
this.bs.refresh() this.bs.refresh()
@@ -39,7 +39,7 @@ export default {
return { return {
popupShow: true, popupShow: true,
checkedKeys: [], // 选择的标准体系 checkedKeys: [], // 选择的标准体系
textStatusName: '现行有效', textStatusName: '全部',
standardSystemTreeData: [], standardSystemTreeData: [],
loading: false, loading: false,
api: { api: {
@@ -55,7 +55,7 @@ export default {
required: true required: true
} }
}, },
created () { activated () {
this.getData() this.getData()
}, },
methods: { methods: {
+2 -4
View File
@@ -133,7 +133,7 @@
<el-col :span="16"> <el-col :span="16">
<template v-if="child.value && child.value.length > 0"> <template v-if="child.value && child.value.length > 0">
<div style="line-height: 32px"> <div style="line-height: 32px">
<div v-for="(file, fileIndex) in child6Func(child.value)" <div v-for="(file, fileIndex) in child.value"
style="display: flex;"> style="display: flex;">
<span v-if="child.value && child.value.length > 0 && child.value.length === 1" <span v-if="child.value && child.value.length > 0 && child.value.length === 1"
style="display: flex; align-items: center;"> style="display: flex; align-items: center;">
@@ -144,7 +144,7 @@
<!--多个文件时--> <!--多个文件时-->
<div v-else-if="child.value && child.value.length > 0"> <div v-else-if="child.value && child.value.length > 0">
<span style="display: flex; align-items: center;"> <span style="display: flex; align-items: center;">
<a style="font-size: 16px;color: #409EFF;cursor: pointer" <a style="font-size: 0.2rem;color: #409EFF;cursor: pointer"
@click="openFileInPdf(file.id, file.oldFileName)" target="_blank" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank"
:title="file.oldFileName">{{ file.oldFileName | ellipsis50}}</a> :title="file.oldFileName">{{ file.oldFileName | ellipsis50}}</a>
</span> </span>
@@ -3565,7 +3565,6 @@
location['child5'] = childList location['child5'] = childList
} }
//修订本
if (!list[0].child) { if (!list[0].child) {
location['child6'] = [] location['child6'] = []
} else { } else {
@@ -3591,7 +3590,6 @@
location['child2'] = childList location['child2'] = childList
} }
} }
for (let i = 0; i < displayLocation.length; i++) { for (let i = 0; i < displayLocation.length; i++) {
// sss // sss
if (displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件') { if (displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件') {
+39 -8
View File
@@ -110,7 +110,7 @@ export default {
selectIndex: 'stand', selectIndex: 'stand',
selectValue: '', selectValue: '',
standSystem: [], standSystem: [],
textStatus: '现行有效', textStatus: '全部',
selectType: 'titleSearch', selectType: 'titleSearch',
standType: 'INLAND', standType: 'INLAND',
page: 1, page: 1,
@@ -127,23 +127,54 @@ export default {
lawsMap:{}, lawsMap:{},
} }
}, },
created() { beforeRouteEnter (to, from, next) {
switch (this.$route.query.standType) { next(vm => {
// 首页进入 重新加载
if (from.name === 'phoneHome') {
switch (to.query.standType) {
case 'INLAND': case 'INLAND':
this.titleName = '国内标准法规库' vm.titleName = '国内标准法规库'
break break
case 'FOREIGN': case 'FOREIGN':
this.titleName = '海外标准法规库' vm.titleName = '海外标准法规库'
break break
case 'bussstand': case 'bussstand':
this.titleName = '企业标准' vm.titleName = '企业标准'
break break
case 'POLICY': case 'POLICY':
this.titleName = '国内外政策库' vm.titleName = '国内外政策库'
break break
} }
vm.searchQuery.page = 1
vm.$refs.standardSystemPopupRef.popupShow = true
vm.$refs.scroll.scrollTo(0, 0)
vm.getData()
}
})
},
activated () {
console.log('activated')
},
deactivated () {
console.log('deactivated')
},
created() {
// switch (this.$route.query.standType) {
// case 'INLAND':
// this.titleName = '国内标准法规库'
// break
// case 'FOREIGN':
// this.titleName = '海外标准法规库'
// break
// case 'bussstand':
// this.titleName = '企业标准'
// break
// case 'POLICY':
// this.titleName = '国内外政策库'
// break
// }
this.getDicTypeListCode() this.getDicTypeListCode()
this.getData() // this.getData()
}, },
methods: { methods: {
pullingUpHandler () { pullingUpHandler () {
+14 -1
View File
@@ -1,7 +1,7 @@
<!--全库检索--> <!--全库检索-->
<template> <template>
<div id="standDynamics"> <div id="standDynamics">
<div class="search-head"> <div class="search-head" v-if="isShow">
<div class="head-title"> <div class="head-title">
<span class="left-title" @click="back"> < </span> <span class="left-title" @click="back"> < </span>
<span class="right-title">标准化动态</span> <span class="right-title">标准化动态</span>
@@ -36,8 +36,21 @@ export default {
data() { data() {
return { return {
active: "ZYBZFG", active: "ZYBZFG",
isShow: true
}; };
}, },
beforeRouteEnter (to, from, next) {
next(vm => {
if (from.name === 'phoneHome') {
// 首页进入 重新加载
vm.active = "ZYBZFG";
vm.isShow = false
vm.$nextTick(() => {
vm.isShow = true
})
}
})
},
methods: { methods: {
//返回上一个页面 //返回上一个页面
back() { back() {
+8 -2
View File
@@ -105,7 +105,10 @@ const routes = [
{ {
path: '/standDynamics', path: '/standDynamics',
name: 'standDynamics', name: 'standDynamics',
component: () => import('@/pages/phone/standDynamics/index') component: () => import('@/pages/phone/standDynamics/index'),
meta: {
keepAlive: true
}
/* /*
component: () => component: () =>
import('@/pages/phone/standDynamics') import('@/pages/phone/standDynamics')
@@ -114,7 +117,10 @@ const routes = [
{ {
path: '/domesticStand', path: '/domesticStand',
name: 'domesticStand', name: 'domesticStand',
component: () => import('@/pages/phone/domesticStand/index') component: () => import('@/pages/phone/domesticStand/index'),
meta: {
keepAlive: true
}
/* /*
component: () => component: () =>
import('@/pages/phone/domesticStand') import('@/pages/phone/domesticStand')