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