肖凡4.8提交
parent
1e9f7abf01
commit
964eb1ce49
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div id="app">
|
||||
|
||||
<router-view />
|
||||
<theme-picker />
|
||||
</div>
|
||||
|
|
|
@ -86,3 +86,10 @@ export function getRealTimeDataTwo(vin) {
|
|||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteByVin(carVin) {
|
||||
return request({
|
||||
url: '/system/car/deleteByVin/'+carVin,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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 文件类型
|
||||
|
|
Loading…
Reference in New Issue