停车场-远程抬杠模块修改

This commit is contained in:
XinWei 2024-08-20 10:01:13 +08:00
parent 7c5408f7a2
commit d498a2062a
3 changed files with 62 additions and 42 deletions

View File

@ -5,6 +5,7 @@ export interface LiftingRodVO {
id: number // id
parkNumber: string // 停车场编号
passagewayId: string // 通道Id
status: number // 状态
}
// 远程抬杠日志 API

View File

@ -13,6 +13,11 @@
<el-form-item label="通道Id" prop="passagewayId">
<el-input v-model="formData.passagewayId" placeholder="请输入通道Id" />
</el-form-item>
<el-form-item label="状态" prop="status">
<el-radio-group v-model="formData.status">
<el-radio label="1">请选择字典生成</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
<template #footer>
<el-button @click="submitForm" type="primary" :disabled="formLoading"> </el-button>
@ -37,6 +42,7 @@ const formData = ref({
id: undefined,
parkNumber: undefined,
passagewayId: undefined,
status: undefined,
})
const formRules = reactive({
parkNumber: [{ required: true, message: '停车场编号不能为空', trigger: 'blur' }],
@ -92,6 +98,7 @@ const resetForm = () => {
id: undefined,
parkNumber: undefined,
passagewayId: undefined,
status: undefined,
}
formRef.value?.resetFields()
}

View File

@ -6,7 +6,7 @@
:model="queryParams"
ref="queryFormRef"
:inline="true"
label-width="auto"
label-width="68px"
>
<el-form-item label="停车场编号" prop="parkNumber">
<el-input
@ -37,6 +37,16 @@
class="!w-240px"
/>
</el-form-item>
<el-form-item label="状态" prop="status">
<el-select
v-model="queryParams.status"
placeholder="请选择状态"
clearable
class="!w-240px"
>
<el-option label="请选择字典生成" value="" />
</el-select>
</el-form-item>
<el-form-item>
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
@ -74,6 +84,7 @@
:formatter="dateFormatter"
width="180px"
/>
<el-table-column label="状态" align="center" prop="status" />
<el-table-column label="操作" align="center">
<template #default="scope">
<el-button
@ -129,6 +140,7 @@ const queryParams = reactive({
parkNumber: undefined,
passagewayId: undefined,
createTime: [],
status: undefined,
})
const queryFormRef = ref() //
const exportLoading = ref(false) //