bug
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
import moment from 'moment';
|
||||
import basicPageMixin from '@/mixins/lb/basicPageMixin';
|
||||
import CustomDialogForm from './CustomDialogForm.vue';
|
||||
import { deleteRepair } from '@/api/equipment/base/repair'
|
||||
|
||||
const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
|
||||
|
||||
@@ -239,7 +240,7 @@ export default {
|
||||
// 表单参数
|
||||
form: {},
|
||||
basePath: '/base/equipment-repair-log',
|
||||
mode: null,
|
||||
mode: null
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@@ -375,9 +376,9 @@ export default {
|
||||
handleDelete(row) {
|
||||
const id = row.id;
|
||||
this.$modal
|
||||
.confirm('是否确认删除记录"' + row.name + '"?')
|
||||
.then(function () {
|
||||
return this.delete({ id });
|
||||
.confirm('是否确认删除维修单号为"' + row.repairOrderNumber + '"的数据?')
|
||||
.then(() => {
|
||||
return deleteRepair(id);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
@@ -411,6 +412,7 @@ export default {
|
||||
},
|
||||
// 处理表格按钮
|
||||
handleTableBtnClick({ data, type }) {
|
||||
console.log('nihc', data, type)
|
||||
switch (type) {
|
||||
case 'edit':
|
||||
this.handleUpdate(data);
|
||||
|
||||
Reference in New Issue
Block a user