| | |
| | | methods: { |
| | | // 编辑车辆 |
| | | handleEdit(data){ |
| | | console.log(data) |
| | | this.dialogEdit = true |
| | | this.info = data; |
| | | }, |
| | |
| | | url: `/sccg/car_Manage/${myurl}?id=${id}`, |
| | | }) |
| | | .then(res => { |
| | | console.log(res); |
| | | this.$message({ |
| | | type: res.code === 200 ? 'success' : 'warning', |
| | | message: res.message |
| | |
| | | this.getCarList(); |
| | | }) |
| | | }) |
| | | .catch(_ => { console.log(2) }); |
| | | .catch(_ => { }); |
| | | }, |
| | | // 获取车辆列表 |
| | | async getCarList() { |
| | |
| | | url:`sccg/car_Manage/query_enforce?current=${currentPage}&size=${pageSize}&carNum=${carNum}`, |
| | | }) |
| | | .then(res=>{ |
| | | console.log(res); |
| | | arr = res.data; |
| | | }) |
| | | return arr; |