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
40f47753
Commit
40f47753
authored
Aug 19, 2021
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基本完成,准备修改设备路径
parent
76fe364a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
166 additions
and
94 deletions
+166
-94
flowMeter.vue
gassafety-web/src/components/PopWindow/flowMeter.vue
+7
-5
pressureGage.vue
gassafety-web/src/components/PopWindow/pressureGage.vue
+8
-6
regulatorBox.vue
gassafety-web/src/components/PopWindow/regulatorBox.vue
+7
-6
lineInfoWindow.vue
gassafety-web/src/components/PopWindowGis/lineInfoWindow.vue
+2
-1
permission.js
gassafety-web/src/permission.js
+3
-0
gaodeMap.js
gassafety-web/src/utils/gaodeMap.js
+134
-73
index.vue
gassafety-web/src/views/enterprise/mapView/index.vue
+1
-1
login.vue
gassafety-web/src/views/login.vue
+4
-2
No files found.
gassafety-web/src/components/PopWindow/flowMeter.vue
View file @
40f47753
...
...
@@ -8,17 +8,17 @@
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"135px"
>
<el-row>
<el-col
:span=
"11"
>
<el-form-item
label=
"所属管道"
prop=
"pipe
Code
"
>
<el-form-item
label=
"所属管道"
prop=
"pipe
Id
"
>
<el-select
v-model=
"form.pipe
Code
"
v-model=
"form.pipe
Id
"
placeholder=
"请选择所属管道"
style=
"width: 100%"
>
<el-option
v-for=
"item in pipeList"
:key=
"item.pipe
Code
"
:key=
"item.pipe
Id
"
:label=
"item.pipeName"
:value=
"item.pipe
Code"
:value=
"item.pipe
Id"
>
</el-option>
</el-select>
...
...
@@ -163,7 +163,7 @@ export default {
pipeList
:
[],
rules
:
{
pipe
Code
:
[
pipe
Id
:
[
{
required
:
true
,
message
:
"请选择所属管道"
,
trigger
:
"blur"
},
// { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" },
],
...
...
@@ -211,6 +211,8 @@ export default {
},
submitForm
()
{
this
.
$refs
[
"form"
].
validate
((
valid
)
=>
{
// console.log("this.form流量计",this.form)
// return;
if
(
valid
)
{
if
(
this
.
form
.
deviceId
!=
null
)
{
updateDeviceInfo
(
this
.
form
).
then
((
response
)
=>
{
...
...
gassafety-web/src/components/PopWindow/pressureGage.vue
View file @
40f47753
...
...
@@ -8,17 +8,17 @@
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"135px"
>
<el-row>
<el-col
:span=
"11"
>
<el-form-item
label=
"所属管道"
prop=
"pipe
Code
"
>
<el-form-item
label=
"所属管道"
prop=
"pipe
Id
"
>
<el-select
v-model=
"form.pipe
Code
"
v-model=
"form.pipe
Id
"
placeholder=
"请选择所属管道"
style=
"width: 100%"
>
<el-option
v-for=
"item in pipeList"
:key=
"item.pipe
Code
"
:key=
"item.pipe
Id
"
:label=
"item.pipeName"
:value=
"item.pipe
Code
"
:value=
"item.pipe
Id
"
>
</el-option>
</el-select>
...
...
@@ -156,7 +156,7 @@ export default {
fileList
:
[],
// 表单校验
rules
:
{
pipe
Code
:
[
pipe
Id
:
[
{
required
:
true
,
message
:
"请选择所属管道"
,
trigger
:
"blur"
},
// { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" },
],
...
...
@@ -209,6 +209,8 @@ export default {
},
submitForm
()
{
this
.
$refs
[
"form"
].
validate
((
valid
)
=>
{
// console.log("this.form)",this.form)
if
(
valid
)
{
if
(
this
.
form
.
deviceId
!=
null
)
{
updateDeviceInfo
(
this
.
form
).
then
((
response
)
=>
{
...
...
gassafety-web/src/components/PopWindow/regulatorBox.vue
View file @
40f47753
...
...
@@ -8,17 +8,17 @@
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"135px"
>
<el-row>
<el-col
:span=
"11"
>
<el-form-item
label=
"所属管道"
prop=
"pipe
Code
"
>
<el-form-item
label=
"所属管道"
prop=
"pipe
Id
"
>
<el-select
v-model=
"form.pipe
Code
"
v-model=
"form.pipe
Id
"
placeholder=
"请选择所属管道"
style=
"width: 100%"
>
<el-option
v-for=
"item in pipeList"
:key=
"item.pipe
Code
"
:key=
"item.pipe
Id
"
:label=
"item.pipeName"
:value=
"item.pipe
Code
"
:value=
"item.pipe
Id
"
>
</el-option>
</el-select>
...
...
@@ -160,7 +160,7 @@ export default {
fileArr
:
[],
pipeList
:
[],
rules
:
{
pipe
Code
:
[
pipe
Id
:
[
{
required
:
true
,
message
:
"请选择所属管道"
,
trigger
:
"blur"
},
// { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" },
],
...
...
@@ -209,6 +209,7 @@ export default {
},
submitForm
()
{
this
.
$refs
[
"form"
].
validate
((
valid
)
=>
{
// console.log("this.form",this.form)
if
(
valid
)
{
if
(
this
.
form
.
deviceId
!=
null
)
{
updateDeviceInfo
(
this
.
form
).
then
((
response
)
=>
{
...
...
gassafety-web/src/components/PopWindowGis/lineInfoWindow.vue
View file @
40f47753
...
...
@@ -132,9 +132,10 @@ export default {
deviceMore
()
{
console
.
log
(
this
.
obj
.
polyline
.
getExtData
().
lineData
)
this
.
obj
.
polyline
.
getExtData
().
class
.
view
.
$router
.
push
({
path
:
"/
realtimeData
/realtimedetail"
,
path
:
"/
dataMonitoring
/realtimedetail"
,
query
:
{
deviceId
:
this
.
obj
.
polyline
.
getExtData
().
lineData
.
pipeId
,
deviceType
:
"0"
}
,
}
);
}
,
...
...
gassafety-web/src/permission.js
View file @
40f47753
...
...
@@ -54,8 +54,11 @@ router.afterEach((to, from) => {
// console.log('全局后置钩子',to, from)
if
(
to
.
path
==
"/enterprise/mapView"
)
{
store
.
dispatch
(
"app/toggleDevice"
,
"mobile"
);
store
.
dispatch
(
"app/closeSideBar"
,
{
withoutAnimation
:
true
});
}
else
{
store
.
dispatch
(
"app/toggleDevice"
,
"desktop"
);
store
.
dispatch
(
"app/closeSideBar"
,
{
withoutAnimation
:
false
});
}
NProgress
.
done
();
});
gassafety-web/src/utils/gaodeMap.js
View file @
40f47753
This diff is collapsed.
Click to expand it.
gassafety-web/src/views/enterprise/mapView/index.vue
View file @
40f47753
...
...
@@ -342,6 +342,7 @@ export default {
created
()
{
// 让左边的框隐藏
this
.
$store
.
dispatch
(
"app/toggleDevice"
,
"mobile"
);
console
.
log
(
"sasdasdas"
)
},
mounted
()
{
...
...
@@ -396,7 +397,6 @@ export default {
}
});
},
getDeviceInfo
(
queryParams
)
{
this
.
loading
=
true
;
return
getAllDeviceInfo
(
queryParams
).
then
((
response
)
=>
{
...
...
gassafety-web/src/views/login.vue
View file @
40f47753
...
...
@@ -81,7 +81,7 @@ export default {
code
:
[{
required
:
true
,
trigger
:
"change"
,
message
:
"验证码不能为空"
}]
},
loading
:
false
,
redirect
:
"
/index
"
redirect
:
""
};
},
watch
:
{
...
...
@@ -134,7 +134,9 @@ export default {
Cookies
.
set
(
'rememberMe'
,
this
.
loginForm
.
rememberMe
,
{
expires
:
30
});
this
.
$store
.
dispatch
(
"Login"
,
this
.
loginForm
).
then
(()
=>
{
this
.
$router
.
push
({
path
:
this
.
redirect
||
"/"
}).
catch
(()
=>
{});
// this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
// console.log(this.redirect)
this
.
$router
.
push
({
path
:
"/enterprise/mapView"
||
"/"
}).
catch
(()
=>
{});
}).
catch
(()
=>
{
this
.
loading
=
false
;
this
.
getCode
();
...
...
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