Browse Source

在建工程添加开始路段编码字段

dev
巴林闲侠 2 years ago
parent
commit
0e92c65279
  1. 9
      api/app/lib/models/project.js
  2. 2
      scripts/1.3.1/schema/3.alert_project.sql
  3. 3
      web/client/src/sections/fillion/components/project/project.js

9
api/app/lib/models/project.js

@ -141,6 +141,15 @@ module.exports = dc => {
primaryKey: false, primaryKey: false,
field: "qutity_unit", field: "qutity_unit",
autoIncrement: false autoIncrement: false
},
roadCodeStart: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "开始的路段编码",
primaryKey: false,
field: "road_code_start",
autoIncrement: false
} }
}, { }, {
tableName: "project", tableName: "project",

2
scripts/1.3.1/schema/3.alert_project.sql

@ -0,0 +1,2 @@
alter table project
add road_code_start varchar(1024);

3
web/client/src/sections/fillion/components/project/project.js

@ -15,7 +15,8 @@ const data = {
"designUnit": "设计单位", "designUnit": "设计单位",
"constructionControlUnit": "监理单位", "constructionControlUnit": "监理单位",
//"startTime": "开工时间", //"startTime": "开工时间",
//"remark": "备注" //"remark": "备注",
"roadCodeStart": "起点路段编码",
} }
const ProjectModal = (props) => { const ProjectModal = (props) => {
const { visible, onVisibleChange, typecard, rewkeys, recortd, dispatch, setRecortd, setDelet, getData } = props const { visible, onVisibleChange, typecard, rewkeys, recortd, dispatch, setRecortd, setDelet, getData } = props

Loading…
Cancel
Save