【修改】修改试卷页面,其它细节

This commit is contained in:
YOHO\20373
2025-05-29 20:13:12 +08:00
parent 457178f093
commit 93891d575e
29 changed files with 5340 additions and 937 deletions

View File

@@ -447,7 +447,6 @@ const formData = ref({
analysis: '',
quLevel: '',
pointNames: '',
audit: '',
subjectName: '',
status: ' ',
keywords: '',
@@ -725,7 +724,9 @@ formData.value = {
...res,
fileUploads,
};
keywordList.value = res.keywords
? res.keywords.split(',').filter(item => item.trim() !== '').map(item => ({ keyword: item.trim() }))
: []
} catch (error) {
console.error("获取问题失败:", error);
} finally {
@@ -793,10 +794,7 @@ const submitForm = async () => {
/** 重置表单 */
const resetForm = () => {
formData.value = {
content: `---------------------------------------------------------------------
请在打开的窗口中,进行下列操作,完成所有操作后,请关闭窗口。
---------------------------------------------------------------------
`,
content: `<p>---------------------------------------------------------------------</p><p> 请在打开的窗口中,进行下列操作,完成所有操作后,请关闭窗口。</p><p>---------------------------------------------------------------------</p><p>`,
specialtyName: '',
courseName: '',
quBankName: '',
@@ -805,7 +803,6 @@ const resetForm = () => {
analysis: '',
quLevel: '0',
pointNames: '',
audit: '',
subjectName: '',
status: '0',
keywords: '',

View File

@@ -65,18 +65,13 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="启用状态" prop="status">
<el-radio-group v-model="formData.status">
<el-radio
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
:key="dict.value"
:value="dict.value"
>
{{ dict.label }}
</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-form-item label="启用状态" prop="status">
<el-radio-group v-model="formData.status">
<el-radio :label="'0'">启用</el-radio>
<el-radio :label="'1'">禁用</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">

View File

@@ -436,7 +436,7 @@ const dialogTitle = ref('') // 弹窗的标题
const formLoading = ref(false) // 表单的加载中1修改时的数据加载2提交的按钮禁用
const formType = ref('') // 表单的类型create - 新增update - 修改
const formData = ref({
content: '',
content: '<p>---------------------------------------------------------------------</p><p> 请在打开的窗口中,进行下列操作,完成所有操作后,请关闭窗口。</p><p>---------------------------------------------------------------------</p><p>',
specialtyName: '',
courseName: '',
quBankName: '',
@@ -445,7 +445,6 @@ const formData = ref({
analysis: '',
quLevel: '',
pointNames: '',
audit: '',
subjectName: '',
status: ' ',
keywords: '',
@@ -749,7 +748,9 @@ formData.value = {
};
keywordList.value = res.keywords.split(',').map(item => ({ keyword: item.trim() }));
keywordList.value = res.keywords
? res.keywords.split(',').filter(item => item.trim() !== '').map(item => ({ keyword: item.trim() }))
: []
} finally {
formLoading.value = false
@@ -816,9 +817,7 @@ const submitForm = async () => {
/** 重置表单 */
const resetForm = () => {
formData.value = {
content: `---------------------------------------------------------------------
请在打开的窗口中,进行下列操作,完成所有操作后,请关闭窗口。
---------------------------------------------------------------------
content: `<p>---------------------------------------------------------------------</p><p> 请在打开的窗口中,进行下列操作,完成所有操作后,请关闭窗口。</p><p>---------------------------------------------------------------------</p><p>
`,
specialtyName: '',
courseName: '',
@@ -828,7 +827,6 @@ const resetForm = () => {
analysis: '',
quLevel: '0',
pointNames: '',
audit: '',
subjectName: '',
status: '0',
keywords: '',

View File

@@ -443,7 +443,7 @@ const formData = ref({
analysis: '',
quLevel: '',
pointNames: '',
audit: '',
subjectName: '',
status: ' ',
keywords: '',
@@ -868,7 +868,9 @@ formData.value = {
...res,
fileUploads,
};
keywordList.value = res.keywords
? res.keywords.split(',').filter(item => item.trim() !== '').map(item => ({ keyword: item.trim() }))
: []
} finally {
formLoading.value = false
@@ -936,14 +938,7 @@ const submitForm = async () => {
/** 重置表单 */
const resetForm = () => {
formData.value = {
content: `---------------------------------------------------------------------------
注意事项:
请利用图形化管理界面或者MySQL命令行工具在指定的试题数据库中进行答题。
MySQL连接地址为localhost
MySQL登录用户名为root
MySQL端口号为6033或3306
MySQL密码为空
---------------------------------------------------------------------------`,
content: `<p style="text-align: left;"><span style="font-family: 宋体;">--------------------------------------------------------------------------- </span></p><p style="text-align: left;"><span style="font-family: 宋体;">注意事项:</span></p><p style="text-align: left;"><span style="font-family: 宋体;">请利用图形化管理界面或者MySQL命令行工具在指定的试题数据库中进行答题。 </span></p><p style="text-align: left;"><span style="font-family: 宋体;">MySQL连接地址为localhost</span></p><p style="text-align: left;"><span style="font-family: 宋体;">MySQL登录用户名为root</span></p><p style="text-align: left;"><span style="font-family: 宋体;">MySQL端口号为3306或者6033</span></p><p style="text-align: left;"><span style="font-family: 宋体;">MySQL密码为空</span></p><p style="text-align: left;"><span style="font-family: 宋体;">---------------------------------------------------------------------------</span>`,
specialtyName: '',
courseName: '',
quBankName: '',
@@ -952,7 +947,6 @@ MySQL密码为空
analysis: '',
quLevel: '0',
pointNames: '',
audit: '',
subjectName: '',
status: '0',
keywords: '',