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
b1d63bad
Commit
b1d63bad
authored
4 years ago
by
冯超鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改设备编辑
parent
1fafb847
Pipeline
#88
failed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
DevicesController.php
app/Http/Controllers/DevicesController.php
+1
-1
index.vue
resources/js/views/device/index.vue
+20
-0
No files found.
app/Http/Controllers/DevicesController.php
View file @
b1d63bad
...
@@ -179,7 +179,7 @@ class DevicesController extends Controller
...
@@ -179,7 +179,7 @@ class DevicesController extends Controller
->
leftjoin
(
'gas'
,
'de.status'
,
'='
,
'gas.id'
)
->
leftjoin
(
'gas'
,
'de.status'
,
'='
,
'gas.id'
)
->
leftjoin
(
'danwei as da'
,
'de.devicemonad'
,
'='
,
'da.id'
)
->
leftjoin
(
'danwei as da'
,
'de.devicemonad'
,
'='
,
'da.id'
)
->
leftjoin
(
'users as ud'
,
'de.uid'
,
'='
,
'ud.id'
)
->
leftjoin
(
'users as ud'
,
'de.uid'
,
'='
,
'ud.id'
)
->
select
(
'dt.tid'
,
'ud.name'
,
'de.username'
,
'de.deviceremark'
,
'de.devicelinkman'
,
'de.devicephone'
,
'de.deviceinfo'
,
'de.devicecoord'
,
'de.uid'
,
'de.devicenum'
)
->
select
(
'dt.tid'
,
'ud.name'
,
'de.username'
,
'de.deviceremark'
,
'de.devicelinkman'
,
'de.devicephone'
,
'de.deviceinfo'
,
'de.devicecoord'
,
'de.uid'
,
'de.devicenum'
,
'de.devicemonad'
,
'de.status'
)
->
first
();
->
first
();
return
$this
->
jsonSuccessData
(
$devi
);
return
$this
->
jsonSuccessData
(
$devi
);
}
}
...
...
This diff is collapsed.
Click to expand it.
resources/js/views/device/index.vue
View file @
b1d63bad
...
@@ -198,6 +198,14 @@
...
@@ -198,6 +198,14 @@
<
el
-
option
v
-
for
=
"item in list"
:
key
=
"item.id"
:
label
=
"item.tname"
:
value
=
"item.tid"
><
/el-option
>
<
el
-
option
v
-
for
=
"item in list"
:
key
=
"item.id"
:
label
=
"item.tname"
:
value
=
"item.tid"
><
/el-option
>
<
/el-select
>
<
/el-select
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"选择类别"
>
<
el
-
select
v
-
model
=
"updevicedata.devicemonad"
placeholder
=
"请选择单位"
>
<
el
-
option
v
-
for
=
"item in danwei"
:
key
=
"item.id"
:
label
=
"item.danwei"
:
value
=
"item.id"
><
/el-option
>
<
/el-select
>
<
el
-
select
v
-
model
=
"updevicedata.status"
placeholder
=
"请选择介质"
>
<
el
-
option
v
-
for
=
"item in gas"
:
key
=
"item.id"
:
label
=
"item.gas"
:
value
=
"item.id"
><
/el-option
>
<
/el-select
>
<
/el-form-item
>
<
el
-
form
-
item
>
<
el
-
form
-
item
>
<
el
-
button
type
=
"primary"
@
click
=
"updedata"
>
立即更新
<
/el-button
>
<
el
-
button
type
=
"primary"
@
click
=
"updedata"
>
立即更新
<
/el-button
>
<
el
-
button
@
click
=
"handleCloseup"
>
取消
<
/el-button
>
<
el
-
button
@
click
=
"handleCloseup"
>
取消
<
/el-button
>
...
@@ -227,6 +235,8 @@ export default {
...
@@ -227,6 +235,8 @@ export default {
dialogPvVisible
:
false
,
dialogPvVisible
:
false
,
activeName
:
'second'
,
activeName
:
'second'
,
list
:
[],
list
:
[],
danwei
:
[],
gas
:
[],
loading
:
true
,
loading
:
true
,
device
:
[],
device
:
[],
deviceDataInfo
:
[],
deviceDataInfo
:
[],
...
@@ -270,6 +280,8 @@ export default {
...
@@ -270,6 +280,8 @@ export default {
.
then
(
response
=>
{
.
then
(
response
=>
{
var
devicetype
=
response
.
data
;
var
devicetype
=
response
.
data
;
this
.
list
=
devicetype
[
'devicetype'
];
this
.
list
=
devicetype
[
'devicetype'
];
this
.
danwei
=
devicetype
[
'danwei'
];
this
.
gas
=
devicetype
[
'gas'
];
}
)
}
)
.
catch
(
err
=>
{
.
catch
(
err
=>
{
console
.
log
(
err
);
console
.
log
(
err
);
...
@@ -510,4 +522,12 @@ export default {
...
@@ -510,4 +522,12 @@ export default {
margin
-
bottom
:
0
;
margin
-
bottom
:
0
;
width
:
50
%
;
width
:
50
%
;
}
}
.
el
-
drawer__header
{
align
-
items
:
center
;
color
:
#
72767
b
;
display
:
flex
;
margin
-
bottom
:
-
4
px
;
padding
:
20
px
;
padding
-
bottom
:
0
;
}
<
/style
>
<
/style
>
This diff is collapsed.
Click to expand it.
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