commit
This commit is contained in:
@@ -0,0 +1,113 @@
|
||||
<!-- 标准征求意见 -->
|
||||
<template>
|
||||
<div class="solicitopinions">
|
||||
<!-- <ul>-->
|
||||
<!-- <li v-for="item in domesticDynamics" :key="item.id" class="time-title">-->
|
||||
<!-- <div style="height: 18px; border-bottom: dashed 1px #cccccc">-->
|
||||
<!-- <a class="title" style="color: #333333;" :title="item.cname" @click="standForComments(item)">{{ item.cid }}</a>-->
|
||||
<!-- <span class="time">{{ item.endTime }}</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- </li>-->
|
||||
<!-- </ul>-->
|
||||
<el-table
|
||||
ref="selection"
|
||||
:data="domesticDynamics"
|
||||
tooltip-effect="dark"
|
||||
style="width: 100%;padding:0 0 20px 0;"
|
||||
border
|
||||
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||
style="width: 100%">
|
||||
<el-table-column
|
||||
type="index"
|
||||
width="50">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="cid"
|
||||
label="标准名称/政策名称">
|
||||
<template slot-scope="scope">
|
||||
<span @click="standForComments(scope.row)">{{ scope.row.cid }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="endTime"
|
||||
width="120"
|
||||
label="结束时间">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "Solicitopinions",
|
||||
components: {},
|
||||
mixins: [],
|
||||
data() {
|
||||
return {
|
||||
updateTime: "",
|
||||
putTime: "",
|
||||
domesticDynamics: [] //标准征求意见数据
|
||||
};
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
mounted() {
|
||||
this.getDate();
|
||||
this.getAdvice();
|
||||
// this.addDate();
|
||||
},
|
||||
methods: {
|
||||
//截取时间
|
||||
getDate(date) {
|
||||
return date != null ? date.substring(0, date.indexOf(" ")) : "";
|
||||
},
|
||||
//获取数据
|
||||
getAdvice() {
|
||||
this.$http.get("slrs/sar-public-idea/SelectAllPage", {
|
||||
page: 1,
|
||||
size: 10
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.domesticDynamics = res.data.records
|
||||
}, e => {
|
||||
|
||||
});
|
||||
},
|
||||
standForComments(item) {
|
||||
this.$store.commit("setDetailMap", this.$router.path);
|
||||
this.$router.push({
|
||||
name: "consultationDetails",
|
||||
query: {
|
||||
item: item
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.solicitopinions {
|
||||
height: 100%;
|
||||
|
||||
.time-title {
|
||||
margin: 15px;
|
||||
color: #333333;
|
||||
.time {
|
||||
float: right;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #ffffff;
|
||||
|
||||
&:hover {
|
||||
color: #e9c851;
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user