新增轮胎信息界面

master
夜笙歌 2 years ago
parent 1bea80f36d
commit 414292346e

@ -201,7 +201,7 @@
<el-input v-model="form.sensorID" placeholder="请输入岗位名称"/> <el-input v-model="form.sensorID" placeholder="请输入岗位名称"/>
</el-form-item> </el-form-item>
<el-form-item label="当前花纹深度" prop="depth"> <el-form-item label="当前花纹深度" prop="depth">
<el-input-number v-model="form.depth" /> <el-input-number v-model="form.depth"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<template #footer> <template #footer>
@ -217,7 +217,7 @@
<script setup name="Post"> <script setup name="Post">
import {addPost, delPost, getPost, listPost, updatePost} from "@/api/system/post"; import {addPost, delPost, getPost, listPost, updatePost} from "@/api/system/post";
const searchCriteria = { const searchCriteria = ref({
brand: [ brand: [
{ {
label: '玲珑', label: '玲珑',
@ -242,11 +242,23 @@ const searchCriteria = {
value: 'R567' value: 'R567'
}, },
] ]
} })
const {proxy} = getCurrentInstance(); const {proxy} = getCurrentInstance();
const {sys_normal_disable} = proxy.useDict("sys_normal_disable"); const {sys_normal_disable} = proxy.useDict("sys_normal_disable");
/**
* postList 表格数据
* open 模态框开关标识
* loading 表格加载状态开关标识
* showSearch 搜索区域开关标识
* ids 选择行id
* single 修改按钮是否可用标识
* multiple 删除按钮是否可用标识
* total 表格当前页码
* title 模态框标题
* */
const postList = ref([]); const postList = ref([]);
const open = ref(false); const open = ref(false);
const loading = ref(true); const loading = ref(true);
@ -257,29 +269,27 @@ const multiple = ref(true);
const total = ref(0); const total = ref(0);
const title = ref(""); const title = ref("");
const data = reactive({ const queryParams = ref({
form: {}, pageNum: 1,
queryParams: { pageSize: 10,
pageNum: 1, brand: undefined,
pageSize: 10, type: undefined,
brand: undefined, licensePlateNumber: undefined,
type: undefined, serialNumber: undefined,
licensePlateNumber: undefined, RFID: undefined,
serialNumber: undefined, WheelPosition: undefined,
RFID: undefined, sensorID: undefined,
WheelPosition: undefined, time: [],
sensorID: undefined, })
time: null,
}, const rules = {
rules: { brand: [{required: true, message: "轮胎品牌不能为空", trigger: "blur"}],
brand: [{required: true, message: "轮胎品牌不能为空", trigger: "blur"}], type: [{required: true, message: "轮胎型号不能为空", trigger: "blur"}],
type: [{required: true, message: "轮胎型号不能为空", trigger: "blur"}], serialNumber: [{required: true, message: "轮胎编号不能为空", trigger: "blur"}],
serialNumber: [{required: true, message: "轮胎编号不能为空", trigger: "blur"}], depth: [{required: true, message: "当前花纹深度不能为空", trigger: "blur"}],
depth: [{required: true, message: "当前花纹深度不能为空", trigger: "blur"}], }
}
});
const {queryParams, form, rules} = toRefs(data); const form = ref({});
/** 查询岗位列表 */ /** 查询岗位列表 */
function getList() { function getList() {
@ -317,8 +327,9 @@ function handleQuery() {
} }
/** 重置按钮操作 */ /** 重置按钮操作 */
function resetQuery() { const resetQuery = () => {
proxy.resetForm("queryRef"); proxy.resetForm("queryRef");
queryParams.value.time = []
handleQuery(); handleQuery();
} }

Loading…
Cancel
Save