浏览代码

开通科室勾选范围调整

seimin 1 年之前
父节点
当前提交
b737300837
共有 2 个文件被更改,包括 11 次插入30 次删除
  1. 1 1
      proxy.conf.json
  2. 10 29
      src/app/views/task-type-management/task-type-management.component.ts

+ 1 - 1
proxy.conf.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "/service": {
3
-    "target": "http://192.168.4.240",
3
+    "target": "http://192.168.3.108",
4 4
     "logLevel": "debug",
5 5
     "changeOrigin": true,
6 6
     "pathRewrite": {

+ 10 - 29
src/app/views/task-type-management/task-type-management.component.ts

@@ -2257,35 +2257,16 @@ export class TaskTypeManagementComponent implements OnInit {
2257 2257
   getCourseList(sums) {
2258 2258
     this.courseListData = [];
2259 2259
     var that = this;
2260
-    var data = {};
2261
-    if (this.deptPcode || this.deptName || this.deptType) {
2262
-      var data1 = {
2263
-        department: {
2264
-          hospital: {
2265
-            id: this.hosId,
2266
-          },
2267
-          pcode: this.deptPcode,
2268
-          dept: this.deptName,
2269
-          type: {
2270
-            id: this.deptType,
2271
-          },
2272
-        },
2273
-        idx: this.pageIndex - 1,
2274
-        sum: sums,
2275
-      };
2276
-      data = data1;
2277
-    } else {
2278
-      var data2 = {
2279
-        department: {
2280
-          hospital: {
2281
-            id: this.hosId,
2282
-          },
2283
-        },
2284
-        idx: this.pageIndex - 1,
2285
-        sum: sums,
2286
-      };
2287
-      data = data2;
2288
-    }
2260
+    var data = {
2261
+      department: {
2262
+        cascadeHosId: this.hosId,
2263
+        pcode: this.deptPcode || undefined,
2264
+        dept: this.deptName || undefined,
2265
+        type: this.deptType ? { id: this.deptType } : undefined,
2266
+      },
2267
+      idx: this.pageIndex - 1,
2268
+      sum: sums,
2269
+    };
2289 2270
 
2290 2271
     var bb = [];
2291 2272
     this.loading2 = true;