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