Merge branch 'master' of http://60.204.229.151:20080/chenkangxu/merchant-web
This commit is contained in:
		
						commit
						4800980a48
					
				| 
						 | 
					@ -133,7 +133,10 @@ export default {
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  created() {
 | 
					  created() {
 | 
				
			||||||
    this.formInline = {
 | 
					    this.formInline = {
 | 
				
			||||||
      unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
 | 
					      unitType:
 | 
				
			||||||
 | 
					        JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
 | 
				
			||||||
 | 
					          ? 3
 | 
				
			||||||
 | 
					          : 2,
 | 
				
			||||||
      marketId: this.marketId,
 | 
					      marketId: this.marketId,
 | 
				
			||||||
      shopId: this.shopId,
 | 
					      shopId: this.shopId,
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -103,7 +103,10 @@ export default {
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  created() {
 | 
					  created() {
 | 
				
			||||||
    this.formInline = {
 | 
					    this.formInline = {
 | 
				
			||||||
      unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
 | 
					      unitType:
 | 
				
			||||||
 | 
					        JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
 | 
				
			||||||
 | 
					          ? 3
 | 
				
			||||||
 | 
					          : 2,
 | 
				
			||||||
      marketId: this.marketId,
 | 
					      marketId: this.marketId,
 | 
				
			||||||
      shopId: this.shopId,
 | 
					      shopId: this.shopId,
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
| 
						 | 
					@ -135,7 +138,10 @@ export default {
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    reset() {
 | 
					    reset() {
 | 
				
			||||||
      this.formInline = {
 | 
					      this.formInline = {
 | 
				
			||||||
        unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
 | 
					        unitType:
 | 
				
			||||||
 | 
					          JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
 | 
				
			||||||
 | 
					            ? 3
 | 
				
			||||||
 | 
					            : 2,
 | 
				
			||||||
        marketId: this.marketId,
 | 
					        marketId: this.marketId,
 | 
				
			||||||
        shopId: this.shopId,
 | 
					        shopId: this.shopId,
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -344,7 +344,11 @@ export default {
 | 
				
			||||||
          this.ruleForm = {
 | 
					          this.ruleForm = {
 | 
				
			||||||
            marketId: this.marketId,
 | 
					            marketId: this.marketId,
 | 
				
			||||||
            shopId: this.shopId,
 | 
					            shopId: this.shopId,
 | 
				
			||||||
            unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
 | 
					            unitType:
 | 
				
			||||||
 | 
					              JSON.parse(sessionStorage.getItem("userInfo")).role ==
 | 
				
			||||||
 | 
					              "ROLE_MERCHANT"
 | 
				
			||||||
 | 
					                ? 3
 | 
				
			||||||
 | 
					                : 2,
 | 
				
			||||||
            list: [],
 | 
					            list: [],
 | 
				
			||||||
          };
 | 
					          };
 | 
				
			||||||
          this.modalConfig.title = "添加积分兑换商品";
 | 
					          this.modalConfig.title = "添加积分兑换商品";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -105,7 +105,10 @@ export default {
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  created() {
 | 
					  created() {
 | 
				
			||||||
    this.formInline = {
 | 
					    this.formInline = {
 | 
				
			||||||
      unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
 | 
					      unitType:
 | 
				
			||||||
 | 
					        JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
 | 
				
			||||||
 | 
					          ? 3
 | 
				
			||||||
 | 
					          : 2,
 | 
				
			||||||
      marketId: this.marketId,
 | 
					      marketId: this.marketId,
 | 
				
			||||||
      shopId: this.shopId,
 | 
					      shopId: this.shopId,
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -159,7 +159,10 @@ export default {
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  created() {
 | 
					  created() {
 | 
				
			||||||
    this.formInline = {
 | 
					    this.formInline = {
 | 
				
			||||||
      unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
 | 
					      unitType:
 | 
				
			||||||
 | 
					        JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
 | 
				
			||||||
 | 
					          ? 3
 | 
				
			||||||
 | 
					          : 2,
 | 
				
			||||||
      marketId: this.marketId,
 | 
					      marketId: this.marketId,
 | 
				
			||||||
      shopId: this.shopId,
 | 
					      shopId: this.shopId,
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue