【修改】试卷任务增加修改操作,试卷换题增加关键字搜索条件,mysql出题增加数据库名字段
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
</Dialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, nextTick } from 'vue';
|
||||
import { onMounted } from 'vue';
|
||||
import { useFormData } from '@/utils/use-form-data';
|
||||
@@ -130,8 +130,8 @@ const specialtyOptions = ref([]);
|
||||
taskNum:'',
|
||||
taskSpecialty: '',
|
||||
taskType: '1',
|
||||
isTemplate: '',
|
||||
status: '',
|
||||
isTemplate: 1,
|
||||
status: 0,
|
||||
updateTime: '',
|
||||
updateBy: '',
|
||||
deptId: '',
|
||||
@@ -187,7 +187,7 @@ const fetchSpecialtyOptions = async () => {
|
||||
saveOrUpdate(form)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
message.success(msg);
|
||||
message.success('修改成功');
|
||||
handleCancel();
|
||||
emit('done');
|
||||
})
|
||||
@@ -199,8 +199,15 @@ const fetchSpecialtyOptions = async () => {
|
||||
};
|
||||
|
||||
/** 弹窗打开事件 */
|
||||
const open = () => {
|
||||
resetFields();
|
||||
const open = async (type: 'create' | 'update', data?: any) => {
|
||||
console.log(data+"datadatadata")
|
||||
if (data) {
|
||||
assignFields(data);
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
resetFields();
|
||||
isUpdate.value = false;
|
||||
}
|
||||
|
||||
// 设置批次为 当前时间 + 5位随机数
|
||||
const now = new Date();
|
||||
|
Reference in New Issue
Block a user