Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
101c4c96
authored
2023-01-30 14:54:22 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:work
1 parent
0ae1f4cc
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
65 deletions
src/api/worktable.js → src/api/work.js
src/components/echart/Rose/index.vue
src/components/echart/columnar/index.vue
src/components/echart/columnarsmat/index.vue
src/components/echart/map/index.vue
src/views/dataView/leftcard.vue
src/api/work
table
.js
→
src/api/work.js
View file @
101c4c9
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
class
work
table
{
class
work
{
// 登记类型总量
async
getDjlxtotal
(
data
)
{
async
getDjlxtotal
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/work/getDjlxtotal'
,
method
:
'post'
,
...
...
@@ -11,7 +11,7 @@ class worktable {
})
}
// 登记业务量
async
getdjywltotal
(
data
)
{
async
getdjywltotal
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/work/getdjywltotal'
,
method
:
'post'
,
...
...
@@ -19,7 +19,7 @@ class worktable {
})
}
// 省厅汇交-区县接入
async
getsthjqxjrtotal
(
data
)
{
async
getsthjqxjrtotal
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/work/getsthjqxjrtotal'
,
method
:
'post'
,
...
...
@@ -27,7 +27,7 @@ class worktable {
})
}
// 地图区县总量统计,code区县编码,汉中为:A20
async
mapViews
(
code
)
{
async
mapViews
(
code
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/work/mapViews'
,
method
:
'get'
,
...
...
@@ -37,7 +37,7 @@ class worktable {
})
}
// 地图区县成功失败统计,code区县编码,汉中为:A20
async
submitViews
(
code
)
{
async
submitViews
(
code
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/work/submitViews'
,
method
:
'get'
,
...
...
@@ -49,4 +49,4 @@ class worktable {
}
export
default
new
work
table
()
export
default
new
work
()
...
...
src/components/echart/Rose/index.vue
View file @
101c4c9
...
...
@@ -11,9 +11,9 @@
<
script
>
import
Chart
from
"./chart.vue"
;
import
work
table
from
"@/api/worktable
"
;
import
work
from
"@/api/work
"
;
export
default
{
data
()
{
data
()
{
return
{
cdata
:
{
seriesData
:
[
...
...
@@ -39,11 +39,11 @@ export default {
components
:
{
Chart
,
},
mounted
()
{
mounted
()
{
this
.
getdjywltotal
();
},
methods
:
{
getdjywltotal
()
{
getdjywltotal
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
p
=
{
...
...
@@ -51,7 +51,7 @@ export default {
QLLX
:
"A8"
,
XZQDM
:
"A20"
,
};
let
res
=
await
work
table
.
getdjywltotal
(
p
);
let
res
=
await
work
.
getdjywltotal
(
p
);
}
catch
(
error
)
{
this
.
$refs
.
msg
.
messageShow
();
...
...
src/components/echart/columnar/index.vue
View file @
101c4c9
...
...
@@ -4,9 +4,9 @@
<
script
>
import
Chart
from
"./chart.vue"
;
import
work
table
from
"@/api/worktable
"
;
import
work
from
"@/api/work
"
;
export
default
{
data
()
{
data
()
{
return
{
cdata
:
{
category
:
[],
...
...
@@ -18,13 +18,13 @@ export default {
components
:
{
Chart
,
},
mounted
()
{
mounted
()
{
this
.
submitViews
();
},
methods
:
{
async
submitViews
()
{
async
submitViews
()
{
try
{
let
{
result
:
res
}
=
await
work
table
.
submitViews
(
"A20"
);
let
{
result
:
res
}
=
await
work
.
submitViews
(
"A20"
);
res
.
filter
((
item
)
=>
{
return
(
this
.
cdata
.
category
.
push
(
item
.
areaName
),
...
...
@@ -40,4 +40,6 @@ export default {
};
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
</
style
>
...
...
src/components/echart/columnarsmat/index.vue
View file @
101c4c9
...
...
@@ -4,9 +4,9 @@
<
script
>
import
Chart
from
"./chart.vue"
;
import
work
table
from
"@/api/worktable
"
;
import
work
from
"@/api/work
"
;
export
default
{
data
()
{
data
()
{
return
{
cdata
:
{
category
:
[],
...
...
@@ -17,14 +17,14 @@ export default {
components
:
{
Chart
,
},
created
()
{
created
()
{
},
mounted
()
{
mounted
()
{
this
.
getDjlxtotal
();
},
methods
:
{
getDjlxtotal
()
{
getDjlxtotal
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
p
=
{
...
...
@@ -32,20 +32,20 @@ export default {
QLLX
:
"A8"
,
XZQDM
:
"A20"
,
};
let
res
=
await
work
table
.
getDjlxtotal
(
p
);
res
.
result
.
filter
((
item
)
=>
{
return
(
this
.
cdata
.
category
.
push
(
item
.
AREACODE
),
this
.
cdata
.
lineData
.
push
(
item
.
ywtotal
)
);
});
let
res
=
await
work
.
getDjlxtotal
(
p
);
res
.
result
.
filter
((
item
)
=>
{
return
(
this
.
cdata
.
category
.
push
(
item
.
AREACODE
),
this
.
cdata
.
lineData
.
push
(
item
.
ywtotal
)
);
});
}
catch
(
error
)
{
this
.
$refs
.
msg
.
messageShow
();
}
});
}
}
,
}
};
</
script
>
<
style
lang=
"scss"
scoped
><
/
style
>
<
style
lang=
"scss"
scoped
>
</
style
>
...
...
src/components/echart/map/index.vue
View file @
101c4c9
...
...
@@ -4,7 +4,7 @@
<
script
>
import
Chart
from
'./chart.vue'
;
import
work
table
from
"@/api/worktable
"
;
import
work
from
"@/api/work
"
;
export
default
{
data
()
{
return
{
...
...
@@ -14,17 +14,17 @@ export default {
components
:
{
Chart
},
mounted
()
{
mounted
()
{
this
.
mapViews
();
},
methods
:
{
async
mapViews
()
{
methods
:
{
async
mapViews
()
{
try
{
let
{
result
:
res
}
=
await
work
table
.
mapViews
(
"A20"
);
res
.
filter
((
item
)
=>
{
let
{
result
:
res
}
=
await
work
.
mapViews
(
"A20"
);
res
.
filter
((
item
)
=>
{
return
(
this
.
cdata
.
push
({
"name"
:
item
.
areaName
,
"value"
:
item
.
areaCode
})
this
.
cdata
.
push
({
"name"
:
item
.
areaName
,
"value"
:
item
.
areaCode
})
)
});
...
...
@@ -32,6 +32,6 @@ export default {
this
.
$refs
.
msg
.
messageShow
();
}
}
}
}
}
</
script
>
...
...
src/views/dataView/leftcard.vue
View file @
101c4c9
...
...
@@ -5,11 +5,7 @@
<div
class=
"cardcontent"
>
<ul
class=
"cardcontent-left d-center"
>
<div
class=
"rjjrlList"
>
<p
v-for=
"(item, index) in qxjrlList"
class=
"d-center qxjr"
:key=
"index"
>
<p
v-for=
"(item, index) in qxjrlList"
class=
"d-center qxjr"
:key=
"index"
>
{{
item
}}
</p>
</div>
...
...
@@ -18,7 +14,7 @@
<div
class=
"cardcontent-right d-center"
>
<p>
<span>
失败
</span>
<span
class=
"bad"
>
{{
qxerrer
}}
</span>
<span
class=
"bad"
>
{{
qxerrer
}}
</span>
</p>
<p>
<span>
成功率
</span>
...
...
@@ -32,11 +28,7 @@
<div
class=
"cardcontent"
>
<ul
class=
"cardcontent-left d-center"
>
<div
class=
"rjjrlList"
>
<p
v-for=
"(item, index) in stjrlList"
class=
"d-center sthj"
:key=
"index"
>
<p
v-for=
"(item, index) in stjrlList"
class=
"d-center sthj"
:key=
"index"
>
{{
item
}}
</p>
</div>
...
...
@@ -45,7 +37,7 @@
<div
class=
"cardcontent-right d-center"
>
<p>
<span>
失败
</span>
<span
class=
"bad"
>
{{
sterrer
}}
</span>
<span
class=
"bad"
>
{{
sterrer
}}
</span>
</p>
<p>
<span>
成功率
</span>
...
...
@@ -63,9 +55,9 @@
<
script
>
import
columnar
from
"@/components/echart/columnar"
;
import
work
table
from
"@/api/worktable
"
;
import
work
from
"@/api/work
"
;
export
default
{
data
()
{
data
()
{
return
{
// 日均接入量
qxerrer
:
0
,
...
...
@@ -76,7 +68,7 @@ export default {
stjrl
:
50300
,
};
},
mounted
()
{
mounted
()
{
this
.
getsthjqxjrtotal
();
},
components
:
{
columnar
},
...
...
@@ -84,7 +76,7 @@ export default {
qxjrlList
:
function
()
{
return
this
.
qxjrl
.
toString
().
split
(
""
);
},
stjrlList
:
function
()
{
stjrlList
:
function
()
{
return
this
.
stjrl
.
toString
().
split
(
""
);
},
sbqkgsList
:
function
()
{
...
...
@@ -95,7 +87,7 @@ export default {
},
},
methods
:
{
getsthjqxjrtotal
()
{
getsthjqxjrtotal
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
p
=
{
...
...
@@ -103,7 +95,7 @@ export default {
QLLX
:
"A8"
,
XZQDM
:
"A20"
,
};
let
res
=
await
work
table
.
getsthjqxjrtotal
(
p
);
let
res
=
await
work
.
getsthjqxjrtotal
(
p
);
}
catch
(
error
)
{
this
.
$refs
.
msg
.
messageShow
();
}
...
...
@@ -195,12 +187,10 @@ export default {
content
:
""
;
width
:
1px
;
height
:
90px
;
background
:
linear-gradient
(
180deg
,
#091b4c
0%
,
#47b5e0
56%
,
#091b4c
100%
);
background
:
linear-gradient
(
180deg
,
#091b4c
0%
,
#47b5e0
56%
,
#091b4c
100%
);
}
.cardcontent-right
{
...
...
Please
register
or
sign in
to post a comment