commit
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="release">
|
<div class="release">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li v-for="item in standardReleaseList" :key="item.id" class="time-title" v-if="updateTime>=item.issueTime">
|
||||||
|
<a @click="handlePreview(item)" class="table-jump">{{ item.standName }}</a>
|
||||||
|
<span class="time">{{item.issueTime }}</span>
|
||||||
<li v-for="item in standardReleaseList" :key="item.id" class="time-title" >
|
<li v-for="item in standardReleaseList" :key="item.id" class="time-title" >
|
||||||
<div style="height: 18px;">
|
<div style="height: 18px;">
|
||||||
<a @click="handlePreview(item)" class="table-jump">{{ item.standName }}</a>
|
<a @click="handlePreview(item)" class="table-jump">{{ item.standName }}</a>
|
||||||
@@ -13,7 +16,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'Release',
|
name: 'Release',
|
||||||
components: {},
|
components: {},
|
||||||
mixins: [],
|
mixins: [],
|
||||||
@@ -21,6 +24,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
putTime: '',
|
putTime: '',
|
||||||
standardReleaseList: [], //标准发布数据
|
standardReleaseList: [], //标准发布数据
|
||||||
|
updateTime:""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
@@ -31,6 +35,19 @@ export default {
|
|||||||
this.addDate()
|
this.addDate()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//获取当前年月日
|
||||||
|
addDate(){
|
||||||
|
const nowDate = new Date();
|
||||||
|
const date = {
|
||||||
|
year: nowDate.getFullYear(),
|
||||||
|
month: nowDate.getMonth() + 1,
|
||||||
|
date: nowDate.getDate(),
|
||||||
|
}
|
||||||
|
const newmonth = date.month>10?date.month:'0'+date.month
|
||||||
|
const day = date.date>10?date.date:'0'+date.date
|
||||||
|
this.updateTime = date.year + '-' + newmonth + '-' + day
|
||||||
|
console.log("当前时间"+this.updateTime)
|
||||||
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview (item) {
|
handlePreview (item) {
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
@@ -53,6 +70,7 @@ export default {
|
|||||||
this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoByList', obj, {
|
this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoByList', obj, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
this.standardReleaseList = res.data
|
||||||
let arr = res.data
|
let arr = res.data
|
||||||
arr.forEach(item => {
|
arr.forEach(item => {
|
||||||
if(item.standName !== ""){
|
if(item.standName !== ""){
|
||||||
@@ -64,11 +82,11 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.release {
|
.release {
|
||||||
.time-title {
|
.time-title {
|
||||||
margin: 15px;
|
margin: 15px;
|
||||||
.time {
|
.time {
|
||||||
@@ -84,5 +102,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user