|
@@ -504,58 +504,55 @@ export default {
|
|
|
// 获取右侧统计数据
|
|
|
getRightstatic() {
|
|
|
// 设置圆环半径
|
|
|
- const BoxDom = document.getElementsByClassName("canvas-circle")[0];
|
|
|
- this.canvasCircle = 0;
|
|
|
- if (BoxDom.offsetHeight > BoxDom.offsetWidth) {
|
|
|
- this.canvasCircle = BoxDom.offsetWidth / 2;
|
|
|
- } else {
|
|
|
- this.canvasCircle = BoxDom.offsetHeight / 2;
|
|
|
- }
|
|
|
- // 对右侧数据做遍历
|
|
|
- this.statisticsList.forEach((statisticItem) => {
|
|
|
- const TYPE = statisticItem.type; // 类型
|
|
|
- const Dom = document.getElementById(`canvas_${TYPE}`);
|
|
|
- // 设置Dom得width\height
|
|
|
- Dom.height = this.canvasCircle * 2;
|
|
|
- Dom.width = this.canvasCircle * 2;
|
|
|
- this.projectStatistics(
|
|
|
- statisticItem.type,
|
|
|
- statisticItem.system,
|
|
|
- statisticItem.type == 1
|
|
|
- ? moment().format("YYYYMM")
|
|
|
- : moment().format("YYYY")
|
|
|
- ).then((res) => {
|
|
|
- let circle_basename = null;
|
|
|
- statisticItem.type == 1
|
|
|
- ? (circle_basename = "本月总任务")
|
|
|
- : (circle_basename = "本年总任务");
|
|
|
- const circle = new SCircle(
|
|
|
- `canvas_${TYPE}`,
|
|
|
- this.canvasCircle * 0.7
|
|
|
- );
|
|
|
- circle.baseName = circle_basename;
|
|
|
- // 总数
|
|
|
- let total = 0;
|
|
|
- // 即将预期
|
|
|
- let due_num = 0;
|
|
|
- // 未完成任务
|
|
|
- let unfinished = 0;
|
|
|
- // 累计统计
|
|
|
- res.data.forEach((item) => {
|
|
|
- total = total + item.total;
|
|
|
- due_num = due_num + item.due_num;
|
|
|
- unfinished = unfinished + item.unfinished;
|
|
|
- });
|
|
|
- // 赋值
|
|
|
- Object.assign(statisticItem, {
|
|
|
- total,
|
|
|
- due_num,
|
|
|
- unfinished,
|
|
|
- });
|
|
|
- circle.persentTransform(total, due_num, unfinished);
|
|
|
- circle.setText(total);
|
|
|
+ const BoxDom = document.getElementsByClassName("canvas-circle")[0];
|
|
|
+ this.canvasCircle = 0;
|
|
|
+ if (BoxDom.offsetHeight > BoxDom.offsetWidth) {
|
|
|
+ this.canvasCircle = BoxDom.offsetWidth / 2;
|
|
|
+ } else {
|
|
|
+ this.canvasCircle = BoxDom.offsetHeight / 2;
|
|
|
+ }
|
|
|
+ // 对右侧数据做遍历
|
|
|
+ this.statisticsList.forEach((statisticItem) => {
|
|
|
+ const TYPE = statisticItem.type; // 类型
|
|
|
+ const Dom = document.getElementById(`canvas_${TYPE}`);
|
|
|
+ // 设置Dom得width\height
|
|
|
+ Dom.height = this.canvasCircle * 2;
|
|
|
+ Dom.width = this.canvasCircle * 2;
|
|
|
+ this.projectStatistics(
|
|
|
+ statisticItem.type,
|
|
|
+ statisticItem.system,
|
|
|
+ statisticItem.type == 1
|
|
|
+ ? moment().format("YYYYMM")
|
|
|
+ : moment().format("YYYY")
|
|
|
+ ).then((res) => {
|
|
|
+ let circle_basename = null;
|
|
|
+ statisticItem.type == 1
|
|
|
+ ? (circle_basename = "本月总任务")
|
|
|
+ : (circle_basename = "本年总任务");
|
|
|
+ const circle = new SCircle(`canvas_${TYPE}`, this.canvasCircle * 0.7);
|
|
|
+ circle.baseName = circle_basename;
|
|
|
+ // 总数
|
|
|
+ let total = 0;
|
|
|
+ // 即将预期
|
|
|
+ let due_num = 0;
|
|
|
+ // 未完成任务
|
|
|
+ let unfinished = 0;
|
|
|
+ // 累计统计
|
|
|
+ res.data.forEach((item) => {
|
|
|
+ total = total + item.total;
|
|
|
+ due_num = due_num + item.due_num;
|
|
|
+ unfinished = unfinished + item.unfinished;
|
|
|
});
|
|
|
+ // 赋值
|
|
|
+ Object.assign(statisticItem, {
|
|
|
+ total,
|
|
|
+ due_num,
|
|
|
+ unfinished,
|
|
|
+ });
|
|
|
+ circle.persentTransform(total, due_num, unfinished);
|
|
|
+ circle.setText(total);
|
|
|
});
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
created() {
|
|
@@ -587,7 +584,7 @@ export default {
|
|
|
.homepage {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- padding: 56px 16px 40px 16px;
|
|
|
+ padding: 30px 16px 40px 16px;
|
|
|
box-sizing: border-box;
|
|
|
display: flex;
|
|
|
.system-main-title {
|
|
@@ -601,8 +598,9 @@ export default {
|
|
|
color: #95bfff;
|
|
|
position: relative;
|
|
|
h4 {
|
|
|
- color: #fff;
|
|
|
+ color: #95bfff;
|
|
|
margin-left: 18px;
|
|
|
+ font-size: 18px;
|
|
|
}
|
|
|
.downright {
|
|
|
position: absolute;
|
|
@@ -675,7 +673,7 @@ export default {
|
|
|
.system-equipments-container {
|
|
|
position: relative;
|
|
|
width: 88%;
|
|
|
- padding: 10px;
|
|
|
+ padding: 6px;
|
|
|
margin-left: 18%;
|
|
|
.more {
|
|
|
position: absolute;
|
|
@@ -969,7 +967,7 @@ export default {
|
|
|
box-sizing: border-box;
|
|
|
.box {
|
|
|
width: 100%;
|
|
|
- height: ~"calc((100% - 30px) / 3)";
|
|
|
+ height: ~"calc((100% - 60px) / 3)";
|
|
|
background: radial-gradient(#20284f 20%, transparent 20%) 0 0;
|
|
|
background-color: transparent;
|
|
|
background-size: 8px 8px;
|
|
@@ -987,6 +985,18 @@ export default {
|
|
|
background: rgba(22, 73, 206, 0.36) !important;
|
|
|
color: #fff !important;
|
|
|
}
|
|
|
+ /deep/.p-select-search {
|
|
|
+ .p-select-search-box {
|
|
|
+ background-color: rgba(22, 73, 206, 0.36) !important;
|
|
|
+ border: 1px solid #2e5772 !important;
|
|
|
+ .p-select-choice-name {
|
|
|
+ color: white !important;
|
|
|
+ }
|
|
|
+ .p-select-search-input {
|
|
|
+ color: white !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.box-bottom {
|
|
@@ -1007,7 +1017,7 @@ export default {
|
|
|
.msg {
|
|
|
flex: 1;
|
|
|
padding: 0 0 0 20px;
|
|
|
- white-space:nowrap;
|
|
|
+ white-space: nowrap;
|
|
|
box-sizing: border-box;
|
|
|
.msg-item:nth-of-type(1) {
|
|
|
display: flex;
|