测试国家地区代码回显

This commit is contained in:
‘huanghaiixia’
2025-11-05 17:43:44 +08:00
parent f925a683db
commit 76fbfca5f5

View File

@ -18,6 +18,7 @@
import { LoadingOutlined } from '@ant-design/icons-vue';
import { useI18n } from '/@/hooks/web/useI18n';
import { getAreaList } from '/@/api/mdm/CountryRegion';
import { requestMagicApi } from '/@/api/magicApi';
interface Option {
value: string;
@ -59,6 +60,17 @@
if (isChange.value) return;
if (val) {
let arr = val.split(',')
console.log(arr, 88888)
const resData = await requestMagicApi({
method: "get",
url: "mdm/getRegionByCode",
body: undefined,
query: {
code: arr[arr.length-1]
}
});
console.log(resData, 'resData')
emitData.value = val.split(',');
} else {
emitData.value = [];