|
@@ -36,6 +36,8 @@ module.exports = app => {
|
|
// 获取销售人员数据
|
|
// 获取销售人员数据
|
|
const salesmanData = await ctx.service.manager.getDataById(projectData.manager_id);
|
|
const salesmanData = await ctx.service.manager.getDataById(projectData.manager_id);
|
|
const officeName = officeList[salesmanData.office];
|
|
const officeName = officeList[salesmanData.office];
|
|
|
|
+ // 获取版本信息
|
|
|
|
+ const versionList = await ctx.service.version.getAllDataByCondition({ orders: [['id', 'desc']], limit: 5, offset: 0 });
|
|
const renderData = {
|
|
const renderData = {
|
|
auditTenders,
|
|
auditTenders,
|
|
auditStages,
|
|
auditStages,
|
|
@@ -54,8 +56,9 @@ module.exports = app => {
|
|
projectData,
|
|
projectData,
|
|
salesmanData,
|
|
salesmanData,
|
|
officeName,
|
|
officeName,
|
|
|
|
+ versionList: JSON.parse(JSON.stringify(versionList).replace(/\\r\\n/g, '<br>'))
|
|
};
|
|
};
|
|
- await this.layout('dashboard/index.ejs', renderData);
|
|
|
|
|
|
+ await this.layout('dashboard/index.ejs', renderData, 'dashboard/modal.ejs');
|
|
await ctx.service.projectAccount.defaultUpdate({
|
|
await ctx.service.projectAccount.defaultUpdate({
|
|
id: this.ctx.session.sessionUser.accountId,
|
|
id: this.ctx.session.sessionUser.accountId,
|
|
last_notice: new Date(),
|
|
last_notice: new Date(),
|