diff --git a/api/app/lib/controllers/data/index.js b/api/app/lib/controllers/data/index.js index 7efc18da..e2e8135f 100644 --- a/api/app/lib/controllers/data/index.js +++ b/api/app/lib/controllers/data/index.js @@ -91,16 +91,17 @@ async function dataExport(ctx) { //过滤project部门字段 if (modalOption.tableName === 'Project') { const { entryName, projectMileage, investment, buildUnit, - constructionControlUnit, designUnit, constructionUnit, qutityUnit, startTime, remark } = tableAttributes + constructionControlUnit, designUnit, constructionUnit, qutityUnit, startTime, remark, done } = tableAttributes tableAttributesCopy = { entryName, projectMileage, investment, buildUnit, - constructionControlUnit, designUnit, constructionUnit, qutityUnit, startTime, remark + constructionControlUnit, designUnit, constructionUnit, qutityUnit, startTime, remark, done } } else { tableAttributesCopy = tableAttributes } let header = [] + console.log('tableAttributesCopy', tableAttributesCopy) for (let k in tableAttributesCopy) { let comment = tableAttributes[k].comment if (k != 'id' && comment) { diff --git a/api/app/lib/controllers/overview/building.js b/api/app/lib/controllers/overview/building.js index 69ed2d13..df819587 100644 --- a/api/app/lib/controllers/overview/building.js +++ b/api/app/lib/controllers/overview/building.js @@ -196,7 +196,7 @@ async function roadState(ctx) { } } - if (p.buildUnit && p.done) { + if (p.buildUnit && !p.done) { let townName = p.buildUnit.replace('人民政府', '').replace('南昌县', '').replace('管委会', '') if (roadState.townProject[townName]) { roadState.townProject[townName] += 1 diff --git a/api/app/lib/models/project.js b/api/app/lib/models/project.js index 0a7c047d..8ae65cf0 100644 --- a/api/app/lib/models/project.js +++ b/api/app/lib/models/project.js @@ -47,7 +47,7 @@ module.exports = dc => { type: DataTypes.STRING, allowNull: true, defaultValue: null, - comment: "建设单位", + comment: "业主单位", primaryKey: false, field: "build_unit", autoIncrement: false @@ -101,7 +101,7 @@ module.exports = dc => { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: null, - comment: null, + comment: "是否已完成", primaryKey: false, field: "done", autoIncrement: false @@ -137,7 +137,7 @@ module.exports = dc => { type: DataTypes.STRING, allowNull: true, defaultValue: null, - comment: "质量检测单位", + comment: "质量监督单位", primaryKey: false, field: "qutity_unit", autoIncrement: false diff --git a/scripts/1.2.3/schema/7.update_project.sql b/scripts/1.2.3/schema/7.update_project.sql new file mode 100644 index 00000000..f4433418 --- /dev/null +++ b/scripts/1.2.3/schema/7.update_project.sql @@ -0,0 +1,8 @@ + + +COMMENT ON COLUMN project.build_unit IS '业主单位'; +COMMENT ON COLUMN project.qutity_unit IS '质量监督单位'; +COMMENT ON COLUMN project.done IS '是否已完成'; + + + diff --git a/web/client/src/sections/fillion/components/maintenanceTable.js b/web/client/src/sections/fillion/components/maintenanceTable.js index d7377c55..97c4c786 100644 --- a/web/client/src/sections/fillion/components/maintenanceTable.js +++ b/web/client/src/sections/fillion/components/maintenanceTable.js @@ -23,10 +23,12 @@ const DetailForm = (props) => { { key: '所在路段', name: 'road' }, { key: '具体位置', name: 'address' }, { key: '巡查内容', name: 'content' }, + { key: '路线代码', name: 'codeRoad' }, // { key: '病害照片', name: 'scenePic' }, { key: '养护前', name: 'conserveBeforePic' }, { key: '养护中', name: 'conserveUnderwayPic' }, { key: '养护后', name: 'conserveAfterPic' }, + ]; const renderContent = (data) => { diff --git a/web/client/src/sections/fillion/components/patrolTable.js b/web/client/src/sections/fillion/components/patrolTable.js index 86790550..36d8b928 100644 --- a/web/client/src/sections/fillion/components/patrolTable.js +++ b/web/client/src/sections/fillion/components/patrolTable.js @@ -40,13 +40,14 @@ const DetailForm = (props) => { const keyList = [ // { key: '编号', name: 'id' }, + // isPatrol ?'巡查管理详情' :isRoad ? '建设上报详情' : '异常反馈详情' { key: '工程类型', name: 'projectType', skip: !isPatrol }, { key: '反馈类型', name: 'projectType', skip: !isAnomaly }, { key: '工程名称', name: 'projectName', skip: !isRoad }, { key: '所在路段', name: 'road', skip: isRoad }, { key: '具体位置', name: 'address' }, { key: '巡查内容', name: 'content' }, - { key: '路线代码', name: 'codeRoad' }, + { key: '路线代码', name: 'codeRoad', skip: !isAnomaly && !isPatrol }, { key: '现场照片', name: 'scenePic' }, { key: '处理详情', name: 'handleContent', skip: !isAnomaly }, { key: '处理图片', name: 'handlePic', skip: !isAnomaly }, @@ -63,9 +64,7 @@ const DetailForm = (props) => {