diff --git a/components.d.ts b/components.d.ts
index 954241b4..927d5078 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -10,7 +10,6 @@ declare module 'vue' {
Add: typeof import('./src/components/toolbar/Add.vue')['default']
ArticleList2: typeof import('./src/components/list/ArticleList2.vue')['default']
ArticleList3: typeof import('./src/components/list/ArticleList3.vue')['default']
- ArticleListFQ: typeof import('./src/components/article/ArticleList-FQ.vue')['default']
Backgorund: typeof import('./src/components/Backgorund.vue')['default']
BaseButton: typeof import('./src/components/BaseButton.vue')['default']
BaseIcon: typeof import('./src/components/BaseIcon.vue')['default']
@@ -23,10 +22,10 @@ declare module 'vue' {
DictGroup: typeof import('./src/components/toolbar/DictGroup.vue')['default']
DictItem: typeof import('./src/components/list/DictItem.vue')['default']
DictList: typeof import('./src/components/list/DictList.vue')['default']
+ DictListPanel: typeof import('./src/components/DictListPanel.vue')['default']
EditAbleText: typeof import('./src/components/EditAbleText.vue')['default']
EditArticle: typeof import('./src/components/article/EditArticle.vue')['default']
EditBatchArticleModal: typeof import('./src/components/article/EditBatchArticleModal.vue')['default']
- EditBatchArticleModalFQ: typeof import('./src/components/article/EditBatchArticleModal-FQ.vue')['default']
EditSingleArticleModal: typeof import('./src/components/article/EditSingleArticleModal.vue')['default']
ElButton: typeof import('element-plus/es')['ElButton']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
diff --git a/src/pages/dict/components/DictListPanel.vue b/src/components/DictListPanel.vue
similarity index 100%
rename from src/pages/dict/components/DictListPanel.vue
rename to src/components/DictListPanel.vue
diff --git a/src/components/article/ArticleList-FQ.vue b/src/components/article/ArticleList-FQ.vue
deleted file mode 100644
index 343a9c03..00000000
--- a/src/components/article/ArticleList-FQ.vue
+++ /dev/null
@@ -1,110 +0,0 @@
-
-
-
-
-
-
-
-
- {{ `${i + 1}. ${item.title}` }}
- {{ ` ${item.titleTranslate}` }}
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/article/EditBatchArticleModal-FQ.vue b/src/components/article/EditBatchArticleModal-FQ.vue
deleted file mode 100644
index a80cad1d..00000000
--- a/src/components/article/EditBatchArticleModal-FQ.vue
+++ /dev/null
@@ -1,365 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/components/dialog/DictDiglog.vue b/src/components/dialog/DictDiglog.vue
index 91938a8f..58cc0525 100644
--- a/src/components/dialog/DictDiglog.vue
+++ b/src/components/dialog/DictDiglog.vue
@@ -1,13 +1,11 @@
@@ -515,49 +186,10 @@ onMounted(() => {
:show-close="false">
-
-
-
-
-
![]()
-
{{ item.name }}
-
-
-
-
-
-
-
-
-
-
-
- 翻译:
-
- {{ i }}
-
-
-
-
-
-
-
+
@@ -571,7 +203,7 @@ onMounted(() => {
width="20" color="#929596"
icon="ion:close-outline"/>
-
+
开始日期:-
@@ -604,8 +236,8 @@ onMounted(() => {
-
-
学习设置
+
学习设置
+
每章单词数
@@ -681,85 +313,16 @@ onMounted(() => {
-
-
{{ wordFormMode === FormMode.Add ? '添加' : '修改' }}单词
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 关闭
- {{
- wordFormMode === FormMode.Add ? '添加' : '保存'
- }}
-
-
-
-
-
-
- {{ dictIsArticle ? '文章' : '章节' }}列表
-
-
- 单词列表
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
{{ dictIsArticle ? '文章' : '章节' }}列表
+
+
@@ -781,62 +344,6 @@ onMounted(() => {
切换
-
-
-
{{ dictForm.id ? '修改' : '添加' }}词典
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 关闭
- 确定
-
-
-
-
@@ -848,9 +355,6 @@ onMounted(() => {
diff --git a/src/components/list/ArticleList2.vue b/src/components/list/ArticleList2.vue
index a782ee55..66c2bff4 100644
--- a/src/components/list/ArticleList2.vue
+++ b/src/components/list/ArticleList2.vue
@@ -82,11 +82,13 @@ watch(() => props.list, () => {
@click="emit('selectItem',source)"
>
-
-
{{ `${index + 1}. ${source.title}` }}
-
-
-
{{ ` ${source.titleTranslate}` }}
+
+
+
{{ `${index + 1}. ${source.title}` }}
+
+
+
{{ ` ${source.titleTranslate}` }}
+
diff --git a/src/components/list/ChapterList.vue b/src/components/list/ChapterList.vue
index c0a936b3..ce07ee16 100644
--- a/src/components/list/ChapterList.vue
+++ b/src/components/list/ChapterList.vue
@@ -14,7 +14,6 @@ const props = defineProps<{
const emit = defineEmits<{
'update:activeIndex': [index: number]
- del: [index: number]
}>()
const runtimeStore = useRuntimeStore()
@@ -43,28 +42,23 @@ function showWordListModal(index: number, item: Word[]) {
-
- {{ index + 1 }}. {{ item.title }}
-
- {{ item.titleTranslate }}
-
-
- 第{{ index + 1 }}章 {{ item.length }}词
-
-
+
+
+ {{ index + 1 }}. {{ item.title }}
+
+ {{ item.titleTranslate }}
+
+
+ 第{{ index + 1 }}章 {{ item.length }}词
+
+
+
-
-
-
diff --git a/src/components/list/CommonWordList.vue b/src/components/list/CommonWordList.vue
index 57fd312d..ad73ba97 100644
--- a/src/components/list/CommonWordList.vue
+++ b/src/components/list/CommonWordList.vue
@@ -59,13 +59,15 @@ const playWordAudio = usePlayWordAudio()
@click="emit('change',{word:source,index})"
>
-
- {{ source.name }}
- {{ source.usphone }}
-
-
-
-
{{ item }}
+
+
+ {{ source.name }}
+ {{ source.usphone }}
+
+
+
diff --git a/src/components/list/VirtualWordList.vue b/src/components/list/VirtualWordList.vue
index 7138b505..81a09f80 100644
--- a/src/components/list/VirtualWordList.vue
+++ b/src/components/list/VirtualWordList.vue
@@ -76,13 +76,15 @@ defineExpose({scrollToBottom})
@click="emit('change',{word:source,index})"
>
-
- {{ source.name }}
- {{ source.usphone }}
-
-
-
-
{{ item }}
+
+
+ {{ source.name }}
+ {{ source.usphone }}
+
+
+
diff --git a/src/pages/dict/DictManage.vue b/src/pages/dict/DictManage.vue
index a2350aeb..a27b2b03 100644
--- a/src/pages/dict/DictManage.vue
+++ b/src/pages/dict/DictManage.vue
@@ -1,8 +1,7 @@
@@ -131,7 +121,7 @@ function back() {
@import "@/assets/css/variable";
-$modal-mask-bg: rgba(#000, .15);
-$radius: 16rem;
-$time: 0.3s;
-$header-height: 60rem;
-
#DictDialog {
font-size: 14rem;
position: fixed;
diff --git a/src/pages/dict/components/ArticleDictDetail.vue b/src/pages/dict/components/ArticleDictDetail.vue
index ae4428c7..58c7c98d 100644
--- a/src/pages/dict/components/ArticleDictDetail.vue
+++ b/src/pages/dict/components/ArticleDictDetail.vue
@@ -219,9 +219,15 @@ function exportData(val: { type: string, data?: Article }) {
}
function editDict() {
+ isEditDict = true
}
-defineExpose({getDictDetail})
+function add() {
+ emitter.emit(EventKey.openArticleListModal)
+}
+
+defineExpose({getDictDetail, add, editDict})
+
@@ -237,7 +243,7 @@ defineExpose({getDictDetail})
{{ runtimeStore.editDict.name }}
-
+
恢复默认
@@ -283,7 +289,7 @@ defineExpose({getDictDetail})
文章管理
{{ runtimeStore.editDict.articles.length }}篇
diff --git a/src/pages/dict/components/ChapterWordList.vue b/src/pages/dict/components/ChapterWordList.vue
index f9a8b3d7..839f1f95 100644
--- a/src/pages/dict/components/ChapterWordList.vue
+++ b/src/pages/dict/components/ChapterWordList.vue
@@ -16,6 +16,7 @@ const props = defineProps<{
emptyTitle?: string,
showAdd?: boolean,
list: Word[]
+ canOperation: boolean
}>()
const emit = defineEmits<{
@@ -95,7 +96,7 @@ useWindowClick(() => show = false)
-
+
editWord(val.word,val.index,'chapter')"
v-model:list="chapterWordList"/>
-
+
<
@@ -616,6 +627,8 @@ defineExpose({getDictDetail})
import DictManage from "@/pages/dict/DictManage.vue";
+import {onMounted} from "vue";
+import {useRoute} from "vue-router";
+
+const router = useRoute()
+
+onMounted(()=>{
+
+})
-