sonar low all done
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
<!-- Upload table -->
|
<!-- Upload table -->
|
||||||
<div class="overflow-y-auto overflow-x-auto scrollbar max-h-[calc(100%_-_94px)]">
|
<div class="overflow-y-auto overflow-x-auto scrollbar max-h-[calc(100%_-_94px)]">
|
||||||
<table class="text-sm border-separate border-spacing-0 h-full overflow-y-auto overflow-x-auto scrollbar">
|
<table class="text-sm border-separate border-spacing-0 h-full overflow-y-auto overflow-x-auto scrollbar">
|
||||||
|
<caption class="hidden">Upload</caption>
|
||||||
<thead class="sticky top-0 bg-neutral-10">
|
<thead class="sticky top-0 bg-neutral-10">
|
||||||
<tr>
|
<tr>
|
||||||
<td v-for="(item, index) in uploadDetail?.columns" :key="index" class="border border-neutral-500 p-2 truncate max-w-[198px]">{{ item }}</td>
|
<td v-for="(item, index) in uploadDetail?.columns" :key="index" class="border border-neutral-500 p-2 truncate max-w-[198px]">{{ item }}</td>
|
||||||
@@ -125,7 +126,8 @@ export default {
|
|||||||
// 1. 長度一樣,強制每一個都要選
|
// 1. 長度一樣,強制每一個都要選
|
||||||
// 2. 不為 null undefind
|
// 2. 不為 null undefind
|
||||||
let hasValue = !this.selectedColumns.includes(undefined);
|
let hasValue = !this.selectedColumns.includes(undefined);
|
||||||
let result = !(this.selectedColumns.length === this.uploadDetail?.columns.length && this.informData.length === 0 && this.repeatedData.length === 0 && hasValue) ? true : false;
|
let result = !(this.selectedColumns.length === this.uploadDetail?.columns.length
|
||||||
|
&& this.informData.length === 0 && this.repeatedData.length === 0 && hasValue);
|
||||||
return result
|
return result
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -318,7 +320,6 @@ export default {
|
|||||||
if(vm.uploadId == null) {
|
if(vm.uploadId == null) {
|
||||||
vm.$router.push({name: 'Files', replace: true});
|
vm.$router.push({name: 'Files', replace: true});
|
||||||
vm.$toast.default('Please upload your file.', {position: 'bottom'});
|
vm.$toast.default('Please upload your file.', {position: 'bottom'});
|
||||||
return
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user