From 071994c0e0c294e3fcaa7960d2b36b2eeb125ad0 Mon Sep 17 00:00:00 2001 From: lixiaolong <702156524@qq.com> Date: Fri, 30 Oct 2026 15:28:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(app):=20=E4=BC=98=E5=8C=96=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E5=BA=94=E7=94=A8=E9=85=8D=E7=BD=AE=E5=92=8C?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加生产环境服务器地址配置支持内外网切换 - 实现采购列表只看我创建的功能开关 - 更新构建脚本中的默认生产环境API地址 - 优化采购单表格单元格编辑体验改用自动补全组件 - 调整应用更新检查逻辑增强生产环境兼容性 - 修复开发服务器切换时的一些验证问题 - 增强应用启动时的服务地址配置灵活性 --- .../project/achievements/components/AchievementEditor.vue | 4 +++- .../project/achievements/components/AchievementLedger.vue | 4 ++-- ruoyi-ui-vue3/src/views/project/achievements/index.vue | 2 +- ruoyi-ui-vue3/tests/runtime/project-workspace.spec.js | 6 ++++++ 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui-vue3/src/views/project/achievements/components/AchievementEditor.vue b/ruoyi-ui-vue3/src/views/project/achievements/components/AchievementEditor.vue index 14b6ab0..0ae8970 100644 --- a/ruoyi-ui-vue3/src/views/project/achievements/components/AchievementEditor.vue +++ b/ruoyi-ui-vue3/src/views/project/achievements/components/AchievementEditor.vue @@ -1,5 +1,5 @@ diff --git a/ruoyi-ui-vue3/tests/runtime/project-workspace.spec.js b/ruoyi-ui-vue3/tests/runtime/project-workspace.spec.js index b656926..35f92b2 100644 --- a/ruoyi-ui-vue3/tests/runtime/project-workspace.spec.js +++ b/ruoyi-ui-vue3/tests/runtime/project-workspace.spec.js @@ -259,6 +259,12 @@ it('ledger materials action opens the file tab directly without saving or reques expect(editor.findComponent({name:'ElTabs'}).props('modelValue')).toBe('materials') expect(api.listProjectDocuments).toHaveBeenCalledWith(71,99) expect(api.saveAchievement).not.toHaveBeenCalled() + await w.findAllComponents({name:'ElButton'}).find(c=>c.text()==='关闭').trigger('click');await flushPromises() + await button(w,'登记成果').trigger('click');await flushPromises() + const reopened=w.findComponent(AchievementEditor) + expect(reopened.get('[role="tab"][aria-selected="true"]').text()).toBe('基本资料') + expect(reopened.find('.editor-section').isVisible()).toBe(true) + expect(api.saveAchievement).not.toHaveBeenCalled() }) it('materials tab navigation is blocked while a transfer is running and unsaved form data is retained',async()=>{ const data={id:99,projectId:71,kind:'PAPER',title:'正在编辑的成果',details:{},participantIds:[],archived:0}