hookehuyr

feat(cycle-selection): 添加周期备注显示并移除调试日志

在周期选择弹窗中添加周期备注的显示,并移除新增状态下的调试日志输出
同时更新开发环境配置文件,添加新的代理目标
1 ### 1 ###
2 # @Date: 2023-02-13 14:56:34 2 # @Date: 2023-02-13 14:56:34
3 # @LastEditors: hookehuyr hookehuyr@gmail.com 3 # @LastEditors: hookehuyr hookehuyr@gmail.com
4 - # @LastEditTime: 2024-08-12 17:13:16 4 + # @LastEditTime: 2025-09-09 17:05:22
5 # @FilePath: /data-table/.env.development 5 # @FilePath: /data-table/.env.development
6 # @Description: 文件描述 6 # @Description: 文件描述
7 ### 7 ###
...@@ -27,6 +27,7 @@ VITE_PROXY_TARGET = http://oa-dev.onwall.cn ...@@ -27,6 +27,7 @@ VITE_PROXY_TARGET = http://oa-dev.onwall.cn
27 # VITE_PROXY_TARGET = http://oa.onwall.cn 27 # VITE_PROXY_TARGET = http://oa.onwall.cn
28 # VITE_PROXY_TARGET = https://www.wxgzjs.cn/ 28 # VITE_PROXY_TARGET = https://www.wxgzjs.cn/
29 # VITE_PROXY_TARGET = https://oa.baorongsi.com/ 29 # VITE_PROXY_TARGET = https://oa.baorongsi.com/
30 +# VITE_PROXY_TARGET = https://oa.jcedu.org/
30 31
31 # PC端地址 32 # PC端地址
32 VITE_MOBILE_URL = http://localhost:5173/ 33 VITE_MOBILE_URL = http://localhost:5173/
......
No preview for this file type
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
4 <div class="cycle-popup"> 4 <div class="cycle-popup">
5 <div class="popup-header"> 5 <div class="popup-header">
6 <h3>选择周期</h3> 6 <h3>选择周期</h3>
7 + <p>{{ cycle_note }}</p>
7 </div> 8 </div>
8 <div class="popup-content"> 9 <div class="popup-content">
9 <van-radio-group v-model="selectedCycle"> 10 <van-radio-group v-model="selectedCycle">
...@@ -55,6 +56,7 @@ const themeVars = { ...@@ -55,6 +56,7 @@ const themeVars = {
55 // 周期选择相关变量 56 // 周期选择相关变量
56 const cycleList = ref([]); 57 const cycleList = ref([]);
57 const selectedCycle = ref(''); 58 const selectedCycle = ref('');
59 +const cycle_note = ref('');
58 60
59 /** 61 /**
60 * 动态计算弹窗内容区域高度 62 * 动态计算弹窗内容区域高度
...@@ -93,6 +95,7 @@ const getCycleList = async (form_code) => { ...@@ -93,6 +95,7 @@ const getCycleList = async (form_code) => {
93 } 95 }
94 // 设置周期列表 96 // 设置周期列表
95 cycleList.value = data.cycle_list; 97 cycleList.value = data.cycle_list;
98 + cycle_note.value = data.cycle_note;
96 // 计算高度 99 // 计算高度
97 calculatePopupContentHeight(); 100 calculatePopupContentHeight();
98 } else { 101 } else {
...@@ -129,7 +132,7 @@ const confirmCycleSelection = () => { ...@@ -129,7 +132,7 @@ const confirmCycleSelection = () => {
129 }; 132 };
130 // 清除临时存储 133 // 清除临时存储
131 sessionStorage.removeItem('cycle_target_route'); 134 sessionStorage.removeItem('cycle_target_route');
132 - 135 +
133 // 检查是否需要显示未完成表单弹框 136 // 检查是否需要显示未完成表单弹框
134 checkUnfinishedForm(route); 137 checkUnfinishedForm(route);
135 } else { 138 } else {
...@@ -152,7 +155,6 @@ const confirmCycleSelection = () => { ...@@ -152,7 +155,6 @@ const confirmCycleSelection = () => {
152 const checkUnfinishedForm = (route) => { 155 const checkUnfinishedForm = (route) => {
153 // 只在新增状态时检查 156 // 只在新增状态时检查
154 if (route.query.page_type === 'add' || route.query.page_type === undefined) { 157 if (route.query.page_type === 'add' || route.query.page_type === undefined) {
155 - console.warn('表单为新增状态, 检查是否有未完成的表单信息');
156 const existingCookie = Cookies.get(route.query.code); 158 const existingCookie = Cookies.get(route.query.code);
157 if (existingCookie && route.query.force_back !== '1') { 159 if (existingCookie && route.query.force_back !== '1') {
158 // 显示确认对话框 160 // 显示确认对话框
......