首页展示数据
This commit is contained in:
@@ -21,7 +21,6 @@
|
|||||||
return {
|
return {
|
||||||
putTime: '',
|
putTime: '',
|
||||||
standardReleaseList: [], //标准发布数据
|
standardReleaseList: [], //标准发布数据
|
||||||
updateTime:""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
@@ -32,19 +31,6 @@
|
|||||||
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({
|
||||||
@@ -63,11 +49,10 @@
|
|||||||
//获取数据
|
//获取数据
|
||||||
getAdvice() {
|
getAdvice() {
|
||||||
let obj = {}
|
let obj = {}
|
||||||
obj.limit = 8
|
obj.limit = 10
|
||||||
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 !== ""){
|
||||||
@@ -101,4 +86,3 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export default {
|
|||||||
getAdvice() {
|
getAdvice() {
|
||||||
this.$http.get("slrs/sar-public-idea/SelectAllPage", {
|
this.$http.get("slrs/sar-public-idea/SelectAllPage", {
|
||||||
page: 1,
|
page: 1,
|
||||||
size: 1000
|
size: 10
|
||||||
}, {
|
}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user