征求意见信息展示
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="solicitopinions">
|
<div class="solicitopinions">
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="item in domesticDynamics" :key="item.id" class="time-title">
|
<li v-for="item in domesticDynamics" :key="item.id" class="time-title" v-if="updateTime < item.endTime">
|
||||||
<a class="title" :title="item.cname" @click="standForComments(item)">{{ item.cname }}</a>
|
<a class="title" :title="item.cname" @click="standForComments(item)">{{ item.cname }}</a>
|
||||||
<span class="time">{{item.endTime}}</span>
|
<span class="time">{{ item.endTime }}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@@ -12,62 +12,83 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: 'Solicitopinions',
|
name: "Solicitopinions",
|
||||||
components: {},
|
components: {},
|
||||||
mixins: [],
|
mixins: [],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
putTime: '',
|
updateTime: "",
|
||||||
domesticDynamics: [], //标准征求意见数据
|
putTime: "",
|
||||||
}
|
domesticDynamics: [] //标准征求意见数据
|
||||||
|
};
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
watch: {},
|
watch: {},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getDate()
|
this.getDate();
|
||||||
this.getAdvice()
|
this.getAdvice();
|
||||||
|
this.addDate();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//截取时间
|
//获取当前年月日
|
||||||
getDate (date) {
|
addDate() {
|
||||||
return date != null ? date.substring(0, date.indexOf(' ')) : ''
|
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);
|
||||||
|
},
|
||||||
|
//截取时间
|
||||||
|
getDate(date) {
|
||||||
|
return date != null ? date.substring(0, date.indexOf(" ")) : "";
|
||||||
},
|
},
|
||||||
//获取数据
|
//获取数据
|
||||||
getAdvice() {
|
getAdvice() {
|
||||||
this.$http.get('slrs/sar-public-idea/SelectAllPage', {}, {
|
this.$http.get("slrs/sar-public-idea/SelectAllPage", {
|
||||||
_this: this
|
page: 1,
|
||||||
}, res => {
|
size: 1000,
|
||||||
this.domesticDynamics = res.data.records
|
}, {
|
||||||
}, e => {
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
this.domesticDynamics = res.data.records
|
||||||
|
}, e => {
|
||||||
|
|
||||||
} )
|
});
|
||||||
},
|
},
|
||||||
standForComments (item) {
|
standForComments(item) {
|
||||||
this.$store.commit('setDetailMap',this.$router.path)
|
this.$store.commit("setDetailMap", this.$router.path);
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'consultationDetails',
|
name: "consultationDetails",
|
||||||
query: {
|
query: {
|
||||||
item: item
|
item: item
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.solicitopinions {
|
.solicitopinions {
|
||||||
.time-title {
|
.time-title {
|
||||||
margin: 15px;
|
margin: 15px;
|
||||||
|
|
||||||
.time {
|
.time {
|
||||||
float: right;
|
float: right;
|
||||||
color:#FFFFFF;
|
color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: #e9c851;
|
color: #e9c851;
|
||||||
cursor:pointer;
|
cursor: pointer;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ export default {
|
|||||||
// 查询表格
|
// 查询表格
|
||||||
sarStandCompareHis() {
|
sarStandCompareHis() {
|
||||||
this.spinShow = true;
|
this.spinShow = true;
|
||||||
|
this.standCommonlySearch.type = 1;
|
||||||
var form = this.standCommonlySearch;
|
var form = this.standCommonlySearch;
|
||||||
this.$http.get("slrs/sar-public-idea/SelectAllPage", form, {
|
this.$http.get("slrs/sar-public-idea/SelectAllPage", form, {
|
||||||
_this: this
|
_this: this
|
||||||
|
|||||||
Reference in New Issue
Block a user