
--- client/views/component/CardViewList.vue
+++ client/views/component/CardViewList.vue
... | ... | @@ -7,31 +7,12 @@ |
7 | 7 |
</div> |
8 | 8 |
<button type="button" class="gopage" @click="fnMoveTo(routeName, null)">모두보기</button> |
9 | 9 |
</div> |
10 |
- <ul> |
|
11 |
- <li v-for="(item, idx2) of list" :key="idx2" class="result-box mb-15"> |
|
12 |
- <div class="main-img"> |
|
13 |
- <img v-if="item.hasOwnProperty('files') && item.files.length > 0" :src="item.files[0].filePath" :alt="item.sj + ' 첫 번째 이미지'"> |
|
14 |
- <img v-else src="client/resources/images/img6.png" alt="Not found image"> |
|
15 |
- </div> |
|
16 |
- <div class="text-box"> |
|
17 |
- <h5>{{ item.sj }}</h5> |
|
18 |
- <p v-if="name === 'P' || name === 'V'" class="address">{{ item.adres }}</p> |
|
19 |
- <p class="text">{{ item.cn }}</p> |
|
20 |
- <div class="mb-20"> |
|
21 |
- <ul class="category"> |
|
22 |
- <li v-for="(ctgry, idx3) of item.ctgrys" :key="idx3" class="category1">{{ ctgry.ctgryNm }}</li> |
|
23 |
- </ul> |
|
24 |
- </div> |
|
25 |
- <div class="date"> |
|
26 |
- <ul> |
|
27 |
- <li>생산연도 <b>{{ item.prdctnYear ? item.prdctnYear : '-' }}</b></li> |
|
28 |
- <li>|</li> |
|
29 |
- <li>등록일 <b>{{ item.rgsde }}</b></li> |
|
30 |
- </ul> |
|
31 |
- </div> |
|
32 |
- </div> |
|
33 |
- </li> |
|
34 |
- </ul> |
|
10 |
+ <div v-if="searchResult.length > 0"> |
|
11 |
+ <CardStyleComponent :name="name" :list="searchResult" /> |
|
12 |
+ </div> |
|
13 |
+ <div v-else class="no-results"> |
|
14 |
+ <p>등록된 게시물이 없습니다.</p> |
|
15 |
+ </div> |
|
35 | 16 |
</div> |
36 | 17 |
</template> |
37 | 18 |
<script> |
--- client/views/pages/user/PicHistoryInsert.vue
+++ client/views/pages/user/PicHistoryInsert.vue
... | ... | @@ -150,7 +150,7 @@ |
150 | 150 |
|
151 | 151 |
created() { |
152 | 152 |
this.pageId = this.$route.query.id; |
153 |
- if (this.pageId !== null) { |
|
153 |
+ if (!this.$isEmpty(this.pageId)) { |
|
154 | 154 |
this.fnFindDcry(); // 상세 조회 |
155 | 155 |
} |
156 | 156 |
}, |
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?