Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
yanyizhou
2021-09-09 16:44:55 +08:00
4 changed files with 51 additions and 28 deletions
+1
View File
@@ -1501,6 +1501,7 @@ export default {
} }
} }
} }
.ztree li span.button { width: 6px }
.ztree li span.button.add {margin-left:2px; margin-right: -1px; background-position:-144px 0; vertical-align:top; *vertical-align:middle} .ztree li span.button.add {margin-left:2px; margin-right: -1px; background-position:-144px 0; vertical-align:top; *vertical-align:middle}
div#rMenu {position:absolute; visibility:hidden; top:0;text-align: left;padding: 2px;} div#rMenu {position:absolute; visibility:hidden; top:0;text-align: left;padding: 2px;}
div#rMenu ul { div#rMenu ul {
@@ -61,7 +61,7 @@
standMap[sarStandardsInfoEO.standNature] || '-' standMap[sarStandardsInfoEO.standNature] || '-'
}}</span></p> }}</span></p>
<p class="half"> <p class="half">
<label style=" margin-right: 132px;" <label style=" margin-right: 150px;"
title="“计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。" title="“计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。"
>文本状态</label> >文本状态</label>
<span style="color: #409EFF;">{{ textStatusMap[sarStandardsInfoEO.textStatus] || '-' }}</span> <span style="color: #409EFF;">{{ textStatusMap[sarStandardsInfoEO.textStatus] || '-' }}</span>
@@ -2904,7 +2904,6 @@ export default {
location.half = half location.half = half
location.showAll = false location.showAll = false
}) })
console.log(standEO);
this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list', { this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list', {
id: this.$route.params.id id: this.$route.params.id
@@ -2925,6 +2924,7 @@ export default {
}) })
this.dynamicFormField = displayLocation this.dynamicFormField = displayLocation
}) })
console.log(displayLocation)
sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation)) sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation))
this.loading = false this.loading = false
}) })
@@ -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