You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
529 B
30 lines
529 B
const api = require("../../../../utils/api")
|
|
|
|
Page({
|
|
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
enterpriseId: '',
|
|
enterpriseDetails: {}
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad: function (options) {
|
|
this.setData({
|
|
enterpriseId: options.id
|
|
})
|
|
this.getEnterpriseReportDetail()
|
|
},
|
|
|
|
getEnterpriseReportDetail () {
|
|
api.getEnterpriseReportDetail(this.data.enterpriseId).then(res => {
|
|
this.setData({
|
|
enterpriseDetails: res.data
|
|
})
|
|
})
|
|
},
|
|
})
|