新增轮胎信息界面

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,9 +269,7 @@ 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: {},
queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
brand: undefined, brand: undefined,
@ -269,17 +279,17 @@ const data = reactive({
RFID: undefined, RFID: undefined,
WheelPosition: undefined, WheelPosition: undefined,
sensorID: undefined, sensorID: undefined,
time: null, time: [],
}, })
rules: {
const 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