测试国家地区代码回显
This commit is contained in:
@ -18,6 +18,7 @@
|
|||||||
import { LoadingOutlined } from '@ant-design/icons-vue';
|
import { LoadingOutlined } from '@ant-design/icons-vue';
|
||||||
import { useI18n } from '/@/hooks/web/useI18n';
|
import { useI18n } from '/@/hooks/web/useI18n';
|
||||||
import { getAreaList } from '/@/api/mdm/CountryRegion';
|
import { getAreaList } from '/@/api/mdm/CountryRegion';
|
||||||
|
import { requestMagicApi } from '/@/api/magicApi';
|
||||||
|
|
||||||
interface Option {
|
interface Option {
|
||||||
value: string;
|
value: string;
|
||||||
@ -59,6 +60,17 @@
|
|||||||
if (isChange.value) return;
|
if (isChange.value) return;
|
||||||
|
|
||||||
if (val) {
|
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(',');
|
emitData.value = val.split(',');
|
||||||
} else {
|
} else {
|
||||||
emitData.value = [];
|
emitData.value = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user