generated from Leo_Ding/web-template
页面切换修复
This commit is contained in:
parent
a880d98f88
commit
a1655462b5
@ -106,9 +106,6 @@ const handlePreview = async (file) => {
|
|||||||
|
|
||||||
// 修改handleChange方法
|
// 修改handleChange方法
|
||||||
const handleChange = ({ file, fileList: updatedList }) => {
|
const handleChange = ({ file, fileList: updatedList }) => {
|
||||||
console.log(111)
|
|
||||||
console.log(file.status)
|
|
||||||
console.log(updatedList)
|
|
||||||
// 处理上传成功的情况
|
// 处理上传成功的情况
|
||||||
if (file.status === 'done') {
|
if (file.status === 'done') {
|
||||||
const response = file.response;
|
const response = file.response;
|
||||||
|
|||||||
@ -37,7 +37,7 @@ export default {
|
|||||||
about:'关于海邻',
|
about:'关于海邻',
|
||||||
researchHonor:'科研成果',
|
researchHonor:'科研成果',
|
||||||
corporateHonor:'企业荣誉',
|
corporateHonor:'企业荣誉',
|
||||||
talentCenter:'人才中心',
|
talentCenter:'办公环境',
|
||||||
teamStyle:'团队风采',
|
teamStyle:'团队风采',
|
||||||
Dynamic:'海邻动态',
|
Dynamic:'海邻动态',
|
||||||
companyNews:'公司动态',
|
companyNews:'公司动态',
|
||||||
|
|||||||
@ -73,10 +73,7 @@ export function formatRoutes(routes = [], parent = {}) {
|
|||||||
const modules = import.meta.glob('../views/**/*.vue')
|
const modules = import.meta.glob('../views/**/*.vue')
|
||||||
return routes
|
return routes
|
||||||
.map((item) => {
|
.map((item) => {
|
||||||
console.log(111)
|
|
||||||
const localRoute = find(toList(localRoutes), { name: item.name })
|
const localRoute = find(toList(localRoutes), { name: item.name })
|
||||||
console.log(222,localRoute)
|
|
||||||
|
|
||||||
if (!localRoute) return
|
if (!localRoute) return
|
||||||
const component = localRoute?.component || 'exception/404'
|
const component = localRoute?.component || 'exception/404'
|
||||||
const isLink = localRoute?.meta?.type === 'link'
|
const isLink = localRoute?.meta?.type === 'link'
|
||||||
|
|||||||
@ -129,7 +129,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.dynamic
|
const { success, data, total } = await apis.dynamic
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@ -129,7 +129,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.dynamic
|
const { success, data, total } = await apis.dynamic
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@ -170,7 +170,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.videoCenter
|
const { success, data, total } = await apis.videoCenter
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@ -119,7 +119,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.imgmgt
|
const { success, data, total } = await apis.imgmgt
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@ -119,7 +119,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.imgmgt
|
const { success, data, total } = await apis.imgmgt
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@ -120,7 +120,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.imgmgt
|
const { success, data, total } = await apis.imgmgt
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
type:120,
|
type:120,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
|
|||||||
@ -119,7 +119,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.imgmgt
|
const { success, data, total } = await apis.imgmgt
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
type:110,
|
type:110,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
|
|||||||
@ -119,7 +119,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.imgmgt
|
const { success, data, total } = await apis.imgmgt
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@ -119,7 +119,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.imgmgt
|
const { success, data, total } = await apis.imgmgt
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@ -119,7 +119,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.importantEvents
|
const { success, data, total } = await apis.importantEvents
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@ -143,7 +143,7 @@ async function getPageList() {
|
|||||||
const { code, data } = await apis.common
|
const { code, data } = await apis.common
|
||||||
.getPageList({
|
.getPageList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
throw new Error()
|
throw new Error()
|
||||||
|
|||||||
@ -115,7 +115,7 @@ async function getPageList() {
|
|||||||
const { code, data } = await apis.common
|
const { code, data } = await apis.common
|
||||||
.getPageList({
|
.getPageList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
throw new Error()
|
throw new Error()
|
||||||
|
|||||||
@ -147,7 +147,7 @@ async function getPageList() {
|
|||||||
const { code, data } = await apis.common
|
const { code, data } = await apis.common
|
||||||
.getPageList({
|
.getPageList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
throw new Error()
|
throw new Error()
|
||||||
|
|||||||
@ -154,7 +154,7 @@ async function getPageList() {
|
|||||||
const { code, data } = await apis.common
|
const { code, data } = await apis.common
|
||||||
.getPageList({
|
.getPageList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
throw new Error()
|
throw new Error()
|
||||||
|
|||||||
@ -131,7 +131,7 @@ async function getPageList() {
|
|||||||
const { code, data } = await apis.common
|
const { code, data } = await apis.common
|
||||||
.getPageList({
|
.getPageList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
throw new Error()
|
throw new Error()
|
||||||
|
|||||||
@ -194,7 +194,7 @@ async function getPageList() {
|
|||||||
const { code, data } = await apis.common
|
const { code, data } = await apis.common
|
||||||
.getPageList({
|
.getPageList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
throw new Error()
|
throw new Error()
|
||||||
|
|||||||
@ -239,6 +239,8 @@ async function handleEdit(record = {}) {
|
|||||||
formData.value = {
|
formData.value = {
|
||||||
...data,
|
...data,
|
||||||
categoryIDs:data.categoryID,
|
categoryIDs:data.categoryID,
|
||||||
|
categoryID:data.categoryID,
|
||||||
|
categoryRootID:data.categoryRootID,
|
||||||
standard: data.standard || [{
|
standard: data.standard || [{
|
||||||
label: '',
|
label: '',
|
||||||
val: '',
|
val: '',
|
||||||
|
|||||||
@ -168,7 +168,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.products
|
const { success, data, total } = await apis.products
|
||||||
.getProductsList({
|
.getProductsList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@ -72,7 +72,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.categorys
|
const { success, data, total } = await apis.categorys
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
throw new Error()
|
throw new Error()
|
||||||
|
|||||||
@ -122,7 +122,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.recruitment
|
const { success, data, total } = await apis.recruitment
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@ -107,7 +107,7 @@ async function getPageList() {
|
|||||||
const { code, data } = await apis.common
|
const { code, data } = await apis.common
|
||||||
.getPageList({
|
.getPageList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
throw new Error()
|
throw new Error()
|
||||||
|
|||||||
@ -162,7 +162,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.system
|
const { success, data, total } = await apis.system
|
||||||
.getLoggers({
|
.getLoggers({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
startTime: startTime.value,
|
startTime: startTime.value,
|
||||||
endTime: endTime.value,
|
endTime: endTime.value,
|
||||||
|
|||||||
@ -158,7 +158,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.role
|
const { success, data, total } = await apis.role
|
||||||
.getRoleList({
|
.getRoleList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@ -153,7 +153,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.users
|
const { success, data, total } = await apis.users
|
||||||
.getUsersList({
|
.getUsersList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@ -133,7 +133,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.team
|
const { success, data, total } = await apis.team
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
@ -125,7 +125,7 @@ async function getPageList() {
|
|||||||
const { success, data, total } = await apis.imgmgt
|
const { success, data, total } = await apis.imgmgt
|
||||||
.getDataList({
|
.getDataList({
|
||||||
pageSize,
|
pageSize,
|
||||||
page: current,
|
current:current,
|
||||||
...searchFormData.value,
|
...searchFormData.value,
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user