Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ai-yunshou-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AI云守
ai-yunshou-vue
Commits
98ace9f0
Commit
98ace9f0
authored
Aug 15, 2024
by
胡占生
🇨🇳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:时间回显重构
parent
84461e5b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
15 deletions
+7
-15
src/views/alarmControl/components/form.vue
src/views/alarmControl/components/form.vue
+1
-7
src/views/alarmControl/index.vue
src/views/alarmControl/index.vue
+1
-7
src/views/faceControl/index.vue
src/views/faceControl/index.vue
+5
-1
No files found.
src/views/alarmControl/components/form.vue
View file @
98ace9f0
...
...
@@ -34,7 +34,7 @@
预警时间
</div>
</
template
>
{{
chang
eTime(form.alarmTime) }}
{{
pars
eTime(form.alarmTime) }}
</el-descriptions-item>
<el-descriptions-item>
<
template
#label
>
...
...
@@ -55,7 +55,6 @@
<
script
setup
>
import
{
listAlarm
,
detailAlarm
}
from
"
@/api/alarmControl/index.js
"
;
import
moment
from
'
moment
'
const
{
proxy
}
=
getCurrentInstance
();
const
emit
=
defineEmits
();
const
open
=
ref
(
false
);
...
...
@@ -79,11 +78,6 @@ const data = reactive({
const
{
queryParams
,
form
,
rules
}
=
toRefs
(
data
);
function
changeTime
(
val
){
return
moment
(
val
).
format
(
'
YYYY/MM/DD HH:mm:ss
'
)
}
function
getImageUrl
(
url
){
form
.
value
.
cardImg
=
url
console
.
log
(
"
🚀 ~ getImageUrl ~ orm.cardImg:
"
,
form
)
...
...
src/views/alarmControl/index.vue
View file @
98ace9f0
...
...
@@ -76,7 +76,7 @@
</div>
<h2>
{{
item
.
alarmType
}}
</h2>
<p
style=
"color: #999999;font-size: 12px;"
>
{{
chang
eTime
(
item
.
alarmTime
)
}}
{{
pars
eTime
(
item
.
alarmTime
)
}}
</p>
<div
style=
"display: flex;justify-content: flex-end;position: absolute;right: 15px;bottom: 10px;"
>
<el-button
link
type=
"primary"
icon=
"Edit"
@
click.stop=
"handleDetials(item)"
>
详情
</el-button>
...
...
@@ -108,7 +108,6 @@
<
script
setup
name=
"Index"
>
import
{
listAlarm
,
detailAlarm
}
from
"
@/api/alarmControl/index.js
"
;
import
{
listDevice
,
}
from
"
@/api/yunshou/device
"
;
import
moment
from
'
moment
'
const
{
proxy
}
=
getCurrentInstance
();
const
{
algorithm_scen
,
algorithm_case
}
=
proxy
.
useDict
(
"
algorithm_scen
"
,
"
algorithm_case
"
);
import
alarmDetial
from
'
./components/form.vue
'
...
...
@@ -181,11 +180,6 @@
});
const
{
queryParams
,
form
,
rules
}
=
toRefs
(
data
);
function
changeTime
(
val
){
return
moment
(
val
).
format
(
'
YYYY/MM/DD HH:mm:ss
'
)
}
function
changeDivision
(
val
,
pageSize
){
division
.
value
=
val
queryParams
.
value
.
pageSize
=
pageSize
...
...
src/views/faceControl/index.vue
View file @
98ace9f0
...
...
@@ -63,7 +63,11 @@
<el-table-column
label=
"手机号"
align=
"center"
prop=
"phoneNumber"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"身份证号"
align=
"center"
prop=
"idNumber"
/>
<el-table-column
label=
"所属部门"
align=
"center"
prop=
"deptId"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
:show-overflow-tooltip=
"true"
>
<template
#default
="
scope
"
>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作人"
align=
"center"
prop=
"createByName"
/>
<el-table-column
label=
"人脸照片"
align=
"center"
>
<
template
#default
="
scope
"
>
...
...
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