【新增】试题审核人审核时间,学校列表
This commit is contained in:
@@ -59,9 +59,15 @@ export function editQuestion(data: any) {
|
||||
export const getQuestionExamineList = (params: QuestionQueryVO) => {
|
||||
return request.get({ url: '/exam/question/auditList', params })
|
||||
}
|
||||
|
||||
export const getSchoolName = (params) => {
|
||||
return request.get({ url: '/exam/question/getSchoolName',params })
|
||||
}
|
||||
|
||||
export const getSchoolNameNopage = () => {
|
||||
return request.get({ url: '/exam/question/getSchoolNameNopage' })
|
||||
}
|
||||
|
||||
export const receiveAll = () => {
|
||||
return request.get({ url: '/rabbitmq/receiveAll' })
|
||||
}
|
||||
@@ -80,7 +86,6 @@ export const doPush = (data) => {
|
||||
}
|
||||
|
||||
|
||||
|
||||
export const connectSchoolAll = (ids: string[]) => {
|
||||
return request.post({
|
||||
url: '/rabbitmq/connectSchoolAll',
|
||||
|
@@ -76,21 +76,25 @@
|
||||
:inline="true"
|
||||
label-width="68px"
|
||||
>
|
||||
<el-form-item label="服务器" prop="status">
|
||||
|
||||
<el-form-item label="服务器" prop="source">
|
||||
<el-select
|
||||
v-model="queryParams.status"
|
||||
placeholder="请选择同步服务器"
|
||||
class="!w-240px"
|
||||
clearable
|
||||
v-model="queryParams.source"
|
||||
filterable
|
||||
allow-create
|
||||
default-first-option
|
||||
placeholder="请选择同步服务器"
|
||||
class="!w-240px"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in getIntDictOptions(DICT_TYPE.QUESTION_AUDIT)"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
v-for="item in schoolNameList"
|
||||
:key="item.name"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<!-- 状态切换单独一行 -->
|
||||
<el-radio-group v-model="queryParams.audit" @change="handleQuery">
|
||||
@@ -115,6 +119,7 @@
|
||||
<Icon icon="ep:download" /> 拉取
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="queryParams.audit === '' || queryParams.audit === '0'"
|
||||
type="primary"
|
||||
plain
|
||||
@click="handleTUI()"
|
||||
@@ -236,6 +241,21 @@
|
||||
:formatter="dateFormatter"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
label="审核时间"
|
||||
align="center"
|
||||
prop="updateTime"
|
||||
:formatter="dateFormatter"
|
||||
width="180"
|
||||
/>
|
||||
<el-table-column
|
||||
label="审核人"
|
||||
align="center"
|
||||
prop="updater"
|
||||
width="180"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
|
||||
<el-table-column label="操作" align="center" width="160">
|
||||
<template #default="scope">
|
||||
<div class="flex items-center justify-center">
|
||||
@@ -296,7 +316,7 @@ const message = useMessage() // 消息弹窗
|
||||
const { t } = useI18n() // 国际化
|
||||
|
||||
const loading = ref(true) // 列表的加载中
|
||||
|
||||
const schoolNameList = ref();
|
||||
const loadingSchool = ref(true)
|
||||
const dialogTitle = ref('')
|
||||
const total = ref(0) // 列表的总页数
|
||||
@@ -309,6 +329,7 @@ const queryParams = reactive({
|
||||
subjectName: "",
|
||||
audit: '',
|
||||
status:"",
|
||||
source:"",
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
})
|
||||
@@ -338,8 +359,11 @@ const handleCloseSyncDialog = () => {
|
||||
totalSchool.value = 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
const getSchool = async () => {
|
||||
const data = await QuestionApi.getSchoolNameNopage();
|
||||
schoolNameList.value=data
|
||||
console.log(data.list+"data.list")
|
||||
}
|
||||
const confirmSync = () => {
|
||||
if (selections.value.length === 0) {
|
||||
ElMessage.warning('请先选择要同步的学校');
|
||||
@@ -704,5 +728,6 @@ const handleRole = (row: UserApi.UserVO) => {
|
||||
/** 初始化 */
|
||||
onMounted(() => {
|
||||
getList()
|
||||
getSchool()
|
||||
})
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user