|
@@ -154,12 +154,16 @@ const lineChartRef = ref(null);
|
|
|
let serviceDataRef=ref(null)
|
|
|
const getAllDomElements = async () => {
|
|
|
// this.$nextTick(() => {
|
|
|
- let imgBase64=lineChartRef.value.saveChartAndSend();
|
|
|
- serviceDataRef.value={
|
|
|
+ let imgBase64= await lineChartRef.value.saveChartAndSend();
|
|
|
+ serviceDataRef.value={
|
|
|
...serviceDataRef.value,
|
|
|
- imgBase64:imgBase64
|
|
|
+ image:imgBase64
|
|
|
}
|
|
|
-
|
|
|
+ downloadFile(downloadStrategy(), "预测结果", { ...serviceDataRef.value });
|
|
|
+
|
|
|
+ // downloadStrategy({...serviceDataRef.value}).then((res:any)=>{
|
|
|
+ // debugger
|
|
|
+ // })
|
|
|
};
|
|
|
const goAdvice = (name: string) => {
|
|
|
router.push({
|