hookehuyr

✨ feat: 每个表单发布周期配置单独的设置,添加标识

...@@ -77,8 +77,9 @@ onMounted(async () => { ...@@ -77,8 +77,9 @@ onMounted(async () => {
77 const raw_url = encodeURIComponent(location.pathname + location.hash); 77 const raw_url = encodeURIComponent(location.pathname + location.hash);
78 const flow_node_code = getUrlParams(location.href) ? getUrlParams(location.href).flow_node_code : ''; // flow_node_code 表示随机选择的流程节点的ID 78 const flow_node_code = getUrlParams(location.href) ? getUrlParams(location.href).flow_node_code : ''; // flow_node_code 表示随机选择的流程节点的ID
79 const force_back = getUrlParams(location.href) ? getUrlParams(location.href).force_back : ''; // force_back=1 时,强制按照后台用户模式检查权限 79 const force_back = getUrlParams(location.href) ? getUrlParams(location.href).force_back : ''; // force_back=1 时,强制按照后台用户模式检查权限
80 + const x_cycle = getUrlParams(location.href) ? getUrlParams(location.href).x_cycle : ''; // 周期ID标识
80 // 数据收集设置 81 // 数据收集设置
81 - const { data } = await getFormSettingAPI({ form_code: code, page_type, data_id, flow_node_code, force_back }); 82 + const { data } = await getFormSettingAPI({ form_code: code, page_type, data_id, flow_node_code, force_back, x_cycle });
82 const form_setting = {}; 83 const form_setting = {};
83 if (data.length) { 84 if (data.length) {
84 Object.assign(form_setting, data[0]['property_list'], data[0]['extend']); 85 Object.assign(form_setting, data[0]['property_list'], data[0]['extend']);
......
1 <!-- 1 <!--
2 * @Date: 2022-07-18 10:22:22 2 * @Date: 2022-07-18 10:22:22
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-11-21 17:33:00 4 + * @LastEditTime: 2024-11-27 16:23:08
5 * @FilePath: /data-table/src/views/index.vue 5 * @FilePath: /data-table/src/views/index.vue
6 * @Description: 首页 6 * @Description: 首页
7 --> 7 -->
...@@ -388,7 +388,7 @@ onMounted(async () => { ...@@ -388,7 +388,7 @@ onMounted(async () => {
388 document 388 document
389 .querySelector("body") 389 .querySelector("body")
390 .setAttribute("style", `background-color: ${styleColor.backgroundColor}`); 390 .setAttribute("style", `background-color: ${styleColor.backgroundColor}`);
391 - const { data, flow_process_list, code } = await queryFormAPI({ form_code: $route.query.code, page_type, data_id, flow_node_code, force_back, openid: iframe_openid }); // flow_node_code 表示随机选择的流程节点的ID 391 + const { data, flow_process_list, code } = await queryFormAPI({ form_code: $route.query.code, page_type, data_id, flow_node_code, force_back, openid: iframe_openid, x_cycle }); // flow_node_code 表示随机选择的流程节点的ID
392 const form_data = data; 392 const form_data = data;
393 // 处理审批意见显示 393 // 处理审批意见显示
394 if (code) { 394 if (code) {
......