Files
ba_web/src/views/Training/AnnualInspection/components/detailForm.vue
2025-09-22 17:16:42 +08:00

62 lines
1.5 KiB
Vue

<template>
<div class="dialog" v-if="dialogForm">
<div class="head_box">
<span>详情</span>
<div>
<el-button size="small" @click="close">关闭</el-button>
</div>
</div>
<div class="cntinfo">
<FormMessage ref="FormRef" v-model="listQuery" :disabled="true" :formList="formList">
</FormMessage>
</div>
</div>
</template>
<script setup>
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 dialogForm = ref(false);
const FormRef = ref();
const listQuery = ref({});
const loading = ref(false);
const formList = reactive([
[
{ label: "姓名", prop: "name", type: "input" },
{ label: "证件号码", prop: "idNumber", type: "input" },
{ label: "联系电话", prop: "contactInfo", type: "input" },
],
[
{ label: "是否年检", prop: "isUploaded", type: "input" },
{ label: "年检时间", prop: "inspectionTime", type: "input" },
],
])
// 初始化数据
const init = (type, id,) => {
dialogForm.value = true;
};
const close = () => {
dialogForm.value = false;
FormRef.value.reset()
};;
defineExpose({init})
</script>
<style lang="scss" scoped>
@import "@/assets/css/layout.scss";
.mapBox{
width: calc(100% - 24rem);
height:500px;
overflow: hidden;
margin: 0 12rem;
}
</style>