챗봇 캐릭터 등록시 리전 선택 기능 추가

This commit is contained in:
Yu Sung
2026-01-22 16:28:21 +09:00
parent 5e0657b057
commit bf52a63a52
2 changed files with 57 additions and 6 deletions

View File

@@ -79,6 +79,9 @@
<th class="text-center">
태그
</th>
<th class="text-center">
리전
</th>
<th class="text-center">
등록일
</th>
@@ -150,6 +153,7 @@
</div>
<span v-else>-</span>
</td>
<td>{{ getRegionText(item.region) }}</td>
<td>{{ item.createdAt }}</td>
<td>{{ item.updatedAt || '-' }}</td>
<td>
@@ -284,7 +288,11 @@ export default {
total_page: 0,
characters: [],
selected_character: {},
searchTerm: ''
searchTerm: '',
regionOptions: [
{ text: '한국', value: 'KR' },
{ text: '일본', value: 'JP' }
]
}
},
@@ -301,6 +309,11 @@ export default {
this.$dialog.notify.success(message)
},
getRegionText(region) {
if (!region) return '-';
const option = this.regionOptions.find(opt => opt.value === region);
return option ? option.text : region;
},
showDetailDialog(item, type) {
this.selected_character = item;