+
+ 加载中...
-
-
{{item.standName}}
-
标准性质:
-
-
+
+
+
{{item.lawsNumber}}
+
{{item.standSortShow + '  ' + item.standNumber + '-' + item.standYear }}
+
+
+
{{item.standName}}
+
标准性质:
+
{{ natureMap[item.standNature] }}
-
+
{{ natureMap[item.standNature] }}
-
-
标准状态:
-
+
+
标准状态:
+
+ {{ lawsMap[item.lawsTextState] }}
+
+
+ {{ lawsMap[item.lawsTextState] }}
+
+
+ {{ lawsMap[item.lawsTextState] }}
+
+
+
标准状态:
+
{{ textStatusMap[item.textStatus] }}
-
+
{{ textStatusMap[item.textStatus] }}
-
+
{{ textStatusMap[item.textStatus] }}
+
-
-
-
- 发布日期: {{item.issueTime}}
- 实施日期: {{item.putTime}}
-
+
+
+ 发布日期:
+ {{ item.issueTime ? $moment(item.issueTime).format("YYYY-MM-DD") : "" }}
+ 实施日期: {{item.XCXSSRQLAWS}}
+ 实施日期: {{item.putTime}}
+
+
+
+
+
-
-
-
@@ -71,31 +88,86 @@ export default {
data(){
return{
searchKey: '',
+ titleType: '',
+ titleName: '',
loading: true,
standList: [],
- standStateOptions: [], //存放文本状态
+ standStateOptions: [], //标准文本状态
+ lawsTextStateOptions: [], //政策文本状态
standNatureOptions: [],
textStatusMap: {},// 文本状态id与name对应
natureMap:{},
+ lawsMap:{},
}
},
methods:{
onSearch(){
- this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',{
- page: 1,
- pageSize: 20,
- standType: 'INLAND'
- },{
- _this: this
- },res=>{
- if (res.ok){
- this.standList = res.data.list
- this.loading = false
- }else {
- this.$message.error(res.message)
- }
- },e=>{
- })
+ if(this.titleType === 'INLAND'){
+ this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',{
+ page: 1,
+ pageSize: 20,
+ standType: 'INLAND'
+ },{
+ _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 === '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(){
@@ -111,17 +183,27 @@ export default {
data.forEach(item => {
this.$set(this.natureMap, item.value, item.label);
});
- }
+ },
+ setLaws(data) {
+ data.forEach(item => {
+ this.$set(this.lawsMap, item.value, item.label);
+ });
+ },
},
mounted() {
+ this.titleType = this.$route.query.standType
+ this.titleName = this.titleType === 'INLAND' ? '国内标准法规库' : (this.titleType === 'FOREIGN' ? '海外标准法规库' : this.titleType === 'POLICY' ? '国内外政策库' : '标准化动态库' )
this.onSearch()
//从数据库中查询下拉框数据
this.$http.get("sys/dictype/getDicTypeListCode", {}, {
_this: this
}, 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.setMap(this.standStateOptions);
+ this.setLaws(this.lawsTextStateOptions);
this.setNature(this.standNatureOptions)
});
}
@@ -132,12 +214,16 @@ export default {
#domestic-stand{
width: 100%;
height: 100%;
+ overflow: auto;
margin: 0;
padding: 0;
background: #F6F6F6;
.search-head{
width: 100%;
height: 100px;
+ position: absolute;
+ top: 0;
+ z-index: 9999;
background: #3170A8;
}
.head-title{
@@ -162,6 +248,11 @@ export default {
.van-search__action{
color: #FFFFFF;
}
+ .card-box{
+ height: 100%;
+ position: relative;
+ top: 100px;
+ }
.card-content{
width: 95%;
height: auto;
@@ -204,7 +295,7 @@ export default {
}
.van-loading {
position: absolute;
- top: 52%;
+ top: 40%;
left: 37%;
}
}
diff --git a/src/pages/phone/phoneHome.vue b/src/pages/phone/phoneHome.vue
index d8df30607..ce9f54a05 100644
--- a/src/pages/phone/phoneHome.vue
+++ b/src/pages/phone/phoneHome.vue
@@ -19,19 +19,19 @@