seimin 1 year ago
parent
commit
cee3bc7b6c

+ 1 - 1
proxy.conf.json

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

+ 1 - 1
src/app/views/data-dictionary/data-dictionary.component.html

@@ -95,7 +95,7 @@
95 95
             <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="name">名称</nz-form-label>
96 96
             <nz-form-control nzErrorTip="请输入名称!">
97 97
               <nz-input-group>
98
-                <input nz-input formControlName="name" placeholder="请输入名称" (input)="changeValue()" />
98
+                <input nz-input formControlName="name" placeholder="请输入名称" (input)="changeValue($event)" />
99 99
               </nz-input-group>
100 100
             </nz-form-control>
101 101
           </nz-form-item>

+ 2 - 2
src/app/views/data-dictionary/data-dictionary.component.ts

@@ -243,9 +243,9 @@ export class DataDictionaryComponent implements OnInit {
243 243
   }
244 244
 
245 245
   // 数据字典修改name,value自动变化,且value禁止修改
246
-  changeValue(){
246
+  changeValue(e){
247 247
     if(this.checkedDictionary.type === 'dictionary'){
248
-      this.validateForm.controls.value.setValue(this.validateForm.value.name);
248
+      this.validateForm.controls.value.setValue(e.target.value);
249 249
     }
250 250
   }
251 251