Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
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
fulixin
dsk-operate-sys-cscec
Commits
3ff5b65c
Commit
3ff5b65c
authored
Dec 18, 2023
by
danfuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
09dffec8
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
227 additions
and
153 deletions
+227
-153
monitoring.js
dsk-operate-ui/src/api/monitoring/monitoring.js
+8
-0
EnterpriseMonitoring.vue
dsk-operate-ui/src/views/monitoring/EnterpriseMonitoring.vue
+90
-78
MonitorSettings.vue
dsk-operate-ui/src/views/monitoring/MonitorSettings.vue
+81
-53
MonitoringDynamics.vue
dsk-operate-ui/src/views/monitoring/MonitoringDynamics.vue
+8
-1
MonitoringReport.vue
dsk-operate-ui/src/views/monitoring/MonitoringReport.vue
+4
-4
index.vue
dsk-operate-ui/src/views/system/supplierBad/index.vue
+35
-16
vue.config.js
dsk-operate-ui/vue.config.js
+1
-1
No files found.
dsk-operate-ui/src/api/monitoring/monitoring.js
View file @
3ff5b65c
...
...
@@ -42,6 +42,14 @@ export function companyAdd(data) {
data
:
data
})
}
// 获取监控推荐企业
export
function
queryMonitorCompany
(
data
)
{
return
request
({
url
:
'/monitor/system/queryMonitorCompany'
,
method
:
'post'
,
data
:
data
})
}
// 取消监控企业
export
function
companyCancel
(
data
)
{
return
request
({
...
...
dsk-operate-ui/src/views/monitoring/EnterpriseMonitoring.vue
View file @
3ff5b65c
...
...
@@ -75,7 +75,7 @@
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定取消
</el-button>
</div>
</el-dialog>
<el-dialog
:visible
.
sync=
"qyVisible"
custom-class=
'dialog-claim'
title=
"添加监控企业"
width=
"480px"
>
<el-dialog
:visible
.
sync=
"qyVisible"
custom-class=
'dialog-claim
dialogAdd
'
title=
"添加监控企业"
width=
"480px"
>
<div
class=
"add-content"
>
<div
class=
"enterprise"
>
<div
class=
"label"
>
企业名称
</div>
...
...
@@ -83,31 +83,24 @@
<el-button
slot=
"append"
@
click=
"handleKeyword()"
>
搜索
</el-button>
</el-input>
</div>
<div
class=
"companyList"
v-if=
"dataList.length > 0"
>
<div
class=
"companyList"
>
<div
class=
"list"
>
<div
class=
"item"
v-for=
"item in dataList"
>
<div
class=
"item-left"
>
<img
v-if=
"item.logoUrl"
:src=
"item.logoUrl"
:alt=
"item.
n
ame.replace(/<font color='#FF204E'>/g,'').replace(/<\/font>/g,'')"
/>
<img
v-else
src=
"@/assets/images/enterprise.png"
:alt=
"item.
n
ame.replace(/<font color='#FF204E'>/g,'').replace(/<\/font>/g,'')"
/>
<img
v-if=
"item.logoUrl"
:src=
"item.logoUrl"
:alt=
"item.
companyN
ame.replace(/<font color='#FF204E'>/g,'').replace(/<\/font>/g,'')"
/>
<img
v-else
src=
"@/assets/images/enterprise.png"
:alt=
"item.
companyN
ame.replace(/<font color='#FF204E'>/g,'').replace(/<\/font>/g,'')"
/>
</div>
<div
class=
"item-right"
>
<p
class=
"right-title"
v-html=
"item.
n
ame"
></p>
<p
class=
"right-title"
v-html=
"item.
companyN
ame"
></p>
<p
class=
"right-tips"
>
推荐监控
</p>
</div>
<el-checkbox
@
change=
"changeCheckbox(item)"
></el-checkbox>
</div>
</div>
<p
class=
"tips"
>
前往企业查询寻找企业线索
<i
class=
"el-icon-arrow-right"
></i></p>
<div
class=
"btn"
>
<div>
<el-button
@
click=
"qyVisible===false"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleAdd"
>
确定
</el-button>
</div>
</div>
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button>
取消
</el-button>
<el-button
@
click=
"qyVisible=false"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleAdd"
>
确定
</el-button>
</div>
</el-dialog>
...
...
@@ -141,7 +134,7 @@
</template>
<
script
>
import
{
companyPage
,
companyList
,
companyAdd
,
companyCancel
}
from
'@/api/monitoring/monitoring'
import
{
companyPage
,
companyList
,
companyAdd
,
companyCancel
,
queryMonitorCompany
}
from
'@/api/monitoring/monitoring'
import
{
getToken
}
from
'@/utils/auth'
export
default
{
name
:
'EnterpriseMonitoring'
,
...
...
@@ -150,6 +143,10 @@
radio
:
null
,
date
:[],
radioList
:[
{
type
:
null
,
label
:
'全部'
},
{
type
:
1
,
label
:
'今天'
...
...
@@ -210,17 +207,7 @@
})
},
handleKeyword
(){
let
data
=
{
keyword
:
this
.
companyName
,
page
:{
"page"
:
1
,
"limit"
:
50
,
}
}
companyList
(
data
).
then
(
res
=>
{
console
.
log
(
res
.
data
.
list
)
this
.
dataList
=
res
.
data
.
list
})
this
.
addEnterprise
()
},
changeCheckbox
(
item
){
console
.
log
(
item
)
...
...
@@ -239,6 +226,7 @@
this
.
$modal
.
success
(
"新增成功"
);
this
.
querySubmit
()
})
},
radioBtn
(
val
){
let
endTime
=
new
Date
()
...
...
@@ -272,6 +260,9 @@
this
.
date
=
[]
break
;
default
:
this
.
queryParams
.
condition
.
beginTime
=
''
this
.
queryParams
.
condition
.
endTime
=
''
this
.
querySubmit
()
break
;
}
},
...
...
@@ -304,6 +295,16 @@
},
addEnterprise
(){
this
.
qyVisible
=
true
;
let
data
=
{
pageNum
:
1
,
pageSize
:
10
}
if
(
this
.
companyName
){
data
.
companyName
=
this
.
companyName
;
}
queryMonitorCompany
(
data
).
then
(
res
=>
{
this
.
dataList
=
res
.
rows
;
})
},
handleBatch
(){
this
.
pldrVisible
=
true
;
...
...
@@ -430,6 +431,68 @@
}
}
}
::v-deep
.dialogAdd
{
.el-dialog__body
{
padding
:
24px
0
!
important
;
.companyList
{
width
:
100%
;
margin-top
:
5px
;
background
:
#FFFFFF
;
.list
{
max-height
:
280px
;
overflow
:
auto
;
border-top
:
1px
solid
#EEEEEE
;
}
.item
{
display
:
flex
;
padding
:
10px
16px
6px
16px
;
position
:
relative
;
border-bottom
:
1px
solid
#EEEEEE
;
.item-left
{
margin-right
:
12px
;
img
{
width
:
40px
;
height
:
40px
;
}
}
.item-right
{
width
:
360px
;
margin-right
:
10px
;
p
{
margin
:
0
;
padding
:
0
;
}
.right-title
{
font-size
:
14px
;
color
:
#232323
;
}
.right-tips
{
color
:
rgba
(
35
,
35
,
35
,
0
.4
);
font-size
:
12px
;
}
}
}
.item
:last-child
{
border-bottom
:
0
;
}
.tips
{
border-top
:
1px
solid
#EEEEEE
;
border-bottom
:
1px
solid
#EEEEEE
;
height
:
40px
;
line-height
:
40px
;
color
:
#0081FF
;
font-size
:
12px
;
padding
:
0
0
0
12px
;
margin
:
0
;
}
}
}
.el-dialog__footer
{
border-top
:
1px
solid
#EEEEEE
;
}
}
::v-deep
.dialog-claim
{
margin
:
0
!
important
;
position
:absolute
;
...
...
@@ -472,8 +535,9 @@
}
}
.add-content
{
height
:
2
00px
;
height
:
3
00px
;
.enterprise
{
margin
:
0
20px
10px
;
display
:
-
webkit-box
;
align-items
:
flex-start
;
line-height
:
32px
;
...
...
@@ -495,58 +559,6 @@
color
:
#0081FF
;
}
}
.companyList
{
width
:
372px
;
margin-left
:
68px
;
margin-top
:
5px
;
background
:
#FFFFFF
;
box-shadow
:
0px
4px
8px
2px
rgba
(
0
,
0
,
0
,
0
.04
)
,
0px
2px
6px
0px
rgba
(
0
,
0
,
0
,
0
.06
)
,
0px
0px
4px
0px
rgba
(
0
,
0
,
0
,
0
.08
);
border-radius
:
4px
;
position
:
absolute
;
.list
{
max-height
:
372px
;
overflow
:
auto
;
}
.item
{
display
:
flex
;
margin
:
0
16px
;
padding
:
14px
0
10px
0
;
position
:
relative
;
border-bottom
:
1px
solid
#EEEEEE
;
.item-left
{
margin-right
:
12px
;
img
{
width
:
40px
;
height
:
40px
;
}
}
.item-right
{
width
:
250px
;
p
{
margin
:
0
;
padding
:
0
;
}
}
}
.item
:last-child
{
border-bottom
:
0
;
}
.tips
{
border-top
:
1px
solid
#EEEEEE
;
border-bottom
:
1px
solid
#EEEEEE
;
height
:
40px
;
line-height
:
40px
;
color
:
#0081FF
;
font-size
:
12px
;
padding
:
0
0
0
12px
;
margin
:
0
;
}
.btn
{
padding
:
16px
20px
24px
0
;
display
:
block
;
text-align
:
right
;
}
}
}
}
.dialog-footer
{
...
...
dsk-operate-ui/src/views/monitoring/MonitorSettings.vue
View file @
3ff5b65c
...
...
@@ -9,18 +9,22 @@
<div
class=
"main-right"
>
<div
class=
"select-popper"
>
<span
:class=
"
{ color_text: sffx.length }">司法风险
{{
sffx
.
length
>
0
?
sffx
.
length
:
''
}}
<i
class=
"el-icon-caret-bottom"
></i></span>
<el-select
ref=
"tenderTypeSelect"
v-model=
"sffx"
class=
"select-multiple"
collapse-tags
@
change=
"handleSelect"
multiple
placeholder=
"请选择"
>
<el-select
ref=
"tenderTypeSelect"
v-model=
"sffx"
class=
"select-multiple"
collapse-tags
multiple
@
change=
"handleSelect"
placeholder=
"请选择"
>
<el-checkbox-group
v-model=
"sffx"
>
<el-option
v-for=
"(i,index) in selectList"
:key=
"index"
:label=
"i.dimensionName"
:value=
"i.dimensionName"
>
<el-checkbox
style=
"width: 100%;"
:label=
"i.dimensionName"
@
change=
"changeSffx(i)"
>
{{
i
.
dimensionName
}}
</el-checkbox>
</el-option>
</el-checkbox-group>
</el-select>
</div>
<div
class=
"select-popper"
>
<span
:class=
"
{ color_text: gsfx.length }">工商风险
{{
gsfx
.
length
>
0
?
gsfx
.
length
:
''
}}
<i
class=
"el-icon-caret-bottom"
></i></span>
<el-select
ref=
"tenderTypeSelect"
v-model=
"gsfx"
class=
"select-multiple"
collapse-tags
@
change=
"handleSelect"
multiple
placeholder=
"请选择"
>
<el-option
v-for=
"(i,index) in selectList1"
:key=
"index"
:label=
"i.dimensionName"
:value=
"i.dimensionName"
>
<el-select
ref=
"tenderTypeSelect"
v-model=
"gsfx"
class=
"select-multiple"
collapse-tags
multiple
placeholder=
"请选择"
>
<el-checkbox-group
v-model=
"gsfx"
>
<el-option
v-for=
"(i,index) in selectList1"
:key=
"index"
:label=
"i.dimensionName"
@
change=
"handleSelect1"
:value=
"i.dimensionName"
>
<el-checkbox
style=
"width: 100%;"
:label=
"i.dimensionName"
@
change=
"changeGsfx(i)"
>
{{
i
.
dimensionName
}}
</el-checkbox>
</el-option>
</el-checkbox-group>
</el-select>
</div>
</div>
...
...
@@ -36,17 +40,29 @@
</div>
<div
class=
"main-item"
style=
"line-height: 32px;"
>
<div
class=
"label"
>
推送时段
</div>
<el-time-picker
is-range
class=
"timePicker"
v-model=
"time"
:picker-options=
"
{ step: '01:00' }"
@change="changeTime"
range-separator="至"
start-placeholder="开始时间"
end-placeholder="结束时间"
placeholder="选择时间范围">
</el-time-picker>
<el-time-select
placeholder=
"起始时间"
v-model=
"startTime"
@
change=
"startChangeTime"
:clearable=
"false"
:picker-options=
"
{
start: '00:00',
step: '01:00',
end: '22:00'
}">
</el-time-select>
<span
style=
"margin:0 8px;"
>
至
</span>
<el-time-select
placeholder=
"结束时间"
v-model=
"endTime"
:clearable=
"false"
:picker-options=
"
{
start: '00:00',
step: '01:00',
end: '23:00',
minTime: startTime
}">
</el-time-select>
</div>
</div>
<div
class=
"m-title"
>
监控接收方式
</div>
...
...
@@ -79,18 +95,19 @@
return
{
selectList
:[],
selectList1
:[],
arr
:[],
sffx
:[],
gsfx
:[],
checkFx
:
true
,
checkJkwd
:
true
,
queryParams
:{
fxType
:[],
jkwdType
:[],
pushFrequency
:
'0'
,
receiveMode
:
'0'
,
phones
:
''
},
time
:
''
startTime
:
''
,
endTime
:
''
,
detail
:{}
}
},
created
()
{
...
...
@@ -98,16 +115,35 @@
this
.
selectList
=
res
.
data
;
for
(
let
i
in
res
.
data
){
if
(
res
.
data
[
i
].
dimensionName
===
'司法风险'
){
this
.
selectList
=
res
.
data
[
i
].
children
this
.
selectList
=
res
.
data
[
i
].
children
;
for
(
let
i
=
0
;
i
<
this
.
selectList
.
length
;
i
++
){
this
.
arr
.
push
(
this
.
selectList
[
i
].
dimensionName
)
}
}
if
(
res
.
data
[
i
].
dimensionName
===
'工商风险'
){
this
.
selectList1
=
res
.
data
[
i
].
children
}
}
})
rulesDetail
({}).
then
(
res
=>
{
console
.
log
(
res
)
let
dimension
=
res
.
data
.
dimension
.
split
(
','
);
this
.
queryParams
=
{
pushFrequency
:
res
.
data
.
pushFrequency
.
toString
(),
receiveMode
:
res
.
data
.
receiveMode
.
toString
(),
phones
:
res
.
data
.
phones
}
this
.
startTime
=
res
.
data
.
timePeriodStart
this
.
endTime
=
res
.
data
.
timePeriodEnd
for
(
let
item
in
dimension
){
if
(
this
.
arr
.
indexOf
(
dimension
[
item
])
==
-
1
)
{
this
.
gsfx
.
push
(
dimension
[
item
])
}
else
{
this
.
sffx
.
push
(
dimension
[
item
])
}
}
})
})
},
methods
:
{
changeSffx
(
val
)
{
...
...
@@ -125,7 +161,14 @@
}
},
handleSelect
(
val
)
{
// console.log(val)
},
handleSelect1
(
val
)
{
},
// 开始时间改变
startChangeTime
(
value
){
this
.
endTime
=
""
},
handleAdd
(){
let
params
=
{
...
...
@@ -147,38 +190,20 @@
params
.
riskType
=
'工商风险'
params
.
dimension
=
this
.
gsfx
.
join
()
}
if
(
this
.
time
.
length
>
0
){
params
.
timePeriodStart
=
this
.
time
[
0
]
params
.
timePeriodEnd
=
this
.
time
[
1
]
if
(
this
.
startTime
){
params
.
timePeriodStart
=
this
.
startTime
}
if
(
this
.
endTime
){
params
.
timePeriodEnd
=
this
.
endTime
}
console
.
log
(
params
)
insertOrUpdate
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
$modal
.
success
(
res
.
msg
);
})
},
changeTime
(
val
){
console
.
log
(
val
)
},
checkFx1Btn
(
val
){
console
.
log
(
val
)
if
(
val
.
length
>
0
)
{
this
.
checkFx
=
false
;
}
else
if
(
val
.
length
==
0
)
{
this
.
checkFx
=
true
;
}
},
checkJkwdBtn
(
val
)
{
this
.
queryParams
.
jkwdType
=
[];
this
.
checkJkwd
=
true
;
},
checkJkwd1Btn
(
val
){
console
.
log
(
val
)
if
(
val
.
length
>
0
)
{
this
.
checkJkwd
=
false
;
}
else
if
(
val
.
length
==
0
)
{
this
.
checkJkwd
=
true
;
}
},
}
}
</
script
>
...
...
@@ -265,9 +290,12 @@
}
}
}
::v-deep
.
timePicker
{
width
:
228
px
;
::v-deep
.
el-date-editor.el-input
{
width
:
160
px
;
height
:
32px
;
.el-input__inner
{
height
:
32px
;
}
.el-range__icon
{
line-height
:
27px
;
}
...
...
dsk-operate-ui/src/views/monitoring/MonitoringDynamics.vue
View file @
3ff5b65c
...
...
@@ -157,9 +157,13 @@
data
()
{
return
{
changeTime
,
radio
:
1
,
radio
:
null
,
date
:
''
,
radioList
:[
{
type
:
null
,
label
:
'全部'
},
{
type
:
1
,
label
:
'今天'
...
...
@@ -423,6 +427,9 @@
this
.
date
=
[]
break
;
default
:
this
.
queryParams
.
condition
.
beginTime
=
''
this
.
queryParams
.
condition
.
endTime
=
''
this
.
querySubmit
()
break
;
}
},
...
...
dsk-operate-ui/src/views/monitoring/MonitoringReport.vue
View file @
3ff5b65c
...
...
@@ -33,13 +33,13 @@
<span
class=
"right-label"
>
提示:
</span>
<span
class=
"right-color color1"
>
{{
i
.
promptCount
}}
</span>
<span
class=
"right-label"
>
正向:
</span>
<span
class=
"right-color color
1
"
>
{{
i
.
positiveCount
}}
</span>
<span
class=
"right-color color
2
"
>
{{
i
.
positiveCount
}}
</span>
<span
class=
"right-label"
>
低风险:
</span>
<span
class=
"right-color color
1
"
>
{{
i
.
lowRiskCount
}}
</span>
<span
class=
"right-color color
3
"
>
{{
i
.
lowRiskCount
}}
</span>
<span
class=
"right-label"
>
中风险:
</span>
<span
class=
"right-color color
1
"
>
{{
i
.
middleRiskCount
}}
</span>
<span
class=
"right-color color
4
"
>
{{
i
.
middleRiskCount
}}
</span>
<span
class=
"right-label"
>
高风险:
</span>
<span
class=
"right-color color
1
"
>
{{
i
.
highRiskCount
}}
</span>
<span
class=
"right-color color
5
"
>
{{
i
.
highRiskCount
}}
</span>
</p>
<div
class=
"tips"
>
新增
<span
style=
"color:#0081FF;padding: 0 4px;"
>
{{
i
.
dynamicTotal
}}
</span>
条动态信息
</div>
</div>
...
...
dsk-operate-ui/src/views/system/supplierBad/index.vue
View file @
3ff5b65c
...
...
@@ -53,18 +53,31 @@
</div>
<div
class=
"main-item"
style=
"line-height: 32px;"
>
<div
class=
"label"
>
推送时段
</div>
<el-time-picker
is-range
class=
"timePicker"
v-model=
"time"
value-format=
"HH:mm:ss"
@
change=
"changeTime"
range-separator=
"至"
start-placeholder=
"开始时间"
end-placeholder=
"结束时间"
placeholder=
"选择时间范围"
>
</el-time-picker>
<el-time-select
placeholder=
"起始时间"
v-model=
"startTime"
@
change=
"startChangeTime"
:clearable=
"false"
:picker-options=
"{
start: '00:00',
step: '01:00',
end: '22:00'
}"
>
</el-time-select>
<span
style=
"margin:0 8px;"
>
至
</span>
<el-time-select
placeholder=
"结束时间"
v-model=
"endTime"
:clearable=
"false"
:picker-options=
"{
start: '00:00',
step: '01:00',
end: '23:00',
minTime: startTime
}"
>
</el-time-select>
</div>
<el-button
type=
"primary"
@
click=
"handleSave"
>
保存
</el-button>
</div>
</div>
<el-dialog
:visible
.
sync=
"visible"
custom-class=
'dialog-claim'
title=
"新增推送人信息"
width=
"480px"
>
...
...
@@ -127,7 +140,8 @@
tableData
:[],
visible
:
false
,
radioTime
:
'0'
,
time
:[],
startTime
:
''
,
endTime
:
''
,
tableDataTotal
:
0
,
pageSize
:
10
,
pageNum
:
1
,
...
...
@@ -145,7 +159,9 @@
this
.
radioTime
=
response
.
data
.
configValue
});
configKey
(
"customer-badness-time-frame"
).
then
(
response
=>
{
this
.
time
=
[
this
.
converTime
(
response
.
data
.
configValue
.
split
(
'-'
)[
0
]),
this
.
converTime
(
response
.
data
.
configValue
.
split
(
'-'
)[
1
])]
let
times
=
response
.
data
.
configValue
.
split
(
"-"
);
this
.
startTime
=
times
[
0
].
length
<
2
?
'0'
+
times
[
0
]
+
':00'
:
times
[
0
]
this
.
endTime
=
times
[
1
].
length
<
2
?
'0'
+
times
[
1
]
+
':00'
:
times
[
1
]
});
this
.
getList
()
},
...
...
@@ -178,6 +194,10 @@
}
this
.
id
=
item
.
id
},
// 开始时间改变
startChangeTime
(
value
){
this
.
endTime
=
""
},
handleAdd
(){
let
params
=
{
pushTypeCode
:
'custoemr-badness'
,
...
...
@@ -214,9 +234,8 @@
this
.
getList
()
})
},
changeTime
(
val
){
console
.
log
(
val
)
let
time
=
val
[
0
]
+
'-'
+
val
[
1
]
handleSave
(){
let
time
=
this
.
startTime
.
substring
(
0
,
2
)
+
'-'
+
this
.
endTime
.
substring
(
0
,
2
)
configUpdate
({
configKey
:
'customer-badness-time-frame'
,
configValue
:
time
}).
then
(
res
=>
{
this
.
$modal
.
success
(
res
.
msg
);
});
...
...
dsk-operate-ui/vue.config.js
View file @
3ff5b65c
...
...
@@ -38,7 +38,7 @@ module.exports = {
// target: `http://47.104.91.229:9099/prod-api`,//测试-旧
target
:
`http://111.204.34.146:9099/prod-api`
,
//测试
// target: `http://192.168.60.5:9098`,//陈跃方
// target: `http://192.168.60.27:9098`,//邓
// target: `http://122.9.160.122:9011`, //线上
// target: `http://192.168.0.165:9098`,//施-无线
// target: `http://192.168.60.46:9098`,//施-有线
...
...
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