forked from gzzfw/frontEnd/gzDyh

dminyi
2024-09-11 22f49ff6bb582ccc44742812a638879ea5203eb7
提交
2 files modified
32 ■■■■■ changed files
gz-customerSystem/public/locationSelect.js 16 ●●●● patch | view | raw | blame | history
gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx 16 ●●●● patch | view | raw | blame | history
gz-customerSystem/public/locationSelect.js
@@ -1,15 +1,6 @@
let locationSelect = {
    '19': [
            {
                    'label': '广东省',
                    'value': '19',
                    'parentId': 'root',
                    'children': [
                            {
                                    'label': '广州市',
                                    'value': '1601',
                                    'parentId': '19',
                                    'children': [
                                            {
                                                    'label': '白云区',
                                                    'value': '50258',
@@ -1057,9 +1048,6 @@
                                                            },
                                                    ],
                                            },
                                    ],
                            },
                    ],
            },
    ],
};
gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx
@@ -286,14 +286,14 @@
                  if (option) {
                    console.log(option)
                    props.formRef.current.setFieldsValue({
                      queProv: option[0].value,
                      queProvName: option[0].label,
                      queCity: option[1].value,
                      queCityName: option[1].label,
                      queArea: option[2].value,
                      queAreaName: option[2].label,
                      queRoad: option[3] && option[3].value || '',
                      queRoadName: option[3] && option[3].label || '',
                      // queProv: option[0].value,
                      // queProvName: option[0].label,
                      // queCity: option[1].value,
                      // queCityName: option[1].label,
                      queArea: option[0].value,
                      queAreaName: option[0].label,
                      queRoad: option[1] && option[1].value || '',
                      queRoadName: option[1] && option[1].label || '',
                    })
                  } else {
                    //清除数据