微调
This commit is contained in:
parent
1037e5e742
commit
e3d914ec95
@ -228,5 +228,8 @@ export enum DICT_TYPE {
|
||||
// ========== TICKET - 票务系统模块 ==========
|
||||
ASSET_STATUS_TYPE = 'asset_status_type', // 设备状态
|
||||
TRANSACTION_TYPE_NO = 'transaction_type_no', // 交易类型(订单类型)
|
||||
CERTIFICATE_TYPE = 'certificate_type' // 证件类型
|
||||
CERTIFICATE_TYPE = 'certificate_type', // 证件类型
|
||||
|
||||
// ========== LIFT_ROD - 远程抬杠模块 ==========
|
||||
LIFTINGROD_STATUS = 'liftingrod_status'
|
||||
}
|
||||
|
@ -43,7 +43,7 @@
|
||||
<!-- <el-card style="width: 100%; margin: 8px 0; text-align: center;" shadow="never"> -->
|
||||
<div class="flex flex-wrap gap-4" style="float: right;">
|
||||
<el-card
|
||||
style="width: 230px;margin: 8px 0;text-align: center;color:#409eff; cursor: pointer;" shadow="hover"
|
||||
style="width: 170px;margin: 8px 0;text-align: center;color:#409eff; cursor: pointer;" shadow="hover"
|
||||
@click="goToXXLJob">任务调度中心</el-card>
|
||||
</div>
|
||||
<!-- </el-card> -->
|
||||
|
@ -1,12 +1,6 @@
|
||||
<template>
|
||||
<Dialog :title="dialogTitle" v-model="dialogVisible">
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="formData"
|
||||
:rules="formRules"
|
||||
label-width="100px"
|
||||
v-loading="formLoading"
|
||||
>
|
||||
<el-form ref="formRef" :model="formData" :rules="formRules" label-width="100px" v-loading="formLoading">
|
||||
<el-form-item label="停车场编号" prop="parkNumber">
|
||||
<el-input v-model="formData.parkNumber" placeholder="请输入停车场编号" />
|
||||
</el-form-item>
|
||||
@ -53,7 +47,7 @@ const formRef = ref() // 表单 Ref
|
||||
/** 打开弹窗 */
|
||||
const open = async (type: string, id?: number) => {
|
||||
dialogVisible.value = true
|
||||
dialogTitle.value = t('action.' + type)
|
||||
dialogTitle.value = type == 'upload' ? "下发指令" : t('action.' + type)
|
||||
formType.value = type
|
||||
resetForm()
|
||||
// 修改时,设置数据
|
||||
@ -79,7 +73,7 @@ const submitForm = async () => {
|
||||
const data = formData.value as unknown as LiftingRodVO
|
||||
if (formType.value === 'create') {
|
||||
await LiftingRodApi.createLiftingRod(data)
|
||||
message.success(t('common.createSuccess'))
|
||||
message.success('下发成功')
|
||||
} else {
|
||||
await LiftingRodApi.updateLiftingRod(data)
|
||||
message.success(t('common.updateSuccess'))
|
||||
|
@ -6,7 +6,7 @@
|
||||
:model="queryParams"
|
||||
ref="queryFormRef"
|
||||
:inline="true"
|
||||
label-width="68px"
|
||||
label-width="auto"
|
||||
>
|
||||
<el-form-item label="停车场编号" prop="parkNumber">
|
||||
<el-input
|
||||
@ -53,10 +53,10 @@
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
@click="openForm('create')"
|
||||
@click="openForm('upload')"
|
||||
v-hasPermi="['parking:lifting-rod:create']"
|
||||
>
|
||||
<Icon icon="ep:plus" class="mr-5px" /> 新增
|
||||
<Icon icon="ep:plus" class="mr-5px" /> 下发指令
|
||||
</el-button>
|
||||
<el-button
|
||||
type="success"
|
||||
@ -84,7 +84,12 @@
|
||||
:formatter="dateFormatter"
|
||||
width="180px"
|
||||
/>
|
||||
<el-table-column label="状态" align="center" prop="status" />
|
||||
|
||||
<el-table-column label="状态" align="center" prop="status" >
|
||||
<template #default="scope">
|
||||
<dict-tag :type="DICT_TYPE.LIFTINGROD_STATUS" :value="scope.row.status" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
@ -124,6 +129,7 @@ import { dateFormatter } from '@/utils/formatTime'
|
||||
import download from '@/utils/download'
|
||||
import { LiftingRodApi, LiftingRodVO } from '@/api/parking/instructiondelivery/liftingrod'
|
||||
import LiftingRodForm from './LiftingRodForm.vue'
|
||||
import { getStrDictOptions, DICT_TYPE } from '@/utils/dict'
|
||||
|
||||
/** 远程抬杠日志 列表 */
|
||||
defineOptions({ name: 'LiftingRod' })
|
||||
|
Loading…
Reference in New Issue
Block a user