'考试管理人员管理'
This commit is contained in:
@ -18,8 +18,12 @@
|
||||
import { qcckPost , qcckGet} from "@/api/qcckApi.js";
|
||||
import FormMessage from "@/components/aboutTable/FormMessage.vue";
|
||||
import { ref, reactive,defineEmits,getCurrentInstance } from 'vue';
|
||||
|
||||
const emit = defineEmits(["refresh"]);
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { D_BAXX_KTLX } = proxy.dict("D_BAXX_KTLX");
|
||||
|
||||
const dialogForm = ref(false);
|
||||
const title = ref('');
|
||||
const FormRef = ref();
|
||||
@ -41,7 +45,7 @@ const rules = reactive({
|
||||
|
||||
const formList = reactive([
|
||||
[
|
||||
{ label: "题型", prop: "type", type: "select", options: [{label:'单选题',value:'1'},{label:'多选题',value:'2'},{label:'判断题',value:'3'}] },
|
||||
{ label: "题型", prop: "type", type: "select", options: D_BAXX_KTLX },
|
||||
{ label: "题目", prop: "tm", type: "input" },
|
||||
],
|
||||
[
|
||||
@ -60,11 +64,11 @@ const formList = reactive([
|
||||
|
||||
|
||||
// 初始化数据
|
||||
const init = (type, id,) => {
|
||||
const init = (type, row = {}) => {
|
||||
dialogForm.value = true;
|
||||
openType.value = type;
|
||||
title.value = type == "add" ? "新增" : "编辑";
|
||||
if(id) getDateById(id)
|
||||
listQuery.value = { ...row }
|
||||
};
|
||||
|
||||
const save = () => {
|
||||
|
||||
Reference in New Issue
Block a user