Commit 333457f5 authored by xd's avatar xd

修改切换专柜

parent 4986eedb
...@@ -21,22 +21,23 @@ ...@@ -21,22 +21,23 @@
<script> <script>
import { getStoreList } from "@/api/sidebar/voucher" import { getStoreList } from "@/api/sidebar/voucher"
import { log } from 'util';
export default { export default {
data() { data() {
return { return {
radio: "1", radio: '',
userId: '', userId: '',
list: [] list: []
} }
}, },
created() { created() {
this.getList() this.getList()
this.userId = sessionStorage.getItem('userId') this.radio = this.$route.query.userId
}, },
methods: { methods: {
getList() { getList() {
let params = { let params = {
user_id: this.userId user_id: this.$route.query.userId
} }
getStoreList(params).then(res => { getStoreList(params).then(res => {
console.log(res.data); console.log(res.data);
......
...@@ -278,7 +278,13 @@ export default { ...@@ -278,7 +278,13 @@ export default {
this.$router.push("counterInfo"); this.$router.push("counterInfo");
}, },
switchBarClick() { switchBarClick() {
this.$router.push("ChangeCounter"); // this.$router.push("ChangeCounter");
this.$router.push({
path:'ChangeCounter',
query:{
userId: this.zcache.userId
}
})
}, },
testButtonClick() {}, testButtonClick() {},
menu01Click() {}, menu01Click() {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment