|
|
@ -319,28 +319,27 @@ const locale = (Cookies.get('language') || 'zh-cn') === 'zh-cn'
|
|
|
|
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);
|
|
|
|
|
|
|
|
// 搜索区域开关标识
|
|
|
|
const showSearch = ref(true);
|
|
|
|
const showSearch = ref(true);
|
|
|
|
|
|
|
|
// 选择行id
|
|
|
|
const ids = ref([]);
|
|
|
|
const ids = ref([]);
|
|
|
|
|
|
|
|
// 修改按钮是否可用标识
|
|
|
|
const single = ref(true);
|
|
|
|
const single = ref(true);
|
|
|
|
|
|
|
|
// 删除按钮是否可用标识
|
|
|
|
const multiple = ref(true);
|
|
|
|
const multiple = ref(true);
|
|
|
|
|
|
|
|
// 总条数
|
|
|
|
const total = ref(0);
|
|
|
|
const total = ref(0);
|
|
|
|
|
|
|
|
// 模态框标题
|
|
|
|
const title = ref("");
|
|
|
|
const title = ref("");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 搜索参数
|
|
|
|
const queryParams = ref({
|
|
|
|
const queryParams = ref({
|
|
|
|
pageNum: 1,
|
|
|
|
pageNum: 1,
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
@ -366,6 +365,7 @@ const queryParams = ref({
|
|
|
|
modifyName: null
|
|
|
|
modifyName: null
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 表单验证规则
|
|
|
|
const 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"}],
|
|
|
@ -373,6 +373,7 @@ const rules = {
|
|
|
|
depth: [{required: true, message: "花纹深度不能为空", trigger: "blur"}],
|
|
|
|
depth: [{required: true, message: "花纹深度不能为空", trigger: "blur"}],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 表单数据
|
|
|
|
const form = ref({});
|
|
|
|
const form = ref({});
|
|
|
|
|
|
|
|
|
|
|
|
/** 查询岗位列表 */
|
|
|
|
/** 查询岗位列表 */
|
|
|
|