bug
This commit is contained in:
@@ -59,6 +59,7 @@ import basicPageMixin from '@/mixins/lb/basicPageMixin';
|
||||
import { publicFormatter } from '@/utils/dict';
|
||||
import Editor from '@/components/Editor';
|
||||
import addSparts from './addSparts.vue';
|
||||
import { deleteConfig } from '@/api/equipment/base/spare-parts/config'
|
||||
|
||||
const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
|
||||
|
||||
@@ -282,7 +283,7 @@ export default {
|
||||
const id = row.id;
|
||||
this.info({ id }).then((response) => {
|
||||
this.form = response.data;
|
||||
this.form.responsible = this.form.responsible.split(',')
|
||||
this.form.responsible = this.form.responsible ? this.form.responsible.split(',') : undefined
|
||||
this.open = true;
|
||||
this.title = '修改备品备件配置';
|
||||
});
|
||||
@@ -315,9 +316,9 @@ export default {
|
||||
handleDelete(row) {
|
||||
const id = row.id;
|
||||
this.$modal
|
||||
.confirm('是否确认删除记录"' + row.name + '"?')
|
||||
.confirm('是否确认删除配置名为"' + row.name + '"的数据?')
|
||||
.then(function () {
|
||||
return this.delete({ id });
|
||||
return deleteConfig(id);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
|
||||
Reference in New Issue
Block a user