Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
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
耿迪迪
gassafety
Commits
442ef4cd
Commit
442ef4cd
authored
Aug 06, 2021
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管道信息修改回显方法缺失,管道和设备新增修改添加编号
parent
e04b77c3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
7 deletions
+36
-7
pipe.js
gassafety-web/src/api/device/pipe.js
+8
-0
index.vue
gassafety-web/src/views/device/deviceInfo/index.vue
+12
-3
index.vue
gassafety-web/src/views/device/pipe/index.vue
+16
-4
No files found.
gassafety-web/src/api/device/pipe.js
View file @
442ef4cd
...
...
@@ -31,6 +31,14 @@ export function getAllDevice(data) {
})
}
// 查询管道信息详细
export
function
getPipe
(
pipeId
)
{
return
request
({
url
:
'/device/pipe/'
+
pipeId
,
method
:
'get'
})
}
// 新增管道信息
export
function
addPipe
(
data
)
{
return
request
({
...
...
gassafety-web/src/views/device/deviceInfo/index.vue
View file @
442ef4cd
...
...
@@ -183,7 +183,12 @@
<el-input
v-model=
"form.iotNo"
placeholder=
"请输入物联网编号"
/>
</el-form-item>
<el-form-item
label=
"设备图片上传"
prop=
"iconUrl"
>
<FileUpload
:fileArr=
"fileList"
@
resFun=
"getFileInfo"
/>
<MyFileUpload
listType=
"picture-card"
@
resFun=
"getFileInfo"
@
remove=
"listRemove"
:fileArr=
"fileList"
/>
</el-form-item>
<el-form-item
label=
"联系人"
prop=
"linkman"
>
<el-input
v-model=
"form.linkman"
placeholder=
"请输入联系人"
/>
...
...
@@ -213,12 +218,12 @@
<
script
>
import
{
listDeviceInfo
,
getDeviceInfo
,
delDeviceInfo
,
addDeviceInfo
,
updateDeviceInfo
,
exportDeviceInfo
,
countDeviceByType
}
from
"@/api/device/deviceInfo"
;
import
FileUpload
from
'@/components/
FileUpload'
;
import
MyFileUpload
from
'@/components/My
FileUpload'
;
export
default
{
name
:
"DeviceInfo"
,
components
:
{
FileUpload
,
My
FileUpload
,
},
data
()
{
return
{
...
...
@@ -292,6 +297,10 @@ export default {
getFileInfo
(
res
){
this
.
form
.
iconUrl
=
res
.
url
;
},
listRemove
(
e
)
{
this
.
form
.
url
=
""
;
this
.
fileList
=
[];
},
// 取消按钮
cancel
()
{
this
.
open
=
false
;
...
...
gassafety-web/src/views/device/pipe/index.vue
View file @
442ef4cd
...
...
@@ -137,6 +137,9 @@
<el-form-item
label=
"管道名称"
prop=
"pipeName"
>
<el-input
v-model=
"form.pipeName"
placeholder=
"请输入管道名称"
/>
</el-form-item>
<el-form-item
label=
"管道编号"
prop=
"pipeCode"
>
<el-input
v-model=
"form.pipeCode"
placeholder=
"请输入管道编号"
/>
</el-form-item>
<el-form-item
label=
"所在地址"
prop=
"pipeAddr"
>
<el-input
v-model=
"form.pipeAddr"
placeholder=
"请输入所在地址"
/>
</el-form-item>
...
...
@@ -167,7 +170,12 @@
</el-select>
</el-form-item>
<el-form-item
label=
"设备图片上传"
prop=
"iconUrl"
>
<FileUpload
:fileArr=
"fileList"
@
resFun=
"getFileInfo"
/>
<MyFileUpload
listType=
"picture-card"
@
resFun=
"getFileInfo"
@
remove=
"listRemove"
:fileArr=
"fileList"
/>
</el-form-item>
<el-form-item
label=
"安装时间"
prop=
"installationTime"
>
<el-date-picker
clearable
size=
"small"
...
...
@@ -190,13 +198,13 @@
</template>
<
script
>
import
{
listPipe
,
getPipe
,
delPipe
,
addPipe
,
updatePipe
,
exportPipe
,
countPipeLength
}
from
"@/api/device/pipe"
;
import
FileUpload
from
'@/components/
FileUpload'
;
import
{
listPipe
,
getPipe
,
delPipe
,
addPipe
,
updatePipe
,
exportPipe
}
from
"@/api/device/pipe"
;
import
MyFileUpload
from
'@/components/My
FileUpload'
;
export
default
{
name
:
"Pipe"
,
components
:
{
FileUpload
My
FileUpload
},
data
()
{
return
{
...
...
@@ -271,6 +279,10 @@ export default {
getFileInfo
(
res
){
this
.
form
.
iconUrl
=
res
.
url
;
},
listRemove
(
e
)
{
this
.
form
.
url
=
""
;
this
.
fileList
=
[];
},
// 取消按钮
cancel
()
{
this
.
open
=
false
;
...
...
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