Преглед на файлове

全局与节点传参修改

duy преди 2 години
родител
ревизия
e2b0fd892a
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 3 3
      src/views/manager/projectinfo/tree.vue
  2. 1 1
      src/views/manager/wbsinfo/element.vue

+ 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