肖凡4.8提交

肖凡 2024-04-08 14:59:44 +08:00
parent 1e9f7abf01
commit 964eb1ce49
3 changed files with 20 additions and 3 deletions

View File

@ -1,5 +1,6 @@
<template>
<div id="app">
<router-view />
<theme-picker />
</div>

View File

@ -86,3 +86,10 @@ export function getRealTimeDataTwo(vin) {
method: 'post'
})
}
export function deleteByVin(carVin) {
return request({
url: '/system/car/deleteByVin/'+carVin,
method: 'delete'
});
}

View File

@ -157,7 +157,7 @@
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
@click="handleDeleteByVin(scope.row)"
v-hasPermi="['system:car:remove']"
>删除</el-button>
<el-button
@ -226,8 +226,7 @@
</template>
<script>
import {list, add, update, findById, del, exportA, selectFence,open,close} from "@/api/system/car";
import {getRealTimeDataTwo} from "@/api/system/car";
import {list, add, update, findById, del, exportA, selectFence,open,close,deleteByVin} from "@/api/system/car";
export default {
name: "Car",
@ -411,6 +410,16 @@ export default {
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 删除按钮 */
handleDeleteByVin(row){
const vin=row.carVin
this.$modal.confirm('是否确认删除车辆管理编号为"'+vin+'"的数据项?').then(function (){
return deleteByVin(vin);
}).then(()=>{
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(()=>{});
},
handleExport() {
exportA(this.queryParams).then(response => {
// Blob MIME Excel