|
|
@@ -218,6 +218,7 @@
|
|
|
:dataListGet="dataListGet"
|
|
|
:isDataChange="isDataChange"
|
|
|
:dataForm="dataForm"
|
|
|
+ :remark="remark"
|
|
|
>
|
|
|
</component>
|
|
|
<div class="flex1" v-show="item.showSelectEle" style="margin-top:10px;margin-bottom:30px">
|
|
|
@@ -612,7 +613,8 @@ export default {
|
|
|
dataListGet:'',
|
|
|
isGetData:false,//是否获取数据
|
|
|
isDataChange:false,//是否数据自变
|
|
|
- dataForm:''
|
|
|
+ dataForm:'',
|
|
|
+ remark:'',//备注
|
|
|
|
|
|
|
|
|
};
|
|
|
@@ -1403,6 +1405,9 @@ export default {
|
|
|
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);
|
|
|
+ let remark=this.$refs.dynamiccomponent[0].remark;
|
|
|
+console.log(remark,'remark');
|
|
|
+
|
|
|
console.log(resJson,'resJson');
|
|
|
|
|
|
|
|
|
@@ -1411,7 +1416,7 @@ export default {
|
|
|
id:this.formulaid,
|
|
|
formula:'',
|
|
|
formulas:resMore,
|
|
|
- remark:'',
|
|
|
+ remark:remark,
|
|
|
nodeId:this.nodeid,
|
|
|
elementId:this.eleid,
|
|
|
scale:this.isRetain?this.retainNum:'',
|
|
|
@@ -1432,7 +1437,7 @@ export default {
|
|
|
saveFormula({
|
|
|
formula:'',
|
|
|
formulas:resMore,
|
|
|
- remark:'',
|
|
|
+ remark:remark,
|
|
|
nodeId:this.nodeid,
|
|
|
elementId:this.eleid,
|
|
|
scale:this.isRetain?this.retainNum:'',
|
|
|
@@ -1676,6 +1681,8 @@ export default {
|
|
|
async formulaStringToArray(){
|
|
|
let detail = (await formulaDetail({elementId:this.eleid,scope:this.globaltype,nodeId:this.nodeid,projectId:this.curProjiect.id||this.pid})).data.data;
|
|
|
console.log(detail,'detail');
|
|
|
+ this.remark = detail.remark;
|
|
|
+
|
|
|
if(detail&&detail.formula.includes('FC.ifelseMulti')){
|
|
|
detail.formula = detail.formula.replace('FC.ifelseMulti','FC.ifelse');
|
|
|
this.isMore = true;
|