@@ -65,21 +38,18 @@
打印
-
-
+ " id="domTable">
-
+
-
-
-
-
-
+
+
+
+
+
{{ scope.row.doctorCode }}
+
{{ scope.row.sumCheckDoctorName }}
+
+
+
+
+
+
-
@@ -263,37 +225,37 @@ export default {
};
this.$refs.chart2.setOption(option2);
},
- headerStyle({ row, column, rowIndex, columnIndex }) {
- if(rowIndex===1){
- return 'left-align'
+ headerStyle({ row, column, rowIndex, columnIndex }) {
+ if (rowIndex === 1) {
+ return 'left-align'
+ }
+ },
+ summarizeRegisterCount(param) {
+ const { columns, data } = param;
+ const sums = [];
+ columns.forEach((column, index) => {
+ if (index === 0) {
+ sums[index] = '合计';
+ return;
}
- },
- summarizeRegisterCount(param){
- const { columns, data } = param;
- const sums = [];
- columns.forEach((column, index) => {
- if (index === 0) {
- sums[index] = '合计';
- return;
- }
- const values = data.map(item => Number(item[column.property]));
- if (index===1) {
- sums[index] = values.reduce((prev, curr) => {
- const value = Number(curr);
- if (!isNaN(value)) {
- return prev + curr;
- } else {
- return prev;
- }
- }, 0);
- sums[index] = '共'+sums[index]+'人';
- } else {
- sums[index] = '';
- }
- });
+ const values = data.map(item => Number(item[column.property]));
+ if (index === 1) {
+ sums[index] = values.reduce((prev, curr) => {
+ const value = Number(curr);
+ if (!isNaN(value)) {
+ return prev + curr;
+ } else {
+ return prev;
+ }
+ }, 0);
+ sums[index] = '共' + sums[index] + '人';
+ } else {
+ sums[index] = '';
+ }
+ });
- return sums;
+ return sums;
},
onPrint() {
this.flag = false;
@@ -346,7 +308,7 @@ export default {
that.tableData = [...res.data];
this.yAxisData = [];
this.seriesData = [];
- this.pieData=[]
+ this.pieData = []
let pies = {
name: "",
value: 0,
@@ -355,8 +317,8 @@ export default {
let pie = JSON.parse(JSON.stringify(pies));
this.yAxisData.push(res.data[i].sumCheckDoctorName);
this.seriesData.push(res.data[i].sumCheckCount);
- pie.name=res.data[i].sumCheckDoctorName
- pie.value=res.data[i].sumCheckCount
+ pie.name = res.data[i].sumCheckDoctorName
+ pie.value = res.data[i].sumCheckCount
this.pieData.push(pie)
}
this.columnarChart();
@@ -391,7 +353,7 @@ export default {
this.endDate = defaultDate;
},
handleExport() {
- exportToExcel("#table", "总检医生工作量统计",false);
+ exportToExcel("#table", "总检医生工作量统计", false);
},
},
computed: {
@@ -411,30 +373,36 @@ export default {
@import "../../assets/css/global_form.css";
@import "../../assets/css/global_input.css";
@import "../../assets/css/global.css";
-.query{
- margin-right: 10px;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 14px;
- color: #232748;
- font-weight: 400;
- font-family: "NotoSansSC-Regular";
+
+.query {
+ margin-right: 10px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ font-size: 14px;
+ color: #232748;
+ font-weight: 400;
+ font-family: "NotoSansSC-Regular";
}
+
.box {
display: flex;
flex-direction: column;
}
+
:deep .left-align .cell {
text-align: left !important;
}
-.query:last-child{
+
+.query:last-child {
margin-right: 0;
}
-:deep .el-input--suffix .el-input__inner{
+
+:deep .el-input--suffix .el-input__inner {
height: 32px !important;
}
-:deep .el-select__tags{
+
+:deep .el-select__tags {
flex-wrap: nowrap;
}
\ No newline at end of file
diff --git a/src/views/workload/doctorstaionworkload.vue b/src/views/workload/doctorstaionworkload.vue
index b80738c..3713577 100644
--- a/src/views/workload/doctorstaionworkload.vue
+++ b/src/views/workload/doctorstaionworkload.vue
@@ -8,8 +8,7 @@