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