Browse Source

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

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

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

@ -141,7 +141,16 @@ 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",
comment: "", comment: "",

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

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

5
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
@ -214,7 +215,7 @@ const ProjectModal = (props) => {
</Spin> </Spin>
) )
} }
function mapStateToProps(state) { function mapStateToProps (state) {
const { depMessage } = state; const { depMessage } = state;
const pakData = (dep) => { const pakData = (dep) => {
return dep.map((d) => { return dep.map((d) => {

Loading…
Cancel
Save