
--- client/views/component/CardViewList.vue
+++ client/views/component/CardViewList.vue
... | ... | @@ -7,8 +7,8 @@ |
7 | 7 |
</div> |
8 | 8 |
<button type="button" class="gopage" @click="fnMoveTo(routeName, null)">모두보기</button> |
9 | 9 |
</div> |
10 |
- <div v-if="searchResult.length > 0"> |
|
11 |
- <CardStyleComponent :name="name" :list="searchResult" /> |
|
10 |
+ <div v-if="list.length > 0"> |
|
11 |
+ <CardStyleComponent :name="name" :list="list" /> |
|
12 | 12 |
</div> |
13 | 13 |
<div v-else class="no-results"> |
14 | 14 |
<p>등록된 게시물이 없습니다.</p> |
... | ... | @@ -16,9 +16,15 @@ |
16 | 16 |
</div> |
17 | 17 |
</template> |
18 | 18 |
<script> |
19 |
+// COMPONENT |
|
20 |
+import CardStyleComponent from '@/views/component/listLayout/CardStyleComponent.vue'; |
|
19 | 21 |
export default { |
20 | 22 |
name: "CardViewList", |
21 | 23 |
|
24 |
+ components: { |
|
25 |
+ CardStyleComponent, |
|
26 |
+ }, |
|
27 |
+ |
|
22 | 28 |
props: { |
23 | 29 |
name: { |
24 | 30 |
type: String, |
--- client/views/pages/user/PicHistoryDetail.vue
+++ client/views/pages/user/PicHistoryDetail.vue
... | ... | @@ -172,7 +172,7 @@ |
172 | 172 |
// 파일 다운로드 |
173 | 173 |
async fnDownload(type) { |
174 | 174 |
// 유효성 검사 |
175 |
- if (this.selectedFiles.length === 1) { |
|
175 |
+ if (type === 'selected' && this.selectedFiles.length === 0) { |
|
176 | 176 |
alert("파일을 1개 이상 선택하거나 전체 다운로드를 클릭해주세요."); |
177 | 177 |
return; |
178 | 178 |
} |
... | ... | @@ -182,10 +182,8 @@ |
182 | 182 |
|
183 | 183 |
try { |
184 | 184 |
// 파일 ID 수집 |
185 |
- let fileIds = null; |
|
186 |
- if (type === 'selected') { |
|
187 |
- fileIds = this.selectedFiles[0]; |
|
188 |
- } else if (type === 'all') { |
|
185 |
+ let fileIds = this.selectedFiles[0]; |
|
186 |
+ if (type === 'all' && this.dcry.files.length > 1) { |
|
189 | 187 |
fileIds = this.dcry.files.map(file => file.fileId).join(','); |
190 | 188 |
} |
191 | 189 |
|
--- client/views/pages/user/PicHistorySearch.vue
+++ client/views/pages/user/PicHistorySearch.vue
... | ... | @@ -50,8 +50,8 @@ |
50 | 50 |
<p>카테고리</p> |
51 | 51 |
<ul> |
52 | 52 |
<li v-for="(category, idx) of categorys" :key="idx"> |
53 |
- <input type="checkbox" :id="category.ctgryId" name="categorys" :value="category.ctgryId" v-model="searchReqDTO.searchCtgries" /> |
|
54 |
- <label :for="category.ctgryId">{{ category.ctgryNm }}</label> |
|
53 |
+ <input type="checkbox" :id="'ctgry_' + idx" name="categorys" :value="category.ctgryId" v-model="searchReqDTO.searchCtgries" /> |
|
54 |
+ <label :for="'ctgry_' + idx">{{ category.ctgryNm }}</label> |
|
55 | 55 |
</li> |
56 | 56 |
</ul> |
57 | 57 |
</dd> |
--- client/views/pages/user/TotalSearch.vue
+++ client/views/pages/user/TotalSearch.vue
... | ... | @@ -75,8 +75,8 @@ |
75 | 75 |
<p>카테고리</p> |
76 | 76 |
<ul> |
77 | 77 |
<li v-for="(category, idx) of categorys" :key="idx"> |
78 |
- <input type="checkbox" :id="category.ctgryId" name="categorys" :value="category.ctgryId" v-model="searchReqDTO.searchCtgries" /> |
|
79 |
- <label :for="category.ctgryId">{{ category.ctgryNm }}</label> |
|
78 |
+ <input type="checkbox" :id="'ctgry_' + idx" name="categorys" :value="category.ctgryId" v-model="searchReqDTO.searchCtgries" /> |
|
79 |
+ <label :for="'ctgry_' + idx">{{ category.ctgryNm }}</label> |
|
80 | 80 |
</li> |
81 | 81 |
</ul> |
82 | 82 |
</dd> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?