|
@@ -341,7 +341,6 @@
|
|
label:'基建工程'
|
|
label:'基建工程'
|
|
},
|
|
},
|
|
],
|
|
],
|
|
- nodeType:'1', // 节点类型
|
|
|
|
// 查询参数
|
|
// 查询参数
|
|
queryParams: {
|
|
queryParams: {
|
|
sceneHead:null, // 现场负责人
|
|
sceneHead:null, // 现场负责人
|
|
@@ -362,6 +361,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
zEngineeringInfoBo:{
|
|
zEngineeringInfoBo:{
|
|
|
|
+ nodeType:'', // 节点类型
|
|
constructAddre:'', // 施工地址
|
|
constructAddre:'', // 施工地址
|
|
constructPhone:'', // 施工人电话
|
|
constructPhone:'', // 施工人电话
|
|
constructUser:'', // 施工人
|
|
constructUser:'', // 施工人
|
|
@@ -459,7 +459,7 @@
|
|
},
|
|
},
|
|
// 节点规则校验
|
|
// 节点规则校验
|
|
nodeRules:{
|
|
nodeRules:{
|
|
- type: [
|
|
|
|
|
|
+ nodeType: [
|
|
{ required: true, message: "节点类型不能为空" ,trigger: 'blur'}
|
|
{ required: true, message: "节点类型不能为空" ,trigger: 'blur'}
|
|
],
|
|
],
|
|
constructAddre: [
|
|
constructAddre: [
|
|
@@ -483,8 +483,19 @@
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.getList();
|
|
this.getList();
|
|
|
|
+ // 根据url获取nodeType节点类型
|
|
|
|
+ this.getType();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 根据url获取nodeType节点类型
|
|
|
|
+ getType() {
|
|
|
|
+ const queryString = window.location.search;
|
|
|
|
+ const params = new URLSearchParams(queryString);
|
|
|
|
+ const type = params.get('type');
|
|
|
|
+ if (type) {
|
|
|
|
+ this.zEngineeringInfoBo.nodeType = type;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 新增顶管工程
|
|
// 新增顶管工程
|
|
addNewPipe(data){
|
|
addNewPipe(data){
|
|
this.$refs.enginPipe.openDialog({
|
|
this.$refs.enginPipe.openDialog({
|