Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-monitor
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
Administrator
web-monitor
Commits
97087310
Commit
97087310
authored
Jan 21, 2025
by
dupengyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- 天馈线部分
- 检测设备参数配置
parent
f1258b20
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
474 additions
and
381 deletions
+474
-381
type1.vue
src/views/dashboard/components/type1.vue
+2
-2
type2.vue
src/views/dashboard/components/type2.vue
+2
-2
type3.vue
src/views/dashboard/components/type3.vue
+2
-2
type4.vue
src/views/dashboard/components/type4.vue
+2
-2
type5.vue
src/views/dashboard/components/type5.vue
+2
-2
autoAdd.vue
src/views/setting/add/comp/autoAdd.vue
+384
-334
leakyCable.vue
src/views/setting/add/comp/leakyCable.vue
+23
-0
line.vue
src/views/setting/add/comp/line.vue
+41
-14
index.vue
src/views/setting/add/index.vue
+2
-2
lineTable.vue
src/views/setting/statistics/comp/lineTable.vue
+0
-3
monitorTable.vue
src/views/setting/statistics/comp/monitorTable.vue
+8
-8
index.vue
src/views/setting/statistics/index.vue
+4
-4
vue.config.js
vue.config.js
+2
-6
No files found.
src/views/dashboard/components/type1.vue
View file @
97087310
...
@@ -136,14 +136,14 @@
...
@@ -136,14 +136,14 @@
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
</el-col>
</el-col>
</el-row>
</el-row>
<
!--
<
el-row
class=
"text"
:gutter=
"24"
>
<el-row
class=
"text"
:gutter=
"24"
>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<div
class=
"item_name"
>
天馈线
</div>
<div
class=
"item_name"
>
天馈线
</div>
</el-col>
</el-col>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<div
class=
"item_data"
>
{{
form
.
type6
}}
根
</div>
<div
class=
"item_data"
>
{{
form
.
type6
}}
根
</div>
</el-col>
</el-col>
</el-row>
-->
</el-row>
</div>
</div>
</el-card>
</el-card>
</el-col>
</el-col>
...
...
src/views/dashboard/components/type2.vue
View file @
97087310
...
@@ -33,14 +33,14 @@
...
@@ -33,14 +33,14 @@
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
</el-col>
</el-col>
</el-row>
</el-row>
<
!--
<
el-row
class=
"text"
:gutter=
"24"
>
<el-row
class=
"text"
:gutter=
"24"
>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<div
class=
"item_name"
>
天馈线
</div>
<div
class=
"item_name"
>
天馈线
</div>
</el-col>
</el-col>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<div
class=
"item_data"
>
{{
form
.
type6
}}
根
</div>
<div
class=
"item_data"
>
{{
form
.
type6
}}
根
</div>
</el-col>
</el-col>
</el-row>
-->
</el-row>
</div>
</div>
</el-card>
</el-card>
</el-col>
</el-col>
...
...
src/views/dashboard/components/type3.vue
View file @
97087310
...
@@ -25,14 +25,14 @@
...
@@ -25,14 +25,14 @@
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
</el-col>
</el-col>
</el-row>
</el-row>
<
!--
<
el-row
class=
"text"
:gutter=
"24"
>
<el-row
class=
"text"
:gutter=
"24"
>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<div
class=
"item_name"
>
天馈线
</div>
<div
class=
"item_name"
>
天馈线
</div>
</el-col>
</el-col>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<div
class=
"item_data"
>
{{
form
.
count
.
LEAKY
}}
根
</div>
<div
class=
"item_data"
>
{{
form
.
count
.
LEAKY
}}
根
</div>
</el-col>
</el-col>
</el-row>
-->
</el-row>
</div>
</div>
</el-card>
</el-card>
</el-col>
</el-col>
...
...
src/views/dashboard/components/type4.vue
View file @
97087310
...
@@ -19,14 +19,14 @@
...
@@ -19,14 +19,14 @@
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
<div
class=
"item_data"
>
{{
form
.
type5
}}
根
</div>
</el-col>
</el-col>
</el-row>
</el-row>
<
!--
<
el-row
class=
"text"
:gutter=
"24"
>
<el-row
class=
"text"
:gutter=
"24"
>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<div
class=
"item_name"
>
天馈线
</div>
<div
class=
"item_name"
>
天馈线
</div>
</el-col>
</el-col>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<div
class=
"item_data"
>
{{
form
.
controlLimit
[
0
].
sum
}}
根
</div>
<div
class=
"item_data"
>
{{
form
.
controlLimit
[
0
].
sum
}}
根
</div>
</el-col>
</el-col>
</el-row>
-->
</el-row>
</div>
</div>
</el-card>
</el-card>
</el-col>
</el-col>
...
...
src/views/dashboard/components/type5.vue
View file @
97087310
...
@@ -170,14 +170,14 @@
...
@@ -170,14 +170,14 @@
<div
class=
"item_data"
>
{{ form.baseInfo.sendPower }}dB/m
</div>
<div
class=
"item_data"
>
{{ form.baseInfo.sendPower }}dB/m
</div>
</el-col>
</el-col>
</el-row>
</el-row>
<
!-- <
el-row class="text" :gutter="24">
<el-row
class=
"text"
:gutter=
"24"
>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<div
class=
"item_name"
>
漏缆接头数量
</div>
<div
class=
"item_name"
>
漏缆接头数量
</div>
</el-col>
</el-col>
<el-col
:span=
"colspan"
>
<el-col
:span=
"colspan"
>
<div
class=
"item_data"
>
{{ form.baseInfo.kmSign }}
</div>
<div
class=
"item_data"
>
{{ form.baseInfo.kmSign }}
</div>
</el-col>
</el-col>
</el-row>
-->
</el-row>
<el-row
class=
"text"
:gutter=
"24"
>
<el-row
class=
"text"
:gutter=
"24"
>
<el-col
:span=
"10"
>
<el-col
:span=
"10"
>
<div
class=
"item_name"
>
跳线长度
</div>
<div
class=
"item_name"
>
跳线长度
</div>
...
...
src/views/setting/add/comp/autoAdd.vue
View file @
97087310
This diff is collapsed.
Click to expand it.
src/views/setting/add/comp/leakyCable.vue
View file @
97087310
...
@@ -123,6 +123,20 @@
...
@@ -123,6 +123,20 @@
placeholder=
"请输入天馈线长度"
placeholder=
"请输入天馈线长度"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"方向"
prop=
"direction"
>
<el-select
v-model=
"leakyCableForm.direction"
placeholder=
"菜单状态"
clearable
>
<el-option
v-for=
"dict in dict.type.direction"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
</el-form>
</el-form>
<div
class=
"btn"
v-if=
"isEdit == 1"
>
<div
class=
"btn"
v-if=
"isEdit == 1"
>
<el-button
type=
"primary"
@
click=
"cancel"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"cancel"
>
取 消
</el-button>
...
@@ -156,6 +170,7 @@ export default {
...
@@ -156,6 +170,7 @@ export default {
default
:
()
=>
{},
default
:
()
=>
{},
},
},
},
},
dicts
:
[
"direction"
],
watch
:
{
watch
:
{
curInfo
:
{
curInfo
:
{
immediate
:
true
,
immediate
:
true
,
...
@@ -222,6 +237,13 @@ export default {
...
@@ -222,6 +237,13 @@ export default {
trigger
:
"blur"
,
trigger
:
"blur"
,
},
},
],
],
direction
:
[
{
required
:
true
,
message
:
"请输入方向"
,
trigger
:
"blur"
,
},
],
},
},
};
};
},
},
...
@@ -309,6 +331,7 @@ function formInit(data = {}) {
...
@@ -309,6 +331,7 @@ function formInit(data = {}) {
parentId
:
0
,
parentId
:
0
,
reductRatio
:
0
,
reductRatio
:
0
,
sendPower
:
0
,
sendPower
:
0
,
direction
:
''
,
...
data
,
...
data
,
};
};
}
}
...
...
src/views/setting/add/comp/line.vue
View file @
97087310
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"天馈线编号:"
prop=
"feederCode"
>
<el-form-item
label=
"天馈线编号:"
prop=
"feederCode"
>
<el-input
<el-input
v-model=
"leakyCableForm.feederCode"
v-model=
"leakyCableForm.feederCode"
...
@@ -117,6 +118,20 @@
...
@@ -117,6 +118,20 @@
placeholder=
"请输入插入器长度"
placeholder=
"请输入插入器长度"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"方向"
prop=
"direction"
>
<el-select
v-model=
"leakyCableForm.direction"
placeholder=
"菜单状态"
clearable
>
<el-option
v-for=
"dict in dict.type.direction"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
</el-form>
</el-form>
<div
class=
"btn"
v-if=
"isEdit == 1"
>
<div
class=
"btn"
v-if=
"isEdit == 1"
>
<el-button
type=
"primary"
@
click=
"cancel"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"cancel"
>
取 消
</el-button>
...
@@ -135,7 +150,7 @@ import {
...
@@ -135,7 +150,7 @@ import {
selectForFsu
,
selectForFsu
,
selectForEquip
,
selectForEquip
,
railWaylist
,
railWaylist
,
updateFeederConf
updateFeederConf
,
}
from
"../../api"
;
}
from
"../../api"
;
import
{
successAlert
,
warningAlert
}
from
"@/utils/alert"
;
import
{
successAlert
,
warningAlert
}
from
"@/utils/alert"
;
...
@@ -143,20 +158,21 @@ export default {
...
@@ -143,20 +158,21 @@ export default {
props
:
{
props
:
{
isEdit
:
{
isEdit
:
{
type
:
Number
,
type
:
Number
,
default
:
0
default
:
0
,
},
},
curInfo
:
{
curInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{
},
}
}
,
},
},
dicts
:
[
"direction"
],
watch
:
{
watch
:
{
curInfo
:
{
curInfo
:
{
immediate
:
true
,
immediate
:
true
,
handler
(
newV
)
{
handler
(
newV
)
{
this
.
leakyCableForm
=
formInit
(
newV
);
this
.
leakyCableForm
=
formInit
(
newV
);
}
}
,
}
}
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -192,6 +208,9 @@ export default {
...
@@ -192,6 +208,9 @@ export default {
feederDescribe
:
[
feederDescribe
:
[
{
required
:
true
,
message
:
"请输入天馈线描述"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
"请输入天馈线描述"
,
trigger
:
"blur"
},
],
],
feederLossMeters
:
[
{
required
:
true
,
message
:
"请输入天馈线百米损耗"
,
trigger
:
"blur"
},
],
feederModel
:
[
feederModel
:
[
{
{
required
:
true
,
required
:
true
,
...
@@ -213,6 +232,13 @@ export default {
...
@@ -213,6 +232,13 @@ export default {
trigger
:
"blur"
,
trigger
:
"blur"
,
},
},
],
],
direction
:
[
{
required
:
true
,
message
:
"请输入方向"
,
trigger
:
"blur"
,
},
],
},
},
};
};
},
},
...
@@ -223,18 +249,18 @@ export default {
...
@@ -223,18 +249,18 @@ export default {
// 编辑的确认
// 编辑的确认
confirm
()
{
confirm
()
{
let
params
=
{
let
params
=
{
...
this
.
leakyCableForm
...
this
.
leakyCableForm
,
}
}
;
delete
params
.
creationTime
delete
params
.
creationTime
;
updateFeederConf
(
params
).
then
(
res
=>
{
updateFeederConf
(
params
).
then
(
(
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
'保存成功!'
);
this
.
$message
.
success
(
"保存成功!"
);
}
}
this
.
cancel
(
true
);
this
.
cancel
(
true
);
})
})
;
},
},
cancel
(
refersh
)
{
cancel
(
refersh
)
{
this
.
$emit
(
'update'
,
refersh
);
this
.
$emit
(
"update"
,
refersh
);
this
.
reset
();
this
.
reset
();
},
},
changerailWay
()
{
changerailWay
()
{
...
@@ -261,12 +287,12 @@ export default {
...
@@ -261,12 +287,12 @@ export default {
antennaFeederSave
(
this
.
leakyCableForm
).
then
((
res
)
=>
{
antennaFeederSave
(
this
.
leakyCableForm
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
successAlert
(
"添加成功"
);
successAlert
(
"添加成功"
);
this
.
leakyCableForm
=
formInit
();
}
else
{
}
else
{
warningAlert
(
"添加失败"
);
warningAlert
(
"添加失败"
);
}
}
});
});
}
}
this
.
leakyCableForm
=
formInit
();
});
});
},
},
getAllWay
()
{
getAllWay
()
{
...
@@ -297,6 +323,7 @@ function formInit(data = {}) {
...
@@ -297,6 +323,7 @@ function formInit(data = {}) {
parentId
:
0
,
parentId
:
0
,
reductRatio
:
0
,
reductRatio
:
0
,
sendPower
:
0
,
sendPower
:
0
,
direction
:
""
,
...
data
,
...
data
,
};
};
}
}
...
...
src/views/setting/add/index.vue
View file @
97087310
...
@@ -32,12 +32,12 @@
...
@@ -32,12 +32,12 @@
<leakyCable
/>
<leakyCable
/>
</div>
</div>
</el-tab-pane>
</el-tab-pane>
<
!--
<
el-tab-pane
label=
"天馈线"
name=
"5"
>
<el-tab-pane
label=
"天馈线"
name=
"5"
>
<div
v-if=
"activeName === '5'"
class=
"content"
>
<div
v-if=
"activeName === '5'"
class=
"content"
>
<div
class=
"content-title"
>
添加天馈线
</div>
<div
class=
"content-title"
>
添加天馈线
</div>
<antennaFeeder
/>
<antennaFeeder
/>
</div>
</div>
</el-tab-pane>
-->
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
</div>
</div>
...
...
src/views/setting/statistics/comp/lineTable.vue
View file @
97087310
...
@@ -164,9 +164,6 @@
...
@@ -164,9 +164,6 @@
>
>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"toEdit(row)"
<el-link
type=
"primary"
:underline=
"false"
@
click=
"toEdit(row)"
>
编辑
</el-link
>
编辑
</el-link
>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"handleSetting(row)"
>
参数设置
</el-link
>
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
src/views/setting/statistics/comp/monitorTable.vue
View file @
97087310
...
@@ -132,12 +132,7 @@
...
@@ -132,12 +132,7 @@
<el-table-column
prop=
"railWayName"
label=
"所在铁路线"
align=
"center"
/>
<el-table-column
prop=
"railWayName"
label=
"所在铁路线"
align=
"center"
/>
<el-table-column
prop=
"siteName"
label=
"所在站点"
align=
"center"
/>
<el-table-column
prop=
"siteName"
label=
"所在站点"
align=
"center"
/>
<el-table-column
prop=
"fsuName"
label=
"所在FSU"
align=
"center"
/>
<el-table-column
prop=
"fsuName"
label=
"所在FSU"
align=
"center"
/>
<el-table-column
<el-table-column
prop=
"action"
label=
"操作"
align=
"center"
width=
"300px"
>
prop=
"action"
label=
"操作"
align=
"center"
width=
"300px"
>
<template
slot-scope=
"
{ row }">
<template
slot-scope=
"
{ row }">
<el-link
type=
"primary"
:underline=
"false"
@
click=
"handleView(row)"
<el-link
type=
"primary"
:underline=
"false"
@
click=
"handleView(row)"
>
查看
</el-link
>
查看
</el-link
...
@@ -145,7 +140,10 @@
...
@@ -145,7 +140,10 @@
<el-link
type=
"primary"
:underline=
"false"
@
click=
"toEdit(row)"
<el-link
type=
"primary"
:underline=
"false"
@
click=
"toEdit(row)"
>
编辑
</el-link
>
编辑
</el-link
>
>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"handleGoParameter(row)"
<el-link
type=
"primary"
:underline=
"false"
@
click=
"handleGoParameter(row)"
>
设备数据
</el-link
>
设备数据
</el-link
>
>
<el-link
type=
"primary"
:underline=
"false"
@
click=
"handleSetting(row)"
<el-link
type=
"primary"
:underline=
"false"
@
click=
"handleSetting(row)"
...
@@ -247,7 +245,7 @@ export default {
...
@@ -247,7 +245,7 @@ export default {
this
.
getAllWay
();
this
.
getAllWay
();
},
},
methods
:
{
methods
:
{
handleGoParameter
(
row
){
handleGoParameter
(
row
)
{
console
.
log
(
row
);
console
.
log
(
row
);
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
"/setting/parameter"
,
path
:
"/setting/parameter"
,
...
@@ -271,6 +269,8 @@ export default {
...
@@ -271,6 +269,8 @@ export default {
async
handleSelectParam
(
row
)
{
async
handleSelectParam
(
row
)
{
let
res
=
await
selectParam
({
equipId
:
row
.
id
});
let
res
=
await
selectParam
({
equipId
:
row
.
id
});
this
.
paramsJson
=
JSON
.
parse
(
res
.
paramsJson
);
this
.
paramsJson
=
JSON
.
parse
(
res
.
paramsJson
);
console
.
log
(
"--------paramsJson------------"
);
console
.
log
(
this
.
paramsJson
);
},
},
async
handleSetting
(
row
)
{
async
handleSetting
(
row
)
{
this
.
rowData
=
row
;
this
.
rowData
=
row
;
...
...
src/views/setting/statistics/index.vue
View file @
97087310
...
@@ -65,10 +65,10 @@ export default {
...
@@ -65,10 +65,10 @@ export default {
label
:
"漏缆"
,
label
:
"漏缆"
,
key
:
"4"
,
key
:
"4"
,
},
},
//
{
{
//
label: "天馈线",
label
:
"天馈线"
,
//
key: "5",
key
:
"5"
,
//
}
}
],
],
tableData2
:
[],
tableData2
:
[],
tableData
:
[],
tableData
:
[],
...
...
vue.config.js
View file @
97087310
...
@@ -9,15 +9,12 @@ function resolve(dir) {
...
@@ -9,15 +9,12 @@ function resolve(dir) {
const
name
=
defaultSettings
.
title
||
'漏缆故障定位监测系统'
// page title
const
name
=
defaultSettings
.
title
||
'漏缆故障定位监测系统'
// page title
const
port
=
process
.
env
.
port
||
process
.
env
.
npm_config_port
||
8890
// dev port
const
port
=
process
.
env
.
port
||
process
.
env
.
npm_config_port
||
8890
// dev port
// const href = 'http://101.126.159.207'
// const href = 'http://101.126.159.207'
// const href = 'http://127.0.0.1'
const
href
=
'http://127.0.0.1'
const
href
=
'http://192.168.0.113'
// const href = 'http://192.168.0.113'
const
rewriteDefaultConfig
=
{
const
rewriteDefaultConfig
=
{
changeOrigin
:
true
,
changeOrigin
:
true
,
target
:
href
+
':8886'
,
target
:
href
+
':8886'
,
// target: 'http://192.168.0.121:8886',
// target: 'http://192.168.0.121:8886',
// ws: true,
// ws: true,
headers
:
{
headers
:
{
...
@@ -27,7 +24,6 @@ const rewriteDefaultConfig = {
...
@@ -27,7 +24,6 @@ const rewriteDefaultConfig = {
const
rewriteDeviceConfig
=
{
const
rewriteDeviceConfig
=
{
changeOrigin
:
true
,
changeOrigin
:
true
,
target
:
href
+
':8087'
,
target
:
href
+
':8087'
,
// target: 'http://192.168.0.121:8087',
// target: 'http://192.168.0.121:8087',
// ws: true,
// ws: true,
headers
:
{
headers
:
{
...
...
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