unitType
This commit is contained in:
		
							parent
							
								
									913ac0d8c3
								
							
						
					
					
						commit
						09dc3fe8d1
					
				| 
						 | 
				
			
			@ -133,7 +133,10 @@ export default {
 | 
			
		|||
  },
 | 
			
		||||
  created() {
 | 
			
		||||
    this.formInline = {
 | 
			
		||||
      unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
 | 
			
		||||
      unitType:
 | 
			
		||||
        JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
 | 
			
		||||
          ? 3
 | 
			
		||||
          : 2,
 | 
			
		||||
      marketId: this.marketId,
 | 
			
		||||
      shopId: this.shopId,
 | 
			
		||||
    };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -103,7 +103,10 @@ export default {
 | 
			
		|||
  },
 | 
			
		||||
  created() {
 | 
			
		||||
    this.formInline = {
 | 
			
		||||
      unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
 | 
			
		||||
      unitType:
 | 
			
		||||
        JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
 | 
			
		||||
          ? 3
 | 
			
		||||
          : 2,
 | 
			
		||||
      marketId: this.marketId,
 | 
			
		||||
      shopId: this.shopId,
 | 
			
		||||
    };
 | 
			
		||||
| 
						 | 
				
			
			@ -135,7 +138,10 @@ export default {
 | 
			
		|||
    },
 | 
			
		||||
    reset() {
 | 
			
		||||
      this.formInline = {
 | 
			
		||||
        unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
 | 
			
		||||
        unitType:
 | 
			
		||||
          JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
 | 
			
		||||
            ? 3
 | 
			
		||||
            : 2,
 | 
			
		||||
        marketId: this.marketId,
 | 
			
		||||
        shopId: this.shopId,
 | 
			
		||||
      };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -344,7 +344,11 @@ export default {
 | 
			
		|||
          this.ruleForm = {
 | 
			
		||||
            marketId: this.marketId,
 | 
			
		||||
            shopId: this.shopId,
 | 
			
		||||
            unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
 | 
			
		||||
            unitType:
 | 
			
		||||
              JSON.parse(sessionStorage.getItem("userInfo")).role ==
 | 
			
		||||
              "ROLE_MERCHANT"
 | 
			
		||||
                ? 3
 | 
			
		||||
                : 2,
 | 
			
		||||
            list: [],
 | 
			
		||||
          };
 | 
			
		||||
          this.modalConfig.title = "添加积分兑换商品";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -105,7 +105,10 @@ export default {
 | 
			
		|||
  },
 | 
			
		||||
  created() {
 | 
			
		||||
    this.formInline = {
 | 
			
		||||
      unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
 | 
			
		||||
      unitType:
 | 
			
		||||
        JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
 | 
			
		||||
          ? 3
 | 
			
		||||
          : 2,
 | 
			
		||||
      marketId: this.marketId,
 | 
			
		||||
      shopId: this.shopId,
 | 
			
		||||
    };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -159,7 +159,10 @@ export default {
 | 
			
		|||
  },
 | 
			
		||||
  created() {
 | 
			
		||||
    this.formInline = {
 | 
			
		||||
      unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
 | 
			
		||||
      unitType:
 | 
			
		||||
        JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
 | 
			
		||||
          ? 3
 | 
			
		||||
          : 2,
 | 
			
		||||
      marketId: this.marketId,
 | 
			
		||||
      shopId: this.shopId,
 | 
			
		||||
    };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue