【新增】ps出题页面

This commit is contained in:
YOHO\20373
2025-07-01 17:13:02 +08:00
committed by 陆光LG
parent bf41973270
commit 6099e0c4e3
5 changed files with 1258 additions and 7 deletions

View File

@@ -158,3 +158,16 @@ export const saveSelectedKaodian = (data) => {
export const getFilePoint = (data) => {
return request.post({ url: `/exam/getPoints/get_filePoint`,data })
}
export const getPsPoint = (data) => {
return request.post({ url: `/exam/getPoints/get_ps_point`,data })
}
export const setPsPoint = (data) => {
return request.post({ url: `/exam/getPoints/set_ps_point`,data })
}
export const getPsPointByQuId = (id) => {
return request.get({ url: `/exam/getPoints/getPsPointById/${id}` })
}

View File

@@ -16,7 +16,7 @@ const config: {
/**
* 接口请求超时时间
*/
request_timeout: 30000,
request_timeout: 60000,
/**
* 默认接口请求类型

File diff suppressed because it is too large Load Diff

View File

@@ -292,14 +292,14 @@ import Setting from '@/components/Setting/index.vue'
import * as SpecialtyApi from '@/api/points'
import { defaultProps, handleTree } from '@/utils/tree'
import { cloneDeep } from 'lodash-es'
import { emitter } from '@/utils/eventBus'
// import { emitter } from '@/utils/eventBus'
defineOptions({ name: 'WpsWordFrom' })
const wordPointsList = ref<Tree[]>([]) // 树形结构
const wordPointsInfoList = ref<Tree[]>([]) // 树形结构
onMounted(() => {
emitter.on('maskDisplay', handleFromC)
})
// onMounted(() => {
// emitter.on('maskDisplay', handleFromC)
// })
function handleFromC(data: any) {
console.log(data.value)

View File

@@ -319,6 +319,7 @@
<SettingForm ref="setformRef" @success="getList" />
<EmailForm ref="emailformRef" @success="getList" />
<WpsExcelForm ref="xlsxformRef" @success="getList" />
<PsForm ref="psformRef" @success="getList" />
</template>
<script lang="ts" setup>
@@ -339,7 +340,7 @@ import WpsWordForm from './WpsWordForm.vue'
import WpsPptxForm from './WpsPptxForm.vue'
import SettingForm from './SettingForm.vue'
import WpsExcelForm from './WpsExcelForm.vue'
import PsForm from './PsForm.vue'
import EmailForm from './EmailForm.vue'
import UserAssignRoleForm from './UserAssignRoleForm.vue'
import DeptTree from './DeptTree.vue'
@@ -691,7 +692,7 @@ const pformRef = ref()
const setformRef = ref()
const emailformRef = ref()
const xlsxformRef = ref()
const psformRef = ref()
const openForm = (type: string, id?: number) => {
console.log(queryParams)
if (queryParams.subjectName == '') {
@@ -717,6 +718,8 @@ const openForm = (type: string, id?: number) => {
emailformRef.value.open(queryParams, type, id)
} else if (chooseQuestionType.value.includes('表格')) {
xlsxformRef.value.open(queryParams, type, id)
}else if (chooseQuestionType.value.includes('图像处理')) {
psformRef.value.open(queryParams, type, id)
}
}