性能曲线,排序优化;组件名称变更为:cm-date-range-influx
Showing
3 changed files
with
3 additions
and
5 deletions
@@ -42,7 +42,7 @@ Promise.all([ | @@ -42,7 +42,7 @@ Promise.all([ | ||
42 | //所属系统 | 42 | //所属系统 |
43 | .component('cm-biz-type-tree-input', Vue.defineAsyncComponent(() => myImport('components/common/inputbiztypetree/index'))) | 43 | .component('cm-biz-type-tree-input', Vue.defineAsyncComponent(() => myImport('components/common/inputbiztypetree/index'))) |
44 | //时间范围组件 | 44 | //时间范围组件 |
45 | - .component('cm-date-range', Vue.defineAsyncComponent(() => myImport('components/common/dateRange/indexInflux'))); | 45 | + .component('cm-date-range-influx', Vue.defineAsyncComponent(() => myImport('components/common/dateRange/indexInflux'))); |
46 | 46 | ||
47 | 47 | ||
48 | // // 自定义指令 | 48 | // // 自定义指令 |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | <el-col :span="8"></el-col> | 8 | <el-col :span="8"></el-col> |
9 | <el-col :span="16" class="pie-flex-end"> | 9 | <el-col :span="16" class="pie-flex-end"> |
10 | <div class="pie-date-range"> | 10 | <div class="pie-date-range"> |
11 | - <cm-date-range v-if="interval=='custom'" :keys="keys" @callbackinflux="getInfluxOption" @callbacksure="getOptionData" @callbacktime="callbacktime" @callbackrate="callbackrate"></cm-date-range> | 11 | + <cm-date-range-influx v-if="interval=='custom'" :keys="keys" @callbackinflux="getInfluxOption" @callbacksure="getOptionData" @callbacktime="callbacktime" @callbackrate="callbackrate"></cm-date-range-influx> |
12 | </div> | 12 | </div> |
13 | <div class="line-filter pie-line-filter"> | 13 | <div class="line-filter pie-line-filter"> |
14 | <div class="linechartfrequency line-filter-content"> | 14 | <div class="linechartfrequency line-filter-content"> |
@@ -155,9 +155,7 @@ export default { | @@ -155,9 +155,7 @@ export default { | ||
155 | let kpiUnitVal = ''; | 155 | let kpiUnitVal = ''; |
156 | let kpiList = res.data; | 156 | let kpiList = res.data; |
157 | Object.keys(res.map).forEach(function(key){ | 157 | Object.keys(res.map).forEach(function(key){ |
158 | - res.map[key].sort(function (a, b) { | ||
159 | - return a.dbTimeStr<b.dbTimeStr?1:-1; | ||
160 | - }).forEach(function(item){ | 158 | + res.map[key].forEach(function(item){ |
161 | names.push(item.dbTimeStr); | 159 | names.push(item.dbTimeStr); |
162 | max.push(item.maxValue); | 160 | max.push(item.maxValue); |
163 | min.push(item.minValue); | 161 | min.push(item.minValue); |
-
Please register or login to post a comment