diff --git a/jeecgboot-vue3/src/views/bl/blStuInfo/components/BlStuInfoV2Form.vue b/jeecgboot-vue3/src/views/bl/blStuInfo/components/BlStuInfoV2Form.vue
index 8503000..dd9c153 100644
--- a/jeecgboot-vue3/src/views/bl/blStuInfo/components/BlStuInfoV2Form.vue
+++ b/jeecgboot-vue3/src/views/bl/blStuInfo/components/BlStuInfoV2Form.vue
@@ -64,7 +64,9 @@
温馨提示:点击导入后选择数据模板进行导入!
- 导入
+
+ 导入
+
@@ -114,7 +116,7 @@ const formData = reactive
>({
//注册table数据
- const { onImportXls } = useListPage({
+ const { onImportXls } = useListPage({
importConfig: {
url: getImportUrl,
success: handleSuccess
@@ -126,6 +128,8 @@ const formData = reactive>({
const current = ref(0);
+const uploadButtonSpinning = ref(false);
+
const next = () => {
current.value++;
};
@@ -149,6 +153,7 @@ const validatorRules = {
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
//上传完成回调
function handleSuccess(){
+ uploadButtonSpinning.value = false;
current.value++;
console.log("参数--------》",{id:formData.id})
defHttp.get({url:'/blStuAnswer/blStuAnswer/createWord',params:{id:formData.id}}).then(res=>{
@@ -244,6 +249,11 @@ async function submitForm() {
});
}
+function onImportXlsPlus(...d) {
+ uploadButtonSpinning.value = true;
+ onImportXls(...d);
+}
+
defineExpose({
add,
edit,
diff --git a/jeecgboot-vue3/src/views/bl/blTeacherInfo/components/BlTeacherInfoV2Form.vue b/jeecgboot-vue3/src/views/bl/blTeacherInfo/components/BlTeacherInfoV2Form.vue
index 9221d77..03d2b71 100644
--- a/jeecgboot-vue3/src/views/bl/blTeacherInfo/components/BlTeacherInfoV2Form.vue
+++ b/jeecgboot-vue3/src/views/bl/blTeacherInfo/components/BlTeacherInfoV2Form.vue
@@ -64,7 +64,9 @@
温馨提示:点击导入后选择数据模板进行导入!
- 导入
+
+ 导入
+
@@ -126,6 +128,7 @@ const formData = reactive>({
const current = ref(0);
+const uploadButtonSpinning = ref(false);
const next = () => {
current.value++;
};
@@ -149,6 +152,7 @@ const validatorRules = {
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
//上传完成回调
function handleSuccess(){
+ uploadButtonSpinning.value = false;
current.value++;
console.log("参数--------》",{id:formData.id})
defHttp.get({url:'/blTeacherAnswer/blTeacherAnswer/createWord',params:{id:formData.id}}).then(res=>{
@@ -244,6 +248,11 @@ async function submitForm() {
});
}
+function onImportXlsPlus(...d) {
+ uploadButtonSpinning.value = true;
+ onImportXls(...d);
+}
+
defineExpose({
add,
edit,