浏览代码

编辑元素页面编辑公式跳转参数修改

duy 2 年之前
父节点
当前提交
e4ddbb6c62
共有 2 个文件被更改,包括 9 次插入3 次删除
  1. 7 2
      src/views/manager/projectinfo/editElement/editElement.vue
  2. 2 1
      src/views/manager/projectinfo/tree.vue

+ 7 - 2
src/views/manager/projectinfo/editElement/editElement.vue

@@ -224,7 +224,8 @@
 
       <!-- 公式 -->
       <el-dialog title="元素公式" :visible.sync="formulaCompVisible" fullscreen append-to-body class="full-dialog">
-        <FormulaEdit :wbsid="wbsid" :nodeid="nodeid" :eleid="eleid" :projectid="pid" @hideDialog="formulaCompVisible = false" v-if="formulaCompVisible"  :globaltype="globaltype"></FormulaEdit>
+        <FormulaEdit :wbsid="wbsid" :nodeid="nodeid" :eleid="eleid" :projectid="pid" @hideDialog="formulaCompVisible = false" v-if="formulaCompVisible"  
+        :globaltype="globaltype" :fromcurNode="editElementQuery"></FormulaEdit>
       </el-dialog>
       <el-dialog title="" :visible.sync="formulaCompVisible1" fullscreen append-to-body class="full-dialog">
       <FormulaEditone  :wbsid="wbsid" :nodeid="nodeid" :eleid="eleid"   :elementType="elementType" :projectid="pid"   :fromcurNode="curEleTable"
@@ -292,7 +293,11 @@ export default {
       default:false
     },
     curEleTable:{
-       type:Object,
+      type:Object,
+      default:{}
+    },
+    editElementQuery:{
+      type:Object,
       default:{}
     }
   },

+ 2 - 1
src/views/manager/projectinfo/tree.vue

@@ -1422,7 +1422,7 @@
       @close="closeformulaComp"
     >
       <FormulaEdit
-        :fromcurNode="curEleTable"
+        :fromcurNode="curTreeData"
        
         :wbsid="id"
         :nodeid="curTreeData.id"
@@ -1450,6 +1450,7 @@
       class="full-dialog"
     >
       <EditElement
+        :editElementQuery="curTreeData"
         :pkeyId="editElementQuery.pkeyId"
         :excelId="editElementQuery.excelId"
         :id="editElementQuery.id"