Commit 0d3119eb authored by 水落(YangLei)'s avatar 水落(YangLei)

feat: 路由处理,周报列表

parent 00ae9982
<template>
<a-month-picker placeholder="Select month" @change="change" class="tw-w-full" />
</template>
<script>
export default {
props: { year: String, month: String },
methods: {
change(val) {
this.$emit('update:year', val.year());
this.$emit('update:month', val.month());
},
},
};
</script>
import Index from './index.vue';
export default Index;
<template>
<h1>template</h1>
</template>
import Index from './index.vue';
export default Index;
<template>
<Table url="/ranger/inspection/api/v1/analysis/reports/inspection/month" rowKey="remotrId">
<template #search="{ query }">
<MoreItem label="周">
<MonthSelect placeholder="Select week" :month.sync="query.month" :year.sync="query.year" />
</MoreItem>
<MoreItem label="地区">
<UrlSelect
url="/ranger/inspection/api/v1/region/list"
v-model="query.regionId"
labelFiled="regionName"
valueFiled="regionId"
/>
</MoreItem>
<MoreItem label="专业">
<UrlSelect
:url="
query.regionId
? `/ranger/inspection/api/v1/specialities/valid/regions/${query.regionId}/list`
: ''
"
v-model="query.specialityId"
labelFiled="specialityName"
valueFiled="specialityId"
/>
</MoreItem>
</template>
<a-table-column title="报表名称" data-index="routeName" />
<a-table-column title="地区" data-index="specialityName" />
<a-table-column title="专业" data-index="regionName" />
<a-table-column title="年" data-index="shiftTypeName" />
<!-- <a-table-column title="周" data-index="shiftTypeName" />
<a-table-column title="任务数" data-index="shiftTypeName" />
<a-table-column title="项目数" data-index="shiftTypeName" />
<a-table-column title="正常数" data-index="shiftTypeName" />
<a-table-column title="异常数" data-index="shiftTypeName" />
<a-table-column title="已检数" data-index="shiftTypeName" />
<a-table-column title="免检数" data-index="shiftTypeName" />
<a-table-column title="未检数" data-index="shiftTypeName" />
<a-table-column title="未检率" data-index="shiftTypeName" />
<a-table-column title="异常率" data-index="shiftTypeName" /> -->
</Table>
</template>
<script>
import Table from '@/components/table/table.vue';
import MoreItem from '@/components/table/more_item.vue';
import UrlSelect from '@/components/MySelect/url_select.vue';
import MonthSelect from '@/components/table/month_select.vue';
export default {
components: { Table, MoreItem, UrlSelect, MonthSelect },
};
</script>
......@@ -60,6 +60,18 @@ const hasAuthorityRoutes = [
name: '巡检管理',
component: PageTemplateView,
children: [
{
path: 'basic',
name: '基础数据配置',
component: RouterView,
children: [
{
path: 'region',
name: '地区配置',
component: () => import('@/pages/xunjian/basic/region'),
},
],
},
{
path: 'task',
name: '任务管理',
......@@ -82,6 +94,11 @@ const hasAuthorityRoutes = [
name: '巡检周报',
component: () => import('@/pages/xunjian/report/weekly'),
},
{
path: 'month',
name: '巡检月报',
component: () => import('@/pages/xunjian/report/month'),
},
],
},
],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment