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