|
@@ -674,9 +674,9 @@ export default {
|
|
|
type: this.form.type
|
|
|
}, 'add', data)
|
|
|
},
|
|
|
- // 历史查询
|
|
|
+ // #003 历史施工
|
|
|
viewSource(e) {
|
|
|
- console.log('历史查询', e)
|
|
|
+ console.log('历史施工', e)
|
|
|
this.currentId = e.id
|
|
|
let val = e.enginType + "_" + e.enginClassification
|
|
|
val = 'municipal_engineering_node'
|
|
@@ -701,11 +701,30 @@ export default {
|
|
|
// this.$refs.ConstructionDetails.open(_, this.form.type,null,null,null,null,null,this.form.type === '1' ? "工业工程" : "市政工程")
|
|
|
// this.status = 'read-only'
|
|
|
},
|
|
|
- // 历史查询
|
|
|
+ // #002 修改施工信息
|
|
|
updateviewSource(e) {
|
|
|
this.currentId = e.id
|
|
|
- this.$refs.ConstructionDetails.open(_, this.form.type,null,null,null,null,null,this.form.type === '1' ? "工业工程" : "市政工程")
|
|
|
- this.status = 'put'
|
|
|
+ // this.$refs.ConstructionDetails.open(_, this.form.type,null,null,null,null,null,this.form.type === '1' ? "工业工程" : "市政工程")
|
|
|
+ let val = e.enginType + "_" + e.enginClassification
|
|
|
+ val = 'municipal_engineering_node'
|
|
|
+ // alert(val)
|
|
|
+ getDicts(val).then(res => {
|
|
|
+ let dict = []
|
|
|
+ for (let i = 0; i < res.data.length; i++) {
|
|
|
+ dict.push({
|
|
|
+ "label": res.data[i].dictLabel,
|
|
|
+ "value": res.data[i].dictValue,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ // 市政工程功能已完成 工业工程请根据自己需求酌情修改此处代码
|
|
|
+ this.$refs.ConstructionDetails.open(this.form.type==2?dict:[
|
|
|
+ {
|
|
|
+ value: "历史数据",
|
|
|
+ label: "历史数据"
|
|
|
+ }
|
|
|
+ ], this.form.type,null,null,null,null,null,this.form.type === '1' ? "工业工程" : "市政工程")
|
|
|
+ this.status = 'put'
|
|
|
+ })
|
|
|
},
|
|
|
viewNodeSource(e) {
|
|
|
// alert('type='+e)
|