Commit a1235faa by zhuzhequan

Merge remote-tracking branch 'origin/dev' into dev

parents 357d5412 483a8e61
...@@ -426,7 +426,13 @@ const submitExportForm = async () => { ...@@ -426,7 +426,13 @@ const submitExportForm = async () => {
try { try {
await exportPodUSInfo({ await exportPodUSInfo({
...params, ...params,
...(resourceType === 2 ? searchForm.value : {}), ...(resourceType === 2
? {
...searchForm.value,
startTime: timeRange.value?.[0] || null,
endTime: timeRange.value?.[1] || null,
}
: {}),
}) })
ElMessage.success('请求成功,请稍后到右上角[我的下载]中查看') ElMessage.success('请求成功,请稍后到右上角[我的下载]中查看')
exportVisible.value = false exportVisible.value = false
......
...@@ -424,7 +424,13 @@ const submitExportForm = async () => { ...@@ -424,7 +424,13 @@ const submitExportForm = async () => {
try { try {
await exportPodCnInfo({ await exportPodCnInfo({
...params, ...params,
...(resourceType === 2 ? searchForm.value : {}), ...(resourceType === 2
? {
...searchForm.value,
startTime: timeRange.value?.[0] || null,
endTime: timeRange.value?.[1] || null,
}
: {}),
}) })
ElMessage.success('请求成功,请稍后到右上角[我的下载]中查看') ElMessage.success('请求成功,请稍后到右上角[我的下载]中查看')
exportVisible.value = false exportVisible.value = false
......
...@@ -505,6 +505,7 @@ const renderItemBox = (bool: boolean) => { ...@@ -505,6 +505,7 @@ const renderItemBox = (bool: boolean) => {
: parts[0] : parts[0]
for (const product of productList) { for (const product of productList) {
if (product.podJomallCnNo === currentCode) { if (product.podJomallCnNo === currentCode) {
coverImage.value = product.previewImgs?.[0]?.url || ''
nextTick(() => { nextTick(() => {
tableRef.value?.setCurrentRow(product) tableRef.value?.setCurrentRow(product)
}) })
......
...@@ -2644,11 +2644,20 @@ const submitExportForm = async () => { ...@@ -2644,11 +2644,20 @@ const submitExportForm = async () => {
console.error('未知的资源类型:', resourceType) console.error('未知的资源类型:', resourceType)
} }
try { try {
const res = await exportPodCnInfo({ await exportPodCnInfo({
...params, ...params,
...(resourceType === 2 ? searchForm.value : {}), ...(resourceType === 2
? {
...searchForm.value,
startTime: timeRange.value?.[0] || null,
endTime: timeRange.value?.[1] || null,
}
: {}),
status: 'COMPLETE',
}) })
window.open(filePath + res.message, '_blank') ElMessage.success('请求成功,请稍后到右上角[我的下载]中查看')
// window.open(filePath + res.message, '_blank')
exportVisible.value = false exportVisible.value = false
exportLoading.value = false exportLoading.value = false
} catch (e) { } catch (e) {
......
...@@ -3063,7 +3063,13 @@ const submitExportForm = async () => { ...@@ -3063,7 +3063,13 @@ const submitExportForm = async () => {
try { try {
await exportPodUSInfo({ await exportPodUSInfo({
...params, ...params,
...(resourceType === 2 ? searchForm.value : {}), ...(resourceType === 2
? {
...searchForm.value,
startTime: timeRange.value?.[0] || null,
endTime: timeRange.value?.[1] || null,
}
: {}),
}) })
ElMessage.success('请求成功,请稍后到右上角[我的下载]中查看') ElMessage.success('请求成功,请稍后到右上角[我的下载]中查看')
exportVisible.value = false exportVisible.value = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment