所有菜单的 name 都加上模块的前缀,避免冲突

This commit is contained in:
YunaiV
2023-04-08 11:49:28 +08:00
parent 04c3cdf372
commit adb8b58967
70 changed files with 97 additions and 96 deletions

View File

@@ -77,7 +77,7 @@
import { createProperty, updateProperty, deleteProperty, getProperty, getPropertyPage } from "@/api/mall/product/property";
export default {
name: "Property",
name: "ProductProperty",
components: {
},
data() {

View File

@@ -83,7 +83,7 @@ import {
} from '@/api/mall/product/property'
export default {
name: "PropertyValue",
name: "ProductPropertyValue",
data() {
return {
// 遮罩层

View File

@@ -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) {

View File

@@ -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,

View File

@@ -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() {

View File

@@ -179,7 +179,7 @@ import { parseTime } from "@/utils/ruoyi";
import {changeRoleStatus} from "@/api/system/role";
export default {
name: "CouponTemplate",
name: "PromotionCouponTemplate",
components: {
},
data() {

View File

@@ -156,7 +156,7 @@ import { getSkuOptionList } from "@/api/mall/product/sku";
import { deepClone } from "@/utils";
export default {
name: "DiscountActivity",
name: "PromotionDiscountActivity",
components: {
},
data() {

View File

@@ -129,7 +129,7 @@ import {
import {getSpuSimpleList} from "@/api/mall/product/spu";
export default {
name: "RewardActivity",
name: "PromotionRewardActivity",
components: {
},
data() {

View File

@@ -192,7 +192,7 @@ import { getSeckillTimeList } from "@/api/mall/promotion/seckillTime";
import { deepClone } from "@/utils";
export default {
name: "SeckillActivity",
name: "PromotionSeckillActivity",
components: {
},
data() {

View File

@@ -68,7 +68,7 @@ import router from "@/router";
import { deepClone } from "@/utils";
export default {
name: "SeckillTime",
name: "PromotionSeckillTime",
components: {
},
data() {

View File

@@ -104,7 +104,7 @@ import { datePickerOptions } from "@/utils/constants";
import { DICT_TYPE, getDictDatas } from "@/utils/dict";
export default {
name: "AfterSale",
name: "TradeAfterSale",
components: {
},
data() {

View File

@@ -165,7 +165,7 @@
import { getOrderDetail } from "@/api/mall/trade/order";
export default {
name: "detail",
name: "TradeOrderDetail",
data () {
return {
detailGroups: [

View File

@@ -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 }})
}
}
}