var advanceProjectTable = { conf: { // 大于n个字段为空则不展示 maxNullCount: 6 }, platform: goTemplateData.platform, params: goTemplateData.params, content: goTemplateData.params.obj, tableInfo: { projectname: '', // 项目名称 area: '', // 省份 owner: '', // 业主单位 buyerclass: '', // 业主类型 total_investment: '', // 总投资 projectperiod: '', // 建设年限 projectaddr: '', // 建设地点 approvedept: '', // 审批机关 approvecontent: '', // 审批事项 approvecode: '', // 审批代码 approvenumber: '', // 批准文号 approvetime: '', // 审批时间 approvestatus: '', // 审批结果 project_scale: '', // 建设内容 }, init: function () { this.initTableListInfo() }, initTableListInfo: function () { var content = this.content if (!content) return this.tableInfo.projectname = content.projectname || '' this.tableInfo.area = content.area || '' this.tableInfo.owner = content.owner || '' // buyerclass为其他,则展示为空 this.tableInfo.buyerclass = content.buyerclass || '' this.tableInfo.buyerclass = this.tableInfo.buyerclass === '其它' ? '' : this.tableInfo.buyerclass this.tableInfo.total_investment = content.total_investment || '' this.tableInfo.projectperiod = content.projectperiod || '' this.tableInfo.projectaddr = content.projectaddr || '' this.tableInfo.approvedept = content.approvedept || '' this.tableInfo.approvecontent = content.approvecontent || '' this.tableInfo.approvecode = content.approvecode || '' this.tableInfo.approvenumber = content.approvenumber || '' this.tableInfo.approvetime = content.approvetime || '' this.tableInfo.approvestatus = content.approvestatus || '' this.tableInfo.project_scale = content.project_scale || '' }, getTableHTML: function () { var html = '' html += `
项目名称
${this.tableInfo.projectname}
省份
${this.tableInfo.area}
业主单位
业主单位
${this.tableInfo.owner}
业主类型
${this.tableInfo.buyerclass}
总投资
${this.tableInfo.total_investment}
建设年限
${this.tableInfo.projectperiod}
建设地点
${this.tableInfo.projectaddr}
审批机关
${this.tableInfo.approvedept}
审批事项
${this.tableInfo.approvecontent}
审批代码
${this.tableInfo.approvecode}
批准文号
${this.tableInfo.approvenumber}
审批时间
${this.tableInfo.approvetime}
审批结果
${this.tableInfo.approvestatus}
建设内容
${this.tableInfo.project_scale}