diff --git a/src/view/dialog/diaLogTab.vue b/src/view/dialog/diaLogTab.vue index 0f41ccf..917ffd4 100644 --- a/src/view/dialog/diaLogTab.vue +++ b/src/view/dialog/diaLogTab.vue @@ -240,7 +240,7 @@ onMounted(() => { data.list1 = props.list1; data.year = props.year; const paginationTotal = document.querySelector(".el-pagination__total"); - console.log(paginationTotal); + // console.log(paginationTotal); // paginationTotal.innerText = `总共 ${props.pagination.total} 组数据`; }); diff --git a/src/view/dialog/dialog.vue b/src/view/dialog/dialog.vue index a73851f..e8d1420 100644 --- a/src/view/dialog/dialog.vue +++ b/src/view/dialog/dialog.vue @@ -177,7 +177,7 @@ onMounted(() => { data.title = props.title; data.tableData = props.tableData; const paginationTotal = document.querySelector(".el-pagination__total"); - console.log(paginationTotal); + // console.log(paginationTotal); // paginationTotal.innerText = `总共 ${props.pagination.total} 组数据`; }); diff --git a/src/view/echarts_sy/zwfw1.vue b/src/view/echarts_sy/zwfw1.vue index 4814a54..575e62e 100644 --- a/src/view/echarts_sy/zwfw1.vue +++ b/src/view/echarts_sy/zwfw1.vue @@ -11,17 +11,17 @@ const chart = ref(); // 创建DOM引用 const dataList = [ { name: "2.0收件数", - value: 90, + value: 33044, }, { name: "总收件数", - value: 100, + value: 33295, }, ]; //内圈数据 var data = [ { - value: 90, + value: dataList[0].value, name: "2.0收件数", itemStyle: { normal: { @@ -45,7 +45,7 @@ var data = [ }, }, { - value: 10, + value: dataList[1].value - dataList[0].value, name: "", itemStyle: { normal: { @@ -63,7 +63,7 @@ var data = [ }, }, { - value: 100, + value: dataList[1].value, name: "总收件数", itemStyle: { normal: { @@ -75,7 +75,7 @@ var data = [ //外圈数据 const data1 = [ { - value: 100, + value: dataList[1].value, name: "", itemStyle: { normal: { @@ -95,7 +95,7 @@ const data1 = [ }, }, { - value: 100, + value: dataList[1].value, name: "", itemStyle: { normal: { @@ -106,34 +106,33 @@ const data1 = [ ]; const option = { - legend: - { - selectedMode:false, - itemWidth: 10, - itemHeight: 10, - itemGap: 10, - icon: "circle", - data: ["2.0收件数","",'总收件数'], - bottom: "3%", - width: 380, - textStyle: { - color: "#ffffff", // 修改图例颜色为红色 - }, - formatter: function (params) { - var num = ""; - for (let i = 0; i < dataList.length; i++) { - if (dataList[i].name == params) { - num = dataList[i].value; - } - } - return params + " " + num; - }, + legend: { + selectedMode: false, + itemWidth: 10, + itemHeight: 10, + itemGap: 10, + icon: "circle", + data: ["2.0收件数", "", "总收件数"], + bottom: "3%", + width: 380, + textStyle: { + color: "#ffffff", // 修改图例颜色为红色 }, + formatter: function (params) { + var num = ""; + for (let i = 0; i < dataList.length; i++) { + if (dataList[i].name == params) { + num = dataList[i].value; + } + } + return params + " " + num; + }, + }, title: [ { - text: "90%", - right: "24%", + text: `${((dataList[0].value / dataList[1].value)*100).toFixed(2)}%`, + right: "18%", bottom: "40%", textStyle: { color: "#ffffff", diff --git a/src/view/echarts_sy/zwfw2.vue b/src/view/echarts_sy/zwfw2.vue index bc12318..1666f73 100644 --- a/src/view/echarts_sy/zwfw2.vue +++ b/src/view/echarts_sy/zwfw2.vue @@ -11,16 +11,16 @@ const chart = ref(); // 创建DOM引用 const dataList = [ { name: "超期受理数", - value: 90, + value: 9, }, { name: "应受理数", - value: 100, + value: 32561, }, ]; var data = [ { - value: 90, + value: dataList[0].value, name: "超期受理数", itemStyle: { normal: { @@ -58,7 +58,7 @@ var data = [ }, }, { - value: 100, + value: dataList[1].value, name: "应受理数", itemStyle: { normal: { @@ -69,7 +69,7 @@ var data = [ ]; const data1 = [ { - value: 100, + value: dataList[1].value, name: "", itemStyle: { normal: { @@ -89,7 +89,7 @@ const data1 = [ }, }, { - value: 100, + value: dataList[1].value, name: "", itemStyle: { normal: { @@ -127,8 +127,9 @@ const option = { title: [ { - text: "90%", - right: "24%", + // text: "0.03%", + text:`${((dataList[0].value / dataList[1].value)*100).toFixed(2)}%`, + right: "19%", bottom: "40%", textStyle: { color: "#ffffff", diff --git a/src/view/echarts_sy/zwfw3.vue b/src/view/echarts_sy/zwfw3.vue index 6b64bf3..b16cd5f 100644 --- a/src/view/echarts_sy/zwfw3.vue +++ b/src/view/echarts_sy/zwfw3.vue @@ -11,16 +11,16 @@ const chart = ref(); // 创建DOM引用 const dataList = [ { name: "超期办理数", - value: 90, + value: 7, }, { name: "应办理数", - value: 100, + value: 31615, }, ]; var data = [ { - value: 90, + value: dataList[0].value, name: "超期办理数", itemStyle: { normal: { @@ -58,7 +58,7 @@ var data = [ }, }, { - value: 100, + value: dataList[1].value, name: "应办理数", itemStyle: { normal: { @@ -69,7 +69,7 @@ var data = [ ]; const data1 = [ { - value: 100, + value: dataList[1].value, name: "", itemStyle: { normal: { @@ -89,7 +89,7 @@ const data1 = [ }, }, { - value: 100, + value: dataList[1].value, name: "", itemStyle: { normal: { @@ -126,8 +126,8 @@ const option = { title: [ { - text: "90%", - right: "24%", + text: `${((dataList[0].value / dataList[1].value)*100).toFixed(2)}%`, + right: "19%", bottom: "40%", textStyle: { color: "#ffffff", diff --git a/src/view/sy.vue b/src/view/sy.vue index 3c7bfb3..a440734 100644 --- a/src/view/sy.vue +++ b/src/view/sy.vue @@ -441,25 +441,6 @@ -