'单位信息、从业人员管理、申请人员、申请人员、保安待培训人员管理、保安培训项目管理、保安考试管理页面对接处理'
This commit is contained in:
@ -26,24 +26,34 @@ const FormRef = ref();
|
||||
const loading = ref(false);
|
||||
const listQuery = ref({});
|
||||
const openType = ref("")
|
||||
|
||||
const props = defineProps({
|
||||
dict: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
},
|
||||
})
|
||||
|
||||
const rules = reactive({
|
||||
spbt: [{ required: true, message: "请输入视频标题", trigger: "blur" }],
|
||||
tm: [{ required: true, message: "请输入题目", trigger: "blur" }],
|
||||
type: [{ required: true, message: "请选择题型", trigger: "blur" }],
|
||||
});
|
||||
|
||||
const formList = reactive([
|
||||
[
|
||||
{ label: "题型", prop: "tx", type: "select",options: [{label:'单选题',value:'1'},{label:'多选题',value:'2'},{label:'判断题',value:'3'}] },
|
||||
{ label: "题型", prop: "type", type: "select", options: [{label:'单选题',value:'1'},{label:'多选题',value:'2'},{label:'判断题',value:'3'}] },
|
||||
{ label: "题目", prop: "tm", type: "input" },
|
||||
],
|
||||
[
|
||||
{ label: "选项A", prop: "a", type: "input" },
|
||||
{ label: "选项B", prop: "b", type: "input" },
|
||||
{ label: "选项A", prop: "optionA", type: "input" },
|
||||
{ label: "选项B", prop: "optionB", type: "input" },
|
||||
],
|
||||
[
|
||||
{ label: "选项C", prop: "c", type: "input" },
|
||||
{ label: "选项D", prop: "d", type: "input" },
|
||||
{ label: "选项C", prop: "optionC", type: "input" },
|
||||
{ label: "选项D", prop: "optionD", type: "input" },
|
||||
],
|
||||
[
|
||||
{ label: "选项E", prop: "e", type: "input" },
|
||||
{ label: "选项E", prop: "optionE", type: "input" },
|
||||
{ label: "答案", prop: "dw", type: "input" }
|
||||
],
|
||||
])
|
||||
@ -59,18 +69,19 @@ const init = (type, id,) => {
|
||||
|
||||
const save = () => {
|
||||
FormRef.value.submit(()=>{
|
||||
// loading.value = true;
|
||||
// let url = title.value == '新增' ? `/mosty-jbld/jbldzsd/add` : `/mosty-jbld/jbldzsd/update`;
|
||||
// qcckPost(listQuery.value, url).then(() => {
|
||||
// loading.value = false;
|
||||
loading.value = true;
|
||||
let url = title.value == '新增' ? `/mosty-base/baxx/tkgl/addd` : `/mosty-base/baxx/tkgl/edit`;
|
||||
qcckPost(listQuery.value, url).then(() => {
|
||||
loading.value = false;
|
||||
proxy.$message.success("保存成功");
|
||||
// emit("refresh");
|
||||
emit("refresh");
|
||||
close();
|
||||
// }).catch(() => {
|
||||
// loading.value = false;
|
||||
// })
|
||||
}).catch(() => {
|
||||
loading.value = false;
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
const close = () => {
|
||||
dialogForm.value = false;
|
||||
FormRef.value.reset()
|
||||
|
||||
Reference in New Issue
Block a user