...
|
...
|
@@ -8,7 +8,7 @@ |
|
|
<com-selection :url="selectUrl" :selected-data="{id:shopId,text:shopName}" :placeholder="'请选择店铺'"></com-selection>
|
|
|
</div>
|
|
|
<div class="shopInfo">
|
|
|
<span @click=''>店铺ID:<b>{{showShopId}}{{state1.id}}</b></span>
|
|
|
<span @click=''>店铺ID:<b>{{showShopId}}</b></span>
|
|
|
<span>店铺名称:<b>{{showShopName}}</b></span>
|
|
|
</div>
|
|
|
<div class="clearfix"></div>
|
...
|
...
|
@@ -36,25 +36,29 @@ |
|
|
import pageheader from '../../../../components/pageheader/index';
|
|
|
import grid from '../../../../components/grid/index';
|
|
|
import selection from '../../../../components/selection/index';
|
|
|
{}
|
|
|
|
|
|
export default{
|
|
|
components: {
|
|
|
comPageheader: pageheader,
|
|
|
comGrid: grid,
|
|
|
comSelection: selection
|
|
|
},
|
|
|
vuex:{
|
|
|
getters: {
|
|
|
state1 : function (state) {
|
|
|
stateData : function (state) {
|
|
|
return {state}=state;
|
|
|
}
|
|
|
},
|
|
|
actions: {
|
|
|
setShop : function ({dispatch}) {
|
|
|
dispatch("SETSHOP")
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
comPageheader: pageheader,
|
|
|
comGrid: grid,
|
|
|
comSelection: selection
|
|
|
},
|
|
|
data(){
|
|
|
return {
|
|
|
shopId: -1,
|
|
|
shopName: '--',
|
|
|
shopId: -11,
|
|
|
shopName: '-3-',
|
|
|
selectUrl: '/ShopsRest/selectCheckPassShopsByName',
|
|
|
categoryNum: 0,
|
|
|
grid: {
|
...
|
...
|
@@ -86,13 +90,8 @@ |
|
|
},
|
|
|
methods: {
|
|
|
initShop(){
|
|
|
console.log(this.$route.params);
|
|
|
if(this.$route.params.shopId){
|
|
|
this.shopId = this.$route.params.shopId;
|
|
|
}
|
|
|
if(this.$route.params.shopName) {
|
|
|
this.shopName = this.$route.params.shopName;
|
|
|
}
|
|
|
this.shopId = this.stateData.shopId;
|
|
|
this.shopName = this.stateData.shopName;
|
|
|
},
|
|
|
getCategoryList(){
|
|
|
this.$broadcast('grid-reload',{shop_id:this.shopId});
|
...
|
...
|
@@ -111,7 +110,8 @@ |
|
|
completeSelect(data){
|
|
|
this.shopId = data.id;
|
|
|
this.shopName = data.text;
|
|
|
this.getCategoryList();
|
|
|
this.setShop(data.id, data.text);
|
|
|
//this.getCategoryList();
|
|
|
},
|
|
|
completeGrid(data){
|
|
|
this.categoryNum = data.length;
|
...
|
...
|
|