fix: UPLOAD page UI done.

This commit is contained in:
chiayin
2024-03-20 12:15:35 +08:00
parent dac4f5bb8c
commit 68c9e1569c

View File

@@ -15,7 +15,7 @@
<div> <div>
<div v-if="!isDisabled"></div> <div v-if="!isDisabled"></div>
<div v-else class="flex justify-start items-center space-x-2 duration-700"> <div v-else class="flex justify-start items-center space-x-2 duration-700">
<p class="text-primary text-sm"> <p v-if="informData.length !== 0" class="text-primary text-sm">
Need to select Need to select
<span v-for="(item, index) in informData" :key="index">{{ item.label }}<span v-if="index !== informData.length - 1">, </span></span>. <span v-for="(item, index) in informData" :key="index">{{ item.label }}<span v-if="index !== informData.length - 1">, </span></span>.
</p> </p>
@@ -45,7 +45,7 @@
:options="columnType" :options="columnType"
optionLabel="name" optionLabel="name"
placeholder="" placeholder=""
class="w-full !border-neutral-500" class="w-[180px] !border-neutral-500 "
:data-type="item" :data-type="item"
:inputId="index.toString()" :inputId="index.toString()"
:inputClass="[selectedColumns[index]?.color, 'text-sm']" :inputClass="[selectedColumns[index]?.color, 'text-sm']"
@@ -261,6 +261,7 @@ export default {
this.uploadFileName = this.fileName; this.uploadFileName = this.fileName;
// 設定第二階段上傳的 data // 設定第二階段上傳的 data
haveValueData.forEach(column => { haveValueData.forEach(column => {
if(column !== undefined) {
switch (column.code) { switch (column.code) {
case 'timestamp': case 'timestamp':
fetchData.timestamp = column.value; fetchData.timestamp = column.value;
@@ -283,6 +284,7 @@ export default {
default: default:
break; break;
} }
}
}); });
this.uploadConfirm(fetchData); this.uploadConfirm(fetchData);
}, },