Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
laravelzh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
冯超鹏
laravelzh
Commits
ca736041
Commit
ca736041
authored
Jul 03, 2020
by
冯超鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
4968298f
Pipeline
#78
canceled with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
DevicesController.php
app/Http/Controllers/DevicesController.php
+2
-1
index.vue
resources/js/layout/components/TagsView/index.vue
+7
-1
No files found.
app/Http/Controllers/DevicesController.php
View file @
ca736041
...
...
@@ -507,8 +507,9 @@ class DevicesController extends Controller
->
join
(
'status as s'
,
'd.devicepolice'
,
'='
,
's.id'
)
->
join
(
'danwei as w'
,
'd.devicemonad'
,
'='
,
'w.id'
)
->
join
(
'users as u'
,
'd.uid'
,
'='
,
'u.id'
)
->
join
(
'reportpolice as r'
,
'd.devicenum'
,
'='
,
'r.devicenumber'
)
->
where
(
'd.devicenum'
,
'='
,
$devicenum
)
->
select
(
'd.devicenum'
,
'd.username'
,
'd.nd'
,
'd.deviceremark'
,
'd.devicecoord'
,
'd.deviceaddtime'
,
'd.devicestatus'
,
't.tname'
,
'g.gas'
,
's.status_name'
,
'w.danwei'
,
'u.name'
,
'u.email'
)
->
select
(
'd.devicenum'
,
'd.username'
,
'd.nd'
,
'd.deviceremark'
,
'd.devicecoord'
,
'd.deviceaddtime'
,
'd.devicestatus'
,
't.tname'
,
'g.gas'
,
's.status_name'
,
'w.danwei'
,
'u.name'
,
'u.email'
,
'r.location'
,
'r.concentration'
,
'r.starttime'
)
->
first
();
return
$this
->
jsonSuccessData
(
$data
);
}
else
{
...
...
resources/js/layout/components/TagsView/index.vue
View file @
ca736041
...
...
@@ -49,7 +49,13 @@
<span>
{{
gridData
.
tname
}}
</span>
</el-form-item>
<el-form-item
label=
"设备单位浓度"
label-width=
"100px"
>
<span>
{{
gridData
.
nd
}}
/
{{
gridData
.
gas
}}
/
{{
gridData
.
danwei
}}
</span>
<span>
{{
gridData
.
concentration
}}
/
{{
gridData
.
gas
}}
/
{{
gridData
.
danwei
}}
</span>
</el-form-item>
<el-form-item
label=
"设备报警开始时间"
label-width=
"130px"
>
<span>
{{
gridData
.
starttime
|
parseTime
(
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
'
)
}}
<
/span
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"报警位置"
>
<
span
>
{{
gridData
.
location
}}
<
/span
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"设备坐标"
>
<
span
>
{{
gridData
.
devicecoord
}}
<
/span
>
...
...
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