|
@@ -45,6 +45,7 @@ export default {
|
|
|
preUrl: '',
|
|
|
deleteDialogSwitch: false,
|
|
|
deleteSuccessDialogSwitch: false,
|
|
|
+ show: false, // 删除车牌时提示内容
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -193,24 +194,28 @@ export default {
|
|
|
path: `vehicleAddOrEdit?id=${id}&carno=${vehicleNo}&carType=${carType}`,
|
|
|
});
|
|
|
},
|
|
|
+ activeCarnoFilter(str){
|
|
|
+ return str.replace(/(.{2})/, '$1·')
|
|
|
+ },
|
|
|
// 删除
|
|
|
toDelete(item) {
|
|
|
this.activeId = item.id;
|
|
|
this.activeCarno = item.vehicleNo;
|
|
|
+ this.show = true
|
|
|
|
|
|
- Dialog.confirm({
|
|
|
- title: '删除已绑定车牌',
|
|
|
- message: '是否确认删除已经绑定车牌' + '\n' + this.activeCarno,
|
|
|
- confirmButtonColor: '#333',
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- // on confirm
|
|
|
- this.doDelete();
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- // on cancel
|
|
|
- // this.cancelDelete();
|
|
|
- });
|
|
|
+ // Dialog.confirm({
|
|
|
+ // title: '删除已绑定车牌',
|
|
|
+ // message: '是否确认删除已经绑定车牌' + '\n' + this.activeCarno,
|
|
|
+ // confirmButtonColor: '#333',
|
|
|
+ // })
|
|
|
+ // .then(() => {
|
|
|
+ // // on confirm
|
|
|
+ // this.doDelete();
|
|
|
+ // })
|
|
|
+ // .catch(() => {
|
|
|
+ // // on cancel
|
|
|
+ // // this.cancelDelete();
|
|
|
+ // });
|
|
|
// this.deleteDialogSwitch = true;
|
|
|
},
|
|
|
doDelete() {
|
|
@@ -227,15 +232,18 @@ export default {
|
|
|
if (result.data) {
|
|
|
// this.deleteDialogSwitch = false;
|
|
|
// this.deleteSuccessDialogSwitch = true;
|
|
|
-
|
|
|
- Dialog.alert({
|
|
|
+
|
|
|
+ Toast({
|
|
|
message: '删除成功',
|
|
|
- confirmButtonColor: '#333',
|
|
|
- }).then(() => {
|
|
|
- // on confirm
|
|
|
- // this.doDelete();
|
|
|
- this.getKipMemberVehicles();
|
|
|
+ type: 'success',
|
|
|
+ position: 'top',
|
|
|
+ duration: 5000,
|
|
|
+ className: 'top300',
|
|
|
+ icon: require('../static/images/success.svg')
|
|
|
});
|
|
|
+ setTimeout(() => {
|
|
|
+ this.getKipMemberVehicles();
|
|
|
+ }, 1500)
|
|
|
// _this.$refs.deleteSuccessDialog.open()
|
|
|
return;
|
|
|
}
|