+
+
+.edit-btn {
+ position: absolute;
+ right: 0.7rem;
+ top: 1.2rem;
+}
+
\ No newline at end of file
diff --git a/src/components/wordDict/DictWrite.vue b/src/components/wordDict/DictWrite.vue
index 3f4fc83..b6dd169 100644
--- a/src/components/wordDict/DictWrite.vue
+++ b/src/components/wordDict/DictWrite.vue
@@ -9,6 +9,7 @@
:is-common="true"
@update:data="selectCategory = $event"
@change="onChange"
+ :value="formValue"
/>
@@ -34,11 +35,12 @@
name="word"
:is-essential="true"
:is-alert="wordTitleAlert"
+ :modelValue="titleValue"
@update:modelValue="wordTitle = $event"
/>
-
+
-
diff --git a/src/views/voteboard/voteboardWrite.vue b/src/views/voteboard/voteboardWrite.vue
index bb6f3d5..7dad489 100644
--- a/src/views/voteboard/voteboardWrite.vue
+++ b/src/views/voteboard/voteboardWrite.vue
@@ -1,39 +1,194 @@
-
-
-
-
-
- -
-
-
-
-
+
+
+
+
+
+ -
+
+
+
+
+
2명이상 선택해주세요
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/views/wordDict/wordDict.vue b/src/views/wordDict/wordDict.vue
index f030567..9e083fe 100644
--- a/src/views/wordDict/wordDict.vue
+++ b/src/views/wordDict/wordDict.vue
@@ -48,6 +48,7 @@
v-for="item in wordList"
:key="item.WRDDICSEQ"
:item="item"
+ :cateList="cateList"
/>
@@ -91,6 +92,7 @@
const { cateList } = commonApi({
loadCateList: true
});
+
const selectedCategory = ref('');
const selectCategory = ref('');
@@ -167,14 +169,13 @@
if(res.data.data == '1'){
toastStore.onToast('카테고리가 추가 등록 되었습니다.', 's');
const newCategory = { label: data, value: newValue };
- cateList.value.unshift(newCategory);
- selectCategory.value = newCategory.CMNCODVAL;
+ cateList.value = [newCategory, ...cateList.value];
+ selectedCategory.value = newCategory.value;
}
})
}
//용어 등록
const addWord = (wordData) => {
-
axios.post('worddict/insertWord',{
WRDDICCAT : wordData.category,
WRDDICTTL : wordData.title,