From ef3668bccac8e1a3ed171a16deaf456bc62eec6d Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期一, 02 十二月 2024 15:58:55 +0800 Subject: [PATCH] 修改查询条件显示 --- Source/plt-web/plt-web-ui/src/views/modelingMenu/queryTemplate/linkTypeQuery/formQueryDialog.vue | 47 +++++++++++++++++++++-------------------------- 1 files changed, 21 insertions(+), 26 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/queryTemplate/linkTypeQuery/formQueryDialog.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/queryTemplate/linkTypeQuery/formQueryDialog.vue index 137fb73..837849b 100644 --- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/queryTemplate/linkTypeQuery/formQueryDialog.vue +++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/queryTemplate/linkTypeQuery/formQueryDialog.vue @@ -364,23 +364,30 @@ let list = []; let that = this; let getValue = function (queryTemplate, item) { - for (let key in queryTemplate.condition.cIMap) { - if (queryTemplate.condition.cIMap[key].leaf) { - item.clause += '.' + queryTemplate.condition.cIMap[key].leafInfo.clause; - if (queryTemplate.condition.cIMap[key].leafInfo.value.queryTemplate) { - getValue(queryTemplate.condition.cIMap[key].leafInfo.value.queryTemplate, item) - } else { - //item.ordinaryValue = queryTemplate.condition.cIMap[key].leafInfo.value.ordinaryValue; - item.type = queryTemplate.condition.cIMap[key].leafInfo.type; - if (['VTInteger', 'VTDouble', 'VTLong'].includes(item.type)) { - item.operatorDic = that.operatorIntDic; - } else if (['VTDateTime', 'VTDate', 'VTTime'].includes(item.type)) { - item.operatorDic = that.operatorDateDic; + if(queryTemplate.id.indexOf('qt_')==0){ + item.clause += '.' + queryTemplate.condition.cIMap['ci1'].leafInfo.clause; + item.ordinaryValue = queryTemplate.condition.cIMap['ci1'].leafInfo.value.ordinaryValue; + item.type = queryTemplate.condition.cIMap['ci1'].leafInfo.type; + }else { + item.ordinaryValue = queryTemplate.id+';'+queryTemplate.clauseList.join(','); + /*for (let key in queryTemplate.condition.cIMap) { + if (queryTemplate.condition.cIMap[key].leaf) { + item.clause += '.' + queryTemplate.condition.cIMap[key].leafInfo.clause; + if (queryTemplate.condition.cIMap[key].leafInfo.value.queryTemplate) { + getValue(queryTemplate.condition.cIMap[key].leafInfo.value.queryTemplate, item) } else { - item.operatorDic = that.operatorDic; + item.ordinaryValue = queryTemplate.condition.cIMap[key].leafInfo.value.ordinaryValue; + item.type = queryTemplate.condition.cIMap[key].leafInfo.type; } } - } + }*/ + } + if (['VTInteger', 'VTDouble', 'VTLong'].includes(item.type)) { + item.operatorDic = that.operatorIntDic; + } else if (['VTDateTime', 'VTDate', 'VTTime'].includes(item.type)) { + item.operatorDic = that.operatorDateDic; + } else { + item.operatorDic = that.operatorDic; } } for (let key in val.cIMap) { @@ -394,19 +401,7 @@ operatorDic: [] } if (this.queryCondition.cIMap[key].leafInfo.value.queryTemplate) { - item.ordinaryValue = this.queryCondition.cIMap[key].leafInfo.value.queryTemplate.id+';'+this.queryCondition.cIMap[key].leafInfo.value.queryTemplate.clauseList.join(','); - if(this.queryCondition.cIMap[key].leafInfo.value.queryTemplate.id.indexOf('qt_')==0){ getValue(this.queryCondition.cIMap[key].leafInfo.value.queryTemplate, item) - }else { - item.type = this.queryCondition.cIMap[key].leafInfo.type; - if (['VTInteger', 'VTDouble', 'VTLong'].includes(item.type)) { - item.operatorDic = that.operatorIntDic; - } else if (['VTDateTime', 'VTDate', 'VTTime'].includes(item.type)) { - item.operatorDic = that.operatorDateDic; - } else { - item.operatorDic = that.operatorDic; - } - } } else { item.ordinaryValue = this.queryCondition.cIMap[key].leafInfo.value.ordinaryValue; item.type = this.queryCondition.cIMap[key].leafInfo.type; -- Gitblit v1.9.3