diff --git a/src/api/paper/question/index.ts b/src/api/paper/question/index.ts
index 47fb6ba..0552510 100644
--- a/src/api/paper/question/index.ts
+++ b/src/api/paper/question/index.ts
@@ -41,9 +41,12 @@ export const getBankList = () => {
}
// 删除试题
-export const removeQuestion = (ids: string[]) => {
+export const removeQuestions = (ids) => {
return request.delete({ url: '/exam/question/' + ids})
}
+export async function removeQuestion(id) {
+ return await request.delete({ url: '/exam/question/' + id })
+}
// 新增试题
export function addQuestion(data: any) {
@@ -55,6 +58,12 @@ export function editQuestion(data: any) {
return request.put({url: '/exam/question', data});
}
+export function editQuestionNoAudit(data: any) {
+ return request.put({url: '/exam/question/NoAudit', data});
+}
+
+
+
export const getQuestionExamineList = (params: QuestionQueryVO) => {
return request.get({ url: '/exam/question/auditList', params })
diff --git a/src/views/paper/audit/ChoiceForm.vue b/src/views/paper/audit/ChoiceForm.vue
index 583bcfb..3ae5f85 100644
--- a/src/views/paper/audit/ChoiceForm.vue
+++ b/src/views/paper/audit/ChoiceForm.vue
@@ -16,23 +16,11 @@
-
-
-
-
-
-
-
-
+
-
-
-
-
-
@@ -42,7 +30,7 @@
-
+
@@ -52,39 +40,24 @@
-
-
-
-
-
-
-
-
+
-
-
-
-
- {{ dict.label }}
-
-
-
-
+
-
-
-
+
+
+ 启用
+ 禁用
+
+
+
@@ -450,7 +423,7 @@ const submitForm = async () => {
await QuestionApi.addQuestion(data)
message.success(t('common.createSuccess'))
} else {
- await QuestionApi.editQuestion(data)
+ await QuestionApi.editQuestionNoAudit(data)
message.success(t('common.updateSuccess'))
}
dialogVisible.value = false
diff --git a/src/views/paper/audit/index.vue b/src/views/paper/audit/index.vue
index d3260c5..acce65b 100644
--- a/src/views/paper/audit/index.vue
+++ b/src/views/paper/audit/index.vue
@@ -83,7 +83,7 @@
filterable
allow-create
default-first-option
- placeholder="请选择同步服务器"
+ placeholder="请选择服务器"
class="!w-240px"
>
修改
-
删除
-
+ -->
@@ -624,7 +624,7 @@ const findNamePathFromTreeList = (treeList: Tree[], targetId: number): string[]
/** 添加/修改操作 */
const formRef = ref()
const cformRef = ref()
-const openForm = (type: string, id?: number) => {
+const openForm = (type: string, row: any) => {
console.log(queryParams)
// if (queryParams.subjectName == "") {
// return message.confirm('请选择题型!');
@@ -634,7 +634,7 @@ const openForm = (type: string, id?: number) => {
// } else {
// formRef.value.open(queryParams, type, id)
// }
- formRef.value.open(queryParams, type, id)
+ formRef.value.open(queryParams, type, row.quId)
}
/** 用户导入 */
diff --git a/src/views/paper/question/BrowerForm.vue b/src/views/paper/question/BrowerForm.vue
index 6fa55bb..ccbc60c 100644
--- a/src/views/paper/question/BrowerForm.vue
+++ b/src/views/paper/question/BrowerForm.vue
@@ -322,7 +322,7 @@
diff --git a/src/views/paper/question/FileForm.vue b/src/views/paper/question/FileForm.vue
index d8c092c..3f3750c 100644
--- a/src/views/paper/question/FileForm.vue
+++ b/src/views/paper/question/FileForm.vue
@@ -322,7 +322,7 @@
diff --git a/src/views/paper/question/MysqlForm.vue b/src/views/paper/question/MysqlForm.vue
index 396b2c7..1ed33b8 100644
--- a/src/views/paper/question/MysqlForm.vue
+++ b/src/views/paper/question/MysqlForm.vue
@@ -319,7 +319,7 @@
diff --git a/src/views/paper/question/index.vue b/src/views/paper/question/index.vue
index eb7d227..e0434c7 100644
--- a/src/views/paper/question/index.vue
+++ b/src/views/paper/question/index.vue
@@ -74,9 +74,17 @@
- 搜索
- 重置
- 搜索
+ 重置 -->
+
+ 批量删除
+
+ {
// 删除的二次确认
await message.delConfirm()
// 发起删除
- await UserApi.deleteUser(id)
+ await QuestionApi.removeQuestions(id)
message.success(t('common.delSuccess'))
// 刷新列表
await getList()
} catch {}
}
+const handleDeletes = async () => {
+ try {
+ const rows = selections.value;
+ if (!rows.length) {
+ message.error('请至少选择一条数据');
+ return;
+ }
+
+ selectedRows.value = rows.map((d: any) => d.quId); // 保存选中的行数据
+ await QuestionApi.removeQuestions(selectedRows.value)
+ message.success(t('common.delSuccess'))
+ // 刷新列表
+ await getList()
+ } catch {}
+}
+
+
+
+
/** 重置密码 */
const handleResetPwd = async (row: UserApi.UserVO) => {
try {
diff --git a/src/views/task/exam/components/steps/step3/index.vue b/src/views/task/exam/components/steps/step3/index.vue
index 3517938..2dbe3f0 100644
--- a/src/views/task/exam/components/steps/step3/index.vue
+++ b/src/views/task/exam/components/steps/step3/index.vue
@@ -39,7 +39,7 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+