|
@@ -1416,6 +1416,8 @@
|
|
|
class="full-dialog"
|
|
|
>
|
|
|
<FormulaEdit
|
|
|
+ :fromcurNode="curEleTable"
|
|
|
+
|
|
|
:wbsid="id"
|
|
|
:nodeid="curTreeData.id"
|
|
|
:eleid="formulaCurRow.id"
|
|
@@ -1427,8 +1429,8 @@
|
|
|
</el-dialog>
|
|
|
<!-- 全局公式 -->
|
|
|
<el-dialog title="" :visible.sync="formulaCompVisible1" fullscreen append-to-body class="full-dialog">
|
|
|
- <FormulaEditone :wbsid="id" :nodeid="curTreeData.id" :eleid="formulaCurRow.id" :elementType="formulaCurRow.elementType" :projectid="projectid"
|
|
|
- :globaltype="formulaCurRow.globaltype" @hideDialog="formulaCompVisible1 = false"
|
|
|
+ <FormulaEditone :wbsid="id" :nodeid="curTreeData.id" :eleid="formulaCurRow.id" :elementType="formulaCurRow.elementType" :projectid="projectid" :tableType="istableType"
|
|
|
+ :globaltype="formulaCurRow.globaltype" @hideDialog="formulaCompVisible1 = false" :fromcurNode="curEleTable"
|
|
|
v-if="formulaCompVisible1">
|
|
|
</FormulaEditone>
|
|
|
</el-dialog>
|
|
@@ -1630,6 +1632,7 @@ export default {
|
|
|
};
|
|
|
|
|
|
return {
|
|
|
+ fromcurNode:{},
|
|
|
formDatass: [],
|
|
|
editElementFormTag: false,
|
|
|
jiedianId: "",
|
|
@@ -1755,6 +1758,7 @@ export default {
|
|
|
tempList: [],
|
|
|
|
|
|
curEleTable: {},
|
|
|
+ istableType:true,
|
|
|
editEleVisible: false,
|
|
|
editEleList: [],
|
|
|
eleReg: /(≥|≤|±|【】)?([^≥≤±【】]*)/,
|
|
@@ -2154,6 +2158,7 @@ export default {
|
|
|
handleEditFormula(index, row) {
|
|
|
console.log('编辑元素公式',row);
|
|
|
this.curEleTable = row;
|
|
|
+
|
|
|
selectFormElements(this.curEleTable.id).then((res) => {
|
|
|
this.editEleListFilter = res.data.data;
|
|
|
this.editEleListAll = [].concat(this.editEleListFilter);
|
|
@@ -2480,7 +2485,8 @@ export default {
|
|
|
this.formulaCurRow.globaltype = type;
|
|
|
if(type===1){
|
|
|
this.formulaCompVisible1 = true;
|
|
|
- this.formulaCurRow.elementType = true;
|
|
|
+ this.formulaCurRow.elementType = false;
|
|
|
+ this.istableType=true;
|
|
|
}else{
|
|
|
this.formulaCompVisible = true;
|
|
|
|