Browse Source

feat: 转为样卷增加提示信息

chenhao 2 years ago
parent
commit
4a28878053
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/modules/expert/standard/index.vue

+ 4 - 3
src/modules/expert/standard/index.vue

@@ -40,7 +40,7 @@
 <script setup lang="ts" name="ExpertStandard">
 <script setup lang="ts" name="ExpertStandard">
 /** 专家卷浏览-标准卷 */
 /** 专家卷浏览-标准卷 */
 import { reactive, ref, computed, watch } from 'vue'
 import { reactive, ref, computed, watch } from 'vue'
-import { ElButton } from 'element-plus'
+import { ElButton, ElMessage } from 'element-plus'
 import { useSetImgBg } from '@/hooks/useSetImgBg'
 import { useSetImgBg } from '@/hooks/useSetImgBg'
 import useFetch from '@/hooks/useFetch'
 import useFetch from '@/hooks/useFetch'
 import useVW from '@/hooks/useVW'
 import useVW from '@/hooks/useVW'
@@ -164,9 +164,10 @@ const onSearch = async () => {
 /** 转为样卷 */
 /** 转为样卷 */
 const { fetch: transformStandardToSample } = useFetch('transformStandardToSample')
 const { fetch: transformStandardToSample } = useFetch('transformStandardToSample')
 
 
-const onTransformToSample = () => {
+const onTransformToSample = async () => {
   if (currentStandardPaper.value) {
   if (currentStandardPaper.value) {
-    transformStandardToSample({ id: currentStandardPaper.value.id })
+    await transformStandardToSample({ id: currentStandardPaper.value.id })
+    ElMessage.success('操作成功')
   }
   }
 }
 }