Browse Source

全局与节点传参修改

duy 2 năm trước cách đây
mục cha
commit
e2b0fd892a

+ 3 - 3
src/views/manager/projectinfo/tree.vue

@@ -1202,13 +1202,13 @@
           <template slot-scope="scope">
             <el-link
               :type="scope.row.globalFormula == 1 ? 'warning' : 'primary'"
-              @click="toFormulaEdit(scope.row,10)"
+              @click="toFormulaEdit(scope.row,1)"
               >全局公式</el-link
             >
             <el-link
               class="mg-l-10"
               :type="scope.row.isSaveFormula == 1 ? 'warning' : 'primary'"
-              @click="toFormulaEdit(scope.row,20)"
+              @click="toFormulaEdit(scope.row,2)"
               >节点公式</el-link
             >
             <!-- <el-link
@@ -2505,7 +2505,7 @@ export default {
 
       this.formulaCurRow = row;
       this.formulaCurRow.globaltype = type;
-      if(type===10){
+      if(type===1){
           this.formulaCompVisible1 = true;
            this.formulaCurRow.elementType = false;
             this.istableType=true;

+ 1 - 1
src/views/manager/wbsinfo/element.vue

@@ -236,7 +236,7 @@
           <template slot-scope="scope">
             <el-link
               :type="scope.row.globalFormula == 1 ? 'warning' : 'primary'"
-              @click="toFormulaEdit(scope.row,0)"
+              @click="toFormulaEdit(scope.row,1)"
               >全局公式</el-link
             >
             <!-- <el-link