修改bug

zhairh
wangwei 3 years ago
parent 4f5cafbea7
commit c5757c5717

@ -91,6 +91,9 @@ export default {
}, },
methods: { methods: {
getUnitList() { getUnitList() {
if(!this.unitquery.key){
this.getUnitListByCode(this.codeId)
}else{
this.loading = true; this.loading = true;
getBasicUnitMaintains(this.unitquery) getBasicUnitMaintains(this.unitquery)
.then((response) => { .then((response) => {
@ -100,6 +103,7 @@ export default {
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
}); });
}
}, },
getUnitListByCode(row) { getUnitListByCode(row) {
let query = { let query = {

Loading…
Cancel
Save