Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
refined-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
赵啸非
refined-platform
Commits
e1e45127
Commit
e1e45127
authored
Jan 16, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
9e82c297
04c3afdb
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
1403 additions
and
1114 deletions
+1403
-1114
refined-manager-ui/admin/src/App.vue
refined-manager-ui/admin/src/App.vue
+21
-1
refined-manager-ui/admin/src/assets/less/base.css
refined-manager-ui/admin/src/assets/less/base.css
+13
-3
refined-manager-ui/admin/src/assets/less/base.less
refined-manager-ui/admin/src/assets/less/base.less
+13
-3
refined-manager-ui/admin/src/components/DataTable.vue
refined-manager-ui/admin/src/components/DataTable.vue
+2
-2
refined-manager-ui/admin/src/components/DataTreeTable.vue
refined-manager-ui/admin/src/components/DataTreeTable.vue
+1
-1
refined-manager-ui/admin/src/components/Header.vue
refined-manager-ui/admin/src/components/Header.vue
+3
-1
refined-manager-ui/admin/src/components/HeaderSite.vue
refined-manager-ui/admin/src/components/HeaderSite.vue
+6
-6
refined-manager-ui/admin/src/components/SearchForm.vue
refined-manager-ui/admin/src/components/SearchForm.vue
+13
-7
refined-manager-ui/admin/src/components/Table.vue
refined-manager-ui/admin/src/components/Table.vue
+5
-6
refined-manager-ui/admin/src/components/tools/TableButtons.vue
...ed-manager-ui/admin/src/components/tools/TableButtons.vue
+39
-21
refined-manager-ui/admin/src/views/Home.vue
refined-manager-ui/admin/src/views/Home.vue
+0
-2
refined-manager-ui/admin/src/views/Layout.vue
refined-manager-ui/admin/src/views/Layout.vue
+46
-43
refined-manager-ui/admin/src/views/appointment/config/dialogshow.vue
...ager-ui/admin/src/views/appointment/config/dialogshow.vue
+310
-266
refined-manager-ui/admin/src/views/appointment/config/list.vue
...ed-manager-ui/admin/src/views/appointment/config/list.vue
+59
-45
refined-manager-ui/admin/src/views/appointment/records/dataDrawerShow.vue
...ui/admin/src/views/appointment/records/dataDrawerShow.vue
+265
-212
refined-manager-ui/admin/src/views/appointment/records/list.vue
...d-manager-ui/admin/src/views/appointment/records/list.vue
+0
-1
refined-manager-ui/admin/src/views/care/config/dialogshow.vue
...ned-manager-ui/admin/src/views/care/config/dialogshow.vue
+329
-279
refined-manager-ui/admin/src/views/care/config/list.vue
refined-manager-ui/admin/src/views/care/config/list.vue
+1
-1
refined-manager-ui/admin/src/views/person/list.vue
refined-manager-ui/admin/src/views/person/list.vue
+0
-1
refined-manager-ui/admin/src/views/realtime/dataflow/dataDrawerShow.vue
...r-ui/admin/src/views/realtime/dataflow/dataDrawerShow.vue
+271
-212
refined-manager-ui/admin/src/views/realtime/dataflow/list.vue
...ned-manager-ui/admin/src/views/realtime/dataflow/list.vue
+6
-1
No files found.
refined-manager-ui/admin/src/App.vue
View file @
e1e45127
<
template
>
<div
id=
"app"
>
<router-view/>
<router-view
/>
</div>
</
template
>
<
style
lang=
"less"
scoped
>
/deep/.el-table th {
background: #fafafa !important;
color: rgba(0, 0, 0, 0.85) !important;
}
/deep/.el-table .cell {
font-size: 14px;
}
/deep/.el-table th,
/deep/.el-table tr {
height: 54px;
text-align: center;
}
/deep/.el-drawer__header {
border-bottom: 1px solid #f0f0f0;
margin-bottom: 0;
padding-bottom: 20px;
color: #000;
}
</
style
>
refined-manager-ui/admin/src/assets/less/base.css
View file @
e1e45127
...
...
@@ -281,6 +281,7 @@ a {
background
:
linear-gradient
(
90deg
,
#1845c6
,
#2999ff
)
!important
;
}
.layout-menu-wrapper
.layout-logo
{
width
:
335px
;
font-size
:
20px
;
font-weight
:
bold
;
}
...
...
@@ -311,16 +312,17 @@ a {
background-color
:
#1890ff
!important
;
}
.layout-header
.layout-submenu-wrapper
{
width
:
9
5
%
!important
;
width
:
9
8
%
!important
;
margin
:
0
auto
!important
;
margin-top
:
20px
!important
;
border-top-left-radius
:
8px
;
border-top-right-radius
:
8px
;
padding-left
:
0px
!important
;
}
.page.active
{
width
:
9
5
%
!important
;
width
:
9
8
%
!important
;
margin
:
0
auto
!important
;
padding
:
2
0px
!important
;
padding
:
1
0px
!important
;
padding-top
:
0
!important
;
}
.page
{
...
...
@@ -329,3 +331,11 @@ a {
border-bottom-left-radius
:
8px
;
border-bottom-right-radius
:
8px
;
}
.el-button--primary
{
background
:
linear-gradient
(
90deg
,
#5ab6ff
0%
,
#2e9aff
100%
)
!important
;
color
:
#fff
!important
;
}
.el-button
{
height
:
32px
;
line-height
:
8px
;
}
refined-manager-ui/admin/src/assets/less/base.less
View file @
e1e45127
...
...
@@ -321,6 +321,7 @@ a {
background: linear-gradient(90deg, #1845c6, #2999ff) !important;
}
.layout-menu-wrapper .layout-logo {
width: 335px;
font-size: 20px;
font-weight: bold;
}
...
...
@@ -351,16 +352,17 @@ a {
background-color: #1890ff !important;
}
.layout-header .layout-submenu-wrapper {
width: 9
5
% !important;
width: 9
8
% !important;
margin: 0 auto !important;
margin-top: 20px !important;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
padding-left: 0px !important;
}
.page.active {
width: 9
5
% !important;
width: 9
8
% !important;
margin: 0 auto !important;
padding:
2
0px !important;
padding:
1
0px !important;
padding-top: 0 !important;
}
.page {
...
...
@@ -369,3 +371,11 @@ a {
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
}
.el-button--primary {
background: linear-gradient(90deg, #5ab6ff 0%, #2e9aff 100%) !important;
color: #fff !important;
}
.el-button {
height: 32px;
line-height: 8px;
}
refined-manager-ui/admin/src/components/DataTable.vue
View file @
e1e45127
...
...
@@ -25,7 +25,7 @@
:width=
"column.width"
:sortable=
"column.sortable"
:show-overflow-tooltip=
"column.tooltip"
:align=
"column.align || '
left
'"
:align=
"column.align || '
center
'"
:formatter=
"column.formatter"
:reserve-selection=
"column.reserveSelection"
:subColumns=
"column.subColumns"
...
...
@@ -38,7 +38,7 @@
:label=
"sunColumn.label"
:width=
"sunColumn.width"
:sortable=
"sunColumn.sortable"
:align=
"sunColumn.align || '
left
'"
:align=
"sunColumn.align || '
center
'"
:formatter=
"sunColumn.formatter"
/>
</el-table-column>
...
...
refined-manager-ui/admin/src/components/DataTreeTable.vue
View file @
e1e45127
...
...
@@ -18,7 +18,7 @@
:label=
"column.label"
:width=
"column.width"
:show-overflow-tooltip=
"column.tooltip"
:align=
"column.align || '
left
'"
:align=
"column.align || '
center
'"
:formatter=
'column.formatter'
>
</el-table-column>
...
...
refined-manager-ui/admin/src/components/Header.vue
View file @
e1e45127
...
...
@@ -272,7 +272,7 @@ export default {
line-height: 50px;
font-size: 14px;
color: #eee;
background: #1848c8;
//
background: #1848c8;
.layout-logo {
height: 50px;
.el-icon-menu {
...
...
@@ -288,6 +288,7 @@ export default {
.menu-list {
li {
width: 120px;
a {
display: block;
padding: 0 12px;
...
...
@@ -326,6 +327,7 @@ export default {
white-space: nowrap;
overflow: auto;
li {
margin-right: 10px;
a {
display: block;
padding: 0 10px;
...
...
refined-manager-ui/admin/src/components/HeaderSite.vue
View file @
e1e45127
...
...
@@ -43,9 +43,9 @@
</div>
</
template
>
<
script
>
//import { getSiteTree } from "@/services/businessMatter";
//import { getSiteTree } from "@/services/businessMatter";
import
session
from
"
@/assets/utils/session
"
;
//import Cookie from "js-cookie";
//import Cookie from "js-cookie";
export
default
{
data
()
{
return
{
...
...
@@ -111,12 +111,12 @@ export default {
process
.
env
.
VUE_APP_SITETREE_URL
==
"
undefined
"
?
"
http://192.168.0.98:11078/base/site/siteTree
"
:
process
.
env
.
VUE_APP_SITETREE_URL
;
console
.
log
(
url
)
console
.
log
(
url
)
;
this
.
$get
(
url
).
then
((
res
)
=>
{
const
{
siteTree
}
=
res
.
data
;
this
.
sitelist
=
siteTree
;
let
arr
=
[];
const
treeFn
=
function
(
e
)
{
const
treeFn
=
function
(
e
)
{
e
.
forEach
((
element
)
=>
{
arr
.
push
(
element
);
if
(
element
.
children
&&
element
.
children
.
length
>
0
)
{
...
...
@@ -155,11 +155,11 @@ export default {
position: relative;
}
.ant-dropdown-link {
padding: 0 20px;
font-size: 14px;
min-width:
20
0px;
min-width:
15
0px;
color: #eee;
display: inline-block;
margin-top: 2px;
}
.select-site {
position: fixed;
...
...
refined-manager-ui/admin/src/components/SearchForm.vue
View file @
e1e45127
...
...
@@ -325,13 +325,12 @@ export default {
)
{
//支持模糊查询,收尾增加百分号
val
=
val
.
trim
();
if
(
val
.
charAt
(
0
)
!=
'
%
'
)
{
val
=
"
%
"
+
val
if
(
val
.
charAt
(
0
)
!=
"
%
"
)
{
val
=
"
%
"
+
val
;
}
if
(
val
.
charAt
(
val
.
length
-
1
)
!=
'
%
'
)
{
val
=
val
+
"
%
"
;
if
(
val
.
charAt
(
val
.
length
-
1
)
!=
"
%
"
)
{
val
=
val
+
"
%
"
;
}
}
});
newData
[
item
]
=
this
.
decodeVal
(
val
);
...
...
@@ -379,10 +378,18 @@ export default {
width: 140px;
}
}
.el-form--inline .el-form-item {
margin-right: 0;
}
.el-form-item {
margin-bottom: 10px !important;
margin-right: 0;
margin-left: 10px;
}
@media screen and (max-width: 800px) {
.search-form-wapper {
.el-form-item {
margin-bottom: 10px !important;
width: 100%;
.el-form-item__label {
min-width: 70px;
...
...
@@ -397,4 +404,3 @@ export default {
}
}
</
style
>
refined-manager-ui/admin/src/components/Table.vue
View file @
e1e45127
...
...
@@ -4,9 +4,9 @@
<div
class=
"layout-table"
:loading=
"data.loading"
>
<div
class=
"table-head flex flex-pack-justify"
>
<div
class=
"table-head-left flex flex-align-center"
>
<slot
name=
"breadcrumb"
>
<
!--
<
slot
name=
"breadcrumb"
>
<Breadcrumb
style=
"margin-left: 10px"
/>
</slot>
</slot>
-->
<div
class=
"buttons"
>
<el-row>
<slot
name=
"table-head-left"
></slot>
...
...
@@ -213,7 +213,7 @@
v-if=
"!isShowButton('notPagination') ? false : data.pageInfo.totalResult"
>
<Pagination
style=
"float:
lef
t"
style=
"float:
righ
t"
:total=
"data.pageInfo.totalResult"
:prePageResult=
"data.pageInfo.prePageResult"
/>
...
...
@@ -325,10 +325,10 @@ export default {
}
.layout-table {
.table-head {
margin-bottom: 10px;
//
margin-bottom: 10px;
//padding-bottom: 12px;
// padding-top: 7px;
border-bottom: 1px solid #ededed;
//
border-bottom: 1px solid #ededed;
.el-breadcrumb {
margin-right: 30px;
}
...
...
@@ -349,7 +349,6 @@ export default {
}
.table-form {
padding-top: 10px;
margin-top: 10px;
overflow: hidden;
}
.search-form-wapper {
...
...
refined-manager-ui/admin/src/components/tools/TableButtons.vue
View file @
e1e45127
<
template
>
<span>
<el-button
v-if=
'!noEdit'
type=
"text"
icon=
"el-icon-edit"
size=
'mini'
@
click=
'$emit("edit", row)'
title=
"编辑"
>
编辑
</el-button>
<el-button
v-if=
"!noEdit"
type=
"text"
icon=
"el-icon-edit"
size=
"mini"
@
click=
"$emit('edit', row)"
title=
"编辑"
>
编辑
</el-button
>
<span>
</span>
<el-button
v-if=
'!noView'
type=
"text"
icon=
"el-icon-view"
size=
'mini'
@
click=
'$emit("view", row)'
title=
"查看"
>
查看
</el-button>
<el-button
v-if=
"!noView"
type=
"text"
icon=
"el-icon-view"
size=
"mini"
@
click=
"$emit('view', row)"
title=
"查看"
>
查看
</el-button
>
<span>
</span>
<Confirm
@
confirm=
'$emit("del", row.id)'
message=
'确定要删除该条记录吗?'
>
<el-button
v-if=
'!noDel'
type=
"text"
icon=
"el-icon-delete"
size=
'mini'
title=
"删除"
>
删除
</el-button>
<Confirm
@
confirm=
"$emit('del', row.id)"
message=
"确定要删除该条记录吗?"
>
<el-button
v-if=
"!noDel"
type=
"text"
icon=
"el-icon-delete"
size=
"mini"
title=
"删除"
style=
"margin-left: 0;margin-right: 5px;color: #FA4D4C;"
>
删除
</el-button
>
</Confirm>
</span>
</
template
>
<
script
>
import
Confirm
from
'
@/components/Confirm.vue
'
;
import
Confirm
from
"
@/components/Confirm.vue
"
;
export
default
{
props
:
{
noEdit
:
{
type
:
Boolean
,
default
:
false
default
:
false
,
},
noDel
:
{
type
:
Boolean
,
default
:
false
default
:
false
,
},
noAdd
:
{
type
:
Boolean
,
default
:
false
default
:
false
,
},
noView
:
{
type
:
Boolean
,
default
:
false
default
:
false
,
},
row
:
{
type
:
Object
,
required
:
true
,
default
:
()
=>
{}
default
:
()
=>
{}
,
},
},
components
:
{
Confirm
,
},
methods
:
{
},
methods
:
{},
data
()
{
return
{
}
}
}
return
{};
},
};
</
script
>
refined-manager-ui/admin/src/views/Home.vue
View file @
e1e45127
...
...
@@ -16,7 +16,5 @@ export default {
<
style
lang=
"less"
scoped
>
.page-home {
margin-top: 20px !important;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
</
style
>
refined-manager-ui/admin/src/views/Layout.vue
View file @
e1e45127
<
template
>
<div
:style=
"menuPageCss"
class=
"pages page-layout"
>
<LayoutHeader
v-if=
"menuPage!=='left'"
></LayoutHeader>
<LayoutHeaderLeft
@
toggle=
"toggle"
:isOpen=
"isOpen"
v-if=
"menuPage==='left'"
/>
<router-view
:class=
"
{'active': !isOpen}" />
<LayoutHeader
v-if=
"menuPage !== 'left'"
></LayoutHeader>
<LayoutHeaderLeft
@
toggle=
"toggle"
:isOpen=
"isOpen"
v-if=
"menuPage === 'left'"
/>
<router-view
:class=
"
{ active: !isOpen }" />
</div>
</
template
>
<
script
>
...
...
@@ -54,13 +58,12 @@ export default {
}
}
.page-layout {
background: #eee
;
background: #f0f2f5
;
}
.layout-header .layout-menu-wrapper{
background: #2681e8!important;
.layout-header .layout-menu-wrapper
{
//
background: #2681e8!important;
height: 4rem;
line-height: 4rem;
}
</
style
>
</
style
>
refined-manager-ui/admin/src/views/appointment/config/dialogshow.vue
View file @
e1e45127
...
...
@@ -2,79 +2,106 @@
<!-- 弹出框表单 -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"90%"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"200px"
>
<el-row>
<Field
:span=
"20"
label=
"是否启用该服务"
prop=
"used"
v-model=
"form.used"
type=
"radio"
:enumData=
"dict.used"
placeholder=
"请选择是否启用该服务"
/>
<el-row
style=
"margin-bottom: 20px;"
>
<Field
:span=
"20"
label=
"是否启用该服务"
prop=
"used"
v-model=
"form.used"
type=
"radio"
:enumData=
"dict.used"
placeholder=
"请选择是否启用该服务"
/>
<Field
:span=
"20"
label=
"监测周期配置"
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.monday"
>
周一
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.monday"
>
周一
</el-checkbox
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.tuesday"
>
周二
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.tuesday"
>
周二
</el-checkbox
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.wednesday"
>
周三
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.wednesday"
>
周三
</el-checkbox
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.thursday"
>
周四
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.thursday"
>
周四
</el-checkbox
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.friday"
>
周五
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.saturday"
>
周六
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.friday"
>
周五
</el-checkbox
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.saturday"
>
周六
</el-checkbox
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.sunday"
>
周日
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.sunday"
>
周日
</el-checkbox
>
</Field>
<Field
:span=
"20"
label=
"单日服务最大人数设置"
prop=
"maxServicePersonNum"
v-model=
"form.maxServicePersonNum"
placeholder=
"请输入单日服务最大人数设置"
/>
<Field
:span=
"20"
label=
"累计服务频次预警"
prop=
"alertServiceNum"
v-model=
"form.alertServiceNum"
placeholder=
"请输入累计服务频次预警"
/>
<Field
:span=
"20"
label=
"备注"
prop=
"remark"
v-model=
"form.remark"
type=
"textarea"
placeholder=
"请输入备注"
/>
<Field
:span=
"20"
label=
"单日服务最大人数设置"
prop=
"maxServicePersonNum"
v-model=
"form.maxServicePersonNum"
placeholder=
"请输入单日服务最大人数设置"
/>
<Field
:span=
"20"
label=
"累计服务频次预警"
prop=
"alertServiceNum"
v-model=
"form.alertServiceNum"
placeholder=
"请输入累计服务频次预警"
/>
<Field
:span=
"20"
label=
"备注"
prop=
"remark"
v-model=
"form.remark"
type=
"textarea"
placeholder=
"请输入备注"
/>
</el-row>
<el-divider
content-position=
"center"
>
预约自动签到配置时间段信息
</el-divider>
<br/>
<el-divider
content-position=
"center"
style=
"color: #aaa;"
><span
style=
"color: #aaa;"
>
预约自动签到配置时间段信息
</span
></el-divider
>
<br
/>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAddAppointmentConfigTimes"
>
添加
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAddAppointmentConfigTimes"
>
添加
</el-button
>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"handleDeleteAppointmentConfigTimes"
>
删除
</el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"handleDeleteAppointmentConfigTimes"
>
删除
</el-button
>
</el-col>
</el-row>
<el-table
:data=
"appointmentConfigTimesList"
:row-class-name=
"rowAppointmentConfigTimesIndex"
@
selection-change=
"handleAppointmentConfigTimesSelectionChange"
ref=
"appointmentConfigTimes"
>
<el-table
:data=
"appointmentConfigTimesList"
:row-class-name=
"rowAppointmentConfigTimesIndex"
@
selection-change=
"handleAppointmentConfigTimesSelectionChange"
ref=
"appointmentConfigTimes"
>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
label=
"序号"
align=
"center"
prop=
"index"
width=
"50"
/>
<el-table-column
label=
"序号"
align=
"center"
prop=
"index"
width=
"50"
/>
<el-table-column
label=
"开始时间"
prop=
"serviceTimeStart"
>
<template
slot-scope=
"scope"
>
<el-time-select
placeholder=
"起始时间"
v-model=
"scope.row.serviceTimeStart"
...
...
@@ -83,10 +110,11 @@
:picker-options=
"
{
start: '08:00',
step: '00:30',
end: '18:00'
}">
end: '18:00',
}"
>
</el-time-select>
<!--
<el-input
v-model=
"scope.row.serviceTimeStart"
placeholder=
"请输入时间段时候开始时间"
/>
-->
<!--
<el-input
v-model=
"scope.row.serviceTimeStart"
placeholder=
"请输入时间段时候开始时间"
/>
-->
</
template
>
</el-table-column>
<el-table-column
label=
"结束时间"
prop=
"serviceTimeEnd"
>
...
...
@@ -98,11 +126,12 @@
:picker-options=
"
{
start: '08:00',
step: '00:30',
end: '18:00'
}">
end: '18:00',
}"
>
</el-time-select>
<!--
<el-input
v-model=
"scope.row.serviceTimeEnd"
placeholder=
"请输入时间段结束时间"
/>
-->
<!--
<el-input
v-model=
"scope.row.serviceTimeEnd"
placeholder=
"请输入时间段结束时间"
/>
-->
</
template
>
</el-table-column>
<el-table-column
label=
"备注"
prop=
"remark"
>
...
...
@@ -111,23 +140,27 @@
</
template
>
</el-table-column>
</el-table>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
v-if=
"pageInfo.type !== 'view'"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
v-if=
"pageInfo.type !== 'view'"
@
click=
"submitForm"
>
确 定
</el-button
>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</template>
<
script
>
import
moment
from
'
moment
'
;
import
form
from
"
@/assets/mixins/formdialog
"
;
import
dialogShow
from
"
./dialogshow
"
;
export
default
{
import
moment
from
"
moment
"
;
import
form
from
"
@/assets/mixins/formdialog
"
;
import
dialogShow
from
"
./dialogshow
"
;
export
default
{
mixins
:
[
form
],
components
:
{
dialogShow
,
dialogShow
,
},
data
()
{
return
{
...
...
@@ -141,7 +174,7 @@
title
:
"
预约自动签到配置
"
,
// 是否显示弹出层
open
:
false
,
toString
:
[
toString
:
[
"
used
"
,
"
monday
"
,
"
tuesday
"
,
...
...
@@ -153,10 +186,8 @@
],
// 表单校验
rules
:
{
createTime
:
[
{
required
:
true
,
message
:
"
请选择创建时间
"
},
],
}
createTime
:
[{
required
:
true
,
message
:
"
请选择创建时间
"
}],
},
};
},
...
...
@@ -180,9 +211,14 @@
/** 预约自动签到配置时间段删除按钮操作 */
handleDeleteAppointmentConfigTimes
()
{
if
(
this
.
checkedAppointmentConfigTimes
.
length
==
0
)
{
this
.
$alert
(
"
请先选择要删除的预约自动签到配置时间段数据
"
,
"
提示
"
,
{
confirmButtonText
:
"
确定
"
,
});
this
.
$alert
(
"
请先选择要删除的预约自动签到配置时间段数据
"
,
"
提示
"
,
{
confirmButtonText
:
"
确定
"
,
});
}
else
{
this
.
appointmentConfigTimesList
.
splice
(
this
.
checkedAppointmentConfigTimes
[
0
].
index
-
1
,
1
);
this
.
appointmentConfigTimesList
.
splice
(
this
.
checkedAppointmentConfigTimes
[
0
].
index
-
1
,
1
);
}
},
/** 单选框选中数据 */
...
...
@@ -196,39 +232,40 @@
},
// 渲染前置处理
beforeRender
(
data
)
{
if
(
data
.
entity
.
appointmentConfigTimesList
)
{
data
.
entity
.
appointmentConfigTimesList
.
map
(
i
=>
{
i
.
serviceTimeStart
=
moment
(
i
.
serviceTimeStart
).
format
(
'
HH:mm
'
)
i
.
serviceTimeEnd
=
moment
(
i
.
serviceTimeEnd
).
format
(
'
HH:mm
'
)
})
this
.
appointmentConfigTimesList
=
data
.
entity
.
appointmentConfigTimesList
;
if
(
data
.
entity
.
appointmentConfigTimesList
)
{
data
.
entity
.
appointmentConfigTimesList
.
map
((
i
)
=>
{
i
.
serviceTimeStart
=
moment
(
i
.
serviceTimeStart
).
format
(
"
HH:mm
"
);
i
.
serviceTimeEnd
=
moment
(
i
.
serviceTimeEnd
).
format
(
"
HH:mm
"
);
});
this
.
appointmentConfigTimesList
=
data
.
entity
.
appointmentConfigTimesList
;
}
return
data
return
data
;
},
/** 编辑 */
edit
(
row
)
{
this
.
reset
()
this
.
reset
();
this
.
query
=
{
id
:
row
.
id
};
this
.
urls
.
currUrl
=
"
appointment/config/edit
"
;
this
.
urls
.
currUrl
=
"
appointment/config/edit
"
;
this
.
getData
();
this
.
pageInfo
.
type
=
"
edit
"
this
.
pageInfo
.
type
=
"
edit
"
;
this
.
title
=
"
修改预约自动签到配置
"
;
},
/** 新增 */
add
(
row
)
{
this
.
reset
()
this
.
reset
();
this
.
urls
.
currUrl
=
"
appointment/config/add
"
;
this
.
getData
();
this
.
pageInfo
.
type
=
"
add
"
this
.
pageInfo
.
type
=
"
add
"
;
this
.
title
=
"
新增预约自动签到配置
"
;
},
/** 查看*/
view
(
row
)
{
this
.
reset
()
this
.
reset
();
this
.
query
=
{
id
:
row
.
id
};
this
.
urls
.
currUrl
=
"
appointment/config/view
"
;
this
.
urls
.
currUrl
=
"
appointment/config/view
"
;
this
.
getData
();
this
.
pageInfo
.
type
=
"
view
"
this
.
pageInfo
.
type
=
"
view
"
;
this
.
title
=
"
预约自动签到配置详细
"
;
},
/**取消按钮 */
...
...
@@ -240,13 +277,20 @@
this
.
open
=
true
;
},
beforeSubmit
(
data
)
{
data
.
appointmentConfigTimesList
.
map
(
i
=>
{
const
serviceTimeStart
=
moment
(
i
.
serviceTimeStart
,
'
HH:mm
'
);
const
serviceTimeEnd
=
moment
(
i
.
serviceTimeEnd
,
'
HH:mm
'
);
i
.
serviceTimeStart
=
moment
().
set
({
hour
:
serviceTimeStart
.
hour
(),
minute
:
serviceTimeStart
.
minute
()}).
format
(
'
yyyy-MM-DD HH:mm:ss
'
);
i
.
serviceTimeEnd
=
moment
().
set
({
hour
:
serviceTimeEnd
.
hour
(),
minute
:
serviceTimeEnd
.
minute
()}).
format
(
'
yyyy-MM-DD HH:mm:ss
'
);
data
.
appointmentConfigTimesList
.
map
((
i
)
=>
{
const
serviceTimeStart
=
moment
(
i
.
serviceTimeStart
,
"
HH:mm
"
);
const
serviceTimeEnd
=
moment
(
i
.
serviceTimeEnd
,
"
HH:mm
"
);
i
.
serviceTimeStart
=
moment
()
.
set
({
hour
:
serviceTimeStart
.
hour
(),
minute
:
serviceTimeStart
.
minute
(),
})
return
data
.
format
(
"
yyyy-MM-DD HH:mm:ss
"
);
i
.
serviceTimeEnd
=
moment
()
.
set
({
hour
:
serviceTimeEnd
.
hour
(),
minute
:
serviceTimeEnd
.
minute
()
})
.
format
(
"
yyyy-MM-DD HH:mm:ss
"
);
});
return
data
;
},
afterSubmit
(
data
)
{
...
...
@@ -257,19 +301,19 @@
// 表单重置
reset
()
{
this
.
form
=
{
siteId
:
null
,
siteName
:
""
,
used
:
0
,
monday
:
0
,
tuesday
:
0
,
wednesday
:
0
,
thursday
:
0
,
friday
:
0
,
saturday
:
0
,
sunday
:
0
,
maxServicePersonNum
:
0
,
alertServiceNum
:
0
,
remark
:
""
,
siteId
:
null
,
siteName
:
""
,
used
:
0
,
monday
:
0
,
tuesday
:
0
,
wednesday
:
0
,
thursday
:
0
,
friday
:
0
,
saturday
:
0
,
sunday
:
0
,
maxServicePersonNum
:
0
,
alertServiceNum
:
0
,
remark
:
""
,
};
this
.
resetForm
(
"
form
"
);
},
...
...
@@ -279,5 +323,5 @@
}
},
},
};
};
</
script
>
refined-manager-ui/admin/src/views/appointment/config/list.vue
View file @
e1e45127
<
template
>
<div
class=
"page"
>
<LayoutTable
:data=
"tableData"
:config=
"tableConfig"
>
</LayoutTable>
<LayoutTable
:data=
"tableData"
:config=
"tableConfig"
>
</LayoutTable>
<dialog-show
ref=
"dialogform"
@
ok=
"getData"
/>
<dialog-show
ref=
"dialogform"
@
ok=
"getData"
/>
</div>
</
template
>
...
...
@@ -16,11 +14,10 @@ import table from "@/assets/mixins/table";
export
default
{
name
:
"
AppointmentConfigList
"
,
components
:
{
dialogShow
dialogShow
,
},
mixins
:
[
table
],
created
()
{
},
created
()
{},
methods
:
{
renderTable
(
tableData
)
{
return
(
...
...
@@ -30,15 +27,13 @@ export default {
);
},
renderTableColumn
(
options
)
{
return
(
<
el
-
table
-
column
prop
=
{
options
.
prop
}
label
=
{
options
.
label
}
width
=
{
options
.
width
}
formatter
=
{
options
.
formatter
}
>
<
/el-table-column
>
><
/el-table-column
>
);
},
/** 重写新增方法 */
...
...
@@ -53,41 +48,52 @@ export default {
toView
(
row
)
{
this
.
$refs
.
dialogform
.
view
(
row
);
},
},
data
()
{
return
{
/** 子表列元素 */
columnSet
:
[
{
prop
:
"
serviceTimeStart
"
,
label
:
"
服务开始时间
"
,
width
:
200
,
formatter
:
this
.
formatterDate
},
{
prop
:
"
serviceTimeEnd
"
,
label
:
"
服务结束时间
"
,
width
:
200
,
formatter
:
this
.
formatterDate
},
{
prop
:
"
remark
"
,
label
:
"
备注
"
,
width
:
100
},
{
prop
:
"
serviceTimeStart
"
,
label
:
"
服务开始时间
"
,
width
:
200
,
formatter
:
this
.
formatterDate
,
align
:
"
center
"
,
},
{
prop
:
"
serviceTimeEnd
"
,
label
:
"
服务结束时间
"
,
width
:
200
,
formatter
:
this
.
formatterDate
,
align
:
"
center
"
,
},
{
prop
:
"
remark
"
,
label
:
"
备注
"
,
width
:
200
,
align
:
"
center
"
},
],
config
:
{
search
:
[],
columns
:
[
{
type
:
"
selection
"
,
width
:
60
},
{
type
:
"
index
"
,
label
:
"
序号
"
,
width
:
50
},
{
type
:
"
selection
"
,
width
:
60
},
{
type
:
"
index
"
,
label
:
"
序号
"
,
width
:
50
},
{
label
:
"
启用
"
,
prop
:
"
used
"
,
formatter
:
this
.
formatter
},
{
label
:
"
启用
"
,
prop
:
"
used
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周一
"
,
prop
:
"
monday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周一
"
,
prop
:
"
monday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周二
"
,
prop
:
"
tuesday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周二
"
,
prop
:
"
tuesday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周三
"
,
prop
:
"
wednesday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周三
"
,
prop
:
"
wednesday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周四
"
,
prop
:
"
thursday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周四
"
,
prop
:
"
thursday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周五
"
,
prop
:
"
friday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周五
"
,
prop
:
"
friday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周六
"
,
prop
:
"
saturday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周六
"
,
prop
:
"
saturday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周日
"
,
prop
:
"
sunday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
周日
"
,
prop
:
"
sunday
"
,
formatter
:
this
.
formatter
},
{
label
:
"
最大人数
"
,
prop
:
"
maxServicePersonNum
"
},
{
label
:
"
最大人数
"
,
prop
:
"
maxServicePersonNum
"
},
{
label
:
"
累计预警
"
,
prop
:
"
alertServiceNum
"
},
{
label
:
"
累计预警
"
,
prop
:
"
alertServiceNum
"
},
{
label
:
"
配置时间段
"
,
...
...
@@ -100,7 +106,9 @@ export default {
return
(
<
el
-
popover
placement
=
"
right
"
width
=
{
widthsize
}
trigger
=
"
click
"
>
{
this
.
renderTable
(
row
.
appointmentConfigTimesList
)}
<
el
-
button
type
=
"
text
"
slot
=
"
reference
"
>
详细
<
/el-button
>
<
el
-
button
type
=
"
text
"
slot
=
"
reference
"
>
详细
<
/el-button
>
<
/el-popover
>
);
},
...
...
@@ -108,15 +116,21 @@ export default {
{
label
:
"
操作
"
,
width
:
240
,
formatter
:
row
=>
{
formatter
:
(
row
)
=>
{
return
(
<
table
-
buttons
noAdd
row
=
{
row
}
onEdit
=
{
this
.
toEdit
}
onView
=
{
this
.
toView
}
onDel
=
{
this
.
toDel
}
/
>
<
table
-
buttons
noAdd
row
=
{
row
}
onEdit
=
{
this
.
toEdit
}
onView
=
{
this
.
toView
}
onDel
=
{
this
.
toDel
}
/
>
);
}
}
]
}
}
,
}
,
]
,
}
,
};
}
}
,
};
</
script
>
refined-manager-ui/admin/src/views/appointment/records/dataDrawerShow.vue
View file @
e1e45127
...
...
@@ -5,9 +5,13 @@
:title=
"title"
:visible.sync=
"open"
:direction=
"direction"
size=
"90%"
>
<div>
<div
class=
"warning"
>
系统检测以下人员(20人)识别频次过高:
</div>
size=
"90%"
>
<div
style=
"height: 100%;"
>
<div
class=
"warning"
>
<i
class=
"el-icon-s-opportunity"
></i
>
系统检测以下人员(20人)识别频次过高:
</div>
<div
class=
"drawer_box"
>
<div
class=
"drawer_box_left"
>
<el-table
...
...
@@ -15,30 +19,42 @@
:data=
"tableDataL"
highlight-current-row
@
current-change=
"handleCurrentChange"
style=
"width: 100%"
>
style=
"width: 100%"
border
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
>
width=
"50"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"name"
label=
"姓名"
width=
"80"
>
width=
"80"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"contact"
label=
"联系电话"
>
label=
"联系电话"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"identifyNum"
label=
"识别频次"
width=
"80"
>
width=
"80"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"lastIdentifyTime"
label=
"最近识别时间"
:formatter=
"this.formatterDate"
>
:formatter=
"this.formatterDate"
align=
"center"
>
</el-table-column>
</el-table>
</div>
...
...
@@ -46,46 +62,67 @@
<div
class=
"recognition"
>
<div>
<div
class=
"recognition_name"
>
{{
singleSelect
.
name
}}
</div>
<div
class=
"recognition_desc"
>
联系电话:
{{
singleSelect
.
contact
}}
| 身份证号:
{{
singleSelect
.
idNumber
}}
| 识别频次:
{{
singleSelect
.
identifyNum
}}
</div>
<div
class=
"recognition_desc"
>
联系电话:
{{
singleSelect
.
contact
}}
<br
/>
身份证号:
{{
singleSelect
.
idNumber
}}
<br
/>
识别频次:
{{
singleSelect
.
identifyNum
}}
</div>
</div>
<div>
<el-button
type=
"danger"
@
click=
"show= true"
>
服务约束
</el-button>
<el-button
type=
"danger"
@
click=
"show = true"
style=
"width: 120px;height: 48px;line-height: 24px;font-size: 16px; font-weight: 600;"
>
服务约束
</el-button
>
</div>
</div>
<el-table
:data=
"tableDataR"
style=
"width: 100%"
>
<el-table
:data=
"tableDataR"
style=
"width: 100%"
border
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
>
width=
"50"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"monitorDeviceId"
label=
"监测时间"
:formatter=
"this.formatterDate"
>
:formatter=
"this.formatterDate"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"monitorDevice"
label=
"监测设备"
>
label=
"监测设备"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"reservationService"
label=
"预约业务"
>
label=
"预约业务"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"reservationNumber"
label=
"预约编号"
>
label=
"预约编号"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"checkInMethod"
label=
"签到方式"
>
label=
"签到方式"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"monitorCertificate"
label=
"监测凭证"
>
label=
"监测凭证"
align=
"center"
>
<template
slot-scope=
"scope"
>
<img
:src=
"scope.row.monitorCertificate"
alt=
"图片"
>
<img
:src=
"scope.row.monitorCertificate"
alt=
"图片"
/
>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -95,18 +132,32 @@
:current-page=
"this.params.page"
:page-size=
"this.params.size"
layout=
"total, prev, pager, next"
:total=
"this.total"
>
:total=
"this.total"
style=
"text-align: right;"
>
</el-pagination>
</div>
</div>
</div>
</el-drawer>
<el-dialog
title=
"限制取号"
:visible.sync=
"show"
width=
"31.25rem"
append-to-body
>
<el-form
ref=
"form"
:model=
"restrict"
:label-position=
"right"
label-width=
"7.5rem"
>
<el-dialog
title=
"限制取号"
:visible.sync=
"show"
width=
"31.25rem"
append-to-body
>
<el-form
ref=
"form"
:model=
"restrict"
:label-position=
"right"
label-width=
"7.5rem"
>
<el-form-item
label=
"姓名:"
>
{{ restrict.name }}
</el-form-item>
<el-form-item
label=
"联系电话:"
>
{{ restrict.contact }}
</el-form-item>
<el-form-item
label=
"身份证号:"
>
{{ restrict.idNumber }}
</el-form-item>
<el-form-item
label=
"识别频次:"
>
{{ restrict.identifyNum }}
</el-form-item>
<el-form-item
label=
"识别频次:"
>
{{
restrict.identifyNum
}}
</el-form-item>
<el-form-item
label=
"限制取号:"
>
<el-input
placeholder=
"请输入内容"
v-model=
"restrict.times"
>
<
template
slot=
"append"
>
次 / 天
</
template
>
...
...
@@ -114,8 +165,8 @@
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"show
= false"
>
确 定
</el-button>
<el-button
@
click=
"show
= false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"show
= false"
>
确 定
</el-button>
<el-button
@
click=
"show
= false"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
...
...
@@ -125,12 +176,9 @@
import
table
from
"
@/assets/mixins/table
"
;
export
default
{
name
:
"
dataDrawerShow
"
,
components
:
{
},
components
:
{},
mixins
:
[
table
],
created
()
{
},
created
()
{},
data
()
{
return
{
// 遮罩层
...
...
@@ -141,95 +189,100 @@ export default {
open
:
false
,
// 限制取号
show
:
false
,
direction
:
"
rtl
"
,
direction
:
"
rtl
"
,
// 左侧表格数据
tableDataL
:
[],
tableDataL
:
[],
// 左侧被选中的数据
singleSelect
:
{},
// 右侧表格数据
tableDataR
:
[],
params
:
{
size
:
10
,
page
:
1
page
:
1
,
},
total
:
0
,
restrict
:
{
name
:
''
,
contact
:
''
,
idNumber
:
''
,
identifyNum
:
''
,
times
:
''
}
}
restrict
:
{
name
:
""
,
contact
:
""
,
idNumber
:
""
,
identifyNum
:
""
,
times
:
""
,
},
};
},
methods
:
{
view
(
row
)
{
this
.
open
=
true
this
.
getAllMonitor
()
this
.
open
=
true
;
this
.
getAllMonitor
();
},
async
getAllMonitor
()
{
const
res
=
await
this
.
$post
(
'
monitor/alarm/list
'
)
if
(
res
&&
res
.
code
==
1
)
{
this
.
tableDataL
=
res
.
data
.
data
console
.
log
(
res
)
this
.
total
=
res
.
data
.
total
this
.
params
.
page
=
res
.
data
.
current_page
this
.
params
.
size
=
res
.
data
.
per_page
this
.
$refs
.
singleTable
.
setCurrentRow
(
this
.
tableDataL
[
0
])
// 默认选中第一条
async
getAllMonitor
()
{
const
res
=
await
this
.
$post
(
"
monitor/alarm/list
"
);
if
(
res
&&
res
.
code
==
1
)
{
this
.
tableDataL
=
res
.
data
.
data
;
console
.
log
(
res
);
this
.
total
=
res
.
data
.
total
;
this
.
params
.
page
=
res
.
data
.
current_page
;
this
.
params
.
size
=
res
.
data
.
per_page
;
this
.
$refs
.
singleTable
.
setCurrentRow
(
this
.
tableDataL
[
0
]);
// 默认选中第一条
}
},
async
handleCurrentChange
(
row
)
{
this
.
singleSelect
=
row
this
.
restrict
=
{...
row
}
const
res
=
await
this
.
$post
(
'
monitor/alarm/record/list
'
)
if
(
res
&&
res
.
code
==
1
)
{
this
.
tableDataR
=
res
.
data
.
data
async
handleCurrentChange
(
row
)
{
this
.
singleSelect
=
row
;
this
.
restrict
=
{
...
row
};
const
res
=
await
this
.
$post
(
"
monitor/alarm/record/list
"
);
if
(
res
&&
res
.
code
==
1
)
{
this
.
tableDataR
=
res
.
data
.
data
;
}
},
// 监听size改变
changeSize
(
newSize
)
{
this
.
size
=
newSize
changeSize
(
newSize
)
{
this
.
size
=
newSize
;
},
// 页码改变
changePage
(
newPage
)
{
this
.
page
=
newPage
changePage
(
newPage
)
{
this
.
page
=
newPage
;
},
},
};
</
script
>
<
style
scope
>
.warning
{
padding
:
0
.625rem
;
height
:
1.875
rem
;
line-height
:
1.875
rem
;
.warning
{
padding
:
0
0
.625rem
;
height
:
3
rem
;
line-height
:
3
rem
;
font-size
:
1.25rem
;
color
:
#F94545
;
color
:
#f94545
;
padding-left
:
20px
;
background
:
rgba
(
249
,
69
,
69
,
0.1
);
}
.drawer_box
{
.drawer_box
{
display
:
flex
;
height
:
90%
;
}
.drawer_box_left
{
.drawer_box_left
{
height
:
100%
;
width
:
37.5rem
;
padding
:
.625rem
;
padding
:
0.625rem
;
border-right
:
1px
solid
#f0f0f0
;
}
.drawer_box_right
{
.drawer_box_right
{
flex
:
1
;
padding
:
.625rem
;
padding
:
0
.625rem
;
}
.recognition
{
.recognition
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
.625rem
;
margin-bottom
:
0
.625rem
;
}
.recognition_name
{
.recognition_name
{
font-size
:
1.25rem
;
color
:
#333
;
margin-bottom
:
.3125rem
;
margin-bottom
:
0
.3125rem
;
}
.recognition_desc
{
font-size
:
.875rem
;
.recognition_desc
{
font-size
:
0
.875rem
;
color
:
#666
;
}
</
style
>
refined-manager-ui/admin/src/views/appointment/records/list.vue
View file @
e1e45127
...
...
@@ -3,7 +3,6 @@
<LayoutTable
notAdd
notDel
:data=
"tableData"
:config=
"tableConfig"
>
<el-button
slot=
"table-head-left2"
style=
"margin-left: 10px"
icon=
"el-icon-tickets"
size=
"mini"
type=
"danger"
...
...
refined-manager-ui/admin/src/views/care/config/dialogshow.vue
View file @
e1e45127
...
...
@@ -2,8 +2,8 @@
<!-- 弹出框表单 -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"90%"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"200px"
>
<el-row
>
<!--
<el-row
style=
"margin-bottom: 20px;"
>
<!--
<Field
:span=
"20"
label=
"是否启用该服务"
prop=
"used"
v-model=
"form.used"
type=
"radio"
:enumData=
"dict.used"
placeholder=
"请选择是否启用该服务"
/>
-->
...
...
@@ -13,77 +13,112 @@
active-color=
"#13ce66"
inactive-color=
"#ff4949"
active-value=
"1"
inactive-value=
"0"
>
inactive-value=
"0"
>
</el-switch>
</Field>
<Field
:span=
"20"
label=
"监测周期配置"
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.monday"
>
周一
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.monday"
>
周一
</el-checkbox
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.tuesday"
>
周二
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.tuesday"
>
周二
</el-checkbox
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.wednesday"
>
周三
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.wednesday"
>
周三
</el-checkbox
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.thursday"
>
周四
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.thursday"
>
周四
</el-checkbox
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.friday"
>
周五
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.saturday"
>
周六
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.friday"
>
周五
</el-checkbox
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.saturday"
>
周六
</el-checkbox
>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.sunday"
>
周日
</el-checkbox>
<el-checkbox
true-label=
"1"
false-label=
"0"
v-model=
"form.sunday"
>
周日
</el-checkbox
>
</Field>
<Field
:span=
"20"
label=
"单日服务最大人数设置"
prop=
"maxServicePersonNum"
v-model=
"form.maxServicePersonNum"
placeholder=
"请输入单日服务最大人数设置"
/>
<Field
:span=
"20"
label=
"服务阈值设置,单位分钟"
prop=
"serviceThreshold"
v-model=
"form.serviceThreshold"
placeholder=
"请输入服务阈值设置,单位分钟"
/>
<Field
:span=
"20"
label=
"累计服务频次预警"
prop=
"alertServiceNum"
v-model=
"form.alertServiceNum"
placeholder=
"请输入累计服务频次预警"
/>
<Field
:span=
"20"
label=
"消息发送对象"
prop=
"msgRecipients"
v-model=
"form.msgRecipients"
type=
"checkbox"
:enumData=
"dict.msgRecipients"
/>
<Field
:span=
"20"
label=
"备注"
prop=
"remark"
v-model=
"form.remark"
type=
"textarea"
placeholder=
"请输入备注"
/>
<Field
:span=
"20"
label=
"单日服务最大人数设置"
prop=
"maxServicePersonNum"
v-model=
"form.maxServicePersonNum"
placeholder=
"请输入单日服务最大人数设置"
/>
<Field
:span=
"20"
label=
"服务阈值设置,单位分钟"
prop=
"serviceThreshold"
v-model=
"form.serviceThreshold"
placeholder=
"请输入服务阈值设置,单位分钟"
/>
<Field
:span=
"20"
label=
"累计服务频次预警"
prop=
"alertServiceNum"
v-model=
"form.alertServiceNum"
placeholder=
"请输入累计服务频次预警"
/>
<Field
:span=
"20"
label=
"消息发送对象"
prop=
"msgRecipients"
v-model=
"form.msgRecipients"
type=
"checkbox"
:enumData=
"dict.msgRecipients"
/>
<Field
:span=
"20"
label=
"备注"
prop=
"remark"
v-model=
"form.remark"
type=
"textarea"
placeholder=
"请输入备注"
/>
</el-row>
<el-divider
content-position=
"center"
>
主动关怀时间段信息
</el-divider>
<br/>
<el-divider
content-position=
"center"
style=
"color: #aaa;"
><span
style=
"color: #aaa;"
>
主动关怀时间段信息
</span></el-divider
>
<br
/>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAddCareConfigTimes"
>
添加
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAddCareConfigTimes"
>
添加
</el-button
>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"handleDeleteCareConfigTimes"
>
删除
</el-button>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
@
click=
"handleDeleteCareConfigTimes"
>
删除
</el-button
>
</el-col>
</el-row>
<el-table
:data=
"careConfigTimesList"
:row-class-name=
"rowCareConfigTimesIndex"
@
selection-change=
"handleCareConfigTimesSelectionChange"
ref=
"careConfigTimes"
>
<el-table
:data=
"careConfigTimesList"
:row-class-name=
"rowCareConfigTimesIndex"
@
selection-change=
"handleCareConfigTimesSelectionChange"
ref=
"careConfigTimes"
>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
/>
<el-table-column
label=
"序号"
align=
"center"
prop=
"index"
width=
"50"
/>
<el-table-column
label=
"序号"
align=
"center"
prop=
"index"
width=
"50"
/>
<el-table-column
label=
"开始时间"
prop=
"serviceTimeStart"
>
<template
slot-scope=
"scope"
>
<el-time-select
placeholder=
"起始时间"
v-model=
"scope.row.serviceTimeStart"
...
...
@@ -92,8 +127,9 @@
:picker-options=
"
{
start: '08:00',
step: '00:30',
end: '18:00'
}">
end: '18:00',
}"
>
</el-time-select>
<!--
<el-input
v-model=
"scope.row.serviceTimeStart"
placeholder=
"请输入时间段时候开始时间"
/>
-->
</
template
>
...
...
@@ -107,8 +143,9 @@
:picker-options=
"
{
start: '08:00',
step: '00:30',
end: '18:00'
}">
end: '18:00',
}"
>
</el-time-select>
</
template
>
</el-table-column>
...
...
@@ -118,23 +155,27 @@
</
template
>
</el-table-column>
</el-table>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
v-if=
"pageInfo.type !== 'view'"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
v-if=
"pageInfo.type !== 'view'"
@
click=
"submitForm"
>
确 定
</el-button
>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</template>
<
script
>
import
form
from
"
@/assets/mixins/formdialog
"
;
import
dialogShow
from
"
./dialogshow
"
;
import
moment
from
"
moment/moment
"
;
export
default
{
import
form
from
"
@/assets/mixins/formdialog
"
;
import
dialogShow
from
"
./dialogshow
"
;
import
moment
from
"
moment/moment
"
;
export
default
{
mixins
:
[
form
],
components
:
{
dialogShow
,
dialogShow
,
},
data
()
{
return
{
...
...
@@ -149,7 +190,7 @@
// 是否显示弹出层
open
:
false
,
toArrays
:
[
"
msgRecipients
"
],
toString
:
[
toString
:
[
"
used
"
,
"
monday
"
,
"
tuesday
"
,
...
...
@@ -161,11 +202,8 @@
],
// 表单校验
rules
:
{
createTime
:
[
{
required
:
true
,
message
:
"
请选择创建时间
"
},
],
}
createTime
:
[{
required
:
true
,
message
:
"
请选择创建时间
"
}],
},
};
},
...
...
@@ -189,9 +227,14 @@
/** 主动关怀时间段删除按钮操作 */
handleDeleteCareConfigTimes
()
{
if
(
this
.
checkedCareConfigTimes
.
length
==
0
)
{
this
.
$alert
(
"
请先选择要删除的主动关怀时间段数据
"
,
"
提示
"
,
{
confirmButtonText
:
"
确定
"
,
});
this
.
$alert
(
"
请先选择要删除的主动关怀时间段数据
"
,
"
提示
"
,
{
confirmButtonText
:
"
确定
"
,
});
}
else
{
this
.
careConfigTimesList
.
splice
(
this
.
checkedCareConfigTimes
[
0
].
index
-
1
,
1
);
this
.
careConfigTimesList
.
splice
(
this
.
checkedCareConfigTimes
[
0
].
index
-
1
,
1
);
}
},
/** 单选框选中数据 */
...
...
@@ -205,39 +248,39 @@
},
// 渲染前置处理
beforeRender
(
data
)
{
if
(
data
.
entity
.
careConfigTimesList
)
{
data
.
entity
.
careConfigTimesList
.
map
(
i
=>
{
i
.
serviceTimeStart
=
moment
(
i
.
serviceTimeStart
).
format
(
'
HH:mm
'
)
i
.
serviceTimeEnd
=
moment
(
i
.
serviceTimeEnd
).
format
(
'
HH:mm
'
)
})
if
(
data
.
entity
.
careConfigTimesList
)
{
data
.
entity
.
careConfigTimesList
.
map
((
i
)
=>
{
i
.
serviceTimeStart
=
moment
(
i
.
serviceTimeStart
).
format
(
"
HH:mm
"
);
i
.
serviceTimeEnd
=
moment
(
i
.
serviceTimeEnd
).
format
(
"
HH:mm
"
);
});
this
.
careConfigTimesList
=
data
.
entity
.
careConfigTimesList
;
}
return
data
return
data
;
},
/** 编辑 */
edit
(
row
)
{
this
.
reset
()
this
.
reset
();
this
.
query
=
{
id
:
row
.
id
};
this
.
urls
.
currUrl
=
"
care/config/edit
"
;
this
.
urls
.
currUrl
=
"
care/config/edit
"
;
this
.
getData
();
this
.
pageInfo
.
type
=
"
edit
"
this
.
pageInfo
.
type
=
"
edit
"
;
this
.
title
=
"
修改主动关怀配置
"
;
},
/** 新增 */
add
(
row
)
{
this
.
reset
()
this
.
reset
();
this
.
urls
.
currUrl
=
"
care/config/add
"
;
this
.
getData
();
this
.
pageInfo
.
type
=
"
add
"
this
.
pageInfo
.
type
=
"
add
"
;
this
.
title
=
"
新增主动关怀配置
"
;
},
/** 查看*/
view
(
row
)
{
this
.
reset
()
this
.
reset
();
this
.
query
=
{
id
:
row
.
id
};
this
.
urls
.
currUrl
=
"
care/config/view
"
;
this
.
urls
.
currUrl
=
"
care/config/view
"
;
this
.
getData
();
this
.
pageInfo
.
type
=
"
view
"
this
.
pageInfo
.
type
=
"
view
"
;
this
.
title
=
"
主动关怀配置详细
"
;
},
/**取消按钮 */
...
...
@@ -250,17 +293,24 @@
},
beforeSubmit
(
data
)
{
data
.
careConfigTimesList
.
map
(
i
=>
{
const
serviceTimeStart
=
moment
(
i
.
serviceTimeStart
,
'
HH:mm
'
);
const
serviceTimeEnd
=
moment
(
i
.
serviceTimeEnd
,
'
HH:mm
'
);
i
.
serviceTimeStart
=
moment
().
set
({
hour
:
serviceTimeStart
.
hour
(),
minute
:
serviceTimeStart
.
minute
()}).
format
(
'
yyyy-MM-DD HH:mm:ss
'
);
i
.
serviceTimeEnd
=
moment
().
set
({
hour
:
serviceTimeEnd
.
hour
(),
minute
:
serviceTimeEnd
.
minute
()}).
format
(
'
yyyy-MM-DD HH:mm:ss
'
);
data
.
careConfigTimesList
.
map
((
i
)
=>
{
const
serviceTimeStart
=
moment
(
i
.
serviceTimeStart
,
"
HH:mm
"
);
const
serviceTimeEnd
=
moment
(
i
.
serviceTimeEnd
,
"
HH:mm
"
);
i
.
serviceTimeStart
=
moment
()
.
set
({
hour
:
serviceTimeStart
.
hour
(),
minute
:
serviceTimeStart
.
minute
(),
})
.
format
(
"
yyyy-MM-DD HH:mm:ss
"
);
i
.
serviceTimeEnd
=
moment
()
.
set
({
hour
:
serviceTimeEnd
.
hour
(),
minute
:
serviceTimeEnd
.
minute
()
})
.
format
(
"
yyyy-MM-DD HH:mm:ss
"
);
});
if
(
Array
.
isArray
(
data
[
"
msgRecipients
"
]))
{
data
.
msgRecipients
=
data
.
msgRecipients
.
filter
(
Boolean
).
join
();
}
return
data
return
data
;
},
afterSubmit
(
data
)
{
...
...
@@ -271,21 +321,21 @@
// 表单重置
reset
()
{
this
.
form
=
{
siteId
:
null
,
siteName
:
""
,
used
:
0
,
monday
:
0
,
tuesday
:
0
,
wednesday
:
0
,
thursday
:
0
,
friday
:
0
,
saturday
:
0
,
sunday
:
0
,
maxServicePersonNum
:
0
,
serviceThreshold
:
0
,
alertServiceNum
:
null
,
msgRecipients
:
""
,
remark
:
""
,
siteId
:
null
,
siteName
:
""
,
used
:
0
,
monday
:
0
,
tuesday
:
0
,
wednesday
:
0
,
thursday
:
0
,
friday
:
0
,
saturday
:
0
,
sunday
:
0
,
maxServicePersonNum
:
0
,
serviceThreshold
:
0
,
alertServiceNum
:
null
,
msgRecipients
:
""
,
remark
:
""
,
};
this
.
resetForm
(
"
form
"
);
},
...
...
@@ -295,5 +345,5 @@
}
},
},
};
};
</
script
>
refined-manager-ui/admin/src/views/care/config/list.vue
View file @
e1e45127
...
...
@@ -59,7 +59,7 @@
columnSet
:[
{
prop
:
"
serviceTimeStart
"
,
label
:
"
服务开始时间
"
,
width
:
200
,
formatter
:
this
.
formatterDate
},
{
prop
:
"
serviceTimeEnd
"
,
label
:
"
服务结束时间
"
,
width
:
200
,
formatter
:
this
.
formatterDate
},
{
prop
:
"
remark
"
,
label
:
"
备注
"
,
width
:
1
00
},
{
prop
:
"
remark
"
,
label
:
"
备注
"
,
width
:
2
00
},
],
config
:
{
search
:
[
...
...
refined-manager-ui/admin/src/views/person/list.vue
View file @
e1e45127
...
...
@@ -3,7 +3,6 @@
<LayoutTable
:data=
"tableData"
:config=
"tableConfig"
>
<el-button
slot=
"table-head-left2"
style=
"margin-left: 10px"
icon=
"el-icon-tickets"
size=
"mini"
@
click=
"handleImport"
...
...
refined-manager-ui/admin/src/views/realtime/dataflow/dataDrawerShow.vue
View file @
e1e45127
...
...
@@ -5,9 +5,13 @@
:title=
"title"
:visible.sync=
"open"
:direction=
"direction"
size=
"95%"
>
<div>
<div
class=
"warning"
>
系统检测以下人员(20人)识别频次过高:
</div>
size=
"95%"
>
<div
style=
"height: 100%;"
>
<div
class=
"warning"
>
<i
class=
"el-icon-s-opportunity"
></i>
系统检测以下人员(20人)识别频次过高:
</div>
<div
class=
"drawer_box"
>
<div
class=
"drawer_box_left"
>
<el-table
...
...
@@ -15,30 +19,42 @@
:data=
"tableDataL"
highlight-current-row
@
current-change=
"handleCurrentChange"
style=
"width: 100%"
>
style=
"width: 100%"
border
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
>
width=
"50"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"name"
label=
"姓名"
width=
"80"
>
width=
"80"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"contact"
label=
"联系电话"
>
label=
"联系电话"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"identifyNum"
label=
"识别频次"
width=
"80"
>
width=
"80"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"lastIdentifyTime"
label=
"最近识别时间"
:formatter=
"this.formatterDate"
>
:formatter=
"this.formatterDate"
align=
"center"
>
</el-table-column>
</el-table>
</div>
...
...
@@ -46,46 +62,71 @@
<div
class=
"recognition"
>
<div>
<div
class=
"recognition_name"
>
{{
singleSelect
.
name
}}
</div>
<div
class=
"recognition_desc"
>
联系电话:
{{
singleSelect
.
contact
}}
| 身份证号:
{{
singleSelect
.
idNumber
}}
| 识别频次:
{{
singleSelect
.
identifyNum
}}
</div>
<div
class=
"recognition_desc"
>
联系电话:
{{
singleSelect
.
contact
}}
<br
/>
身份证号:
{{
singleSelect
.
idNumber
}}
<br
/>
识别频次:
{{
singleSelect
.
identifyNum
}}
</div>
</div>
<div>
<el-button
type=
"primary"
@
click=
"show= true"
>
限制取号
</el-button>
<el-button
type=
"primary"
@
click=
"show = true"
style=
"width: 120px;height: 48px;line-height: 24px;font-size: 16px; font-weight: 600;"
>
限制取号
</el-button
>
</div>
</div>
<el-table
:data=
"tableDataR"
style=
"width: 100%"
>
<el-table
:data=
"tableDataR"
style=
"width: 100%"
border
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50"
>
width=
"50"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"monitorTime"
label=
"监测时间"
:formatter=
"this.formatterDate"
>
:formatter=
"this.formatterDate"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"monitorDevice"
label=
"监测设备"
>
label=
"监测设备"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"reservationService"
label=
"预约业务"
>
label=
"预约业务"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"reservationNumber"
label=
"预约编号"
>
label=
"预约编号"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"checkInMethod"
label=
"签到方式"
>
label=
"签到方式"
align=
"center"
>
</el-table-column>
<el-table-column
property=
"monitorCertificate"
label=
"监测凭证"
>
label=
"监测凭证"
align=
"center"
>
<template
slot-scope=
"scope"
>
<img
style=
"width: 70px; height: 100px"
:src=
"scope.row.monitorCertificate"
alt=
"图片"
>
<img
style=
"width: 70px; height: 100px"
:src=
"scope.row.monitorCertificate"
alt=
"图片"
/>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -95,18 +136,32 @@
:current-page=
"this.params.page"
:page-size=
"this.params.size"
layout=
"total, prev, pager, next"
:total=
"this.total"
>
:total=
"this.total"
style=
"text-align: end;"
>
</el-pagination>
</div>
</div>
</div>
</el-drawer>
<el-dialog
title=
"限制取号"
:visible.sync=
"show"
width=
"31.25rem"
append-to-body
>
<el-form
ref=
"form"
:model=
"restrict"
:label-position=
"right"
label-width=
"7.5rem"
>
<el-dialog
title=
"限制取号"
:visible.sync=
"show"
width=
"31.25rem"
append-to-body
>
<el-form
ref=
"form"
:model=
"restrict"
:label-position=
"right"
label-width=
"7.5rem"
>
<el-form-item
label=
"姓名:"
>
{{ restrict.name }}
</el-form-item>
<el-form-item
label=
"联系电话:"
>
{{ restrict.contact }}
</el-form-item>
<el-form-item
label=
"身份证号:"
>
{{ restrict.idNumber }}
</el-form-item>
<el-form-item
label=
"识别频次:"
>
{{ restrict.identifyNum }}
</el-form-item>
<el-form-item
label=
"识别频次:"
>
{{
restrict.identifyNum
}}
</el-form-item>
<el-form-item
label=
"限制取号:"
>
<el-input
placeholder=
"请输入内容"
v-model=
"restrict.times"
>
<
template
slot=
"append"
>
次 / 天
</
template
>
...
...
@@ -114,8 +169,8 @@
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"show
= false"
>
确 定
</el-button>
<el-button
@
click=
"show
= false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"show
= false"
>
确 定
</el-button>
<el-button
@
click=
"show
= false"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
...
...
@@ -125,12 +180,9 @@
import
table
from
"
@/assets/mixins/table
"
;
export
default
{
name
:
"
dataDrawerShow
"
,
components
:
{
},
components
:
{},
mixins
:
[
table
],
created
()
{
},
created
()
{},
data
()
{
return
{
// 遮罩层
...
...
@@ -141,95 +193,102 @@ export default {
open
:
false
,
// 限制取号
show
:
false
,
direction
:
"
rtl
"
,
direction
:
"
rtl
"
,
// 左侧表格数据
tableDataL
:
[],
tableDataL
:
[],
// 左侧被选中的数据
singleSelect
:
{},
// 右侧表格数据
tableDataR
:
[],
params
:
{
size
:
10
,
page
:
1
page
:
1
,
},
total
:
0
,
restrict
:
{
name
:
''
,
contact
:
''
,
idNumber
:
''
,
identifyNum
:
''
,
times
:
''
}
}
restrict
:
{
name
:
""
,
contact
:
""
,
idNumber
:
""
,
identifyNum
:
""
,
times
:
""
,
},
};
},
methods
:
{
view
(
row
)
{
this
.
open
=
true
this
.
getAllMonitor
()
this
.
open
=
true
;
this
.
getAllMonitor
();
},
async
getAllMonitor
()
{
const
res
=
await
this
.
$post
(
'
monitor/alarm/list
'
)
if
(
res
&&
res
.
code
==
1
)
{
this
.
tableDataL
=
res
.
data
.
data
console
.
log
(
res
)
this
.
total
=
res
.
data
.
total
this
.
params
.
page
=
res
.
data
.
current_page
this
.
params
.
size
=
res
.
data
.
per_page
this
.
$refs
.
singleTable
.
setCurrentRow
(
this
.
tableDataL
[
0
])
// 默认选中第一条
async
getAllMonitor
()
{
const
res
=
await
this
.
$post
(
"
monitor/alarm/list
"
);
if
(
res
&&
res
.
code
==
1
)
{
this
.
tableDataL
=
res
.
data
.
data
;
console
.
log
(
res
);
this
.
total
=
res
.
data
.
total
;
this
.
params
.
page
=
res
.
data
.
current_page
;
this
.
params
.
size
=
res
.
data
.
per_page
;
this
.
$refs
.
singleTable
.
setCurrentRow
(
this
.
tableDataL
[
0
]);
// 默认选中第一条
}
},
async
handleCurrentChange
(
row
)
{
this
.
singleSelect
=
row
this
.
restrict
=
{...
row
}
const
res
=
await
this
.
$post
(
'
monitor/alarm/record/list
'
)
if
(
res
&&
res
.
code
==
1
)
{
this
.
tableDataR
=
res
.
data
.
data
async
handleCurrentChange
(
row
)
{
this
.
singleSelect
=
row
;
this
.
restrict
=
{
...
row
};
const
res
=
await
this
.
$post
(
"
monitor/alarm/record/list
"
);
if
(
res
&&
res
.
code
==
1
)
{
this
.
tableDataR
=
res
.
data
.
data
;
}
},
// 监听size改变
changeSize
(
newSize
)
{
this
.
size
=
newSize
changeSize
(
newSize
)
{
this
.
size
=
newSize
;
},
// 页码改变
changePage
(
newPage
)
{
this
.
page
=
newPage
changePage
(
newPage
)
{
this
.
page
=
newPage
;
},
},
};
</
script
>
<
style
scope
>
.warning
{
padding
:
0
.625rem
;
height
:
1.875
rem
;
line-height
:
1.875
rem
;
.warning
{
padding
:
0
0
.625rem
;
height
:
3
rem
;
line-height
:
3
rem
;
font-size
:
1.25rem
;
color
:
#F94545
;
color
:
#f94545
;
padding-left
:
20px
;
background
:
rgba
(
249
,
69
,
69
,
0.1
);
}
.drawer_box
{
.drawer_box
{
display
:
flex
;
height
:
100%
;
padding
:
20px
10px
;
}
.drawer_box_left
{
.drawer_box_left
{
height
:
100%
;
width
:
37.5rem
;
padding
:
.625rem
;
padding
:
0.625rem
;
border-right
:
1px
solid
#f0f0f0
;
}
.drawer_box_right
{
.drawer_box_right
{
flex
:
1
;
padding
:
.625rem
;
padding
:
0
.625rem
;
}
.recognition
{
.recognition
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
.625rem
;
margin-bottom
:
0
.625rem
;
}
.recognition_name
{
.recognition_name
{
font-size
:
1.25rem
;
color
:
#333
;
margin-bottom
:
.3125rem
;
color
:
#000
;
font-weight
:
600
;
margin-bottom
:
0.3125rem
;
}
.recognition_desc
{
font-size
:
.875rem
;
.recognition_desc
{
font-size
:
0
.875rem
;
color
:
#666
;
}
</
style
>
refined-manager-ui/admin/src/views/realtime/dataflow/list.vue
View file @
e1e45127
<
template
>
<div
class=
"page"
>
<span
style=
"position: absolute; top: -30px;right: 0;font-size: 12px; color: #aaa;"
>
<i
class=
"el-icon-warning"
></i
>
流量数据由海康提供,本系统提供15日暂存服务。
</span
>
<LayoutTable
notAdd
notDel
:data=
"tableData"
:config=
"tableConfig"
>
<el-button
slot=
"table-head-left2"
style=
"margin-left: 10px"
icon=
"el-icon-tickets"
size=
"mini"
type=
"danger"
...
...
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