|
@@ -202,7 +202,8 @@ export function addRowKey(data) {
|
|
|
if (!data) {
|
|
|
return [];
|
|
|
}
|
|
|
- return data.map((item) => {
|
|
|
+ return data.map((val) => {
|
|
|
+ const item = val;
|
|
|
item.key = item.id;
|
|
|
return item;
|
|
|
});
|
|
@@ -351,6 +352,8 @@ export function provinceNameToCode(pname) {
|
|
|
const match = Object.keys(ProvinceCodes).filter((code) => {
|
|
|
if (ProvinceCodes[code] === pname) {
|
|
|
return true;
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
}
|
|
|
});
|
|
|
return match[0];
|