Преглед изворни кода

combo查询条件value处理

zhuth пре 7 година
родитељ
комит
2941534c97
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      frontend/saas-web/app/view/core/query/QueryPanel.js

+ 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;
 
             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') {
             conditionValue = value.map(function(v) {
                 return '\'' + v.value + '\'';