xinwei #7
@ -1,41 +1,42 @@
|
|||||||
import request from '@/config/axios'
|
import request from '@/config/axios'
|
||||||
|
|
||||||
// 远程抬杠日志 VO
|
// 远程抬杠日志 VO
|
||||||
export interface LiftingRodVO {
|
export interface LiftingRodVO {
|
||||||
id: number // id
|
id: number // id
|
||||||
parkNumber: string // 停车场编号
|
parkNumber: string // 停车场编号
|
||||||
passagewayId: string // 通道Id
|
passagewayId: string // 通道Id
|
||||||
}
|
status: number // 状态
|
||||||
|
}
|
||||||
// 远程抬杠日志 API
|
|
||||||
export const LiftingRodApi = {
|
// 远程抬杠日志 API
|
||||||
// 查询远程抬杠日志分页
|
export const LiftingRodApi = {
|
||||||
getLiftingRodPage: async (params: any) => {
|
// 查询远程抬杠日志分页
|
||||||
return await request.get({ url: `/parking/lifting-rod/page`, params })
|
getLiftingRodPage: async (params: any) => {
|
||||||
},
|
return await request.get({ url: `/parking/lifting-rod/page`, params })
|
||||||
|
},
|
||||||
// 查询远程抬杠日志详情
|
|
||||||
getLiftingRod: async (id: number) => {
|
// 查询远程抬杠日志详情
|
||||||
return await request.get({ url: `/parking/lifting-rod/get?id=` + id })
|
getLiftingRod: async (id: number) => {
|
||||||
},
|
return await request.get({ url: `/parking/lifting-rod/get?id=` + id })
|
||||||
|
},
|
||||||
// 新增远程抬杠日志
|
|
||||||
createLiftingRod: async (data: LiftingRodVO) => {
|
// 新增远程抬杠日志
|
||||||
return await request.post({ url: `/parking/lifting-rod/create`, data })
|
createLiftingRod: async (data: LiftingRodVO) => {
|
||||||
},
|
return await request.post({ url: `/parking/lifting-rod/create`, data })
|
||||||
|
},
|
||||||
// 修改远程抬杠日志
|
|
||||||
updateLiftingRod: async (data: LiftingRodVO) => {
|
// 修改远程抬杠日志
|
||||||
return await request.put({ url: `/parking/lifting-rod/update`, data })
|
updateLiftingRod: async (data: LiftingRodVO) => {
|
||||||
},
|
return await request.put({ url: `/parking/lifting-rod/update`, data })
|
||||||
|
},
|
||||||
// 删除远程抬杠日志
|
|
||||||
deleteLiftingRod: async (id: number) => {
|
// 删除远程抬杠日志
|
||||||
return await request.delete({ url: `/parking/lifting-rod/delete?id=` + id })
|
deleteLiftingRod: async (id: number) => {
|
||||||
},
|
return await request.delete({ url: `/parking/lifting-rod/delete?id=` + id })
|
||||||
|
},
|
||||||
// 导出远程抬杠日志 Excel
|
|
||||||
exportLiftingRod: async (params) => {
|
// 导出远程抬杠日志 Excel
|
||||||
return await request.download({ url: `/parking/lifting-rod/export-excel`, params })
|
exportLiftingRod: async (params) => {
|
||||||
},
|
return await request.download({ url: `/parking/lifting-rod/export-excel`, params })
|
||||||
}
|
},
|
||||||
|
}
|
||||||
|
@ -13,6 +13,11 @@
|
|||||||
<el-form-item label="通道Id" prop="passagewayId">
|
<el-form-item label="通道Id" prop="passagewayId">
|
||||||
<el-input v-model="formData.passagewayId" placeholder="请输入通道Id" />
|
<el-input v-model="formData.passagewayId" placeholder="请输入通道Id" />
|
||||||
</el-form-item>
|
</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>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<el-button @click="submitForm" type="primary" :disabled="formLoading">确 定</el-button>
|
<el-button @click="submitForm" type="primary" :disabled="formLoading">确 定</el-button>
|
||||||
@ -37,6 +42,7 @@ const formData = ref({
|
|||||||
id: undefined,
|
id: undefined,
|
||||||
parkNumber: undefined,
|
parkNumber: undefined,
|
||||||
passagewayId: undefined,
|
passagewayId: undefined,
|
||||||
|
status: undefined,
|
||||||
})
|
})
|
||||||
const formRules = reactive({
|
const formRules = reactive({
|
||||||
parkNumber: [{ required: true, message: '停车场编号不能为空', trigger: 'blur' }],
|
parkNumber: [{ required: true, message: '停车场编号不能为空', trigger: 'blur' }],
|
||||||
@ -92,6 +98,7 @@ const resetForm = () => {
|
|||||||
id: undefined,
|
id: undefined,
|
||||||
parkNumber: undefined,
|
parkNumber: undefined,
|
||||||
passagewayId: undefined,
|
passagewayId: undefined,
|
||||||
|
status: undefined,
|
||||||
}
|
}
|
||||||
formRef.value?.resetFields()
|
formRef.value?.resetFields()
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
:model="queryParams"
|
:model="queryParams"
|
||||||
ref="queryFormRef"
|
ref="queryFormRef"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
label-width="auto"
|
label-width="68px"
|
||||||
>
|
>
|
||||||
<el-form-item label="停车场编号" prop="parkNumber">
|
<el-form-item label="停车场编号" prop="parkNumber">
|
||||||
<el-input
|
<el-input
|
||||||
@ -37,6 +37,16 @@
|
|||||||
class="!w-240px"
|
class="!w-240px"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</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-form-item>
|
||||||
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
<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>
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
||||||
@ -74,6 +84,7 @@
|
|||||||
:formatter="dateFormatter"
|
:formatter="dateFormatter"
|
||||||
width="180px"
|
width="180px"
|
||||||
/>
|
/>
|
||||||
|
<el-table-column label="状态" align="center" prop="status" />
|
||||||
<el-table-column label="操作" align="center">
|
<el-table-column label="操作" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -129,6 +140,7 @@ const queryParams = reactive({
|
|||||||
parkNumber: undefined,
|
parkNumber: undefined,
|
||||||
passagewayId: undefined,
|
passagewayId: undefined,
|
||||||
createTime: [],
|
createTime: [],
|
||||||
|
status: undefined,
|
||||||
})
|
})
|
||||||
const queryFormRef = ref() // 搜索的表单
|
const queryFormRef = ref() // 搜索的表单
|
||||||
const exportLoading = ref(false) // 导出的加载中
|
const exportLoading = ref(false) // 导出的加载中
|
||||||
|
Loading…
Reference in New Issue
Block a user