|
@@ -39,7 +39,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="box-dashed">
|
|
|
- <div class="mg-b-20">函数公式</div>
|
|
|
+ <div class="mg-b-20">函数公式1</div>
|
|
|
<div class="edit-text">
|
|
|
<span>
|
|
|
<formula-item
|
|
@@ -316,7 +316,7 @@
|
|
|
|
|
|
<div class="text-align-c" v-show="!operationVisible">
|
|
|
<el-button type="warning" @click="$emit('hideDialog')">取消</el-button>
|
|
|
- <el-button type="primary" @click="saveFormula">保存</el-button>
|
|
|
+ <el-button type="primary" @click="saveFormula">保存-</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -602,7 +602,7 @@ export default {
|
|
|
// this.wbsid = this.$route.query.wbsid;
|
|
|
// this.eleid = this.$route.query.eleid;
|
|
|
// this.nodeid = this.$route.query.nodeid;
|
|
|
- // this.pid = this.$route.query.projectid;//项目id 私有树才有
|
|
|
+ this.pid = this.$route.query.pid;//项目id 私有树才有
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
@@ -1167,8 +1167,8 @@ export default {
|
|
|
|
|
|
//保存公式
|
|
|
saveFormula(){
|
|
|
+ console.log('保存',this.pid);
|
|
|
let obj = formulaArrayToString(this.processFormula,this.resultFormula);
|
|
|
-
|
|
|
let deviationRangeText = rangeToString(this.deviationRange.datas,obj.eleMap);
|
|
|
obj.eleMap.deviationRangeJson = JSON.stringify(this.deviationRange.datas);
|
|
|
//console.log(obj.eleMap)
|
|
@@ -1205,7 +1205,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- //console.log(obj)
|
|
|
//console.log(text);
|
|
|
if(this.formulaid){
|
|
|
updateFormula({
|
|
@@ -1218,6 +1217,8 @@ export default {
|
|
|
number:number,
|
|
|
map:JSON.stringify(obj.eleMap),
|
|
|
scope:this.globaltype,
|
|
|
+ // projectId:this.curProjiect.id||this.projectId,
|
|
|
+ projectId:this.curProjiect.id||this.pid,
|
|
|
dev:deviationRangeText
|
|
|
}).then(()=>{
|
|
|
this.$message({
|
|
@@ -1235,8 +1236,9 @@ export default {
|
|
|
number:number,
|
|
|
map:JSON.stringify(obj.eleMap),
|
|
|
scope:this.globaltype,
|
|
|
- projectId:this.curProjiect.id,
|
|
|
dev:deviationRangeText,
|
|
|
+ // projectId:this.curProjiect.id||this.projectId,
|
|
|
+ projectId:this.curProjiect.id||this.pid,
|
|
|
ver:this.version
|
|
|
}).then((res)=>{
|
|
|
if(res.data.data){
|