|
@@ -14,6 +14,7 @@
|
|
|
import { ref } from "vue";
|
|
|
import { updateProExcel } from "@/api/excel/index.ts";
|
|
|
import ExcelView from "@/components/ExcelView/index.vue";
|
|
|
+import { uploadExcelBlob } from "@/api/apply/index";
|
|
|
const setting = ref([]);
|
|
|
const props = defineProps({
|
|
|
data: {
|
|
@@ -309,6 +310,18 @@ watch(
|
|
|
},
|
|
|
{ immediate: true }
|
|
|
);
|
|
|
+onMounted(() => {
|
|
|
+ if(props.data.state === '3'){
|
|
|
+
|
|
|
+ setTimeout(() => {
|
|
|
+ let blobPromese = excelViewRef.value.toGetExcelBlob();
|
|
|
+ blobPromese.then((res) => {
|
|
|
+ console.log("=========", res);
|
|
|
+ uploadExcelBlob(res, props.data.id);
|
|
|
+ });
|
|
|
+ }, 1000);
|
|
|
+ }
|
|
|
+});
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.exView {
|