|
@@ -1191,9 +1191,15 @@
|
|
|
<el-table-column align="center" label="操作" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<el-link
|
|
|
+ :type="scope.row.globalFormula == 1 ? 'warning' : 'primary'"
|
|
|
+ @click="toFormulaEdit(scope.row,1)"
|
|
|
+ >全局公式</el-link
|
|
|
+ >
|
|
|
+ <el-link
|
|
|
+ class="mg-l-10"
|
|
|
:type="scope.row.isSaveFormula == 1 ? 'warning' : 'primary'"
|
|
|
- @click="toFormulaEdit(scope.row)"
|
|
|
- >公式配置</el-link
|
|
|
+ @click="toFormulaEdit(scope.row,10)"
|
|
|
+ >节点公式</el-link
|
|
|
>
|
|
|
<!-- <el-link
|
|
|
class="mg-l-10"
|
|
@@ -1402,9 +1408,9 @@
|
|
|
class="full-dialog"
|
|
|
>
|
|
|
<FormulaEdit
|
|
|
- :wbsid="id"
|
|
|
- :nodeid="curTreeData.id"
|
|
|
+ :nodeid="curTreeData.id"
|
|
|
:eleid="formulaCurRow.id"
|
|
|
+ :globaltype="formulaCurRow.globaltype"
|
|
|
:projectid="projectid"
|
|
|
@hideDialog="formulaCompVisible = false"
|
|
|
v-if="formulaCompVisible"
|
|
@@ -2321,7 +2327,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
//跳转到公式配置页面
|
|
|
- toFormulaEdit(row) {
|
|
|
+ toFormulaEdit(row,type) {
|
|
|
// this.$router.push({
|
|
|
// path: '/formula/edit',
|
|
|
// query: {
|
|
@@ -2333,6 +2339,7 @@ export default {
|
|
|
// });
|
|
|
|
|
|
this.formulaCurRow = row;
|
|
|
+ this.formulaCurRow.globaltype = type;
|
|
|
this.formulaCompVisible = true;
|
|
|
},
|
|
|
|