Browse Source

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

dev
巴林闲侠 1 year 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,
field: "qutity_unit",
autoIncrement: false
}
},
roadCodeStart: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: null,
comment: "开始的路段编码",
primaryKey: false,
field: "road_code_start",
autoIncrement: false
}
}, {
tableName: "project",
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": "设计单位",
"constructionControlUnit": "监理单位",
//"startTime": "开工时间",
//"remark": "备注"
//"remark": "备注",
"roadCodeStart": "起点路段编码",
}
const ProjectModal = (props) => {
const { visible, onVisibleChange, typecard, rewkeys, recortd, dispatch, setRecortd, setDelet, getData } = props
@ -214,7 +215,7 @@ const ProjectModal = (props) => {
</Spin>
)
}
function mapStateToProps(state) {
function mapStateToProps (state) {
const { depMessage } = state;
const pakData = (dep) => {
return dep.map((d) => {

Loading…
Cancel
Save