|
|
@@ -53,6 +53,7 @@ import { formatMonth } from "@/utils/date";
|
|
|
import { selectSheets, siUploadSheets } from '@/api/medical-insurance/si-manage.js'
|
|
|
import store from "@/store";
|
|
|
import Progress from '../../../components/progress/Index.vue'
|
|
|
+import {ElMessage} from "element-plus";
|
|
|
|
|
|
const windowSize = store.state.app.windowSize
|
|
|
const tableHeight = windowSize.h - 55
|
|
|
@@ -93,9 +94,21 @@ const fetchSheets = () => {
|
|
|
|
|
|
const uploadSheets = () => {
|
|
|
let arr = sheetRef.value.getSelectionRows();
|
|
|
- siUploadSheets(arr.length === 0 ? sheets.value : arr).then(() => {
|
|
|
+ if (arr.length === 0) {
|
|
|
+ arr = sheets.value
|
|
|
+ }
|
|
|
+ if (arr.length === 0) {
|
|
|
+ ElMessage({
|
|
|
+ message: '没有可以上传的数据!',
|
|
|
+ type: 'warning',
|
|
|
+ duration: 2500,
|
|
|
+ showClose: true
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ siUploadSheets(arr).then(() => {
|
|
|
fetchSheets()
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|