Przeglądaj źródła

combo查询条件value处理

zhuth 7 lat temu
rodzic
commit
2941534c97

+ 2 - 0
frontend/saas-web/app/view/core/query/QueryPanel.js

@@ -186,6 +186,8 @@ Ext.define('saas.view.core.query.QueryPanel', {
             to = value.to;
             to = value.to;
 
 
             conditionValue = Ext.Date.format(new Date(from), 'Y-m-d h:i:s') + ',' + Ext.Date.format(new Date(to), 'Y-m-d h:i:s');
             conditionValue = Ext.Date.format(new Date(from), 'Y-m-d h:i:s') + ',' + Ext.Date.format(new Date(to), 'Y-m-d h:i:s');
+        }else if(xtype == 'combobox' || xtype == 'combo') {
+            conditionValue = '\'' + value + '\'';
         }else if(xtype == 'multicombo') {
         }else if(xtype == 'multicombo') {
             conditionValue = value.map(function(v) {
             conditionValue = value.map(function(v) {
                 return '\'' + v.value + '\'';
                 return '\'' + v.value + '\'';