You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ch...@apache.org on 2018/01/25 09:19:46 UTC

[2/2] kylin git commit: MTHDP-3537 Measure support fuzzy search

MTHDP-3537 Measure support fuzzy search

Signed-off-by: chenzhx <ch...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/c49e2639
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/c49e2639
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/c49e2639

Branch: refs/heads/master
Commit: c49e26393cbde59110f217939cf3165bb3984a53
Parents: d7aab19
Author: kangkaisen <ka...@meituan.com>
Authored: Thu Nov 30 19:09:14 2017 +0800
Committer: chenzhx <ch...@apache.org>
Committed: Thu Jan 25 17:19:26 2018 +0800

----------------------------------------------------------------------
 webapp/app/partials/cubeDesigner/measures.html | 22 +++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/c49e2639/webapp/app/partials/cubeDesigner/measures.html
----------------------------------------------------------------------
diff --git a/webapp/app/partials/cubeDesigner/measures.html b/webapp/app/partials/cubeDesigner/measures.html
index 12d1af3..848831c 100755
--- a/webapp/app/partials/cubeDesigner/measures.html
+++ b/webapp/app/partials/cubeDesigner/measures.html
@@ -149,14 +149,20 @@
                                   ng-init="newMeasure.function.parameter.value = 1">
                                   <b>&nbsp;&nbsp;1</b>
                                 </span>
-                                  <!--!COUNT_DISTINCT-->
-                                <select class="form-control" chosen
-                                      ng-if="newMeasure.function.parameter.type == 'column'"
-                                      ng-model="newMeasure.function.parameter.value" required
-                                      ng-change="measureReturnTypeUpdate();"
-                                      ng-options="column as column for column in measureParamValueColumn" >
-                                <option value="">{{dataKylin.cube.cubeMSParamValueSelect}}</option>
-                              </select>
+
+
+                                <ui-select
+                                  ng-if="newMeasure.function.parameter.type == 'column'"
+                                  on-select="measureReturnTypeUpdate()"
+                                  on-remove="measureReturnTypeUpdate()"
+                                  ng-model="newMeasure.function.parameter.value"
+                                  >
+                                  <ui-select-match placeholder="Select Measure" style="overflow: auto;">{{$select.selected}}</ui-select-match>
+                                  <ui-select-choices repeat="column in measureParamValueColumn | filter:$select.search" style="word-break:break-all;">
+                                    <span ng-bind-html="column | highlight: $select.search"></span>
+                                  </ui-select-choices>
+                                </ui-select>
+
                             </div>
                             <label ng-if="newMeasure.function.parameter.type == 'column'&& newMeasure.function.expression !== 'EXTENDED_COLUMN'">
                               <input type="checkbox" ng-model="newMeasure.showDim" ng-change="measureParamValueUpdate();" />&nbsp;Also Show Dimensions