【修改】前端试题界面,推送试题按钮权限,细节优化
This commit is contained in:
@@ -200,13 +200,8 @@ const fetchSpecialtyOptions = async () => {
|
||||
|
||||
/** 弹窗打开事件 */
|
||||
const open = () => {
|
||||
if (props.data) {
|
||||
assignFields(props.data);
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
resetFields();
|
||||
isUpdate.value = false;
|
||||
}
|
||||
|
||||
// 设置批次为 当前时间 + 5位随机数
|
||||
const now = new Date();
|
||||
const pad = (n) => n.toString().padStart(2, '0');
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
|
||||
<Dialog v-model="isVisible" :title="'修改试卷任务'" width="1460" >
|
||||
<Dialog v-model="isVisible" :title="'修改试卷任务'" width="85%" >
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="form"
|
||||
|
@@ -204,9 +204,10 @@ const fetchSpecialtyOptions = async () => {
|
||||
// assignFields(props.data);
|
||||
// isUpdate.value = true;
|
||||
// } else {
|
||||
// resetFields();
|
||||
//
|
||||
// isUpdate.value = false;
|
||||
// }
|
||||
resetFields();
|
||||
// 设置批次为 当前时间 + 5位随机数
|
||||
const now = new Date();
|
||||
const pad = (n) => n.toString().padStart(2, '0');
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
|
||||
<Dialog v-model="isVisible" :title="'修改试卷任务'" width="1460" >
|
||||
<Dialog v-model="isVisible" :title="'修改试卷任务'" width="85%" >
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="form"
|
||||
|
@@ -207,7 +207,7 @@ const fetchSpecialtyOptions = async () => {
|
||||
// resetFields();
|
||||
// isUpdate.value = false;
|
||||
// }
|
||||
|
||||
resetFields();
|
||||
// 设置批次为 当前时间 + 5位随机数
|
||||
const now = new Date();
|
||||
const pad = (n) => n.toString().padStart(2, '0');
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
|
||||
<Dialog v-model="isVisible" :title="'修改试卷任务'" width="1460" >
|
||||
<Dialog v-model="isVisible" :title="'修改试卷任务'" width="85%" >
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="form"
|
||||
|
@@ -207,7 +207,7 @@ const fetchSpecialtyOptions = async () => {
|
||||
// resetFields();
|
||||
// isUpdate.value = false;
|
||||
// }
|
||||
|
||||
resetFields();
|
||||
// 设置批次为 当前时间 + 5位随机数
|
||||
const now = new Date();
|
||||
const pad = (n) => n.toString().padStart(2, '0');
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
|
||||
<Dialog v-model="isVisible" :title="'修改试卷任务'" width="1460" >
|
||||
<Dialog v-model="isVisible" :title="'修改试卷任务'" width="85%" >
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="form"
|
||||
|
@@ -207,6 +207,7 @@ const fetchSpecialtyOptions = async () => {
|
||||
// resetFields();
|
||||
// isUpdate.value = false;
|
||||
// }
|
||||
resetFields();
|
||||
// 设置批次为 当前时间 + 5位随机数
|
||||
const now = new Date();
|
||||
const pad = (n) => n.toString().padStart(2, '0');
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
|
||||
<Dialog v-model="isVisible" :title="'修改试卷任务'" width="1460" >
|
||||
<Dialog v-model="isVisible" :title="'修改试卷任务'" width="85%" >
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="form"
|
||||
|
@@ -209,6 +209,7 @@ const fetchSpecialtyOptions = async () => {
|
||||
// resetFields();
|
||||
// isUpdate.value = false;
|
||||
// }
|
||||
resetFields();
|
||||
// 设置批次为 当前时间 + 5位随机数
|
||||
const now = new Date();
|
||||
const pad = (n) => n.toString().padStart(2, '0');
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
|
||||
<Dialog v-model="isVisible" :title="'修改试卷任务'" width="1460" >
|
||||
<Dialog v-model="isVisible" :title="'修改试卷任务'" width="85%" >
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="form"
|
||||
|
Reference in New Issue
Block a user