【新增】 ppt出题页面

This commit is contained in:
DESKTOP-932OMT8\REN
2025-05-29 11:22:07 +08:00
committed by 陆光LG
parent c8e3c97ccd
commit f1477b8671

View File

@@ -346,6 +346,7 @@
<BdesignForm ref="bformRef" @success="getList" /> <BdesignForm ref="bformRef" @success="getList" />
<FdesignForm ref="fformRef" @success="getList" /> <FdesignForm ref="fformRef" @success="getList" />
<WpsWordForm ref="wformRef" @success="getList" /> <WpsWordForm ref="wformRef" @success="getList" />
<WpsPptxForm ref="pformRef" @success="getList" />
</template> </template>
@@ -364,6 +365,7 @@ import BdesignForm from './BrowerForm.vue'
import FdesignForm from './FileForm.vue' import FdesignForm from './FileForm.vue'
import UserImportForm from './UserImportForm.vue' import UserImportForm from './UserImportForm.vue'
import WpsWordForm from './WpsWordForm.vue' import WpsWordForm from './WpsWordForm.vue'
import WpsPptxForm from './WpsPptxForm.vue'
import UserAssignRoleForm from './UserAssignRoleForm.vue' import UserAssignRoleForm from './UserAssignRoleForm.vue'
import DeptTree from './DeptTree.vue' import DeptTree from './DeptTree.vue'
import SpecialtyTree from './SpecialtyTree.vue' import SpecialtyTree from './SpecialtyTree.vue'
@@ -676,6 +678,7 @@ const mformRef = ref()
const bformRef = ref() const bformRef = ref()
const fformRef = ref() const fformRef = ref()
const wformRef = ref() const wformRef = ref()
const pformRef = ref()
const openForm = (type: string, id?: number) => { const openForm = (type: string, id?: number) => {
console.log(queryParams) console.log(queryParams)
@@ -694,6 +697,8 @@ const openForm = (type: string, id?: number) => {
fformRef.value.open(queryParams,type, id) fformRef.value.open(queryParams,type, id)
} else if (chooseQuestionType.value.includes("文字")){ } else if (chooseQuestionType.value.includes("文字")){
wformRef.value.open(queryParams,type, id) wformRef.value.open(queryParams,type, id)
} else if (chooseQuestionType.value.includes("演示")){
pformRef.value.open(queryParams,type, id)
} }
} }
@@ -717,19 +722,6 @@ const handleStatusChange = async (row: any) => {
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) const exportLoading = ref(false)
const handleExport = async () => {
try {
// 导出的二次确认
await message.exportConfirm()
// 发起导出
exportLoading.value = true
const data = await UserApi.exportUser(queryParams)
download.excel(data, '用户数据.xls')
} catch {
} finally {
exportLoading.value = false
}
}
/** 操作分发 */ /** 操作分发 */
const handleCommand = (command: string, row: UserApi.UserVO) => { const handleCommand = (command: string, row: UserApi.UserVO) => {