mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 20:28:44 +08:00 
			
		
		
		
	所有菜单的 name 都加上模块的前缀,避免冲突
This commit is contained in:
		@@ -77,7 +77,7 @@
 | 
			
		||||
import { createProperty, updateProperty, deleteProperty, getProperty, getPropertyPage } from "@/api/mall/product/property";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "Property",
 | 
			
		||||
  name: "ProductProperty",
 | 
			
		||||
  components: {
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
 
 | 
			
		||||
@@ -83,7 +83,7 @@ import {
 | 
			
		||||
} from '@/api/mall/product/property'
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "PropertyValue",
 | 
			
		||||
  name: "ProductPropertyValue",
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      // 遮罩层
 | 
			
		||||
 
 | 
			
		||||
@@ -227,7 +227,7 @@ import {getBrandList} from "@/api/mall/product/brand";
 | 
			
		||||
import {ProductSpuStatusEnum} from "@/utils/constants";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "Spu",
 | 
			
		||||
  name: "ProductSpu",
 | 
			
		||||
  data() {
 | 
			
		||||
    return {
 | 
			
		||||
      activeTabs: "all",
 | 
			
		||||
@@ -318,11 +318,11 @@ export default {
 | 
			
		||||
    },
 | 
			
		||||
    /** 新增按钮操作 */
 | 
			
		||||
    handleAdd() {
 | 
			
		||||
      this.$router.push({ name: 'SpuAdd'})
 | 
			
		||||
      this.$router.push({ name: 'ProductSpuCreate'})
 | 
			
		||||
    },
 | 
			
		||||
    /** 修改按钮操作 */
 | 
			
		||||
    handleUpdate(row) {
 | 
			
		||||
      this.$router.push({ name: 'SpuEdit', params: { spuId: row.id }})
 | 
			
		||||
      this.$router.push({ name: 'ProductSpuUpdate', params: { spuId: row.id }})
 | 
			
		||||
    },
 | 
			
		||||
    /** 删除按钮操作 */
 | 
			
		||||
    handleDelete(row) {
 | 
			
		||||
 
 | 
			
		||||
@@ -187,7 +187,6 @@
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
 | 
			
		||||
import {getBrandList} from "@/api/mall/product/brand";
 | 
			
		||||
import {getProductCategoryList} from "@/api/mall/product/category";
 | 
			
		||||
import {createSpu, getSpuDetail, updateSpu} from "@/api/mall/product/spu";
 | 
			
		||||
@@ -197,6 +196,7 @@ import ImageUpload from "@/components/ImageUpload";
 | 
			
		||||
import VideoUpload from "@/components/VideoUpload";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "ProductSave",
 | 
			
		||||
  components: {
 | 
			
		||||
    Editor,
 | 
			
		||||
    ImageUpload,
 | 
			
		||||
 
 | 
			
		||||
@@ -74,7 +74,7 @@ import { deleteCoupon, getCouponPage } from "@/api/mall/promotion/coupon";
 | 
			
		||||
import { DICT_TYPE, getDictDatas} from "@/utils/dict";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "Coupon",
 | 
			
		||||
  name: "PromotionCoupon",
 | 
			
		||||
  components: {
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
 
 | 
			
		||||
@@ -179,7 +179,7 @@ import { parseTime } from "@/utils/ruoyi";
 | 
			
		||||
import {changeRoleStatus} from "@/api/system/role";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "CouponTemplate",
 | 
			
		||||
  name: "PromotionCouponTemplate",
 | 
			
		||||
  components: {
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
 
 | 
			
		||||
@@ -156,7 +156,7 @@ import { getSkuOptionList } from "@/api/mall/product/sku";
 | 
			
		||||
import { deepClone } from "@/utils";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "DiscountActivity",
 | 
			
		||||
  name: "PromotionDiscountActivity",
 | 
			
		||||
  components: {
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
 
 | 
			
		||||
@@ -129,7 +129,7 @@ import {
 | 
			
		||||
import {getSpuSimpleList} from "@/api/mall/product/spu";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "RewardActivity",
 | 
			
		||||
  name: "PromotionRewardActivity",
 | 
			
		||||
  components: {
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
 
 | 
			
		||||
@@ -192,7 +192,7 @@ import { getSeckillTimeList } from "@/api/mall/promotion/seckillTime";
 | 
			
		||||
import { deepClone } from "@/utils";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
    name: "SeckillActivity",
 | 
			
		||||
    name: "PromotionSeckillActivity",
 | 
			
		||||
    components: {
 | 
			
		||||
    },
 | 
			
		||||
    data() {
 | 
			
		||||
 
 | 
			
		||||
@@ -68,7 +68,7 @@ import router from "@/router";
 | 
			
		||||
import { deepClone } from "@/utils";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "SeckillTime",
 | 
			
		||||
  name: "PromotionSeckillTime",
 | 
			
		||||
  components: {
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
 
 | 
			
		||||
@@ -104,7 +104,7 @@ import { datePickerOptions } from "@/utils/constants";
 | 
			
		||||
import { DICT_TYPE, getDictDatas } from "@/utils/dict";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "AfterSale",
 | 
			
		||||
  name: "TradeAfterSale",
 | 
			
		||||
  components: {
 | 
			
		||||
  },
 | 
			
		||||
  data() {
 | 
			
		||||
 
 | 
			
		||||
@@ -165,7 +165,7 @@
 | 
			
		||||
import { getOrderDetail } from "@/api/mall/trade/order";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "detail",
 | 
			
		||||
  name: "TradeOrderDetail",
 | 
			
		||||
  data () {
 | 
			
		||||
    return {
 | 
			
		||||
      detailGroups: [
 | 
			
		||||
 
 | 
			
		||||
@@ -143,7 +143,7 @@ import { datePickerOptions } from "@/utils/constants";
 | 
			
		||||
import { DICT_TYPE, getDictDatas } from "@/utils/dict";
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  name: "index",
 | 
			
		||||
  name: "TradeOrder",
 | 
			
		||||
  data () {
 | 
			
		||||
    return {
 | 
			
		||||
      // 遮罩层
 | 
			
		||||
@@ -232,7 +232,7 @@ export default {
 | 
			
		||||
      this.getList();
 | 
			
		||||
    },
 | 
			
		||||
    goToDetail (row) {
 | 
			
		||||
      this.$router.push({ path: '/trade/order/detail', query: { id: row.id }})
 | 
			
		||||
      this.$router.push({ name: 'TradeOrderDetail', query: { id: row.id }})
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user