diff --git a/ruoyi-ui/src/views/carManagement/fleetManagement/index.vue b/ruoyi-ui/src/views/carManagement/fleetManagement/index.vue
index 1054e90..7817cd7 100644
--- a/ruoyi-ui/src/views/carManagement/fleetManagement/index.vue
+++ b/ruoyi-ui/src/views/carManagement/fleetManagement/index.vue
@@ -140,7 +140,7 @@
:placeholder="t('common.pleaseEnter') + t('baseCar.carQueue.title')"/>
-
+
@@ -206,7 +206,7 @@ const rules = {
const form = ref({
id: null,
title: null,
- state: true,
+ state: 0,
});
/** 查询岗位列表 */
@@ -239,7 +239,7 @@ function reset() {
form.value = {
id: null,
title: null,
- state: true,
+ state: 0,
};
proxy.resetForm("postRef");
}
@@ -276,7 +276,6 @@ function handleUpdate(row) {
const postId = row.id || ids.value;
getCarQueue(postId).then(response => {
form.value = response.data;
- form.value.state = response.data.state === 1
open.value = true;
title.value = t('baseCar.carQueue.editTitle');
});
@@ -285,7 +284,6 @@ function handleUpdate(row) {
/** 提交按钮 */
function submitForm() {
let params = form.value
- params.state = params.state ? 1 : 0
proxy.$refs["postRef"].validate(valid => {
if (valid) {
if (params.id != undefined) {
diff --git a/ruoyi-ui/src/views/carManagement/type/index.vue b/ruoyi-ui/src/views/carManagement/type/index.vue
index 2666c0e..811859a 100644
--- a/ruoyi-ui/src/views/carManagement/type/index.vue
+++ b/ruoyi-ui/src/views/carManagement/type/index.vue
@@ -117,7 +117,7 @@
-
+
轮胎布局图
@@ -265,7 +265,7 @@ const queryParams = ref({
companyCode: undefined,
code: undefined,
title: undefined,
- state: undefined,
+ state: 0,
axleTotal: undefined,
tyreTotal: undefined,
isDelete: undefined,
@@ -292,7 +292,7 @@ const rules = {
const form = ref({
id: null,
axleTotal: 2,
- state: true,
+ state: 0,
});
/** 查询岗位列表 */
@@ -317,7 +317,7 @@ function reset() {
form.value = {
id: null,
axleTotal: 2,
- state: true,
+ state: 0,
};
TireRowInfo.value = [1, 1]
proxy.resetForm("postRef");
@@ -355,7 +355,6 @@ function handleUpdate(row) {
const postId = row.id || ids.value;
getCartype(postId).then(response => {
let params = response.data
- params.state === 1 ? params.state = true : params.state = false
let TireRow = params.title?.split('T')[1]?.split('|').filter(e => e !== '') || []
let title = []
TireRow.forEach((res) => {
@@ -373,7 +372,6 @@ function submitForm() {
let title = (2 * TireRowInfo.value.reduce((a, b) => a + b)) + 'T' + TireRowInfo.value.map((e, index) => {
return `${index + 1}-${e}|`
}).join('')
- form.value.state ? form.value.state = 1 : form.value.state = 0
let params = {...form.value, title}
proxy.$refs["postRef"].validate(valid => {
if (valid) {