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 2
   "/service": {
3
-    "target": "http://192.168.3.108",
3
+    "target": "http://192.168.4.240",
4 4
     "logLevel": "debug",
5 5
     "changeOrigin": true,
6 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 4
 import { NzMessageService } from 'ng-zorro-antd';
5 5
 import { Subject } from 'rxjs';
6 6
 import { debounceTime } from 'rxjs/operators';
7
-import { format } from 'date-fns';
7
+import { format, startOfMinute } from 'date-fns';
8 8
 
9 9
 @Component({
10 10
   selector: "app-operation-config",
@@ -63,14 +63,14 @@ export class OperationConfigComponent implements OnInit {
63 63
       this.msg.create("warning", "请选择建单时间!");
64 64
       return;
65 65
     }
66
-    let postData:any = {
67
-      id: this.configs.id,
66
+    let editData:any = {
68 67
       hosId: this.hosId,
69 68
       autoCreate: this.autoCreateOrders[0].checked ? 1 : 0,
70 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 71
       ordinaryField: this.surgeryField
73 72
     };
73
+    let postData = Object.assign({}, this.configs, editData);
74 74
     console.log(postData);
75 75
     this.btnLoading = true;
76 76
     this.mainService