feat: recycle system
This commit is contained in:
@@ -118,7 +118,7 @@ const router = useRouter();
|
||||
|
||||
// 竖屏整页编辑转横屏:回到分栏,右栏直接是编辑视图
|
||||
useExpandToMaster({
|
||||
path: "/management/points/redeem-skus",
|
||||
path: "/product/points/redeem-skus",
|
||||
id: () => (route.name === "PointRedeemSkuCreate" ? "" : currentId.value)
|
||||
});
|
||||
/** 非空说明当前被内联在主从分栏的右栏里 */
|
||||
|
||||
@@ -116,8 +116,8 @@ defineOptions({ name: "PointRedeemSkuList" });
|
||||
|
||||
// 选中项、编辑态、切换方向、关闭逻辑、转屏、query 同步都在这里;兑换商品没有独立的详情视图,选中即进编辑
|
||||
const { selectedId, isWide, paneDirection, openDetail } = useMasterDetailPane({
|
||||
path: "/management/points/redeem-skus",
|
||||
detail: id => `/management/points/redeem-skus/${id}/edit`
|
||||
path: "/product/points/redeem-skus",
|
||||
detail: id => `/product/points/redeem-skus/${id}/edit`
|
||||
});
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<t-stepper
|
||||
v-model="quantity"
|
||||
size="large"
|
||||
:min="quantityStep"
|
||||
:min="quantityIsInteger ? 1 : .001"
|
||||
:step="quantityStep"
|
||||
:integer="quantityIsInteger"
|
||||
theme="outline"
|
||||
|
||||
@@ -115,7 +115,7 @@ function resolveId(): string {
|
||||
|
||||
// 竖屏整页进来后转成横屏:回到列表页并恢复右栏选中,而不是继续停在整页详情
|
||||
useExpandToMaster({
|
||||
path: "/management/points/redemptions",
|
||||
path: "/product/points/redemptions",
|
||||
id: () => resolveId()
|
||||
});
|
||||
/** 非空说明当前被内联在主从分栏的右栏里 */
|
||||
|
||||
@@ -225,8 +225,8 @@ const router = useRouter();
|
||||
|
||||
// 选中项、切换方向、关闭逻辑、转屏、query 同步都在这里;兑换单没有内联编辑视图
|
||||
const { selectedId, paneDirection, isWide, openDetail } = useMasterDetailPane({
|
||||
path: "/management/points/redemptions",
|
||||
detail: id => `/management/points/redemptions/${id}`
|
||||
path: "/product/points/redemptions",
|
||||
detail: id => `/product/points/redemptions/${id}`
|
||||
});
|
||||
const userStore = useUserStore();
|
||||
const result = reactive({ total: 0, list: [] as PointRedemption[] });
|
||||
|
||||
Reference in New Issue
Block a user