1.修复bug

prod
x_z 2 years ago
parent 4b13477044
commit f5ee1c9753

File diff suppressed because it is too large Load Diff

@ -94,7 +94,12 @@
<script> <script>
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
import modifyDialog from "@/views/system/param/busTypeChangeModify.vue"; import modifyDialog from "@/views/system/param/busTypeChangeModify.vue";
import {getBusTypeChangeList, updateBusTypeChange, addBusTypeChange, deleteBusTypeChange} from "@/api/basic/busTypeChange"; import {
getBusTypeChangeList,
updateBusTypeChange,
addBusTypeChange,
deleteBusTypeChange
} from "@/api/basic/busTypeChange";
export default { export default {
data() { data() {
@ -209,15 +214,10 @@ export default {
addBusTypeChange(this.inputQuery).then((res) => { addBusTypeChange(this.inputQuery).then((res) => {
if (res.code === 20000) { if (res.code === 20000) {
this.loading = false; this.loading = false;
this.cancelDialog();
this.getList(); this.getList();
} else {
this.$message.error(res.message);
} }
}).catch((error) => { }).catch((error) => {
this.loading = false; this.loading = false;
this.$message.error(error.message);
this.cancelDialog();
}); });
} else { } else {
updateBusTypeChange(this.inputQuery).then((res) => { updateBusTypeChange(this.inputQuery).then((res) => {
@ -238,6 +238,15 @@ export default {
handleAddClick() { handleAddClick() {
this.formName = 'add'; this.formName = 'add';
this.inputQuery = {
id: null,
originName: null,
originAction: null,
targetAction: null,
name: null,
enable: null,
remark: null
};
this.modifyDialogVisible = true; this.modifyDialogVisible = true;
}, },

Loading…
Cancel
Save