|
@@ -66,24 +66,16 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-show="operationVisible" class="operation-box flex1 flex flex-d-c ov-hidden">
|
|
<div v-show="operationVisible" class="operation-box flex1 flex flex-d-c ov-hidden">
|
|
- <div>选择参数设置</div>
|
|
|
|
|
|
+ <div class="flex ">
|
|
|
|
+ <div>选择参数设置</div>
|
|
|
|
+ <div style="margin-left: 29%;font-weight: 700;">公式配置</div>
|
|
|
|
+ </div>
|
|
<div class="flex flex-d-c flex1 ov-hidden">
|
|
<div class="flex flex-d-c flex1 ov-hidden">
|
|
<el-row :gutter="20" class="flex1 ov-hidden">
|
|
<el-row :gutter="20" class="flex1 ov-hidden">
|
|
<el-col :span="8" class="h-100p">
|
|
<el-col :span="8" class="h-100p">
|
|
<el-card shadow="never" v-loading="treeLoad" class="h-100p ov-auto">
|
|
<el-card shadow="never" v-loading="treeLoad" class="h-100p ov-auto">
|
|
<el-scrollbar style="height: 100%">
|
|
<el-scrollbar style="height: 100%">
|
|
- <!-- <el-tree
|
|
|
|
- class="filter-tree"
|
|
|
|
- lazy
|
|
|
|
- :load="loadNode"
|
|
|
|
- @node-click="getNodeDetail"
|
|
|
|
- :props="defaultProps"
|
|
|
|
- :expand-on-click-node="false"
|
|
|
|
- highlight-current
|
|
|
|
- node-key="id"
|
|
|
|
- ref="tree"
|
|
|
|
- >
|
|
|
|
- </el-tree> -->
|
|
|
|
|
|
+
|
|
<el-tree
|
|
<el-tree
|
|
class="filter-tree"
|
|
class="filter-tree"
|
|
:data="treeData"
|
|
:data="treeData"
|
|
@@ -100,70 +92,77 @@
|
|
</el-card>
|
|
</el-card>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="16" class="h-100p flex flex-d-c ov-hidden">
|
|
<el-col :span="16" class="h-100p flex flex-d-c ov-hidden">
|
|
- <div class="flex" style="justify-content: space-between;width:100%">
|
|
|
|
- <el-select v-model="eleTableId" @change="getTableEle" placeholder="请选择元素表1" style="width:45%">
|
|
|
|
- <el-option v-if="paramDataList.length" label="选择节点参数2" value="选择节点参数"></el-option>
|
|
|
|
- <el-option v-for="item in eleTableList" :key="item.id" :label="item.tableName" :value="(item.pkeyId!==null&&item.pkeyId!==-1)?item.pkeyId:item.id"></el-option>
|
|
|
|
- </el-select>
|
|
|
|
- <!-- 搜索元素下拉框 -->
|
|
|
|
- <el-select v-model="input3" filterable clearable placeholder="搜索元素字段" @change="getInput" style="width:45%">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in eleList1"
|
|
|
|
- :key="item.id"
|
|
|
|
- :label="item.eName"
|
|
|
|
- :value="item.eName">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="mg-t-10 no-mb-col flex1 ov-hidden">
|
|
|
|
- <el-scrollbar style="height: 100%">
|
|
|
|
- <el-row v-loading="eleListable" v-if="eleList.length>0">
|
|
|
|
- <el-col :span="6" v-for="item in eleList" :key="item.id" >
|
|
|
|
- <div class="ele-box">
|
|
|
|
- <span v-if="item.k">{{item.name}}</span>
|
|
|
|
- <span v-else>{{item.eName}}</span>
|
|
|
|
- <el-checkbox v-model="item.checked" @change="value => eleChang(value,item)"></el-checkbox>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="operation-box">
|
|
|
|
+ <!-- 运算符选择区域 -->
|
|
|
|
+ <div class="flex jc-sb operation-symbol-box">
|
|
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
- <el-row v-else style="text-align: center;line-height: 328px;border:1px solid #bbb">暂无数据</el-row>
|
|
|
|
- </el-scrollbar>
|
|
|
|
- </div>
|
|
|
|
- <div class="flex jc-sb">
|
|
|
|
- <!-- <div>定位数据位置:</div> -->
|
|
|
|
- <div class="icon-box">
|
|
|
|
- <el-link :underline="false" icon="el-icon-delete" type="danger" @click="removeSelect"></el-link>
|
|
|
|
- <el-link :underline="false" type="primary" @click="addOperator('+')" icon="el-icon-circle-plus-outline"></el-link>
|
|
|
|
- <el-link :underline="false" type="primary" @click="addOperator('-')" icon="el-icon-remove-outline"></el-link>
|
|
|
|
- <el-link :underline="false" type="primary" @click="addOperator('*')" icon="el-icon-circle-close"></el-link>
|
|
|
|
- <el-link :underline="false" type="primary" @click="addOperator('%')">÷</el-link>
|
|
|
|
- </div>
|
|
|
|
- <div>
|
|
|
|
- <!-- <el-link :underline="false" type="primary" class="mg-r-20" @click="eleAddFormula">元素添加到公式</el-link> -->
|
|
|
|
- <el-link :underline="false" type="primary" class="mg-r-10" @click="addBrackets('(',false)">(</el-link>
|
|
|
|
- <el-link :underline="false" type="primary" class="mg-r-10" @click="addBrackets(')',true)">)</el-link>
|
|
|
|
- <!-- <el-link :underline="false" type="primary" class="mg-r-10" @click="addBrackets('[',false)">【</el-link>
|
|
|
|
- <el-link :underline="false" type="primary" class="mg-r-10" @click="addBrackets(']',true)">】</el-link> -->
|
|
|
|
- <el-link :underline="false" type="primary" @click="addText">输入值</el-link>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="border-grey sele-ele-box" style="height:50px">
|
|
|
|
- <draggable v-model="selectEleFormula">
|
|
|
|
- <formula-item
|
|
|
|
- v-for="(item,index) in selectEleFormula" :key="index"
|
|
|
|
- :item="item" @click="obj => eleFormulaClick(obj,index)"
|
|
|
|
- >
|
|
|
|
- </formula-item>
|
|
|
|
- </draggable>
|
|
|
|
|
|
+ <div class="icon-box ">
|
|
|
|
+ <span class="text-sm" >插入运算符:</span>
|
|
|
|
+
|
|
|
|
+ <el-link :underline="false" type="primary" @click="addOperator('+')" icon="el-icon-circle-plus-outline"></el-link>
|
|
|
|
+ <el-link :underline="false" type="primary" @click="addOperator('-')" icon="el-icon-remove-outline"></el-link>
|
|
|
|
+ <el-link :underline="false" type="primary" @click="addOperator('*')" icon="el-icon-circle-close"></el-link>
|
|
|
|
+ <el-link :underline="false" type="primary" @click="addOperator('%')">÷</el-link>
|
|
|
|
+ <el-link :underline="false" type="primary" class="mg-r-10" @click="addBrackets('(',false)">(</el-link>
|
|
|
|
+ <el-link :underline="false" type="primary" class="mg-r-10" @click="addBrackets(')',true)">)</el-link>
|
|
|
|
+ <el-link :underline="false" type="primary" @click="addText">固定值</el-link>
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ 操作
|
|
|
|
+ <el-link :underline="false" icon="el-icon-delete" type="danger" @click="removeSelect"></el-link>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <div class="border-grey sele-ele-box1" >
|
|
|
|
+ <draggable v-model="selectEleFormula">
|
|
|
|
+ <formula-item
|
|
|
|
+ v-for="(item,index) in selectEleFormula" :key="index"
|
|
|
|
+ :item="item" @click="obj => eleFormulaClick(obj,index)"
|
|
|
|
+ >
|
|
|
|
+ </formula-item>
|
|
|
|
+ </draggable>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="flex mg-t-10" style="justify-content: space-between;width:100%;">
|
|
|
|
+ <el-select v-model="eleTableId" @change="getTableEle" placeholder="请选择元素表1" style="width:45%">
|
|
|
|
+ <el-option v-if="paramDataList.length" label="选择节点参数2" value="选择节点参数"></el-option>
|
|
|
|
+ <el-option v-for="item in eleTableList" :key="item.id" :label="item.tableName" :value="(item.pkeyId!==null&&item.pkeyId!==-1)?item.pkeyId:item.id"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ <!-- 搜索元素下拉框 -->
|
|
|
|
+ <!-- <el-select v-model="input3" filterable clearable placeholder="搜索元素字段" @change="getInput" style="width:45%">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in eleList1"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.eName"
|
|
|
|
+ :value="item.eName">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select> -->
|
|
|
|
+ <div class="text-align-c">
|
|
|
|
+ <el-button size="small" @click="canceloperationVisible ">取消</el-button>
|
|
|
|
+ <el-button size="small" @click="operationHandle" type="primary">保存</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="mg-t-10 no-mb-col flex1" >
|
|
|
|
+ <el-scrollbar style="height: 350px">
|
|
|
|
+ <el-row v-loading="eleListable" v-if="eleList.length>0">
|
|
|
|
+ <el-col :span="6" v-for="item in eleList" :key="item.id" >
|
|
|
|
+ <div class="ele-box">
|
|
|
|
+ <span v-if="item.k">{{item.name}}</span>
|
|
|
|
+ <span v-else>{{item.eName}}</span>
|
|
|
|
+ <el-checkbox v-model="item.checked" @change="value => eleChang(value,item)"></el-checkbox>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row v-else style="text-align: center;line-height: 328px;border:1px solid #bbb">暂无数据</el-row>
|
|
|
|
+ </el-scrollbar>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
- <div class="text-align-c">
|
|
|
|
- <el-button size="small" @click="operationHandle" type="primary">保存</el-button>
|
|
|
|
- <el-button size="small" @click="canceloperationVisible ">取消</el-button>
|
|
|
|
- </div>
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-show="!operationVisible && !showFunDetail && !deviationRange.show">
|
|
<div v-show="!operationVisible && !showFunDetail && !deviationRange.show">
|
|
@@ -457,6 +456,7 @@ import {formulaArrayToString} from "./formulaArrayToString"
|
|
import {formulaStringToArray} from "./formulaStringToArray"
|
|
import {formulaStringToArray} from "./formulaStringToArray"
|
|
|
|
|
|
import draggable from 'vuedraggable'
|
|
import draggable from 'vuedraggable'
|
|
|
|
+import {formatArrayMore,restoreArrayMore,generateResult} from './component/funComponent/multiIfElseTools'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -1372,215 +1372,11 @@ export default {
|
|
|
|
|
|
return true;
|
|
return true;
|
|
},
|
|
},
|
|
- formatArrayMore(inputArray) {
|
|
|
|
- console.log(inputArray,'inputArray');
|
|
|
|
-
|
|
|
|
- // 定义字段映射关系
|
|
|
|
- const fieldMappings = {
|
|
|
|
- 'tag2': 'parameter1',
|
|
|
|
- 'tag3': 'parameter2',
|
|
|
|
- 'symbol1': 'symbol',
|
|
|
|
- 'logicSymbol': 'groupTerm',
|
|
|
|
- 'tag4': 'trueData',
|
|
|
|
- 'tag5': 'falseData'
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- // 处理值的格式化,将特定格式字符串包裹在E[]中
|
|
|
|
- function formatValue(value) {
|
|
|
|
- // 检查是否是符合格式的字符串(包含:key_)
|
|
|
|
- if (typeof value === 'string' && value.includes(':key_')) {
|
|
|
|
- return `E[${value}]`;
|
|
|
|
- }
|
|
|
|
- return value;
|
|
|
|
- }
|
|
|
|
|
|
|
|
- // 处理单个对象的函数
|
|
|
|
- function processObject(obj) {
|
|
|
|
- const result = {};
|
|
|
|
-
|
|
|
|
- // 处理formulaIfElse(如果存在)
|
|
|
|
- if (obj.formulaIfElse && Array.isArray(obj.formulaIfElse)) {
|
|
|
|
- result.formulaIfElse = obj.formulaIfElse.map(item => processObject(item));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // 处理其他字段映射
|
|
|
|
- Object.keys(obj).forEach(key => {
|
|
|
|
- // 特殊处理tags2、tags3、tags4和tags5
|
|
|
|
- if (key === 'tags2' && Array.isArray(obj.tags2) && obj.tags2.length > 0) {
|
|
|
|
- // 如果tags2有值,取第一个对象的tableElementKey作为parameter1的值,并格式化
|
|
|
|
- const value = obj.tags2[0].tableElementKey || '';
|
|
|
|
- result.parameter1 = formatValue(value);
|
|
|
|
- }
|
|
|
|
- else if (key === 'tags3' && Array.isArray(obj.tags3) && obj.tags3.length > 0) {
|
|
|
|
- // 如果tags3有值,取第一个对象的tableElementKey作为parameter2的值,并格式化
|
|
|
|
- const value = obj.tags3[0].tableElementKey || '';
|
|
|
|
- result.parameter2 = formatValue(value);
|
|
|
|
- }
|
|
|
|
- else if (key === 'tags4' && Array.isArray(obj.tags4) && obj.tags4.length > 0) {
|
|
|
|
- // 如果tags4有值,取第一个对象的tableElementKey作为trueData的值,并格式化
|
|
|
|
- const value = obj.tags4[0].tableElementKey || '';
|
|
|
|
- result.trueData = formatValue(value);
|
|
|
|
- }
|
|
|
|
- else if (key === 'tags5' && Array.isArray(obj.tags5) && obj.tags5.length > 0) {
|
|
|
|
- // 如果tags5有值,取第一个对象的tableElementKey作为falseData的值,并格式化
|
|
|
|
- const value = obj.tags5[0].tableElementKey || '';
|
|
|
|
- result.falseData = formatValue(value);
|
|
|
|
- }
|
|
|
|
- // 处理其他映射字段
|
|
|
|
- else if (fieldMappings[key]) {
|
|
|
|
- // 只有当对应的tags数组没有提供值时,才使用原始字段值
|
|
|
|
- if ((key === 'tag2' && !result.parameter1) ||
|
|
|
|
- (key === 'tag3' && !result.parameter2) ||
|
|
|
|
- (key === 'tag4' && !result.trueData) ||
|
|
|
|
- (key === 'tag5' && !result.falseData) ||
|
|
|
|
- !['tag2', 'tag3', 'tag4', 'tag5'].includes(key)) {
|
|
|
|
- // 对原始字段值也进行格式化处理
|
|
|
|
- result[fieldMappings[key]] = formatValue(obj[key]);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- return result;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // 处理整个数组
|
|
|
|
- return inputArray.map(item => processObject(item));
|
|
|
|
- },
|
|
|
|
-restoreArrayMore(processedArray) {
|
|
|
|
- // 定义反转的字段映射关系(与原方法相反)
|
|
|
|
- const reverseMappings = {
|
|
|
|
- 'parameter1': 'tag2',
|
|
|
|
- 'parameter2': 'tag3',
|
|
|
|
- 'symbol': 'symbol1',
|
|
|
|
- 'groupTerm': 'logicSymbol',
|
|
|
|
- 'trueData': 'tag4',
|
|
|
|
- 'falseData': 'tag5'
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- // 从this.map获取完整元素信息并构建tags对象
|
|
|
|
- const getTagElement = (tableElementKey) => {
|
|
|
|
- const objTargetData = JSON.parse(this.formulaDetailMap);
|
|
|
|
- const baseData = objTargetData[tableElementKey] || {};
|
|
|
|
- // 返回完整的tags元素结构
|
|
|
|
- return {
|
|
|
|
- "type": baseData.type || "Element",
|
|
|
|
- "name": baseData.name || "",
|
|
|
|
- "id": baseData.id || "",
|
|
|
|
- "selected": false,
|
|
|
|
- "tableElementKey": tableElementKey,
|
|
|
|
- "children": [],
|
|
|
|
- "text": baseData.name || "", // text与name保持一致
|
|
|
|
- "style": "background-color: #409EFF" // 保持示例中的样式
|
|
|
|
- };
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- // 还原值的格式化,去掉E[]包裹
|
|
|
|
- function restoreValue(value) {
|
|
|
|
- if (typeof value === 'string' && value.startsWith('E[') && value.endsWith(']')) {
|
|
|
|
- const innerValue = value.slice(2, -1);
|
|
|
|
- if (innerValue.includes(':key_')) {
|
|
|
|
- return innerValue;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return value;
|
|
|
|
- }
|
|
|
|
|
|
|
|
- // 还原单个对象的函数
|
|
|
|
- function restoreObject(obj) {
|
|
|
|
- const result = {};
|
|
|
|
-
|
|
|
|
- // 递归还原formulaIfElse(如果存在)
|
|
|
|
- if (obj.formulaIfElse && Array.isArray(obj.formulaIfElse)) {
|
|
|
|
- result.formulaIfElse = obj.formulaIfElse.map(item => restoreObject(item));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // 处理参数与tags数组的还原
|
|
|
|
- Object.keys(obj).forEach(key => {
|
|
|
|
- const restoredValue = restoreValue(obj[key]);
|
|
|
|
-
|
|
|
|
- // parameter1对应tags2和tag2
|
|
|
|
- if (key === 'parameter1') {
|
|
|
|
- result.tags2 = [getTagElement(restoredValue)];
|
|
|
|
- result[reverseMappings[key]] = restoredValue;
|
|
|
|
- }
|
|
|
|
- // parameter2对应tags3和tag3
|
|
|
|
- else if (key === 'parameter2') {
|
|
|
|
- result.tags3 = [getTagElement(restoredValue)];
|
|
|
|
- result[reverseMappings[key]] = restoredValue;
|
|
|
|
- }
|
|
|
|
- // trueData对应tags4和tag4
|
|
|
|
- else if (key === 'trueData') {
|
|
|
|
- result.tags4 = [getTagElement(restoredValue)];
|
|
|
|
- result[reverseMappings[key]] = restoredValue;
|
|
|
|
- }
|
|
|
|
- // falseData对应tags5和tag5
|
|
|
|
- else if (key === 'falseData') {
|
|
|
|
- result.tags5 = [getTagElement(restoredValue)];
|
|
|
|
- result[reverseMappings[key]] = restoredValue;
|
|
|
|
- }
|
|
|
|
- // 处理其他映射字段
|
|
|
|
- else if (reverseMappings[key]) {
|
|
|
|
- result[reverseMappings[key]] = restoredValue;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- return result;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // 还原整个数组
|
|
|
|
- return processedArray.map(item => restoreObject(item));
|
|
|
|
-},
|
|
|
|
- generateResult(input) {
|
|
|
|
- // 检查输入是否有效
|
|
|
|
- if (!Array.isArray(input) || input.length === 0) {
|
|
|
|
- return null;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // 构建结果对象
|
|
|
|
- const result = {};
|
|
|
|
-
|
|
|
|
- // 处理标签的通用函数
|
|
|
|
- const processTags = (tags) => {
|
|
|
|
- if (tags && Array.isArray(tags)) {
|
|
|
|
- tags.forEach(tag => {
|
|
|
|
- const key = tag.tableElementKey;
|
|
|
|
- if (key) {
|
|
|
|
- // 如果存在相同的key,这里会覆盖之前的值
|
|
|
|
- // 如有需要,可以修改为数组或其他处理方式
|
|
|
|
- result[key] = {
|
|
|
|
- id: tag.id,
|
|
|
|
- name: tag.name,
|
|
|
|
- tableElementKey: key,
|
|
|
|
- type: tag.type
|
|
|
|
- };
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- // 遍历输入数组中的每一个对象元素
|
|
|
|
- input.forEach(data => {
|
|
|
|
- // 处理当前对象中的所有formulaIfElse元素
|
|
|
|
- if (data.formulaIfElse && Array.isArray(data.formulaIfElse)) {
|
|
|
|
- data.formulaIfElse.forEach(formulaItem => {
|
|
|
|
- // 处理每个formulaIfElse元素中的标签
|
|
|
|
- processTags(formulaItem.tags2);
|
|
|
|
- processTags(formulaItem.tags3);
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- // 处理当前对象根级别的标签
|
|
|
|
- processTags(data.tags4);
|
|
|
|
- processTags(data.tags5);
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- // 检查是否有数据
|
|
|
|
- if (Object.keys(result).length === 0) {
|
|
|
|
- return null;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return result;
|
|
|
|
-},
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
//保存公式
|
|
//保存公式
|
|
saveFormula(){
|
|
saveFormula(){
|
|
console.log('保存',this.pid);
|
|
console.log('保存',this.pid);
|
|
@@ -1591,9 +1387,11 @@ restoreArrayMore(processedArray) {
|
|
if(this.$refs.dynamiccomponent&&this.$refs.dynamiccomponent.length>0&&this.$refs.dynamiccomponent[0]&& this.$refs.dynamiccomponent[0].symbol=='more'){
|
|
if(this.$refs.dynamiccomponent&&this.$refs.dynamiccomponent.length>0&&this.$refs.dynamiccomponent[0]&& this.$refs.dynamiccomponent[0].symbol=='more'){
|
|
//多条件保存公式
|
|
//多条件保存公式
|
|
|
|
|
|
- console.log('this.$refs.dynamiccomponent[0]',this.$refs.dynamiccomponent[0].conditionList);
|
|
|
|
- let resMore=this.formatArrayMore(this.$refs.dynamiccomponent[0].conditionList);
|
|
|
|
- const resJson=this.generateResult(this.$refs.dynamiccomponent[0].conditionList);
|
|
|
|
|
|
+ console.log('this.$refs.conditionList[0]',this.$refs.dynamiccomponent[0].conditionList);
|
|
|
|
+ let resMore=formatArrayMore(this.$refs.dynamiccomponent[0].conditionList);
|
|
|
|
+ const resJson=generateResult(this.$refs.dynamiccomponent[0].conditionList);
|
|
|
|
+ console.log(resJson,'resJson');
|
|
|
|
+
|
|
|
|
|
|
if(this.formulaid){
|
|
if(this.formulaid){
|
|
updateFormula({
|
|
updateFormula({
|
|
@@ -1755,7 +1553,7 @@ restoreArrayMore(processedArray) {
|
|
detail.formula = detail.formula.replace('FC.ifelseMulti','FC.ifelse');
|
|
detail.formula = detail.formula.replace('FC.ifelseMulti','FC.ifelse');
|
|
this.isMore = true;
|
|
this.isMore = true;
|
|
this.formulaDetailMap = detail.map;
|
|
this.formulaDetailMap = detail.map;
|
|
- this.moreConditions = this.restoreArrayMore(detail.formulas)
|
|
|
|
|
|
+ this.moreConditions = restoreArrayMore(detail.formulas,this.formulaDetailMap)
|
|
|
|
|
|
}else{
|
|
}else{
|
|
this.isMore = false;
|
|
this.isMore = false;
|