mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-11-13 04:18:55 +08:00
fix(seller): 修复商户端移动装修和PC装修组件缩放与边界溢出问题 (#IKULXP)
This commit is contained in:
@@ -15,6 +15,26 @@ export const forgetPasswordRouter = {
|
|||||||
component: () => import("@/views/ForgetPassword.vue")
|
component: () => import("@/views/ForgetPassword.vue")
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 移动端楼层装修编辑器:全屏独立页,不在 Main(左侧菜单)布局内
|
||||||
|
export const floorDecorationRouter = {
|
||||||
|
path: "/floorList/main",
|
||||||
|
name: "main",
|
||||||
|
meta: {
|
||||||
|
title: "移动装修"
|
||||||
|
},
|
||||||
|
component: () => import("@/views/shop/wap/main.vue")
|
||||||
|
};
|
||||||
|
|
||||||
|
// PC端楼层装修编辑器:全屏独立页,不在 Main(左侧菜单)布局内
|
||||||
|
export const pcFloorDecorationRouter = {
|
||||||
|
path: "/pcFloorList/main",
|
||||||
|
name: "renovation",
|
||||||
|
meta: {
|
||||||
|
title: "PC装修"
|
||||||
|
},
|
||||||
|
component: () => import("@/views/shop/renovation.vue")
|
||||||
|
};
|
||||||
|
|
||||||
// 作为Main组件的子页面展示但是不在左侧菜单显示的路由写在otherRouter里
|
// 作为Main组件的子页面展示但是不在左侧菜单显示的路由写在otherRouter里
|
||||||
export const otherRouter = {
|
export const otherRouter = {
|
||||||
path: "/",
|
path: "/",
|
||||||
@@ -168,20 +188,6 @@ export const otherRouter = {
|
|||||||
name: "orderVerification",
|
name: "orderVerification",
|
||||||
component: () => import("@/views/order/order/orderVerification.vue")
|
component: () => import("@/views/order/order/orderVerification.vue")
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: "/floorList/main",
|
|
||||||
title: "移动装修",
|
|
||||||
name: "main",
|
|
||||||
meta: { title: "移动装修" },
|
|
||||||
component: () => import("@/views/shop/wap/main.vue"),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/pcFloorList/main",
|
|
||||||
title: "PC装修",
|
|
||||||
name: "renovation",
|
|
||||||
meta: { title: "PC装修" },
|
|
||||||
component: () => import("@/views/shop/renovation.vue"),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: "order-complaint-detail",
|
path: "order-complaint-detail",
|
||||||
title: "投诉详情",
|
title: "投诉详情",
|
||||||
@@ -278,6 +284,27 @@ export const otherRouter = {
|
|||||||
name: "procurement-damage-report-operation",
|
name: "procurement-damage-report-operation",
|
||||||
component: () => import("@/views/procurement/damage-report/operation.vue")
|
component: () => import("@/views/procurement/damage-report/operation.vue")
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "stock/outbound/list",
|
||||||
|
title: "领用出库",
|
||||||
|
name: "stockOutboundList",
|
||||||
|
meta: { title: "领用出库" },
|
||||||
|
component: () => import("@/views/stock/outbound/list.vue")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "stock/outbound/operation",
|
||||||
|
title: "出库单操作",
|
||||||
|
name: "stock-outbound-operation",
|
||||||
|
meta: { title: "出库单操作" },
|
||||||
|
component: () => import("@/views/stock/outbound/operation.vue")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "stock/flow/list",
|
||||||
|
title: "库存流水",
|
||||||
|
name: "stockFlowList",
|
||||||
|
meta: { title: "库存流水" },
|
||||||
|
component: () => import("@/views/stock/flow/list.vue")
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "alertQuantityWarnList",
|
path: "alertQuantityWarnList",
|
||||||
title: "预警商品",
|
title: "预警商品",
|
||||||
@@ -342,4 +369,4 @@ export const page500 = {
|
|||||||
component: () => import("@/views/error-page/500.vue")
|
component: () => import("@/views/error-page/500.vue")
|
||||||
};
|
};
|
||||||
// 所有上面定义的路由都要写在下面的routers里
|
// 所有上面定义的路由都要写在下面的routers里
|
||||||
export const routers = [loginRouter, forgetPasswordRouter, otherRouter, page500, page403];
|
export const routers = [loginRouter, forgetPasswordRouter, floorDecorationRouter, pcFloorDecorationRouter, otherRouter, page500, page403];
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
<div class="operation mb_10">
|
<div class="operation mb_10">
|
||||||
<el-button type="primary" @click="createTemp">添加页面</el-button>
|
<el-button type="primary" tag="a" :href="addHref" target="_blank" class="add-page-btn">添加页面</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table v-loading="loading" :data="list" style="width: 100%">
|
<el-table v-loading="loading" :data="list" style="width: 100%">
|
||||||
<el-table-column prop="name" label="页面名称" min-width="180" show-overflow-tooltip>
|
<el-table-column prop="name" label="页面名称" min-width="180" show-overflow-tooltip>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
<template v-if="row">
|
<template v-if="row">
|
||||||
<a class="link-text" @click="Template(row)">编辑</a>
|
<a class="link-text" @click="Template(row)">编辑</a>
|
||||||
<span class="op-split">|</span>
|
<span class="op-split">|</span>
|
||||||
<a class="link-text" @click="decorate(row)">装修</a>
|
<a class="link-text" :href="decorateHref(row)" target="_blank">装修</a>
|
||||||
<span class="op-split">|</span>
|
<span class="op-split">|</span>
|
||||||
<a class="link-text" @click="confirmDel(row.id)">删除</a>
|
<a class="link-text" @click="confirmDel(row.id)">删除</a>
|
||||||
</template>
|
</template>
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { onMounted, reactive, ref } from "vue";
|
import { computed, onMounted, reactive, ref } from "vue";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import * as API_floor from "@/api/other.js";
|
import * as API_floor from "@/api/other.js";
|
||||||
import { Message, Modal } from "@/utils/message";
|
import { Message, Modal } from "@/utils/message";
|
||||||
@@ -155,27 +155,29 @@ function handleTabChange(type) {
|
|||||||
getTemplateList();
|
getTemplateList();
|
||||||
}
|
}
|
||||||
|
|
||||||
function createTemp() {
|
const addHref = computed(
|
||||||
router.push({
|
() =>
|
||||||
|
router.resolve({
|
||||||
|
name: "renovation",
|
||||||
|
query: { pageType: searchForm.pageType },
|
||||||
|
}).href
|
||||||
|
);
|
||||||
|
|
||||||
|
function decorateHref(val) {
|
||||||
|
const data = { id: val.id, pageShow: val.pageShow, pageType: searchForm.pageType };
|
||||||
|
return router.resolve({
|
||||||
name: "renovation",
|
name: "renovation",
|
||||||
query: { pageType: searchForm.pageType },
|
query: data,
|
||||||
});
|
}).href;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function Template(item) {
|
function Template(item) {
|
||||||
item.status = item.pageShow;
|
item.status = item.pageShow;
|
||||||
formData.value = { ...item };
|
formData.value = { ...item };
|
||||||
showModal.value = true;
|
showModal.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function decorate(val) {
|
|
||||||
const data = { id: val.id, pageShow: val.pageShow, pageType: searchForm.pageType };
|
|
||||||
|
|
||||||
router.push({
|
|
||||||
name: "renovation",
|
|
||||||
query: data,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function changePageNum(val) {
|
function changePageNum(val) {
|
||||||
searchForm.pageNumber = val;
|
searchForm.pageNumber = val;
|
||||||
@@ -248,4 +250,7 @@ function delTemplate(id) {
|
|||||||
.page-type-tabs {
|
.page-type-tabs {
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
.add-page-btn {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -177,6 +177,7 @@ const layoutOptions = computed(() => {
|
|||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* eslint-disable vue/no-side-effects-in-computed-properties */
|
||||||
const compStyle = computed(() => {
|
const compStyle = computed(() => {
|
||||||
if (!props.component) return {};
|
if (!props.component) return {};
|
||||||
if (!props.component.componentStyle) {
|
if (!props.component.componentStyle) {
|
||||||
|
|||||||
@@ -419,8 +419,7 @@ const ALL_COMPONENT_DEFINITIONS = [
|
|||||||
url: '',
|
url: '',
|
||||||
autoPlay: false,
|
autoPlay: false,
|
||||||
loop: false,
|
loop: false,
|
||||||
controls: true,
|
controls: true
|
||||||
height: 450
|
|
||||||
},
|
},
|
||||||
|
|
||||||
defaultComponentStyle: {
|
defaultComponentStyle: {
|
||||||
|
|||||||
@@ -28,12 +28,12 @@ function selected(val) {
|
|||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.box {
|
.box {
|
||||||
height: calc(100vh - 120px);
|
height: 100vh;
|
||||||
width: 98%;
|
width: 100%;
|
||||||
margin: 0 auto;
|
margin: 0;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
background: #fff;
|
background: #f5f7fa;
|
||||||
border-radius: 0.4em;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -254,6 +254,7 @@ function goBack() {
|
|||||||
if (window.history.state?.back) {
|
if (window.history.state?.back) {
|
||||||
router.go(-1);
|
router.go(-1);
|
||||||
} else {
|
} else {
|
||||||
|
window.close();
|
||||||
router.push("/wapList");
|
router.push("/wapList");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
height: calc(100vh - 96px);
|
height: calc(100vh - 96px);
|
||||||
|
min-width: 0;
|
||||||
|
overflow-x: auto;
|
||||||
.model-view-menu {
|
.model-view-menu {
|
||||||
flex: 1.5;
|
flex: 1.5;
|
||||||
min-width: 250px;
|
min-width: 250px;
|
||||||
@@ -41,9 +43,11 @@
|
|||||||
}
|
}
|
||||||
.model-config {
|
.model-config {
|
||||||
flex: 2.5;
|
flex: 2.5;
|
||||||
|
min-width: 380px;
|
||||||
}
|
}
|
||||||
.model-view-content {
|
.model-view-content {
|
||||||
flex: 6;
|
flex: 6;
|
||||||
|
min-width: 400px;
|
||||||
}
|
}
|
||||||
.model-item {
|
.model-item {
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
<div class="operation mb_10">
|
<div class="operation mb_10">
|
||||||
<el-button type="primary" @click="handleAdd()">添加页面</el-button>
|
<el-button type="primary" tag="a" :href="addHref" target="_blank" class="add-page-btn">添加页面</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table v-loading="loading" :data="list" style="width: 100%">
|
<el-table v-loading="loading" :data="list" style="width: 100%">
|
||||||
<el-table-column prop="name" label="页面名称" min-width="180" show-overflow-tooltip>
|
<el-table-column prop="name" label="页面名称" min-width="180" show-overflow-tooltip>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
<el-table-column label="操作" width="150" align="right" fixed="right">
|
<el-table-column label="操作" width="150" align="right" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<template v-if="row">
|
<template v-if="row">
|
||||||
<a class="link-text" @click="handleEdit(row)">修改</a>
|
<a class="link-text" :href="editHref(row)" target="_blank">修改</a>
|
||||||
<span class="op-split">|</span>
|
<span class="op-split">|</span>
|
||||||
<a class="link-text" @click="confirmDel(row)">删除</a>
|
<a class="link-text" @click="confirmDel(row)">删除</a>
|
||||||
</template>
|
</template>
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { onMounted, reactive, ref } from "vue";
|
import { computed, onMounted, reactive, ref } from "vue";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import { Message, Modal } from "@/utils/message";
|
import { Message, Modal } from "@/utils/message";
|
||||||
import * as API_Other from "@/api/other.js";
|
import * as API_Other from "@/api/other.js";
|
||||||
@@ -152,8 +152,16 @@ function init() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleEdit(val) {
|
const addHref = computed(
|
||||||
router.push({
|
() =>
|
||||||
|
router.resolve({
|
||||||
|
path: "/floorList/main",
|
||||||
|
query: { pagetype: params.pageType, mode: "add" },
|
||||||
|
}).href
|
||||||
|
);
|
||||||
|
|
||||||
|
function editHref(val) {
|
||||||
|
const { href } = router.resolve({
|
||||||
path: "/floorList/main",
|
path: "/floorList/main",
|
||||||
query: {
|
query: {
|
||||||
id: val.id,
|
id: val.id,
|
||||||
@@ -162,14 +170,9 @@ function handleEdit(val) {
|
|||||||
pagetype: params.pageType,
|
pagetype: params.pageType,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
return href;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleAdd() {
|
|
||||||
router.push({
|
|
||||||
path: "/floorList/main",
|
|
||||||
query: { pagetype: params.pageType },
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function changePageSize(v) {
|
function changePageSize(v) {
|
||||||
params.pageNumber = 1;
|
params.pageNumber = 1;
|
||||||
@@ -200,4 +203,7 @@ function handleDel(val) {
|
|||||||
.page-type-tabs {
|
.page-type-tabs {
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
.add-page-btn {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user