From 5737ea3bfb8a1dd2bfd3ac36fd0d5d89d562fcd9 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Mon, 26 Jan 2026 13:22:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=A4=8D=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- src/views/Recommend/Recommend.vue | 24 +++++++++++++++++++ .../Recommend/components/AddRecommend.vue | 20 ++++++++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-) diff --git a/.env.development b/.env.development index 3d457ce..1062333 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,6 @@ ENV='development' # base api -VUE_APP_BASE_API=http://zhiyuan-test.ali251.langye.net -VUE_APP_UPLOAD_API=http://zhiyuan-test.ali251.langye.net/api/admin/upload-file +VUE_APP_BASE_API=https://zhiyuan-test.ali251.langye.net +VUE_APP_UPLOAD_API=https://zhiyuan-test.ali251.langye.net/api/admin/upload-file VUE_APP_PREVIEW_API=http://view.ali251.langye.net:8012/onlinePreview diff --git a/src/views/Recommend/Recommend.vue b/src/views/Recommend/Recommend.vue index 38eeef9..f416116 100644 --- a/src/views/Recommend/Recommend.vue +++ b/src/views/Recommend/Recommend.vue @@ -210,6 +210,13 @@ @click="editRowEvent(row)" >编辑 + 复制 diff --git a/src/views/Recommend/components/AddRecommend.vue b/src/views/Recommend/components/AddRecommend.vue index 292021b..5657f74 100644 --- a/src/views/Recommend/components/AddRecommend.vue +++ b/src/views/Recommend/components/AddRecommend.vue @@ -285,6 +285,26 @@ export default { } }); }, + fillForm(data) { + // 填充表单数据 + this.form = { + name: data.name || '', + year: data.year || '', + school_way: data.school_way || '', + chong_max: data.chong_max || '', + chong_min: data.chong_min || '', + bao_max: data.bao_max || '', + bao_min: data.bao_min || '', + wen_max: data.wen_max || '', + wen_min: data.wen_min || '', + } + // 清除表单验证状态 + this.$nextTick(() => { + if (this.$refs['elForm']) { + this.$refs['elForm'].clearValidate() + } + }) + }, }, };