From 7e320b8a6827276af3db461e79125d99748920e8 Mon Sep 17 00:00:00 2001 From: helen Date: Tue, 17 Dec 2024 14:03:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BD=8F=E5=AE=BF=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/accommodation/index.vue | 400 +++++++++++++++++++++++ src/views/manage/noteManage/index.vue | 117 ++++--- src/views/manage/routeManage/index.vue | 10 +- tsconfig.json | 1 + 4 files changed, 477 insertions(+), 51 deletions(-) create mode 100644 src/views/manage/accommodation/index.vue diff --git a/src/views/manage/accommodation/index.vue b/src/views/manage/accommodation/index.vue new file mode 100644 index 0000000..1356937 --- /dev/null +++ b/src/views/manage/accommodation/index.vue @@ -0,0 +1,400 @@ + + + diff --git a/src/views/manage/noteManage/index.vue b/src/views/manage/noteManage/index.vue index df57478..a0a5cad 100644 --- a/src/views/manage/noteManage/index.vue +++ b/src/views/manage/noteManage/index.vue @@ -1,7 +1,6 @@ @@ -148,49 +166,51 @@ const total = ref(0); const queryFormRef = ref(); const notebookFormRef = ref(); - const value = ref('') +const value = ref(''); const options = [ { value: 'Option1', - label: 'Option1', + label: 'Option1' }, { value: 'Option2', - label: 'Option2', + label: 'Option2' }, { value: 'Option3', - label: 'Option3', + label: 'Option3' }, { value: 'Option4', - label: 'Option4', + label: 'Option4' }, { value: 'Option5', - label: 'Option5', - }, -] + label: 'Option5' + } +]; const statusoptions = [ -{ + { value: '1', - label: '全部', + label: '全部' }, { value: '2', - label: '已发布', + label: '已发布' }, { value: '3', - label: '未发布', + label: '未发布' } -] +]; const dialog = reactive({ visible: false, title: '' }); - +const concentdialog = reactive({ + visible: false +}); const initFormData: NotebookForm = { id: undefined, userid: undefined, @@ -284,7 +304,12 @@ const handleUpdate = async (row?: NotebookVO) => { dialog.visible = true; dialog.title = '修改笔记'; }; - +const contenttext = async (row?: NotebookVO) => { + const _id = row?.id; + const res = await getNotebook(_id); + Object.assign(form.value, res.data); + concentdialog.visible = true; +}; /** 提交按钮 */ const submitForm = () => { notebookFormRef.value?.validate(async (valid: boolean) => { @@ -296,7 +321,7 @@ const submitForm = () => { await addNotebook(form.value).finally(() => (buttonLoading.value = false)); } console.log(form.value.cover); - + proxy?.$modal.msgSuccess('操作成功'); // dialog.visible = false; await getList(); diff --git a/src/views/manage/routeManage/index.vue b/src/views/manage/routeManage/index.vue index 101bf4e..f07c917 100644 --- a/src/views/manage/routeManage/index.vue +++ b/src/views/manage/routeManage/index.vue @@ -95,7 +95,7 @@ - 添加 + 添加 @@ -111,11 +111,11 @@ - - + + - - + + diff --git a/tsconfig.json b/tsconfig.json index bb287e9..d55485f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,6 +19,7 @@ "paths": { "@/*": ["src/*"] }, + // "types": ["@types/element-plus","volar/overrides","vite/client"], "types": ["vite/client"], "skipLibCheck": true, "removeComments": true,