|
@@ -602,7 +602,7 @@ export default {
|
|
// this.wbsid = this.$route.query.wbsid;
|
|
// this.wbsid = this.$route.query.wbsid;
|
|
// this.eleid = this.$route.query.eleid;
|
|
// this.eleid = this.$route.query.eleid;
|
|
// this.nodeid = this.$route.query.nodeid;
|
|
// this.nodeid = this.$route.query.nodeid;
|
|
- // this.pid = this.$route.query.projectid;//项目id 私有树才有
|
|
|
|
|
|
+ this.pid = this.$route.query.pid;//项目id 私有树才有
|
|
this.init();
|
|
this.init();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -1167,6 +1167,7 @@ export default {
|
|
|
|
|
|
//保存公式
|
|
//保存公式
|
|
saveFormula(){
|
|
saveFormula(){
|
|
|
|
+ console.log('保存',this.pid);
|
|
let obj = formulaArrayToString(this.processFormula,this.resultFormula);
|
|
let obj = formulaArrayToString(this.processFormula,this.resultFormula);
|
|
let deviationRangeText = rangeToString(this.deviationRange.datas,obj.eleMap);
|
|
let deviationRangeText = rangeToString(this.deviationRange.datas,obj.eleMap);
|
|
obj.eleMap.deviationRangeJson = JSON.stringify(this.deviationRange.datas);
|
|
obj.eleMap.deviationRangeJson = JSON.stringify(this.deviationRange.datas);
|
|
@@ -1216,7 +1217,8 @@ export default {
|
|
number:number,
|
|
number:number,
|
|
map:JSON.stringify(obj.eleMap),
|
|
map:JSON.stringify(obj.eleMap),
|
|
scope:this.globaltype,
|
|
scope:this.globaltype,
|
|
- projectId:this.curProjiect.id||this.projectId,
|
|
|
|
|
|
+ // projectId:this.curProjiect.id||this.projectId,
|
|
|
|
+ projectId:this.curProjiect.id||this.pid,
|
|
dev:deviationRangeText
|
|
dev:deviationRangeText
|
|
}).then(()=>{
|
|
}).then(()=>{
|
|
this.$message({
|
|
this.$message({
|
|
@@ -1235,7 +1237,8 @@ export default {
|
|
map:JSON.stringify(obj.eleMap),
|
|
map:JSON.stringify(obj.eleMap),
|
|
scope:this.globaltype,
|
|
scope:this.globaltype,
|
|
dev:deviationRangeText,
|
|
dev:deviationRangeText,
|
|
- projectId:this.curProjiect.id||this.projectId,
|
|
|
|
|
|
+ // projectId:this.curProjiect.id||this.projectId,
|
|
|
|
+ projectId:this.curProjiect.id||this.pid,
|
|
ver:this.version
|
|
ver:this.version
|
|
}).then((res)=>{
|
|
}).then((res)=>{
|
|
if(res.data.data){
|
|
if(res.data.data){
|