update
1.优化
This commit is contained in:
@@ -153,7 +153,6 @@
|
||||
});
|
||||
|
||||
async function getScrollList() {
|
||||
console.log(dayjs());
|
||||
try {
|
||||
const { code, result } = await getMonitorList({
|
||||
pageSize: 10,
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
function initChart(chartData, total, color) {
|
||||
let myChart = echarts.init(healthChart.value);
|
||||
let options = circleRing(chartData, total, color);
|
||||
console.log(options);
|
||||
myChart.setOption(options);
|
||||
window.addEventListener('resize', () => {
|
||||
myChart.resize();
|
||||
|
||||
@@ -79,8 +79,14 @@
|
||||
orgCode: String,
|
||||
type: String,
|
||||
themeType: String,
|
||||
refreshState: {
|
||||
type: Boolean,
|
||||
default: () => false,
|
||||
},
|
||||
});
|
||||
onMounted(() => {
|
||||
init();
|
||||
});
|
||||
onMounted(() => {});
|
||||
watch(props, () => {
|
||||
init();
|
||||
});
|
||||
@@ -91,11 +97,12 @@
|
||||
const { code, result } = await getWatchDataByOrgCode(props);
|
||||
if (code == 200) {
|
||||
setValue(result);
|
||||
setSession(PAGE2_LEFT, JSON.stringify(result));
|
||||
// setSession(PAGE2_LEFT, JSON.stringify(result));
|
||||
}
|
||||
console.log(dataList.value);
|
||||
} catch {
|
||||
const result = JSON.parse(getSession(PAGE2_LEFT));
|
||||
setValue(result);
|
||||
// const result = JSON.parse(getSession(PAGE2_LEFT));
|
||||
// setValue(result);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -208,11 +208,9 @@
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
console.log(props.mapOptions);
|
||||
const op = { el: 'xianmapContainer', option: props.mapOptions, innerLineOption: innerLineLight, outerLineOption: outerLineOption };
|
||||
Map.initMap(op).then(() => {
|
||||
getMapData(tabList[0].type);
|
||||
console.log(getMapData(tabList[0].type), 123);
|
||||
Map.map && Map.map.on('zoomend', setLevel);
|
||||
Map.map && Map.map.on('zoomend', setLevel);
|
||||
});
|
||||
@@ -266,14 +264,12 @@
|
||||
// console.log('绘制驾车路线完成');
|
||||
searchFlag.value = false;
|
||||
} else {
|
||||
console.log('获取驾车数据失败:', result);
|
||||
searchFlag.value = false;
|
||||
}
|
||||
});
|
||||
AMap.Event.addListener(driving, 'complete', (res) => {
|
||||
const data = JSON.parse(JSON.stringify(res));
|
||||
searchFlag.value = false;
|
||||
console.log('查询结果', data);
|
||||
if (data.info == 'OK') {
|
||||
const { routes } = data;
|
||||
setTitle(routes[0]);
|
||||
|
||||
Reference in New Issue
Block a user