|
@@ -36,7 +36,7 @@
|
|
|
import { ref, reactive, defineProps, watch } from 'vue';
|
|
|
import { SvgIcon } from '/@/components/Icon';
|
|
|
import echartScene from '../components/echart-scene.vue';
|
|
|
- import _ from 'lodash-es';
|
|
|
+ import _ from 'lodash';
|
|
|
|
|
|
let props = defineProps({
|
|
|
compositeData: {
|
|
@@ -97,13 +97,13 @@
|
|
|
selectList.value = newS.map((el: any) => ({ label: el.deviceName, value: el.deviceName }));
|
|
|
if (!selectVal.value) {
|
|
|
selectVal.value = selectList.value[0].value;
|
|
|
- changeSelect(selectVal.value);
|
|
|
} else {
|
|
|
// 向下寻找一个新选项以实现轮播(业务需求不加滚动)
|
|
|
// const options = selectList.value;
|
|
|
// const val = _.get(options, [(selectIndex.value + 1) % options.length, 'value']);
|
|
|
// changeSelect(val);
|
|
|
}
|
|
|
+ changeSelect(selectVal.value);
|
|
|
}
|
|
|
},
|
|
|
{
|