首页展示数据

This commit is contained in:
宋伟佳
2021-09-16 16:17:15 +08:00
parent 36861d93d2
commit c529e1b77f
2 changed files with 66 additions and 82 deletions
+5 -21
View File
@@ -13,7 +13,7 @@
</template>
<script>
export default {
export default {
name: 'Release',
components: {},
mixins: [],
@@ -21,7 +21,6 @@
return {
putTime: '',
standardReleaseList: [], //标准发布数据
updateTime:""
}
},
computed: {},
@@ -32,19 +31,6 @@
this.addDate()
},
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) {
let routeUrl = this.$router.resolve({
@@ -63,11 +49,10 @@
//获取数据
getAdvice() {
let obj = {}
obj.limit = 8
obj.limit = 10
this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoByList', obj, {
_this: this
}, res => {
this.standardReleaseList = res.data
let arr = res.data
arr.forEach(item => {
if(item.standName !== ""){
@@ -79,11 +64,11 @@
},
},
}
}
</script>
<style lang="less" scoped>
.release {
.release {
.time-title {
margin: 15px;
.time {
@@ -99,6 +84,5 @@
}
}
}
}
}
</style>
@@ -40,7 +40,7 @@ export default {
getAdvice() {
this.$http.get("slrs/sar-public-idea/SelectAllPage", {
page: 1,
size: 1000
size: 10
}, {
_this: this
}, res => {