运费模版
This commit is contained in:
parent
7317367716
commit
effc36a756
|
@ -67,10 +67,20 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.searchForm = {
|
if (
|
||||||
name: "",
|
JSON.parse(sessionStorage.getItem("userInfo")).role === "ROLE_MERCHANT"
|
||||||
linkId: this.marketId ? this.marketId : this.shopId,
|
) {
|
||||||
};
|
this.searchForm = {
|
||||||
|
name: "",
|
||||||
|
linkId: this.shopId,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
this.searchForm = {
|
||||||
|
name: "",
|
||||||
|
linkId: this.marketId ? this.marketId : this.shopId,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.oTable.reload();
|
this.$refs.oTable.reload();
|
||||||
});
|
});
|
||||||
|
@ -95,10 +105,19 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
Reset() {
|
Reset() {
|
||||||
this.searchForm = {
|
if (
|
||||||
name: "",
|
JSON.parse(sessionStorage.getItem("userInfo")).role === "ROLE_MERCHANT"
|
||||||
linkId: this.marketId ? this.marketId : this.shopId,
|
) {
|
||||||
};
|
this.searchForm = {
|
||||||
|
name: "",
|
||||||
|
linkId: this.shopId,
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
this.searchForm = {
|
||||||
|
name: "",
|
||||||
|
linkId: this.marketId ? this.marketId : this.shopId,
|
||||||
|
};
|
||||||
|
}
|
||||||
this.$refs.oTable.reload();
|
this.$refs.oTable.reload();
|
||||||
},
|
},
|
||||||
addFareTemplate() {
|
addFareTemplate() {
|
||||||
|
|
Loading…
Reference in New Issue