张延森 3 年前
父节点
当前提交
c5087584b8

+ 1
- 0
config/proxy.js 查看文件

10
     '/api/': {
10
     '/api/': {
11
       // target: 'https://xlk.njyz.tech/',
11
       // target: 'https://xlk.njyz.tech/',
12
       target: 'http://localhost:8081/',
12
       target: 'http://localhost:8081/',
13
+      // target: 'https://xlj.newlandsh.com/',
13
       changeOrigin: true,
14
       changeOrigin: true,
14
       pathRewrite: {
15
       pathRewrite: {
15
         '^': '',
16
         '^': '',

+ 1
- 1
src/pages/building/Edit/Basic/index.jsx 查看文件

416
             })(<InputNumber style={fullWidth}/>)}
416
             })(<InputNumber style={fullWidth}/>)}
417
           </Form.Item>
417
           </Form.Item>
418
         </FormGroupItem>
418
         </FormGroupItem>
419
-        <Form.Item label="品牌开发商" help="【品牌开发商】与【开发商】二选一">
419
+        <Form.Item label="品牌开发商">
420
           {getFieldDecorator('brandId')(
420
           {getFieldDecorator('brandId')(
421
             <Select style={fullWidth}>
421
             <Select style={fullWidth}>
422
               {
422
               {

+ 6
- 3
src/pages/building/Edit/components/BuildingTypeDetail.jsx 查看文件

44
   }
44
   }
45
 
45
 
46
   useEffect(() => {
46
   useEffect(() => {
47
-    if (!dataset.rightsYear) {
48
-      dataset.rightsYear = 70
47
+    form.resetFields()
48
+    if (dataset) {
49
+      if (!dataset.rightsYear) {
50
+        dataset.rightsYear = 70
51
+      }
52
+      form.setFieldsValue(dataset)
49
     }
53
     }
50
-    form.setFieldsValue(dataset)
51
   }, [dataset])
54
   }, [dataset])
52
 
55
 
53
   return (
56
   return (