Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -221,6 +221,7 @@ export default {
|
|||||||
&& this.$route.name !== 'loginStandDetails' && this.$route.name !== 'error'
|
&& this.$route.name !== 'loginStandDetails' && this.$route.name !== 'error'
|
||||||
&& this.$route.name !== 'phoneHome'&& this.$route.name !== 'databaseSearch'
|
&& this.$route.name !== 'phoneHome'&& this.$route.name !== 'databaseSearch'
|
||||||
&& this.$route.name !== 'standDynamics' && this.$route.name !== 'domesticStand'
|
&& this.$route.name !== 'standDynamics' && this.$route.name !== 'domesticStand'
|
||||||
|
&& this.$route.name !== 'domesticDetails'
|
||||||
&& this.$route.name !== 'OtherStandardExternalDetails' && this.$route.name !== 'OtherStandardExternalDetails') {
|
&& this.$route.name !== 'OtherStandardExternalDetails' && this.$route.name !== 'OtherStandardExternalDetails') {
|
||||||
this.isBoolean = true
|
this.isBoolean = true
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -471,11 +471,11 @@
|
|||||||
// path: '/forward',
|
// path: '/forward',
|
||||||
// menuId: 'K45Y9TGKZV2K4XP4CETD'
|
// menuId: 'K45Y9TGKZV2K4XP4CETD'
|
||||||
// },
|
// },
|
||||||
// {
|
{
|
||||||
// title: '我的问答',
|
title: '我的问答',
|
||||||
// path: '/questions',
|
path: '/questions',
|
||||||
// menuId: ''
|
menuId: ''
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
title: '我的板块',
|
title: '我的板块',
|
||||||
path: '/plate',
|
path: '/plate',
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
|
|
||||||
<el-select
|
<el-select
|
||||||
v-if="showType"
|
|
||||||
v-model="checkStateType"
|
v-model="checkStateType"
|
||||||
class="search-group-itemType"
|
class="search-group-itemType"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
|
|||||||
@@ -1,6 +1,28 @@
|
|||||||
<!--我的问答-->
|
<!--我的问答-->
|
||||||
<template>
|
<template>
|
||||||
<div id="my-questions">
|
<div id="my-questions">
|
||||||
|
<div class="search-area">
|
||||||
|
<el-form :inline="true" :model="questionSerach" >
|
||||||
|
<el-form-item class="el-form-item search-item" label="标准号">
|
||||||
|
<el-input v-model="questionSerach.standNumber" placeholder="根据标准号查询"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="el-form-item search-item" label="标准名称">
|
||||||
|
<el-input v-model="questionSerach.standName" placeholder="根据标准名称查询"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item class="el-form-item search-item" label="关键词">
|
||||||
|
<el-input v-model="questionSerach.keyCode" placeholder="根据关键词查询"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button size="mini" @click="">查询</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button size="mini" @click="">清空</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button size="mini" type="primary" @click="">提问</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
<el-tabs
|
<el-tabs
|
||||||
type="border-card"
|
type="border-card"
|
||||||
style="height: 100%"
|
style="height: 100%"
|
||||||
@@ -13,16 +35,29 @@
|
|||||||
class="question-tabs"
|
class="question-tabs"
|
||||||
type="border-card"
|
type="border-card"
|
||||||
style="height: 100%"
|
style="height: 100%"
|
||||||
tab-position="left"
|
tab-position="left">
|
||||||
>
|
<el-tab-pane label="国内标准">
|
||||||
<template v-for="question in questionList">
|
<el-tabs
|
||||||
<el-tab-pane :name="question.name">
|
class="question-tabs"
|
||||||
<template slot="label">
|
type="border-card"
|
||||||
<questonsItem :question="question"></questonsItem>
|
style="height: 100%"
|
||||||
</template>
|
tab-position="left"
|
||||||
</el-tab-pane>
|
>
|
||||||
|
<template v-for="question in questionList">
|
||||||
</template>
|
<el-tab-pane class="com-box" :name="question.name">
|
||||||
|
<template slot="label">
|
||||||
|
<questonsItem :question="question"></questonsItem>
|
||||||
|
</template>
|
||||||
|
</el-tab-pane>
|
||||||
|
</template>
|
||||||
|
</el-tabs>
|
||||||
|
</el-tab-pane>
|
||||||
|
<el-tab-pane label="海外标准">
|
||||||
|
</el-tab-pane>
|
||||||
|
<el-tab-pane label="企业标准">
|
||||||
|
</el-tab-pane>
|
||||||
|
<el-tab-pane label="公共问题">
|
||||||
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
@@ -31,6 +66,10 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
<el-tab-pane label="我的订阅">
|
||||||
|
<div>
|
||||||
|
</div>
|
||||||
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -44,6 +83,11 @@ export default {
|
|||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
questionSerach:{
|
||||||
|
standNumber: '',
|
||||||
|
standName: '',
|
||||||
|
keyCode: '',
|
||||||
|
},
|
||||||
questionList: [{
|
questionList: [{
|
||||||
title: '问题1',
|
title: '问题1',
|
||||||
name: '1',
|
name: '1',
|
||||||
@@ -69,15 +113,33 @@ export default {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
background: #F5F7FA;
|
background: #F5F7FA;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
.type-tabs{
|
.type-tabs {
|
||||||
/deep/.el-tabs__header {
|
/deep/.el-tabs__header {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
/deep/.el-tabs__content {
|
||||||
|
padding: 0;
|
||||||
|
.el-tab-pane {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.question-tabs{
|
.question-tabs {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
/deep/.el-tabs__item{
|
border-top: none;
|
||||||
height: 100%;
|
border-bottom: none;
|
||||||
|
/deep/.el-tabs__nav {
|
||||||
|
height: calc(~'100% - 50px');
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
/deep/ &.el-tabs--border-card .el-tabs__item {
|
||||||
|
height: 65px;
|
||||||
|
border-color: #d1dbe5 transparent;
|
||||||
|
text-align: left;
|
||||||
|
border-top-color: transparent;
|
||||||
|
&.is-active {
|
||||||
|
border-top-color: #d1dbe5;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/deep/.el-tabs__content{
|
/deep/.el-tabs__content{
|
||||||
@@ -87,5 +149,10 @@ export default {
|
|||||||
/deep/.el-tab-pane{
|
/deep/.el-tab-pane{
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
.com-box{
|
||||||
|
/deep/.el-tabs__item .is-left{
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -17,24 +17,26 @@
|
|||||||
</template>
|
</template>
|
||||||
</van-search>
|
</van-search>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="loading">
|
<div class="card-box" ref="cardBox" @scroll="scrool">
|
||||||
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
|
<div v-if="loading">
|
||||||
</div>
|
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
|
||||||
<div v-else-if="!loading && standList.length" class="card-content" v-for="item in standList" :key="item.id">
|
|
||||||
<div class="standTitle">
|
|
||||||
<div class="title">{{item.title}}</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="standContent">
|
<div v-else-if="!loading && standList.length" class="card-content" v-for="item in standList" :key="item.id" @click="jumpDetails(item) ">
|
||||||
<div class="standState">标准类别:
|
<div class="standTitle">
|
||||||
<span v-if="item.indexType === 'stand'">国内标准</span>
|
<div class="title">{{item.title}}</div>
|
||||||
<span v-if="item.indexType === 'FOREIGN'">海外标准</span>
|
</div>
|
||||||
<span v-if="item.indexType === 'bussstand'">企业标准</span>
|
<div class="standContent">
|
||||||
|
<div class="standState">标准类别:
|
||||||
|
<span v-if="item.indexType === 'stand'">国内标准</span>
|
||||||
|
<span v-if="item.indexType === 'FOREIGN'">海外标准</span>
|
||||||
|
<span v-if="item.indexType === 'bussstand'">企业标准</span>
|
||||||
|
</div>
|
||||||
|
<div class="standSubTime">发布日期: {{item.issue_time}} </div>
|
||||||
</div>
|
</div>
|
||||||
<div class="standSubTime">发布日期: {{item.issue_time}} </div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div v-else-if="!loading && !standList.length">
|
||||||
<div v-else-if="!loading && !standList.length">
|
<van-empty description="暂无数据" />
|
||||||
<van-empty description="暂无数据" />
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -44,23 +46,45 @@ export default {
|
|||||||
name: "databaseSearch",
|
name: "databaseSearch",
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
|
scrolled: '',
|
||||||
|
moreFlag: false,
|
||||||
searchKey: '',
|
searchKey: '',
|
||||||
standList: [],
|
standList: [],
|
||||||
loading: true,
|
loading: true,
|
||||||
|
page: 1,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
scrool(){
|
||||||
|
let scrolled = this.$refs.cardBox.scrollTop
|
||||||
|
//获得可视区的高度
|
||||||
|
const windowHeight = this.$refs.cardBox.clientHeight
|
||||||
|
//获取滚动条的总高度
|
||||||
|
const scrollHeight = this.$refs.cardBox.scrollHeight
|
||||||
|
let windowScrolled = scrolled + windowHeight
|
||||||
|
this.scrolled = scrolled
|
||||||
|
if(scrollHeight - windowScrolled < 600 ){
|
||||||
|
//把距离顶部的距离加上可视区域的高度 等于或者大于滚动条的总高度就是到达底部
|
||||||
|
this.moreFlag = true
|
||||||
|
this.page++
|
||||||
|
}
|
||||||
|
},
|
||||||
onSearch(){
|
onSearch(){
|
||||||
|
this.moreFlag = false
|
||||||
this.$http.post('search/searchCenter/searchSarBykey',{
|
this.$http.post('search/searchCenter/searchSarBykey',{
|
||||||
selectIndex: 'fulltextserch',
|
selectIndex: 'fulltextserch',
|
||||||
selectValue: this.searchKey,
|
selectValue: this.searchKey,
|
||||||
selectType: 'titleSearch',
|
selectType: 'titleSearch',
|
||||||
page: 1,
|
page: this.page,
|
||||||
pageSize: 20
|
pageSize: 20
|
||||||
},{
|
},{
|
||||||
_this: this,
|
_this: this,
|
||||||
}, res => {
|
}, res => {
|
||||||
this.standList = res.data.list
|
if(this.standList.length){
|
||||||
|
this.standList = this.standList.concat(res.data.list)
|
||||||
|
}else{
|
||||||
|
this.standList = res.data.list
|
||||||
|
}
|
||||||
console.log(this.standList);
|
console.log(this.standList);
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -71,11 +95,21 @@ export default {
|
|||||||
back(){
|
back(){
|
||||||
this.$router.push('/phoneHome')
|
this.$router.push('/phoneHome')
|
||||||
},
|
},
|
||||||
|
jumpDetails(item){
|
||||||
|
this.$router.push({
|
||||||
|
name: 'domesticDetails',
|
||||||
|
query: {
|
||||||
|
id: item.id,
|
||||||
|
pageType: 'INLAND_STAND'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
this.searchKey = this.$route.query.searchKey
|
this.searchKey = this.$route.query.searchKey
|
||||||
this.onSearch()
|
this.onSearch()
|
||||||
}
|
this.$refs.cardBox.addEventListener('scroll', this.scrool);
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -89,6 +123,9 @@ export default {
|
|||||||
.search-head{
|
.search-head{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
z-index: 9999;
|
||||||
background: #3170A8;
|
background: #3170A8;
|
||||||
}
|
}
|
||||||
.head-title{
|
.head-title{
|
||||||
@@ -123,6 +160,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.card-box{
|
||||||
|
height: 85%;
|
||||||
|
position: relative;
|
||||||
|
overflow-y: scroll;
|
||||||
|
top: 100px;
|
||||||
|
}
|
||||||
.card-content{
|
.card-content{
|
||||||
width: 95%;
|
width: 95%;
|
||||||
height: auto;
|
height: auto;
|
||||||
@@ -159,7 +202,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.van-loading {
|
.van-loading {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 52%;
|
top: 40%;
|
||||||
left: 37%;
|
left: 37%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@
|
|||||||
<div class="search-head">
|
<div class="search-head">
|
||||||
<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">{{titleName}}</span>
|
||||||
</div>
|
</div>
|
||||||
<van-search
|
<van-search
|
||||||
v-model="searchKey"
|
v-model="searchKey"
|
||||||
@@ -17,50 +17,67 @@
|
|||||||
</template>
|
</template>
|
||||||
</van-search>
|
</van-search>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="loading">
|
<div class="card-box">
|
||||||
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
|
<div v-if="loading">
|
||||||
</div>
|
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
|
||||||
<div v-else-if="!loading && standList.length" class="card-content" v-for="item in standList" :key="item.id">
|
|
||||||
<div class="standTitle">
|
|
||||||
<div class="title">{{item.standSortShow + '  ' + item.standNumber + '-' + item.standYear }}</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="standContent">
|
<div v-else-if="!loading && standList.length" class="card-content" v-for="item in standList" :key="item.id">
|
||||||
<div class="standState">{{item.standName}}</div>
|
<div class="standTitle">
|
||||||
<div class="standSubTime">标准性质:
|
<div v-if="titleType === 'POLICY'" class="title">{{item.lawsNumber}}</div>
|
||||||
<!-- {{ natureMap[item.standNature] }}-->
|
<div v-else class="title">{{item.standSortShow + '  ' + item.standNumber + '-' + item.standYear }}</div>
|
||||||
<span v-if="natureMap[item.standNature] === '强制性' "
|
</div>
|
||||||
style="color: #F56C6C; padding-left: 5px;">
|
<div class="standContent">
|
||||||
|
<div class="standState">{{item.standName}}</div>
|
||||||
|
<div class="standSubTime">标准性质:
|
||||||
|
<span v-if="natureMap[item.standNature] === '强制性' "
|
||||||
|
style="color: #F56C6C; padding-left: 5px;">
|
||||||
{{ natureMap[item.standNature] }}
|
{{ natureMap[item.standNature] }}
|
||||||
</span>
|
</span>
|
||||||
<span v-if="natureMap[item.standNature] === '推荐性' "
|
<span v-if="natureMap[item.standNature] === '推荐性' "
|
||||||
style="color: #E57800; padding-left: 5px;">
|
style="color: #E57800; padding-left: 5px;">
|
||||||
{{ natureMap[item.standNature] }}
|
{{ natureMap[item.standNature] }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="standSubTime">标准状态:
|
<div class="standSubTime" v-if="titleType === 'POLICY'">标准状态:
|
||||||
<span v-if="textStatusMap[item.textStatus] === '废止' || textStatusMap[item.textStatus] === '被代替'"
|
<span v-if="lawsMap[item.lawsTextState] === '作废' || lawsMap[item.lawsTextState] === '被代替'"
|
||||||
style="color: #F56C6C; padding-left: 5px;">
|
style="color: #F56C6C; padding-left: 5px;">
|
||||||
|
{{ lawsMap[item.lawsTextState] }}
|
||||||
|
</span>
|
||||||
|
<span v-else-if="lawsMap[item.lawsTextState] === '参考' || lawsMap[item.lawsTextState] === '现行有效'"
|
||||||
|
style="color: #98E165; padding-left: 5px;">
|
||||||
|
{{ lawsMap[item.lawsTextState] }}
|
||||||
|
</span>
|
||||||
|
<span v-else style=" padding-left: 5px;">
|
||||||
|
{{ lawsMap[item.lawsTextState] }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="standSubTime" v-else >标准状态:
|
||||||
|
<span v-if="textStatusMap[item.textStatus] === '废止' || textStatusMap[item.textStatus] === '被代替'"
|
||||||
|
style="color: #F56C6C; padding-left: 5px;">
|
||||||
{{ textStatusMap[item.textStatus] }}
|
{{ textStatusMap[item.textStatus] }}
|
||||||
</span>
|
</span>
|
||||||
<span v-else-if="textStatusMap[item.textStatus] === '参考' || textStatusMap[item.textStatus] === '现行有效'"
|
<span v-else-if="textStatusMap[item.textStatus] === '参考' || textStatusMap[item.textStatus] === '现行有效'"
|
||||||
style="color: #98E165; padding-left: 5px;">
|
style="color: #98E165; padding-left: 5px;">
|
||||||
{{ textStatusMap[item.textStatus] }}
|
{{ textStatusMap[item.textStatus] }}
|
||||||
</span>
|
</span>
|
||||||
<span v-else style=" padding-left: 5px;">
|
<span v-else style=" padding-left: 5px;">
|
||||||
{{ textStatusMap[item.textStatus] }}
|
{{ textStatusMap[item.textStatus] }}
|
||||||
</span>
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="content-time">
|
||||||
<div class="content-time">
|
<div style="margin-top: 10px">
|
||||||
<div style="margin-top: 10px">
|
<span style="padding: 20px;">发布日期:
|
||||||
<span style="padding: 20px;">发布日期: {{item.issueTime}}</span>
|
{{ item.issueTime ? $moment(item.issueTime).format("YYYY-MM-DD") : "" }}</span>
|
||||||
<span style="padding: 20px;">实施日期: {{item.putTime}}</span>
|
<span style="padding: 20px;" v-if="titleType === 'POLICY'">实施日期: {{item.XCXSSRQLAWS}}</span>
|
||||||
</div>
|
<span style="padding: 20px;" v-else>实施日期: {{item.putTime}}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-else-if="!loading && !standList.length">
|
||||||
|
<van-empty description="暂无数据" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div v-else-if="!loading && !standList.length">
|
|
||||||
<van-empty description="暂无数据" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -71,31 +88,86 @@ export default {
|
|||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
searchKey: '',
|
searchKey: '',
|
||||||
|
titleType: '',
|
||||||
|
titleName: '',
|
||||||
loading: true,
|
loading: true,
|
||||||
standList: [],
|
standList: [],
|
||||||
standStateOptions: [], //存放文本状态
|
standStateOptions: [], //标准文本状态
|
||||||
|
lawsTextStateOptions: [], //政策文本状态
|
||||||
standNatureOptions: [],
|
standNatureOptions: [],
|
||||||
textStatusMap: {},// 文本状态id与name对应
|
textStatusMap: {},// 文本状态id与name对应
|
||||||
natureMap:{},
|
natureMap:{},
|
||||||
|
lawsMap:{},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
onSearch(){
|
onSearch(){
|
||||||
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',{
|
if(this.titleType === 'INLAND'){
|
||||||
page: 1,
|
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',{
|
||||||
pageSize: 20,
|
page: 1,
|
||||||
standType: 'INLAND'
|
pageSize: 20,
|
||||||
},{
|
standType: 'INLAND'
|
||||||
_this: this
|
},{
|
||||||
},res=>{
|
_this: this
|
||||||
if (res.ok){
|
},res=>{
|
||||||
this.standList = res.data.list
|
if (res.ok){
|
||||||
this.loading = false
|
this.standList = res.data.list
|
||||||
}else {
|
this.loading = false
|
||||||
this.$message.error(res.message)
|
}else {
|
||||||
}
|
this.$message.error(res.message)
|
||||||
},e=>{
|
}
|
||||||
})
|
},e=>{
|
||||||
|
})
|
||||||
|
}else if(this.titleType === 'FOREIGN'){
|
||||||
|
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',{
|
||||||
|
page: 1,
|
||||||
|
pageSize: 20,
|
||||||
|
standType: 'FOREIGN'
|
||||||
|
},{
|
||||||
|
_this: this
|
||||||
|
},res=>{
|
||||||
|
if (res.ok){
|
||||||
|
this.standList = res.data.list
|
||||||
|
this.loading = false
|
||||||
|
}else {
|
||||||
|
this.$message.error(res.message)
|
||||||
|
}
|
||||||
|
},e=>{
|
||||||
|
})
|
||||||
|
}else if(this.titleType === 'POLICY'){
|
||||||
|
this.$http.get('lawss/sarLawsInfo/page',{
|
||||||
|
page: 1,
|
||||||
|
pageSize: 20,
|
||||||
|
},{
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.ok){
|
||||||
|
this.standList = res.data.list
|
||||||
|
this.loading = false
|
||||||
|
}else {
|
||||||
|
this.$message.error(res.message)
|
||||||
|
}
|
||||||
|
}, e =>{
|
||||||
|
console.log(e);
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
||||||
|
messageType: 'ZYBZFG',
|
||||||
|
page: 1,
|
||||||
|
paeSize: 10
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.ok){
|
||||||
|
this.standList = res.data
|
||||||
|
this.loading = false
|
||||||
|
}else {
|
||||||
|
this.$message.error(res.message)
|
||||||
|
}
|
||||||
|
}, e => {
|
||||||
|
console.log(e);
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//返回上一个页面
|
//返回上一个页面
|
||||||
back(){
|
back(){
|
||||||
@@ -111,17 +183,27 @@ export default {
|
|||||||
data.forEach(item => {
|
data.forEach(item => {
|
||||||
this.$set(this.natureMap, item.value, item.label);
|
this.$set(this.natureMap, item.value, item.label);
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
setLaws(data) {
|
||||||
|
data.forEach(item => {
|
||||||
|
this.$set(this.lawsMap, item.value, item.label);
|
||||||
|
});
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.titleType = this.$route.query.standType
|
||||||
|
this.titleName = this.titleType === 'INLAND' ? '国内标准法规库' : (this.titleType === 'FOREIGN' ? '海外标准法规库' : this.titleType === 'POLICY' ? '国内外政策库' : '标准化动态库' )
|
||||||
this.onSearch()
|
this.onSearch()
|
||||||
//从数据库中查询下拉框数据
|
//从数据库中查询下拉框数据
|
||||||
this.$http.get("sys/dictype/getDicTypeListCode", {}, {
|
this.$http.get("sys/dictype/getDicTypeListCode", {}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
this.standStateOptions = res.data.WBZTCLASS; // 文本状态
|
this.standStateOptions = res.data.WBZTCLASS; // 标准文本状态
|
||||||
|
this.lawsTextStateOptions = res.data.lawsTextState //政策文本状态
|
||||||
|
console.log(this.lawsTextStateOptions);
|
||||||
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
||||||
this.setMap(this.standStateOptions);
|
this.setMap(this.standStateOptions);
|
||||||
|
this.setLaws(this.lawsTextStateOptions);
|
||||||
this.setNature(this.standNatureOptions)
|
this.setNature(this.standNatureOptions)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -132,12 +214,16 @@ export default {
|
|||||||
#domestic-stand{
|
#domestic-stand{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
overflow: auto;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: #F6F6F6;
|
background: #F6F6F6;
|
||||||
.search-head{
|
.search-head{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
z-index: 9999;
|
||||||
background: #3170A8;
|
background: #3170A8;
|
||||||
}
|
}
|
||||||
.head-title{
|
.head-title{
|
||||||
@@ -162,6 +248,11 @@ export default {
|
|||||||
.van-search__action{
|
.van-search__action{
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
.card-box{
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
top: 100px;
|
||||||
|
}
|
||||||
.card-content{
|
.card-content{
|
||||||
width: 95%;
|
width: 95%;
|
||||||
height: auto;
|
height: auto;
|
||||||
@@ -204,7 +295,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.van-loading {
|
.van-loading {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 52%;
|
top: 40%;
|
||||||
left: 37%;
|
left: 37%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,19 +19,19 @@
|
|||||||
</van-search>
|
</van-search>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="content-top" style="margin-top: 10px">
|
<div class="content-top" style="margin-top: 10px" @click="standChange('INLAND')">
|
||||||
<div class="content-box content-box1"></div>
|
<div class="content-box content-box1"></div>
|
||||||
<span class="content-span">国内标准法规</span>
|
<span class="content-span">国内标准法规</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="content-top" style="margin-top: 10px">
|
<div class="content-top" style="margin-top: 10px" @click="standChange('FOREIGN')">
|
||||||
<div class="content-box content-box2"></div>
|
<div class="content-box content-box2"></div>
|
||||||
<span class="content-span">海外标准法规</span>
|
<span class="content-span">海外标准法规</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="content-top">
|
<div class="content-top" @click="standChange('POLICY')">
|
||||||
<div class="content-box content-box3"></div>
|
<div class="content-box content-box3"></div>
|
||||||
<span class="content-span">国内外政策</span>
|
<span class="content-span">国内外政策</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="content-top">
|
<div class="content-top" @click="standChange('DYNAMIC')">
|
||||||
<div class="content-box content-box4"></div>
|
<div class="content-box content-box4"></div>
|
||||||
<span class="content-span">标准化动态</span>
|
<span class="content-span">标准化动态</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -55,17 +55,14 @@ export default {
|
|||||||
searchKey: this.searchKey
|
searchKey: this.searchKey
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
// this.$http.post('search/searchCenter/searchSarBykey',{
|
},
|
||||||
// selectIndex: 'fulltextserch',
|
standChange(type){
|
||||||
// selectValue: this.searchKey,
|
this.$router.push({
|
||||||
// selectType: 'titleSearch',
|
name: 'domesticStand',
|
||||||
// page: 1,
|
query:{
|
||||||
// pageSize: 20
|
standType: type,
|
||||||
// },{
|
}
|
||||||
// _this: this,
|
})
|
||||||
// }, res => {
|
|
||||||
// console.log(res.data);
|
|
||||||
// })
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1033,7 +1033,7 @@
|
|||||||
v-if="selectIndex !== 'items'"
|
v-if="selectIndex !== 'items'"
|
||||||
width="130">
|
width="130">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div v-if="scope.row.issue_time !== null && scope.row.issueTime !== undefined">
|
<div v-if="scope.row.issue_time !== null && scope.row.issueTime !== undefined && scope.row.issueTime !== ''">
|
||||||
{{ $dateFormat(new Date(scope.row.issueTime), "yyyy-MM-dd") }}
|
{{ $dateFormat(new Date(scope.row.issueTime), "yyyy-MM-dd") }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else></div>
|
<div v-else></div>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<div class="search-condition">
|
<div class="search-condition">
|
||||||
<div class="condition-btn" @click="conditionBtnOpen = !conditionBtnOpen" v-if="showConditionBtn">{{ toggleConditionTips }}</div>
|
<div class="condition-btn" @click="conditionBtnOpen = !conditionBtnOpen" v-if="showConditionBtn">{{ toggleConditionTips }}</div>
|
||||||
<div class="condition-content">
|
<div class="condition-content">
|
||||||
<div class="condition-item" v-if="selectIndex === 'All'">
|
<div class="condition-item">
|
||||||
<div class="condition-item-title">检索方式</div>
|
<div class="condition-item-title">检索方式</div>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
+7
-1
@@ -78,6 +78,12 @@ const routes = [
|
|||||||
component: () =>
|
component: () =>
|
||||||
import('@/pages/phone/domesticStand')
|
import('@/pages/phone/domesticStand')
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/domesticDetails',
|
||||||
|
name: 'domesticDetails',
|
||||||
|
component: () =>
|
||||||
|
import('@/pages/phone/domesticDetails')
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/loginVerify',
|
path: '/loginVerify',
|
||||||
name: 'LoginVerify',
|
name: 'LoginVerify',
|
||||||
@@ -274,7 +280,7 @@ const routes = [
|
|||||||
title: '我的问答',
|
title: '我的问答',
|
||||||
menuId: ''
|
menuId: ''
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
// {
|
// {
|
||||||
// path: '/questionsAndAnswers',
|
// path: '/questionsAndAnswers',
|
||||||
// name: 'QuestionsAndAnswers',
|
// name: 'QuestionsAndAnswers',
|
||||||
|
|||||||
Reference in New Issue
Block a user