seimin 1 年之前
父节点
当前提交
b6c4f7c992
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      proxy.conf.json
  2. 4 4
      src/app/views/operation-config/operation-config.component.ts

+ 1 - 1
proxy.conf.json

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

+ 4 - 4
src/app/views/operation-config/operation-config.component.ts

@@ -4,7 +4,7 @@ import { ToolService } from 'src/app/services/tool.service';
4
 import { NzMessageService } from 'ng-zorro-antd';
4
 import { NzMessageService } from 'ng-zorro-antd';
5
 import { Subject } from 'rxjs';
5
 import { Subject } from 'rxjs';
6
 import { debounceTime } from 'rxjs/operators';
6
 import { debounceTime } from 'rxjs/operators';
7
-import { format } from 'date-fns';
7
+import { format, startOfMinute } from 'date-fns';
8
 
8
 
9
 @Component({
9
 @Component({
10
   selector: "app-operation-config",
10
   selector: "app-operation-config",
@@ -63,14 +63,14 @@ export class OperationConfigComponent implements OnInit {
63
       this.msg.create("warning", "请选择建单时间!");
63
       this.msg.create("warning", "请选择建单时间!");
64
       return;
64
       return;
65
     }
65
     }
66
-    let postData:any = {
67
-      id: this.configs.id,
66
+    let editData:any = {
68
       hosId: this.hosId,
67
       hosId: this.hosId,
69
       autoCreate: this.autoCreateOrders[0].checked ? 1 : 0,
68
       autoCreate: this.autoCreateOrders[0].checked ? 1 : 0,
70
       taskType: this.tasktypeId || undefined,
69
       taskType: this.tasktypeId || undefined,
71
-      createTime: this.autoTime ? format(this.autoTime, "yyyy-MM-dd HH:mm:ss") : undefined,
70
+      createTime: this.autoTime ? format(startOfMinute(this.autoTime), "yyyy-MM-dd HH:mm:ss") : undefined,
72
       ordinaryField: this.surgeryField
71
       ordinaryField: this.surgeryField
73
     };
72
     };
73
+    let postData = Object.assign({}, this.configs, editData);
74
     console.log(postData);
74
     console.log(postData);
75
     this.btnLoading = true;
75
     this.btnLoading = true;
76
     this.mainService
76
     this.mainService