瀏覽代碼

bug修复

ellisran 7 月之前
父節點
當前提交
0bbda94241
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      app/controller/tender_controller.js

+ 3 - 2
app/controller/tender_controller.js

@@ -559,6 +559,7 @@ module.exports = app => {
                 const tenderALLInfo = await ctx.service.tender.getDataById(tender.id);
                 const hadMap = tenderALLInfo.had_map === 0 ? 3 : tenderALLInfo.had_map;// 0为初始值,因为默认可能会变化,所以暂时把0都默认为1。共三种模式坐标模式1,图片模式2,无图模式3。
                 // const tenderMapList = await ctx.service.tenderMap.getAllDataByCondition({ where: { tid: tender.id } });
+                const tenderMapList = [];
                 // 默认坐标,否则则取办事处坐标
                 // const projectData = await ctx.service.project.getDataById(ctx.session.sessionProject.id);
                 // let map_json = {
@@ -605,8 +606,8 @@ module.exports = app => {
                     map_pic: tenderALLInfo.map_pic,
                     jsFiles: this.app.jsFiles.common.concat(this.app.jsFiles.tender.tenderInfo),
                     gclChapter,
-                    // tenderMapList,
-                    // map_json,
+                    tenderMapList,
+                    map_json,
                     fujianOssPath: ctx.app.config.fujianOssPath,
                     canFinish,
                     buildStatus: tenderConst.buildStatus,