|
@@ -91,7 +91,7 @@ export default defineComponent({
|
|
|
}
|
|
|
|
|
|
/* 获取图表数据信息 */
|
|
|
- const getChartInfo = async () => {
|
|
|
+ const getChartInfo = async (type='') => {
|
|
|
loading.value = true;
|
|
|
try {
|
|
|
const { Data } = await ChartApi.getChart({
|
|
@@ -104,6 +104,7 @@ export default defineComponent({
|
|
|
haveData.value = true;
|
|
|
dealSourceHandle();
|
|
|
setOptions();
|
|
|
+ type === 'refresh' && ElMessage.success('刷新成功');
|
|
|
}catch (e) {
|
|
|
loading.value = false;
|
|
|
haveData.value = false;
|
|
@@ -442,8 +443,9 @@ export default defineComponent({
|
|
|
}
|
|
|
|
|
|
const refreshChart = _.debounce(async () => {
|
|
|
+ loading.value = true;
|
|
|
let { Ret } = await ChartApi.refreshChart({ UniqueCode: state.chartInfo.UniqueCode });
|
|
|
- Ret === 200 && getChartInfo();
|
|
|
+ Ret === 200 && getChartInfo('refresh');
|
|
|
},400)
|
|
|
|
|
|
return {
|