大屏设计器
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* @Description:
|
||||||
|
* @Author: qianlishi
|
||||||
|
* @Date: 2024-12-30 18:16:00
|
||||||
|
* @LastEditors: qianlishi
|
||||||
|
* @LastEditTime: 2025-01-14 17:27:31
|
||||||
|
*/
|
||||||
import { RouteRecordRaw } from 'vue-router';
|
import { RouteRecordRaw } from 'vue-router';
|
||||||
import { Layout } from '@/router/base/index';
|
import { Layout } from '@/router/base/index';
|
||||||
|
|
||||||
@@ -49,4 +56,19 @@ export const constRoutes: Array<RouteRecordRaw> = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/design',
|
||||||
|
name: 'design',
|
||||||
|
meta: {},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'screen',
|
||||||
|
name: 'screen',
|
||||||
|
component: () => import('@/views/designScreen/index.vue'),
|
||||||
|
meta: {
|
||||||
|
title: '大屏设计器',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
6
Report-V3-TS/src/views/designScreen/index.vue
Normal file
6
Report-V3-TS/src/views/designScreen/index.vue
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<template>
|
||||||
|
<div>大屏设计器</div>
|
||||||
|
</template>
|
||||||
|
<script lang='ts' setup>
|
||||||
|
|
||||||
|
</script>
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
</n-button>
|
</n-button>
|
||||||
<n-button quaternary circle>
|
<n-button quaternary circle>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<jsqIcon name='icon-bianji' color='#fff' />
|
<jsqIcon name='icon-bianji' color='#fff' @click="toDesignScreen"/>
|
||||||
</template>
|
</template>
|
||||||
</n-button>
|
</n-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -87,6 +87,9 @@
|
|||||||
import { reactive, onMounted, ref } from 'vue'
|
import { reactive, onMounted, ref } from 'vue'
|
||||||
import { getPageList } from '@/api/report/bigScreen'
|
import { getPageList } from '@/api/report/bigScreen'
|
||||||
import jsqIcon from '@/components/Base/Jsq-icon/index.vue'
|
import jsqIcon from '@/components/Base/Jsq-icon/index.vue'
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
|
|
||||||
interface formProps {
|
interface formProps {
|
||||||
reportCode: string;
|
reportCode: string;
|
||||||
@@ -120,7 +123,6 @@
|
|||||||
if(code != 200) return
|
if(code != 200) return
|
||||||
list.value = data.records
|
list.value = data.records
|
||||||
pages.value = data.pages
|
pages.value = data.pages
|
||||||
console.log(data)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const toRestForm = () => {
|
const toRestForm = () => {
|
||||||
@@ -130,6 +132,13 @@
|
|||||||
formModel.reportName = ''
|
formModel.reportName = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 设计大屏
|
||||||
|
const toDesignScreen = () => {
|
||||||
|
router.push({
|
||||||
|
path: '/design/screen'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
const handlePage = (page: number) => {
|
const handlePage = (page: number) => {
|
||||||
formModel.pageNumber = page
|
formModel.pageNumber = page
|
||||||
getData()
|
getData()
|
||||||
|
|||||||
Reference in New Issue
Block a user