Commit f6f0da19 authored by 皮倩雯's avatar 皮倩雯

fix: '数据库初始化优化'

parent bdf9bd9d
Pipeline #57232 passed with stages
...@@ -484,7 +484,11 @@ const DatabaseInitialization = props => { ...@@ -484,7 +484,11 @@ const DatabaseInitialization = props => {
description: '数据库初始化成功', description: '数据库初始化成功',
}); });
setDbExists(true); setDbExists(true);
setkeepNumber('已使用'); console.log(keepNumber);
if (keepNumber != '') {
setkeepNumber('已使用');
}
// setkeepNa(''); // setkeepNa('');
// setkeepMsg(''); // setkeepMsg('');
// setkeepCo(''); // setkeepCo('');
......
...@@ -100,12 +100,9 @@ const AddModal = props => { ...@@ -100,12 +100,9 @@ const AddModal = props => {
const getMap = () => { const getMap = () => {
GetIntegratedloginSetting().then(res => { GetIntegratedloginSetting().then(res => {
console.log(res.data);
if (res.data.displayMode == '地图') { if (res.data.displayMode == '地图') {
console.log(res.data.mapSettings); let list = []; // 存省数据
let listSecord = []; // 存市数据
let list = [];
let listSecord = [];
let fff = 0; let fff = 0;
res.data.mapSettings.map(i => { res.data.mapSettings.map(i => {
list.push(i[0]); list.push(i[0]);
...@@ -113,8 +110,6 @@ const AddModal = props => { ...@@ -113,8 +110,6 @@ const AddModal = props => {
listSecord.push(i[1]); listSecord.push(i[1]);
} }
}); });
console.log(list);
console.log(listSecord);
if (list.indexOf('100000') != -1) { if (list.indexOf('100000') != -1) {
fff = 1; fff = 1;
} }
...@@ -161,7 +156,6 @@ const AddModal = props => { ...@@ -161,7 +156,6 @@ const AddModal = props => {
}); });
} }
}); });
console.log(fff);
if (fff == 0) { if (fff == 0) {
data.map(i => { data.map(i => {
let aa = []; let aa = [];
...@@ -172,10 +166,8 @@ const AddModal = props => { ...@@ -172,10 +166,8 @@ const AddModal = props => {
} }
}); });
}); });
console.log(result.districtList[0].districtList);
setOptionsList(data); setOptionsList(data);
} else { } else {
console.log(result.districtList[0].districtList);
setOptionsList(result.districtList[0].districtList); setOptionsList(result.districtList[0].districtList);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment