|
@@ -35,19 +35,37 @@
|
|
|
>
|
|
|
<template #right>
|
|
|
<template v-if="btnSelected === 1">
|
|
|
- <el-button size="mini" @click="add" type="primary">新增车辆</el-button>
|
|
|
- <el-button size="mini" @click="btnSelected = 5" type="success">查看白名单</el-button>
|
|
|
- <el-button size="mini" @click="btnSelected = 6" type="warning">查看黑名单</el-button>
|
|
|
+ <el-button size="mini" @click="add" type="primary"
|
|
|
+ >新增车辆</el-button
|
|
|
+ >
|
|
|
+ <el-button size="mini" @click="btnSelected = 5" type="success"
|
|
|
+ >查看白名单</el-button
|
|
|
+ >
|
|
|
+ <el-button size="mini" @click="btnSelected = 6" type="warning"
|
|
|
+ >查看黑名单</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
<template v-if="btnSelected === 5">
|
|
|
- <el-button size="mini" type="success" @click="addWhite(1)">添加白名单</el-button>
|
|
|
- <el-button size="mini" @click="btnSelected = 1" type="primary">查看车辆档案</el-button>
|
|
|
- <el-button size="mini" @click="btnSelected = 6" type="warning">查看黑名单</el-button>
|
|
|
+ <el-button size="mini" type="success" @click="addWhite(1)"
|
|
|
+ >添加白名单</el-button
|
|
|
+ >
|
|
|
+ <el-button size="mini" @click="btnSelected = 1" type="primary"
|
|
|
+ >查看车辆档案</el-button
|
|
|
+ >
|
|
|
+ <el-button size="mini" @click="btnSelected = 6" type="warning"
|
|
|
+ >查看黑名单</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
<template v-if="btnSelected === 6">
|
|
|
- <el-button size="mini" type="success" @click="addWhite(2)">添加黑名单</el-button>
|
|
|
- <el-button size="mini" @click="btnSelected = 1" type="primary">查看车辆档案</el-button>
|
|
|
- <el-button size="mini" @click="btnSelected = 5" type="success">查看白名单</el-button>
|
|
|
+ <el-button size="mini" type="success" @click="addWhite(2)"
|
|
|
+ >添加黑名单</el-button
|
|
|
+ >
|
|
|
+ <el-button size="mini" @click="btnSelected = 1" type="primary"
|
|
|
+ >查看车辆档案</el-button
|
|
|
+ >
|
|
|
+ <el-button size="mini" @click="btnSelected = 5" type="success"
|
|
|
+ >查看白名单</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</template>
|
|
|
<!-- <template v-slot:right>
|
|
@@ -67,22 +85,33 @@
|
|
|
</template> -->
|
|
|
<!-- 白名单操作 -->
|
|
|
<template #whiteHandle="scope">
|
|
|
- <el-button size="mini" type="primary" @click="del(scope.row, 1)">移出白名单</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="del(scope.row, 1)"
|
|
|
+ >移出白名单</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
<template #blackHandle="scope">
|
|
|
- <el-button size="mini" type="primary" @click="del(scope.row, 2)">移出黑名单</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="del(scope.row, 2)"
|
|
|
+ >移出黑名单</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
<!-- 车辆档案操作 -->
|
|
|
<template #handle="scope">
|
|
|
-<!-- <el-button size="mini" type="success" @click="onJoin(scope.row, 1)">加入白名单</el-button>-->
|
|
|
-<!-- <el-button size="mini" type="warning" @click="onJoin(scope.row, 2)">加入黑名单</el-button>-->
|
|
|
- <el-button size="mini" type="danger" @click="onJoin(scope.row, 3)">删除</el-button>
|
|
|
+ <!-- <el-button size="mini" type="success" @click="onJoin(scope.row, 1)">加入白名单</el-button>-->
|
|
|
+ <!-- <el-button size="mini" type="warning" @click="onJoin(scope.row, 2)">加入黑名单</el-button>-->
|
|
|
+ <el-button size="mini" type="danger" @click="onJoin(scope.row, 3)"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
<template v-slot:carNum="slotProps">
|
|
|
{{ slotProps.row.carNum ? slotProps.row.carNum : "未识别" }}
|
|
|
</template>
|
|
|
<template #carHandle="scope">
|
|
|
- <el-button v-if="scope.row.carNum" size="mini" @click="addBase(scope.row.carNum)">添加到车辆档案</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.carNum"
|
|
|
+ size="mini"
|
|
|
+ @click="addBase(scope.row.carNum)"
|
|
|
+ >添加到车辆档案</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
<template v-slot:originalPicPath="slotProps">
|
|
|
<img
|
|
@@ -174,11 +203,18 @@
|
|
|
</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog :title="showType ? '添加黑名单' : '添加白名单' " :visible.sync="isWhite" width="50%">
|
|
|
- <new-table :title="''"
|
|
|
+ <el-dialog
|
|
|
+ :title="showType ? '添加黑名单' : '添加白名单'"
|
|
|
+ :visible.sync="isWhite"
|
|
|
+ width="50%"
|
|
|
+ >
|
|
|
+ <new-table
|
|
|
+ :title="''"
|
|
|
:listData="abList"
|
|
|
- :tableItems="abItems"
|
|
|
- :shows="abShows" @selectionChange="selectionChange"></new-table>
|
|
|
+ :tableItems="abItems"
|
|
|
+ :shows="abShows"
|
|
|
+ @selectionChange="selectionChange"
|
|
|
+ ></new-table>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button @click="isWhite = false">取 消</el-button>
|
|
|
<el-button type="primary" @click="clickCar">
|
|
@@ -206,7 +242,16 @@ import {
|
|
|
getCarWashVideo,
|
|
|
getCarDrying,
|
|
|
getCarDryingTemp,
|
|
|
- getCarList, addCarWhite, addCarBlack, showCarWhite, addCarBase, showCarBlack, delCarWhite, delCarBlack, delCarBase, addWandB
|
|
|
+ getCarList,
|
|
|
+ addCarWhite,
|
|
|
+ addCarBlack,
|
|
|
+ showCarWhite,
|
|
|
+ addCarBase,
|
|
|
+ showCarBlack,
|
|
|
+ delCarWhite,
|
|
|
+ delCarBlack,
|
|
|
+ delCarBase,
|
|
|
+ addWandB,
|
|
|
} from "../../utils/chenApi";
|
|
|
import { timeDate } from "../../utils/index";
|
|
|
import { mapState } from "vuex";
|
|
@@ -227,7 +272,7 @@ export default {
|
|
|
return {
|
|
|
btnNames: [
|
|
|
// 按钮情况
|
|
|
- { id: 1, name: '车辆档案'},
|
|
|
+ { id: 1, name: "车辆档案" },
|
|
|
{ id: 2, name: "车辆通行" },
|
|
|
{ id: 3, name: "车辆洗消" },
|
|
|
{ id: 4, name: "车辆烘干" },
|
|
@@ -253,12 +298,12 @@ export default {
|
|
|
tempChartData: {},
|
|
|
isFile: false,
|
|
|
form: {
|
|
|
- carId: '',
|
|
|
- carNum: '',
|
|
|
+ carId: "",
|
|
|
+ carNum: "",
|
|
|
},
|
|
|
rules: {
|
|
|
- carId: [{ required: true, message: '请输入车辆编号', trigger: 'blur' }],
|
|
|
- carNum: [{ required: true, message: '请输入车牌号', trigger: 'blur' }]
|
|
|
+ carId: [{ required: true, message: "请输入车辆编号", trigger: "blur" }],
|
|
|
+ carNum: [{ required: true, message: "请输入车牌号", trigger: "blur" }],
|
|
|
},
|
|
|
showType: false,
|
|
|
isWhite: false,
|
|
@@ -266,21 +311,21 @@ export default {
|
|
|
abList: [],
|
|
|
abItems: [
|
|
|
{
|
|
|
- prop: 'carId',
|
|
|
- label: '车辆编号',
|
|
|
- minWidth: '120',
|
|
|
- slotName: 'carId'
|
|
|
+ prop: "carId",
|
|
|
+ label: "车辆编号",
|
|
|
+ minWidth: "120",
|
|
|
+ slotName: "carId",
|
|
|
},
|
|
|
{
|
|
|
- prop: 'carNum',
|
|
|
- label: '车牌号',
|
|
|
- minWidth: '120',
|
|
|
- slotName: 'carNum'
|
|
|
+ prop: "carNum",
|
|
|
+ label: "车牌号",
|
|
|
+ minWidth: "120",
|
|
|
+ slotName: "carNum",
|
|
|
},
|
|
|
],
|
|
|
abShows: {
|
|
|
showIndex: false,
|
|
|
- showSelect: true
|
|
|
+ showSelect: true,
|
|
|
},
|
|
|
selectList: [],
|
|
|
};
|
|
@@ -295,24 +340,24 @@ export default {
|
|
|
this.tableItems = tableItems[this.btnSelected - 1];
|
|
|
if (newVal === 1) {
|
|
|
// 档案
|
|
|
- this.getCarList()
|
|
|
+ this.getCarList();
|
|
|
} else if (newVal === 2) {
|
|
|
// 车辆通行
|
|
|
this.carPassage();
|
|
|
} else if (newVal === 3) {
|
|
|
// 车辆洗消
|
|
|
this.carWash();
|
|
|
- } else if(newVal=== 4){
|
|
|
+ } else if (newVal === 4) {
|
|
|
// 车辆烘干
|
|
|
this.carDrying();
|
|
|
- } else if(newVal === 5) {
|
|
|
+ } else if (newVal === 5) {
|
|
|
// 白名单
|
|
|
- this.ShowCarWhite()
|
|
|
+ this.ShowCarWhite();
|
|
|
} else {
|
|
|
// 黑名单
|
|
|
- this.ShowCarBlack()
|
|
|
+ this.ShowCarBlack();
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
this.formItems = formItems[this.btnSelected - 1];
|
|
@@ -321,8 +366,7 @@ export default {
|
|
|
this.tableItems = tableItems[this.btnSelected - 1];
|
|
|
this.tableShows = tableShows;
|
|
|
// 档案
|
|
|
- this.getCarList()
|
|
|
-
|
|
|
+ this.getCarList();
|
|
|
},
|
|
|
methods: {
|
|
|
getBtnSelected(id) {
|
|
@@ -336,22 +380,22 @@ export default {
|
|
|
this.listData = [];
|
|
|
if (this.btnSelected === 1) {
|
|
|
// 档案
|
|
|
- this.getCarList()
|
|
|
+ this.getCarList();
|
|
|
} else if (this.btnSelected === 2) {
|
|
|
// 车辆通行
|
|
|
this.carPassage();
|
|
|
} else if (this.btnSelected === 3) {
|
|
|
// 车辆洗消
|
|
|
this.carWash();
|
|
|
- } else if(this.btnSelected === 4){
|
|
|
+ } else if (this.btnSelected === 4) {
|
|
|
// 车辆烘干
|
|
|
this.carDrying();
|
|
|
- } else if(this.btnSelected === 5) {
|
|
|
+ } else if (this.btnSelected === 5) {
|
|
|
// 白名单
|
|
|
- this.ShowCarWhite()
|
|
|
+ this.ShowCarWhite();
|
|
|
} else {
|
|
|
// 黑名单
|
|
|
- this.ShowCarBlack()
|
|
|
+ this.ShowCarBlack();
|
|
|
}
|
|
|
},
|
|
|
// 修改size
|
|
@@ -361,17 +405,17 @@ export default {
|
|
|
this.listData = [];
|
|
|
if (this.btnSelected === 1) {
|
|
|
// 档案
|
|
|
- this.getCarList()
|
|
|
+ this.getCarList();
|
|
|
} else if (this.btnSelected === 2) {
|
|
|
// 车辆通行
|
|
|
this.carPassage();
|
|
|
} else if (this.btnSelected === 3) {
|
|
|
// 车辆洗消
|
|
|
this.carWash();
|
|
|
- } else if(this.btnSelected === 4){
|
|
|
+ } else if (this.btnSelected === 4) {
|
|
|
// 车辆烘干
|
|
|
this.carDrying();
|
|
|
- } else if(this.btnSelected === 5) {
|
|
|
+ } else if (this.btnSelected === 5) {
|
|
|
// 白名单
|
|
|
this.ShowCarWhite();
|
|
|
} else {
|
|
@@ -384,17 +428,17 @@ export default {
|
|
|
this.pageNum = val;
|
|
|
if (this.btnSelected === 1) {
|
|
|
// 档案
|
|
|
- this.getCarList()
|
|
|
+ this.getCarList();
|
|
|
} else if (this.btnSelected === 2) {
|
|
|
// 车辆通行
|
|
|
this.carPassage();
|
|
|
} else if (this.btnSelected === 3) {
|
|
|
// 车辆洗消
|
|
|
this.carWash();
|
|
|
- } else if(this.btnSelected === 4){
|
|
|
+ } else if (this.btnSelected === 4) {
|
|
|
// 车辆烘干
|
|
|
this.carDrying();
|
|
|
- } else if(this.btnSelected === 5) {
|
|
|
+ } else if (this.btnSelected === 5) {
|
|
|
// 白名单
|
|
|
this.ShowCarWhite();
|
|
|
} else {
|
|
@@ -428,49 +472,49 @@ export default {
|
|
|
getCarList() {
|
|
|
let params = {
|
|
|
pageNum: this.pageNum,
|
|
|
- pageSize: this.size
|
|
|
- }
|
|
|
- getCarList(params).then(res => {
|
|
|
- if(res.code == 200) {
|
|
|
+ pageSize: this.size,
|
|
|
+ };
|
|
|
+ getCarList(params).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
const result = JSON.parse(res.result);
|
|
|
this.total = parseInt(result.data.totalRows);
|
|
|
this.listData = result.data.pageData;
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
// 档案操作
|
|
|
onJoin(row, num) {
|
|
|
- if(num === 1) {
|
|
|
- addCarWhite({carId: row.carId}).then(res => {
|
|
|
- if(res.code == 200) {
|
|
|
- this.$message.success('加入白名单成功');
|
|
|
+ if (num === 1) {
|
|
|
+ addCarWhite({ carId: row.carId }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("加入白名单成功");
|
|
|
this.getCarList();
|
|
|
} else {
|
|
|
this.$message.error(res.errMsg);
|
|
|
}
|
|
|
- })
|
|
|
- } else if(num === 2) {
|
|
|
- addCarBlack({carId: row.carId}).then(res => {
|
|
|
- if(res.code == 200) {
|
|
|
- this.$message.success('加入黑名单成功');
|
|
|
+ });
|
|
|
+ } else if (num === 2) {
|
|
|
+ addCarBlack({ carId: row.carId }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("加入黑名单成功");
|
|
|
this.getCarList();
|
|
|
} else {
|
|
|
this.$message.error(res.errMsg);
|
|
|
}
|
|
|
- })
|
|
|
- } else if(num === 3) {
|
|
|
+ });
|
|
|
+ } else if (num === 3) {
|
|
|
// 删除
|
|
|
let params = {
|
|
|
- carIdList: [row.carId]
|
|
|
- }
|
|
|
- delCarBase(params).then(res => {
|
|
|
- if(res.code == 200) {
|
|
|
- this.$message.success('删除成功');
|
|
|
- this.getCarList()
|
|
|
+ carIdList: [row.carId],
|
|
|
+ };
|
|
|
+ delCarBase(params).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("删除成功");
|
|
|
+ this.getCarList();
|
|
|
} else {
|
|
|
this.$message.error(res.errMsg);
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
// 新增车辆
|
|
@@ -484,56 +528,56 @@ export default {
|
|
|
this.isWhite = true;
|
|
|
let params = {
|
|
|
pageNum: 1,
|
|
|
- pageSize: 200
|
|
|
- }
|
|
|
- if(num === 1) {
|
|
|
+ pageSize: 200,
|
|
|
+ };
|
|
|
+ if (num === 1) {
|
|
|
params.draw = 4;
|
|
|
this.showType = false;
|
|
|
} else {
|
|
|
this.showType = true;
|
|
|
params.draw = 5;
|
|
|
}
|
|
|
- addWandB(params).then(res => {
|
|
|
- if(res.code == 200) {
|
|
|
+ addWandB(params).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
const result = JSON.parse(res.result);
|
|
|
this.abList = result.data.pageData;
|
|
|
} else {
|
|
|
this.$message.error(res.errMsg);
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
clickCar() {
|
|
|
- if(this.selectList.length > 0) {
|
|
|
+ if (this.selectList.length > 0) {
|
|
|
let params = {};
|
|
|
let arr = [];
|
|
|
- this.selectList.forEach(item => {
|
|
|
- arr.push(item.carId)
|
|
|
- })
|
|
|
+ this.selectList.forEach((item) => {
|
|
|
+ arr.push(item.carId);
|
|
|
+ });
|
|
|
params.carIdList = arr;
|
|
|
- if(this.showType) {
|
|
|
+ if (this.showType) {
|
|
|
// 黑名单
|
|
|
- addCarBlack(params).then(res => {
|
|
|
- if(res.code == 200) {
|
|
|
- this.$message.success('添加成功!');
|
|
|
+ addCarBlack(params).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("添加成功!");
|
|
|
this.ShowCarBlack();
|
|
|
} else {
|
|
|
- this.$message.error(res.errMsg)
|
|
|
+ this.$message.error(res.errMsg);
|
|
|
}
|
|
|
this.isWhite = false;
|
|
|
- })
|
|
|
+ });
|
|
|
} else {
|
|
|
- addCarWhite(params).then(res => {
|
|
|
- if(res.code == 200) {
|
|
|
- this.$message.success('添加成功!');
|
|
|
+ addCarWhite(params).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("添加成功!");
|
|
|
this.ShowCarWhite();
|
|
|
} else {
|
|
|
- this.$message.error(res.errMsg)
|
|
|
+ this.$message.error(res.errMsg);
|
|
|
}
|
|
|
this.isWhite = false;
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
} else {
|
|
|
- this.$message.error('请选择要添加的车辆!');
|
|
|
+ this.$message.error("请选择要添加的车辆!");
|
|
|
}
|
|
|
},
|
|
|
// 选择
|
|
@@ -544,25 +588,24 @@ export default {
|
|
|
submitForm(formName) {
|
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
|
- if(this.showType) {
|
|
|
+ if (this.showType) {
|
|
|
// 编辑
|
|
|
-
|
|
|
} else {
|
|
|
let params = {
|
|
|
- carNum: this.form.carNum
|
|
|
- }
|
|
|
- addCarBase(params).then(res => {
|
|
|
- if(res.code == 200) {
|
|
|
+ carNum: this.form.carNum,
|
|
|
+ };
|
|
|
+ addCarBase(params).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
this.reset();
|
|
|
- this.$message.success('添加成功');
|
|
|
+ this.$message.success("添加成功");
|
|
|
this.getCarList();
|
|
|
} else {
|
|
|
this.$message.error(res.errMsg);
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
} else {
|
|
|
- console.log('error submit!!');
|
|
|
+ console.log("error submit!!");
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
@@ -572,78 +615,78 @@ export default {
|
|
|
this.isFile = false;
|
|
|
this.showType = false;
|
|
|
this.form = {
|
|
|
- carNum: '',
|
|
|
- carId: ''
|
|
|
- }
|
|
|
+ carNum: "",
|
|
|
+ carId: "",
|
|
|
+ };
|
|
|
},
|
|
|
// 白名单列表
|
|
|
ShowCarWhite() {
|
|
|
let params = {
|
|
|
pageNum: this.pageNum,
|
|
|
- pageSize: this.size
|
|
|
- }
|
|
|
- showCarWhite(params).then(res => {
|
|
|
- if(res.code == 200) {
|
|
|
+ pageSize: this.size,
|
|
|
+ };
|
|
|
+ showCarWhite(params).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
const result = JSON.parse(res.result);
|
|
|
this.total = parseInt(result.data.totalRows);
|
|
|
this.listData = result.data.pageData;
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
// 黑名单列表
|
|
|
ShowCarBlack() {
|
|
|
let params = {
|
|
|
pageNum: this.pageNum,
|
|
|
- pageSize: this.size
|
|
|
- }
|
|
|
- showCarBlack(params).then(res => {
|
|
|
- if(res.code == 200) {
|
|
|
+ pageSize: this.size,
|
|
|
+ };
|
|
|
+ showCarBlack(params).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
const result = JSON.parse(res.result);
|
|
|
this.total = parseInt(result.data.totalRows);
|
|
|
this.listData = result.data.pageData;
|
|
|
} else {
|
|
|
this.$message.error(res.errMsg);
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
// 移除黑白名单
|
|
|
del(row, num) {
|
|
|
let params = {
|
|
|
- carIdList: [row.carId]
|
|
|
- }
|
|
|
- if(num === 1) {
|
|
|
- delCarWhite(params).then(res => {
|
|
|
- if(res.code == 200) {
|
|
|
- this.$message.success('移出白名单成功!');
|
|
|
+ carIdList: [row.carId],
|
|
|
+ };
|
|
|
+ if (num === 1) {
|
|
|
+ delCarWhite(params).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("移出白名单成功!");
|
|
|
this.ShowCarWhite();
|
|
|
} else {
|
|
|
- this.$message.error(res.errMsg)
|
|
|
+ this.$message.error(res.errMsg);
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
} else {
|
|
|
- delCarBlack(params).then(res => {
|
|
|
- if(res.code == 200) {
|
|
|
- this.$message.success('移出黑名单成功!');
|
|
|
+ delCarBlack(params).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("移出黑名单成功!");
|
|
|
this.ShowCarBlack();
|
|
|
} else {
|
|
|
- this.$message.error(res.errMsg)
|
|
|
+ this.$message.error(res.errMsg);
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
|
|
|
// 车辆通行添加到车辆档案
|
|
|
addBase(id) {
|
|
|
let params = {
|
|
|
- carNum: id
|
|
|
- }
|
|
|
- addCarBase(params).then(res => {
|
|
|
- if(res.code == 200) {
|
|
|
- this.$message.success('添加成功!');
|
|
|
+ carNum: id,
|
|
|
+ };
|
|
|
+ addCarBase(params).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("添加成功!");
|
|
|
} else {
|
|
|
this.$message.error(res.errMsg);
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
// 车辆洗消
|
|
|
carWash() {
|