卸货地区域
This commit is contained in:
@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
const asyncFetchParamKey = 'pid';
|
const asyncFetchParamKey = 'pid';
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
let curCode = ''
|
||||||
watch(
|
watch(
|
||||||
() => props.value,
|
() => props.value,
|
||||||
async (val, oldVal) => {
|
async (val, oldVal) => {
|
||||||
@ -64,6 +64,7 @@
|
|||||||
const resData = await getAreaInfo({code: val,excludeType:props.excludeType, startPCode: props.startPCode });
|
const resData = await getAreaInfo({code: val,excludeType:props.excludeType, startPCode: props.startPCode });
|
||||||
options.value = resData.areaList
|
options.value = resData.areaList
|
||||||
emitData.value = resData.regionCode
|
emitData.value = resData.regionCode
|
||||||
|
curCode = val
|
||||||
// const resData = await requestMagicApi({
|
// const resData = await requestMagicApi({
|
||||||
// method: "get",
|
// method: "get",
|
||||||
// url: "mdm/countryRegion/getParentByCode",
|
// url: "mdm/countryRegion/getParentByCode",
|
||||||
@ -89,7 +90,7 @@
|
|||||||
apiData,
|
apiData,
|
||||||
(data) => {
|
(data) => {
|
||||||
options.value = generatorOptions(data);
|
options.value = generatorOptions(data);
|
||||||
if (emitData.value.length > 1) {
|
if (emitData.value.length > 1 && !curCode) {
|
||||||
getParentNodes(emitData.value, options.value);
|
getParentNodes(emitData.value, options.value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user