|
@@ -329,6 +329,7 @@ import {
|
|
|
putEngineeEngineeIndustry,
|
|
|
QueryEngineeIndustry, UpdateEngineeIndustry
|
|
|
} from '@/api/zdsz/engineeringIndustry'
|
|
|
+import {getDicts} from "@/api/system/dict/data";
|
|
|
import EngineePipe from '@/components/EngineePipe'
|
|
|
import {validPhoneMobile} from '@/api/rules'
|
|
|
import ConstructionDetails from '@/components/ConstructionDetails/index.vue'
|
|
@@ -692,10 +693,30 @@ export default {
|
|
|
},
|
|
|
// 历史查询
|
|
|
viewSource(e) {
|
|
|
- console.log(e)
|
|
|
+ console.log('历史查询', e)
|
|
|
this.currentId = e.id
|
|
|
- this.$refs.ConstructionDetails.open(_, this.form.type,null,null,null,null,null,this.form.type === '1' ? "工业工程" : "市政工程")
|
|
|
- this.status = 'read-only'
|
|
|
+ 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 = 'read-only'
|
|
|
+ })
|
|
|
+ // this.$refs.ConstructionDetails.open(_, this.form.type,null,null,null,null,null,this.form.type === '1' ? "工业工程" : "市政工程")
|
|
|
+ // this.status = 'read-only'
|
|
|
},
|
|
|
// 历史查询
|
|
|
updateviewSource(e) {
|
|
@@ -704,10 +725,13 @@ export default {
|
|
|
this.status = 'put'
|
|
|
},
|
|
|
viewNodeSource(e) {
|
|
|
- console.log(e)
|
|
|
+ // alert('type='+e)
|
|
|
+ if(!e)return
|
|
|
+ console.log('todo: 获取数据', e)
|
|
|
// todo: 获取数据
|
|
|
QueryEngineeIndustry({
|
|
|
- id: this.currentId
|
|
|
+ id: this.currentId,
|
|
|
+ type: e
|
|
|
}).then(res => {
|
|
|
console.log(res)
|
|
|
this.form = res.data
|