优化进件切换进件信息
This commit is contained in:
@@ -311,13 +311,14 @@ const longTime = ref('2099-12-31')
|
||||
const wxProvinceCode = ref('')
|
||||
|
||||
// 获取进件详情
|
||||
async function getDetailAjax(shopId: string, licenceNo: string) {
|
||||
async function getDetailAjax(shopId: string) {
|
||||
try {
|
||||
const res: any = await entryManagerDetail({
|
||||
shopId: shopId,
|
||||
licenceNo: licenceNo
|
||||
shopId: shopId
|
||||
})
|
||||
form.value = res
|
||||
if (res && res.shopId) {
|
||||
form.value = res
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
@@ -325,8 +326,6 @@ async function getDetailAjax(shopId: string, licenceNo: string) {
|
||||
|
||||
// 获取containerDomInfo信息
|
||||
function getContainerDomInfo() {
|
||||
console.log('getContainerDomInfo');
|
||||
|
||||
containerDomInfo.value = containerRef.value?.getBoundingClientRect() ?? {}
|
||||
}
|
||||
|
||||
@@ -336,14 +335,18 @@ onMounted(() => {
|
||||
getContainerDomInfo()
|
||||
window.addEventListener('resize', debouncedCheckWidth)
|
||||
|
||||
const type = route.query.type
|
||||
const shopId: string = String(route.query.shopId ?? '')
|
||||
const licenceNo: string = String(route.query.licenceNo ?? '')
|
||||
if (shopId && licenceNo) {
|
||||
formType.value = 'editor'
|
||||
getDetailAjax(shopId, licenceNo)
|
||||
|
||||
if (shopId) {
|
||||
getDetailAjax(shopId)
|
||||
}
|
||||
|
||||
if (licenceNo && type && type == 'editor') {
|
||||
formType.value = 'editor'
|
||||
}
|
||||
|
||||
const type = route.query.type
|
||||
if (type && type == 'check') {
|
||||
formType.value = 'check'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user