seimin 3 months ago
parent
commit
ef22834d37

+ 2 - 1
src/app/views/new-statistics/distribution-inspection-statistics/date-business-statistics/date-business-statistics.component.ts

@@ -101,7 +101,8 @@ export class DateBusinessStatisticsComponent implements OnInit, AfterViewInit {
101
   getList(num?: number, field?: string, sort?: string) {
101
   getList(num?: number, field?: string, sort?: string) {
102
     this.mainService.getDictionary('list', 'statistics_date_type').subscribe((data) => {
102
     this.mainService.getDictionary('list', 'statistics_date_type').subscribe((data) => {
103
       let dictionaryList = data || [];
103
       let dictionaryList = data || [];
104
-      dictionaryList.push({id: 0, name: '其他', value: 'dateOther'});
104
+      let flag = dictionaryList.some((item) => item.value === 'dateOther');
105
+      !flag && dictionaryList.push({id: 0, name: '其他', value: 'dateOther'});
105
       this.dictionaryList = dictionaryList;
106
       this.dictionaryList = dictionaryList;
106
       this.widthConfig = new Array(this.dictionaryList.length * 2 + 3).fill('100px');
107
       this.widthConfig = new Array(this.dictionaryList.length * 2 + 3).fill('100px');
107
       if (num !== undefined) {
108
       if (num !== undefined) {

+ 2 - 2
src/app/views/new-statistics/distribution-inspection-statistics/department-business-statistics/department-business-statistics.component.html

@@ -46,7 +46,7 @@
46
     </thead>
46
     </thead>
47
     <tbody>
47
     <tbody>
48
       <tr *ngFor="let data of listOfData">
48
       <tr *ngFor="let data of listOfData">
49
-        <td class="width150">{{ data.name }}<ng-container *ngIf="data.code">({{ data.code }})</ng-container></td>
49
+        <td class="width150">{{ data.name }}</td>
50
         <td>{{ data.totalCount }}</td>
50
         <td>{{ data.totalCount }}</td>
51
         <td>{{ data.totalGrade }}</td>
51
         <td>{{ data.totalGrade }}</td>
52
         <ng-container *ngFor="let dictionary of dictionaryList">
52
         <ng-container *ngFor="let dictionary of dictionaryList">
@@ -58,7 +58,7 @@
58
     <ng-template #footerTpl>
58
     <ng-template #footerTpl>
59
       <table class="footTable">
59
       <table class="footTable">
60
         <tr *ngFor="let data of listOfDataEnd">
60
         <tr *ngFor="let data of listOfDataEnd">
61
-          <td class="width150">{{ data.code }}</td>
61
+          <td class="width150">{{ data.name }}</td>
62
           <td>{{ data.totalCount }}</td>
62
           <td>{{ data.totalCount }}</td>
63
           <td>{{ data.totalGrade }}</td>
63
           <td>{{ data.totalGrade }}</td>
64
           <ng-container *ngFor="let dictionary of dictionaryList">
64
           <ng-container *ngFor="let dictionary of dictionaryList">

+ 2 - 1
src/app/views/new-statistics/distribution-inspection-statistics/department-business-statistics/department-business-statistics.component.ts

@@ -111,7 +111,8 @@ export class DepartmentBusinessStatisticsComponent implements OnInit, AfterViewI
111
   getList(num?: number, field?: string, sort?: string) {
111
   getList(num?: number, field?: string, sort?: string) {
112
     this.mainService.getDictionary('list', 'statistics_date_type').subscribe((data) => {
112
     this.mainService.getDictionary('list', 'statistics_date_type').subscribe((data) => {
113
       let dictionaryList = data || [];
113
       let dictionaryList = data || [];
114
-      dictionaryList.push({id: 0, name: '其他', value: 'dateOther'});
114
+      let flag = dictionaryList.some((item) => item.value === 'dateOther');
115
+      !flag && dictionaryList.push({id: 0, name: '其他', value: 'dateOther'});
115
       this.dictionaryList = dictionaryList;
116
       this.dictionaryList = dictionaryList;
116
       this.widthConfig = new Array(this.dictionaryList.length * 2 + 3).fill('100px').map((v, i) => { return i == 0 ? '150px' : '100px' });;
117
       this.widthConfig = new Array(this.dictionaryList.length * 2 + 3).fill('100px').map((v, i) => { return i == 0 ? '150px' : '100px' });;
117
       if (num !== undefined) {
118
       if (num !== undefined) {

+ 2 - 2
src/app/views/new-statistics/distribution-inspection-statistics/department-quality-control-statistics/department-quality-control-statistics.component.html

@@ -46,7 +46,7 @@
46
   </thead>
46
   </thead>
47
   <tbody>
47
   <tbody>
48
     <tr *ngFor="let data of listOfData">
48
     <tr *ngFor="let data of listOfData">
49
-      <td>{{ data.name }}<ng-container *ngIf="data.code">({{ data.code }})</ng-container></td>
49
+      <td>{{ data.name }}</td>
50
       <td>{{ data.totalCount }}</td>
50
       <td>{{ data.totalCount }}</td>
51
       <td>{{ data.totalGrade }}</td>
51
       <td>{{ data.totalGrade }}</td>
52
       <td>{{ data.response_time_num }}</td>
52
       <td>{{ data.response_time_num }}</td>
@@ -60,7 +60,7 @@
60
   <ng-template #footerTpl>
60
   <ng-template #footerTpl>
61
     <table class="footTable">
61
     <table class="footTable">
62
       <tr *ngFor="let data of listOfDataEnd">
62
       <tr *ngFor="let data of listOfDataEnd">
63
-        <td style="width: 12%">{{ data.code }}</td>
63
+        <td style="width: 12%">{{ data.name }}</td>
64
         <td style="width: 11%">{{ data.totalCount }}</td>
64
         <td style="width: 11%">{{ data.totalCount }}</td>
65
         <td style="width: 11%">{{ data.totalGrade }}</td>
65
         <td style="width: 11%">{{ data.totalGrade }}</td>
66
         <td style="width: 11%">{{ data.response_time_num }}</td>
66
         <td style="width: 11%">{{ data.response_time_num }}</td>

+ 2 - 2
src/app/views/new-statistics/distribution-inspection-statistics/distribution-department-evaluate-statistics/distribution-department-evaluate-statistics.component.html

@@ -46,7 +46,7 @@
46
   </thead>
46
   </thead>
47
   <tbody>
47
   <tbody>
48
     <tr *ngFor="let data of listOfData">
48
     <tr *ngFor="let data of listOfData">
49
-      <td>{{ data.name }}<ng-container *ngIf="data.code">({{ data.code }})</ng-container></td>
49
+      <td>{{ data.name }}</td>
50
       <td>{{ data.totalCount }}</td>
50
       <td>{{ data.totalCount }}</td>
51
       <td>{{ data.evaCount }}</td>
51
       <td>{{ data.evaCount }}</td>
52
       <td>{{ data.eva1 }}</td>
52
       <td>{{ data.eva1 }}</td>
@@ -60,7 +60,7 @@
60
   <ng-template #footerTpl>
60
   <ng-template #footerTpl>
61
     <table class="footTable">
61
     <table class="footTable">
62
       <tr *ngFor="let data of listOfDataEnd">
62
       <tr *ngFor="let data of listOfDataEnd">
63
-        <td style="width: 12%">{{ data.code }}</td>
63
+        <td style="width: 12%">{{ data.name }}</td>
64
         <td style="width: 11%">{{ data.totalCount }}</td>
64
         <td style="width: 11%">{{ data.totalCount }}</td>
65
         <td style="width: 11%">{{ data.evaCount }}</td>
65
         <td style="width: 11%">{{ data.evaCount }}</td>
66
         <td style="width: 11%">{{ data.eva1 }}</td>
66
         <td style="width: 11%">{{ data.eva1 }}</td>

+ 2 - 2
src/app/views/new-statistics/distribution-inspection-statistics/distribution-department-source-statistics/distribution-department-source-statistics.component.html

@@ -42,7 +42,7 @@
42
   </thead>
42
   </thead>
43
   <tbody>
43
   <tbody>
44
     <tr *ngFor="let data of listOfData">
44
     <tr *ngFor="let data of listOfData">
45
-      <td>{{ data.name }}<ng-container *ngIf="data.code">({{ data.code }})</ng-container></td>
45
+      <td>{{ data.name }}</td>
46
       <td>{{ data.service }}</td>
46
       <td>{{ data.service }}</td>
47
       <td>{{ data.nurse }}</td>
47
       <td>{{ data.nurse }}</td>
48
       <td>{{ data.system }}</td>
48
       <td>{{ data.system }}</td>
@@ -52,7 +52,7 @@
52
   <ng-template #footerTpl>
52
   <ng-template #footerTpl>
53
     <table class="footTable">
53
     <table class="footTable">
54
       <tr *ngFor="let data of listOfDataEnd">
54
       <tr *ngFor="let data of listOfDataEnd">
55
-        <td style="width: 20%">{{ data.code }}</td>
55
+        <td style="width: 20%">{{ data.name }}</td>
56
         <td style="width: 20%">{{ data.service }}</td>
56
         <td style="width: 20%">{{ data.service }}</td>
57
         <td style="width: 20%">{{ data.nurse }}</td>
57
         <td style="width: 20%">{{ data.nurse }}</td>
58
         <td style="width: 20%">{{ data.system }}</td>
58
         <td style="width: 20%">{{ data.system }}</td>

+ 2 - 2
src/app/views/new-statistics/distribution-inspection-statistics/user-business-statistics/user-business-statistics.component.html

@@ -46,7 +46,7 @@
46
     </thead>
46
     </thead>
47
     <tbody>
47
     <tbody>
48
       <tr *ngFor="let data of listOfData">
48
       <tr *ngFor="let data of listOfData">
49
-        <td class="width150">{{ data.name }}<ng-container *ngIf="data.account">({{ data.account }})</ng-container></td>
49
+        <td class="width150">{{ data.name }}</td>
50
         <td>{{ data.totalCount }}</td>
50
         <td>{{ data.totalCount }}</td>
51
         <td>{{ data.totalGrade }}</td>
51
         <td>{{ data.totalGrade }}</td>
52
         <ng-container *ngFor="let dictionary of dictionaryList">
52
         <ng-container *ngFor="let dictionary of dictionaryList">
@@ -58,7 +58,7 @@
58
     <ng-template #footerTpl>
58
     <ng-template #footerTpl>
59
       <table class="footTable">
59
       <table class="footTable">
60
         <tr *ngFor="let data of listOfDataEnd">
60
         <tr *ngFor="let data of listOfDataEnd">
61
-          <td class="width150">{{ data.account }}</td>
61
+          <td class="width150">{{ data.name }}</td>
62
           <td>{{ data.totalCount }}</td>
62
           <td>{{ data.totalCount }}</td>
63
           <td>{{ data.totalGrade }}</td>
63
           <td>{{ data.totalGrade }}</td>
64
           <ng-container *ngFor="let dictionary of dictionaryList">
64
           <ng-container *ngFor="let dictionary of dictionaryList">

+ 3 - 2
src/app/views/new-statistics/distribution-inspection-statistics/user-business-statistics/user-business-statistics.component.ts

@@ -111,7 +111,8 @@ export class UserBusinessStatisticsComponent implements OnInit, AfterViewInit {
111
   getList(num?: number, field?: string, sort?: string) {
111
   getList(num?: number, field?: string, sort?: string) {
112
     this.mainService.getDictionary('list', 'statistics_date_type').subscribe((data) => {
112
     this.mainService.getDictionary('list', 'statistics_date_type').subscribe((data) => {
113
       let dictionaryList = data || [];
113
       let dictionaryList = data || [];
114
-      dictionaryList.push({id: 0, name: '其他', value: 'dateOther'});
114
+      let flag = dictionaryList.some((item) => item.value === 'dateOther');
115
+      !flag && dictionaryList.push({id: 0, name: '其他', value: 'dateOther'});
115
       this.dictionaryList = dictionaryList;
116
       this.dictionaryList = dictionaryList;
116
       this.widthConfig = new Array(this.dictionaryList.length * 2 + 3).fill('100px').map((v, i) => { return i == 0 ? '150px' : '100px' });
117
       this.widthConfig = new Array(this.dictionaryList.length * 2 + 3).fill('100px').map((v, i) => { return i == 0 ? '150px' : '100px' });
117
       if (num !== undefined) {
118
       if (num !== undefined) {
@@ -191,7 +192,7 @@ export class UserBusinessStatisticsComponent implements OnInit, AfterViewInit {
191
       postData.sort = `${this.sortCurrentKey} ${this.sortCurrentValue === "ascend" ? `asc` : `desc`}`
192
       postData.sort = `${this.sortCurrentKey} ${this.sortCurrentValue === "ascend" ? `asc` : `desc`}`
192
     }
193
     }
193
     this.mainService
194
     this.mainService
194
-      .postExportCustom("itsm/export", "userTransOrder", postData)
195
+      .postExportCustom("itsm/exportMergeTitle", "userTransOrder", postData)
195
       .subscribe((data) => {
196
       .subscribe((data) => {
196
         this.message.remove(this.excelExportLoading);
197
         this.message.remove(this.excelExportLoading);
197
         this.excelExportLoading = false;
198
         this.excelExportLoading = false;

+ 2 - 2
src/app/views/new-statistics/distribution-inspection-statistics/user-quality-control-statistics/user-quality-control-statistics.component.html

@@ -44,7 +44,7 @@
44
   </thead>
44
   </thead>
45
   <tbody>
45
   <tbody>
46
     <tr *ngFor="let data of listOfData">
46
     <tr *ngFor="let data of listOfData">
47
-      <td>{{ data.name }}<ng-container *ngIf="data.account">({{ data.account }})</ng-container></td>
47
+      <td>{{ data.name }}</td>
48
       <td>{{ data.totalCount }}</td>
48
       <td>{{ data.totalCount }}</td>
49
       <td>{{ data.totalGrade }}</td>
49
       <td>{{ data.totalGrade }}</td>
50
       <td>{{ data.response_time_num }}</td>
50
       <td>{{ data.response_time_num }}</td>
@@ -58,7 +58,7 @@
58
   <ng-template #footerTpl>
58
   <ng-template #footerTpl>
59
     <table class="footTable">
59
     <table class="footTable">
60
       <tr *ngFor="let data of listOfDataEnd">
60
       <tr *ngFor="let data of listOfDataEnd">
61
-        <td style="width: 12%">{{ data.account }}</td>
61
+        <td style="width: 12%">{{ data.name }}</td>
62
         <td style="width: 11%">{{ data.totalCount }}</td>
62
         <td style="width: 11%">{{ data.totalCount }}</td>
63
         <td style="width: 11%">{{ data.totalGrade }}</td>
63
         <td style="width: 11%">{{ data.totalGrade }}</td>
64
         <td style="width: 11%">{{ data.response_time_num }}</td>
64
         <td style="width: 11%">{{ data.response_time_num }}</td>