【新增】ps出题页面
This commit is contained in:
@@ -158,3 +158,16 @@ export const saveSelectedKaodian = (data) => {
|
|||||||
export const getFilePoint = (data) => {
|
export const getFilePoint = (data) => {
|
||||||
return request.post({ url: `/exam/getPoints/get_filePoint`,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}` })
|
||||||
|
}
|
@@ -16,7 +16,7 @@ const config: {
|
|||||||
/**
|
/**
|
||||||
* 接口请求超时时间
|
* 接口请求超时时间
|
||||||
*/
|
*/
|
||||||
request_timeout: 30000,
|
request_timeout: 60000,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 默认接口请求类型
|
* 默认接口请求类型
|
||||||
|
1235
src/views/paper/question/PsForm.vue
Normal file
1235
src/views/paper/question/PsForm.vue
Normal file
File diff suppressed because it is too large
Load Diff
@@ -292,14 +292,14 @@ import Setting from '@/components/Setting/index.vue'
|
|||||||
import * as SpecialtyApi from '@/api/points'
|
import * as SpecialtyApi from '@/api/points'
|
||||||
import { defaultProps, handleTree } from '@/utils/tree'
|
import { defaultProps, handleTree } from '@/utils/tree'
|
||||||
import { cloneDeep } from 'lodash-es'
|
import { cloneDeep } from 'lodash-es'
|
||||||
import { emitter } from '@/utils/eventBus'
|
// import { emitter } from '@/utils/eventBus'
|
||||||
|
|
||||||
defineOptions({ name: 'WpsWordFrom' })
|
defineOptions({ name: 'WpsWordFrom' })
|
||||||
const wordPointsList = ref<Tree[]>([]) // 树形结构
|
const wordPointsList = ref<Tree[]>([]) // 树形结构
|
||||||
const wordPointsInfoList = ref<Tree[]>([]) // 树形结构
|
const wordPointsInfoList = ref<Tree[]>([]) // 树形结构
|
||||||
onMounted(() => {
|
// onMounted(() => {
|
||||||
emitter.on('maskDisplay', handleFromC)
|
// emitter.on('maskDisplay', handleFromC)
|
||||||
})
|
// })
|
||||||
|
|
||||||
function handleFromC(data: any) {
|
function handleFromC(data: any) {
|
||||||
console.log(data.value)
|
console.log(data.value)
|
||||||
|
@@ -319,6 +319,7 @@
|
|||||||
<SettingForm ref="setformRef" @success="getList" />
|
<SettingForm ref="setformRef" @success="getList" />
|
||||||
<EmailForm ref="emailformRef" @success="getList" />
|
<EmailForm ref="emailformRef" @success="getList" />
|
||||||
<WpsExcelForm ref="xlsxformRef" @success="getList" />
|
<WpsExcelForm ref="xlsxformRef" @success="getList" />
|
||||||
|
<PsForm ref="psformRef" @success="getList" />
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
@@ -339,7 +340,7 @@ import WpsWordForm from './WpsWordForm.vue'
|
|||||||
import WpsPptxForm from './WpsPptxForm.vue'
|
import WpsPptxForm from './WpsPptxForm.vue'
|
||||||
import SettingForm from './SettingForm.vue'
|
import SettingForm from './SettingForm.vue'
|
||||||
import WpsExcelForm from './WpsExcelForm.vue'
|
import WpsExcelForm from './WpsExcelForm.vue'
|
||||||
|
import PsForm from './PsForm.vue'
|
||||||
import EmailForm from './EmailForm.vue'
|
import EmailForm from './EmailForm.vue'
|
||||||
import UserAssignRoleForm from './UserAssignRoleForm.vue'
|
import UserAssignRoleForm from './UserAssignRoleForm.vue'
|
||||||
import DeptTree from './DeptTree.vue'
|
import DeptTree from './DeptTree.vue'
|
||||||
@@ -691,7 +692,7 @@ const pformRef = ref()
|
|||||||
const setformRef = ref()
|
const setformRef = ref()
|
||||||
const emailformRef = ref()
|
const emailformRef = ref()
|
||||||
const xlsxformRef = ref()
|
const xlsxformRef = ref()
|
||||||
|
const psformRef = ref()
|
||||||
const openForm = (type: string, id?: number) => {
|
const openForm = (type: string, id?: number) => {
|
||||||
console.log(queryParams)
|
console.log(queryParams)
|
||||||
if (queryParams.subjectName == '') {
|
if (queryParams.subjectName == '') {
|
||||||
@@ -717,6 +718,8 @@ const openForm = (type: string, id?: number) => {
|
|||||||
emailformRef.value.open(queryParams, type, id)
|
emailformRef.value.open(queryParams, type, id)
|
||||||
} else if (chooseQuestionType.value.includes('表格')) {
|
} else if (chooseQuestionType.value.includes('表格')) {
|
||||||
xlsxformRef.value.open(queryParams, type, id)
|
xlsxformRef.value.open(queryParams, type, id)
|
||||||
|
}else if (chooseQuestionType.value.includes('图像处理')) {
|
||||||
|
psformRef.value.open(queryParams, type, id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user