Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Starter Web Vue
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
product
kim3-web-vue
Starter Web Vue
Commits
0d3119eb
Commit
0d3119eb
authored
Jul 12, 2021
by
水落(YangLei)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 路由处理,周报列表
parent
00ae9982
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
96 additions
and
0 deletions
+96
-0
src/components/table/month_select.vue
src/components/table/month_select.vue
+15
-0
src/pages/xunjian/basic/region/index.js
src/pages/xunjian/basic/region/index.js
+3
-0
src/pages/xunjian/basic/region/index.vue
src/pages/xunjian/basic/region/index.vue
+3
-0
src/pages/xunjian/report/month/index.js
src/pages/xunjian/report/month/index.js
+3
-0
src/pages/xunjian/report/month/index.vue
src/pages/xunjian/report/month/index.vue
+55
-0
src/router/config.js
src/router/config.js
+17
-0
No files found.
src/components/table/month_select.vue
0 → 100644
View file @
0d3119eb
<
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
>
src/pages/xunjian/basic/region/index.js
0 → 100644
View file @
0d3119eb
import
Index
from
'
./index.vue
'
;
export
default
Index
;
src/pages/xunjian/basic/region/index.vue
0 → 100644
View file @
0d3119eb
<
template
>
<h1>
template
</h1>
</
template
>
src/pages/xunjian/report/month/index.js
0 → 100644
View file @
0d3119eb
import
Index
from
'
./index.vue
'
;
export
default
Index
;
src/pages/xunjian/report/month/index.vue
0 → 100644
View file @
0d3119eb
<
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
>
src/router/config.js
View file @
0d3119eb
...
@@ -60,6 +60,18 @@ const hasAuthorityRoutes = [
...
@@ -60,6 +60,18 @@ const hasAuthorityRoutes = [
name
:
'
巡检管理
'
,
name
:
'
巡检管理
'
,
component
:
PageTemplateView
,
component
:
PageTemplateView
,
children
:
[
children
:
[
{
path
:
'
basic
'
,
name
:
'
基础数据配置
'
,
component
:
RouterView
,
children
:
[
{
path
:
'
region
'
,
name
:
'
地区配置
'
,
component
:
()
=>
import
(
'
@/pages/xunjian/basic/region
'
),
},
],
},
{
{
path
:
'
task
'
,
path
:
'
task
'
,
name
:
'
任务管理
'
,
name
:
'
任务管理
'
,
...
@@ -82,6 +94,11 @@ const hasAuthorityRoutes = [
...
@@ -82,6 +94,11 @@ const hasAuthorityRoutes = [
name
:
'
巡检周报
'
,
name
:
'
巡检周报
'
,
component
:
()
=>
import
(
'
@/pages/xunjian/report/weekly
'
),
component
:
()
=>
import
(
'
@/pages/xunjian/report/weekly
'
),
},
},
{
path
:
'
month
'
,
name
:
'
巡检月报
'
,
component
:
()
=>
import
(
'
@/pages/xunjian/report/month
'
),
},
],
],
},
},
],
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment