101c4c96 by 任超

feat:work

1 parent 0ae1f4cc
import request from '@/utils/request'
import SERVER from './config'
class worktable {
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 worktable()
export default new work()
......
......@@ -11,9 +11,9 @@
<script>
import Chart from "./chart.vue";
import worktable 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 worktable.getdjywltotal(p);
let res = await work.getdjywltotal(p);
} catch (error) {
this.$refs.msg.messageShow();
......
......@@ -4,9 +4,9 @@
<script>
import Chart from "./chart.vue";
import worktable 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 worktable.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>
......
......@@ -4,9 +4,9 @@
<script>
import Chart from "./chart.vue";
import worktable 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 worktable.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>
......
......@@ -4,7 +4,7 @@
<script>
import Chart from './chart.vue';
import worktable 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 worktable.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>
......
......@@ -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 worktable 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 worktable.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 {
......