Merge remote-tracking branch 'origin/dev_test' into dev_test
This commit is contained in:
+4
-1
@@ -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: {
|
||||||
|
|||||||
@@ -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 !== '过程稿件') {
|
||||||
|
|||||||
@@ -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:{},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
beforeRouteEnter (to, from, next) {
|
||||||
|
next(vm => {
|
||||||
|
// 首页进入 重新加载
|
||||||
|
if (from.name === 'phoneHome') {
|
||||||
|
switch (to.query.standType) {
|
||||||
|
case 'INLAND':
|
||||||
|
vm.titleName = '国内标准法规库'
|
||||||
|
break
|
||||||
|
case 'FOREIGN':
|
||||||
|
vm.titleName = '海外标准法规库'
|
||||||
|
break
|
||||||
|
case 'bussstand':
|
||||||
|
vm.titleName = '企业标准'
|
||||||
|
break
|
||||||
|
case 'POLICY':
|
||||||
|
vm.titleName = '国内外政策库'
|
||||||
|
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() {
|
created() {
|
||||||
switch (this.$route.query.standType) {
|
// switch (this.$route.query.standType) {
|
||||||
case 'INLAND':
|
// case 'INLAND':
|
||||||
this.titleName = '国内标准法规库'
|
// this.titleName = '国内标准法规库'
|
||||||
break
|
// break
|
||||||
case 'FOREIGN':
|
// case 'FOREIGN':
|
||||||
this.titleName = '海外标准法规库'
|
// this.titleName = '海外标准法规库'
|
||||||
break
|
// break
|
||||||
case 'bussstand':
|
// case 'bussstand':
|
||||||
this.titleName = '企业标准'
|
// this.titleName = '企业标准'
|
||||||
break
|
// break
|
||||||
case 'POLICY':
|
// case 'POLICY':
|
||||||
this.titleName = '国内外政策库'
|
// this.titleName = '国内外政策库'
|
||||||
break
|
// break
|
||||||
}
|
// }
|
||||||
this.getDicTypeListCode()
|
this.getDicTypeListCode()
|
||||||
this.getData()
|
// this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
pullingUpHandler () {
|
pullingUpHandler () {
|
||||||
@@ -269,14 +300,14 @@ export default {
|
|||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
|
||||||
.left-title {
|
.left-title {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-title {
|
.right-title {
|
||||||
float: right;
|
float: right;
|
||||||
margin-right: 34%;
|
margin-right: 34%;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.van-search {
|
.van-search {
|
||||||
|
|||||||
@@ -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
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user