+
+
{{ item.dataTitle || '-' }}
-
-
类型:
-
- {{ item.dataType && item.dataType.length > 30 ? item.dataType.slice(0, 29) + "..." : item.dataType }}
-
+
+
+
+ 类型: {{ item.dataType || '-' }}
+
-
上传时间:
-
- {{ $moment(item.dataUploadTime).format("YYYY-MM-DD HH:mm:ss") }}
-
+
+
@@ -141,16 +139,19 @@ export default {
.standState {
padding-left: 10px;
- height: 35px;
- line-height: 35px;
+ line-height: 25px;
}
- .standSubTime {
- font-size: 3.4vw;
- padding-left: 10px;
- height: 35px;
- line-height: 35px;
- }
+ }
+ .timeFooter {
+ font-size: 3.4vw;
+ padding: 0 10px;
+ height: 35px;
+ line-height: 35px;
+ //border-top: 1px solid #cccccc;
}
}
+.card-content:first-child {
+ margin-top: 0;
+}
diff --git a/src/pages/phone/standDynamics/components/StandardRegulations.vue b/src/pages/phone/standDynamics/components/StandardRegulations.vue
index 8c6772458..a073b65dd 100644
--- a/src/pages/phone/standDynamics/components/StandardRegulations.vue
+++ b/src/pages/phone/standDynamics/components/StandardRegulations.vue
@@ -1,22 +1,27 @@
-
-
-
{{ item.standardName }}
-
-
-
标准状态:
-
- {{ dict.WBZTCLASS && dict.WBZTCLASS.find(i => i.value === item.textState).label || '-' }}
-
+
+
+
-
发布日期:
-
{{ item.releaseDate }}
+
+
+
{{ item.standardName }}
+
+
+ 标准状态: {{textStateMap[item.textState] || '-' }}
+
+
+
+
@@ -36,12 +41,13 @@ export default {
searchQuery: {
page: 1,
pageSize: 10,
- messageType: 'GNWBZFG'
+ messageType: 'GNBZFG'
},
total: 0,
list: [],
loading: false,
- dict: {}
+ dict: {},
+ textStateMap: {}
}
},
created() {
@@ -75,8 +81,14 @@ export default {
getDicTypeListCode () {
this.$http._getData('sys/dictype/getDicTypeListCode').then(res => {
this.dict = {...res.data}
+ this.setMap(this.dict.WBZTCLASS, 'textStateMap')
})
},
+ setMap(data, key) {
+ data.forEach(item => {
+ this.$set(this[key], item.value, item.label);
+ });
+ },
jumpDetails(item) {
this.$router.push({
name: "domesticDetails",
@@ -130,16 +142,21 @@ export default {
.standState {
padding-left: 10px;
- height: 35px;
- line-height: 35px;
+ //height: 35px;
+ line-height: 25px;
}
- .standSubTime {
- font-size: 3.4vw;
- padding-left: 10px;
- height: 35px;
- line-height: 35px;
- }
+ }
+ .timeFooter {
+ font-size: 3.4vw;
+ padding: 0 10px;
+ height: 35px;
+ line-height: 35px;
+ border-top: 1px solid #cccccc;
+ display: flex;
}
}
+.card-content:first-child {
+ margin-top: 0;
+}
diff --git a/src/pages/phone/standDynamics/components/UnderResearchStandards.vue b/src/pages/phone/standDynamics/components/UnderResearchStandards.vue
index 0da19b0f6..ca3eec05a 100644
--- a/src/pages/phone/standDynamics/components/UnderResearchStandards.vue
+++ b/src/pages/phone/standDynamics/components/UnderResearchStandards.vue
@@ -1,22 +1,26 @@
-
-
-
{{ item.standardName }}
-
-
-
标准状态:
-
- {{ dict.WBZTCLASS && dict.WBZTCLASS.find(i => i.value === item.textState).label || '-' }}
-
+
+
+
-
发布日期:
-
{{ item.releaseDate }}
+
+
+
{{ item.standardName }}
+
+ 标准状态: {{textStateMap[item.textState] || '-' }}
+
+
+
+
@@ -41,7 +45,8 @@ export default {
total: 0,
list: [],
loading: false,
- dict: {}
+ dict: {},
+ textStateMap: {}
}
},
created() {
@@ -75,8 +80,14 @@ export default {
getDicTypeListCode () {
this.$http._getData('sys/dictype/getDicTypeListCode').then(res => {
this.dict = {...res.data}
+ this.setMap(this.dict.WBZTCLASS, 'textStateMap')
})
},
+ setMap(data, key) {
+ data.forEach(item => {
+ this.$set(this[key], item.value, item.label);
+ });
+ },
jumpDetails(item) {
this.$router.push({
name: "domesticDetails",
@@ -130,16 +141,22 @@ export default {
.standState {
padding-left: 10px;
- height: 35px;
- line-height: 35px;
- }
-
- .standSubTime {
- font-size: 3.4vw;
- padding-left: 10px;
- height: 35px;
- line-height: 35px;
+ //height: 35px;
+ line-height: 25px;
}
}
+
+ .timeFooter {
+ font-size: 3.4vw;
+ padding: 0 10px;
+ height: 35px;
+ line-height: 35px;
+ border-top: 1px solid #cccccc;
+ display: flex;
+ }
+
+}
+.card-content:first-child {
+ margin-top: 0;
}