diff --git a/src/components/SysMenu.vue b/src/components/SysMenu.vue index 6341f11..728a3af 100644 --- a/src/components/SysMenu.vue +++ b/src/components/SysMenu.vue @@ -69,11 +69,6 @@ const list = reactive([ label: '发布管理', icon: 'app_registration', }, - { - path: '/dataManage/rangeManage', - label: '范围配置', - icon: 'app_registration', - }, { path: '/dataManage/lineInfo', label: '线路信息管理', diff --git a/src/pages/PublishManage.vue b/src/pages/PublishManage.vue index 4faa6d5..040d178 100644 --- a/src/pages/PublishManage.vue +++ b/src/pages/PublishManage.vue @@ -33,6 +33,12 @@ label="预览" :to="`/linemap/${props.row.lineId}/${props.row.type}`" /> + -import { QTable, QTableColumn } from 'quasar'; -import { onMounted, ref } from 'vue'; -import { getDeviceAreaList, type IAreaConfigListItem } from '../api/ConfigApi'; - -const tableRef = ref(); -const columns: QTableColumn[] = [ - { - name: 'id', - label: 'id', - field: 'id', - }, - { - name: 'lineId', - label: '线路', - field: 'lineId', - }, - { - name: 'areaName', - label: '范围名称', - field: 'areaName', - }, - { - name: 'deviceType', - label: '设备类型', - field: 'deviceType', - }, -]; - -const rows = ref([]); -const loading = ref(false); -const pagination = ref({ - sortBy: 'desc', - descending: false, - page: 1, - rowsPerPage: 10, - rowsNumber: 10, -}); - -const onRequest: QTable['onRequest'] = async (props) => { - const { page, rowsPerPage } = props.pagination; - loading.value = true; - const resp = await getDeviceAreaList({ current: page, size: rowsPerPage }); - pagination.value.page = resp.current; - pagination.value.rowsNumber = resp.total; - pagination.value.rowsPerPage = resp.size; - rows.value = resp.records; - loading.value = false; -}; - -onMounted(() => { - tableRef.value?.requestServerInteraction(); -}); - - - diff --git a/src/router/routes.ts b/src/router/routes.ts index 9ed3b10..63d2394 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -35,11 +35,6 @@ const routes: RouteRecordRaw[] = [ name: 'publish', component: () => import('pages/PublishManage.vue'), }, - { - path: 'rangeManage', - name: 'rangeManage', - component: () => import('pages/RangeManage.vue'), - }, { path: 'lineInfo', name: 'lineInfo',