|
@@ -469,7 +469,7 @@
|
|
|
class="mg-l-10"
|
|
|
type="primary"
|
|
|
@click="handleEditFormula(scope.$index, scope.row)"
|
|
|
- >编辑元素公式</el-link
|
|
|
+ >编辑元素公式.</el-link
|
|
|
>
|
|
|
<el-link
|
|
|
class="mg-l-10"
|
|
@@ -577,7 +577,7 @@
|
|
|
class="mg-l-10"
|
|
|
type="primary"
|
|
|
@click="handleEditFormula(scope.$index, scope.row)"
|
|
|
- >编辑元素公式</el-link
|
|
|
+ >编辑元素公式..</el-link
|
|
|
>
|
|
|
<el-link
|
|
|
class="mg-l-10"
|
|
@@ -1172,7 +1172,7 @@
|
|
|
</el-dialog>
|
|
|
<!-- 元素公式 -->
|
|
|
<el-dialog
|
|
|
- title="元素公式22"
|
|
|
+ title="元素公式.."
|
|
|
:visible.sync="editEleFormulaVisible"
|
|
|
width="800px"
|
|
|
append-to-body
|
|
@@ -1202,13 +1202,13 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-link
|
|
|
:type="scope.row.globalFormula == 1 ? 'warning' : 'primary'"
|
|
|
- @click="toFormulaEdit(scope.row,1)"
|
|
|
+ @click="toFormulaEdit(scope.row,10)"
|
|
|
>全局公式</el-link
|
|
|
>
|
|
|
<el-link
|
|
|
class="mg-l-10"
|
|
|
:type="scope.row.isSaveFormula == 1 ? 'warning' : 'primary'"
|
|
|
- @click="toFormulaEdit(scope.row,2)"
|
|
|
+ @click="toFormulaEdit(scope.row,20)"
|
|
|
>节点公式</el-link
|
|
|
>
|
|
|
<!-- <el-link
|
|
@@ -2177,10 +2177,8 @@ export default {
|
|
|
return res.code;
|
|
|
},
|
|
|
handleEditFormula(index, row) {
|
|
|
- console.log('编辑元素公式',row);
|
|
|
this.curEleTable = row;
|
|
|
-
|
|
|
- selectFormElements(this.curEleTable.initTableId).then((res) => {
|
|
|
+ selectFormElements(this.curEleTable.initTableId,{type:0}).then((res) => {
|
|
|
this.editEleListFilter = res.data.data;
|
|
|
this.editEleListAll = [].concat(this.editEleListFilter);
|
|
|
});
|
|
@@ -2518,7 +2516,7 @@ export default {
|
|
|
//关闭公式弹窗
|
|
|
closeformulaComp(){
|
|
|
console.log('关闭');
|
|
|
- selectFormElements( this.curEleTable.initTableId).then((res) => {
|
|
|
+ selectFormElements( this.curEleTable.initTableId,{type:0}).then((res) => {
|
|
|
this.editEleListFilter = res.data.data;
|
|
|
this.editEleListAll = [].concat(this.editEleListFilter);
|
|
|
})
|
|
@@ -2527,7 +2525,7 @@ export default {
|
|
|
//关闭公式弹窗
|
|
|
closeformulaComp1(){
|
|
|
console.log('关闭');
|
|
|
- selectFormElements( this.curEleTable.initTableId).then((res) => {
|
|
|
+ selectFormElements( this.curEleTable.initTableId,{type:0}).then((res) => {
|
|
|
this.editEleListFilter = res.data.data;
|
|
|
this.editEleListAll = [].concat(this.editEleListFilter);
|
|
|
})
|
|
@@ -3375,7 +3373,7 @@ export default {
|
|
|
tolinkEle(row){
|
|
|
this.curLinkEleTable = row;
|
|
|
this.linkCheckVisible = true;
|
|
|
- selectFormElements(row.id).then((res) => {
|
|
|
+ selectFormElements(row.id,{type:0}).then((res) => {
|
|
|
res.data.data.forEach((ele)=>{
|
|
|
ele.checked = false;
|
|
|
ele.show = true;
|