hookehuyr

fix flow_node_code 获取方式修改

<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-15 18:26:54
* @LastEditTime: 2024-07-16 15:29:29
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
......@@ -332,12 +332,14 @@ const onBindSubmit = (values) => {
})
};
const flow_node_code = getUrlParams(location.href) ? getUrlParams(location.href).flow_node_code : formSetting.value.flow_node_code; // flow_node_code 表示随机选择的流程节点的ID
onMounted(async () => {
// TAG: 全局背景色
document
.querySelector("body")
.setAttribute("style", `background-color: ${styleColor.backgroundColor}`);
const { data } = await queryFormAPI({ form_code: $route.query.code, page_type, data_id, flow_node_code: formSetting.value.flow_node_code }); // flow_node_code 表示随机选择的流程节点的ID
const { data } = await queryFormAPI({ form_code: $route.query.code, page_type, data_id, flow_node_code }); // flow_node_code 表示随机选择的流程节点的ID
const form_data = data;
// 缓存表单信息
store.changeFormInfo(data);
......@@ -682,7 +684,6 @@ onMounted(async () => {
setTimeout(() => {
// 审核操作列表数据
approval_actions.value = formSetting.value.flow_node_action_list?.map((item) => { return { name: item.btnText, id: item.id } });
console.log("🚀 ~ file: index.vue:683 ~ setTimeout ~ formSetting.value:", formSetting.value);
}, 1000);
});
......@@ -1054,7 +1055,7 @@ const onSubmit = async (values) => {
form_code: $route.query.code,
data: postData.value,
data_id,
flow_node_code: formSetting.value.flow_node_code,
flow_node_code,
flow_node_action_id: flow_node_action_id.value,
flow_content: approval_note.value
});
......