hookehuyr

参数指定的,或者随机选择的流程节点的ID

...@@ -81,8 +81,9 @@ onMounted(async () => { ...@@ -81,8 +81,9 @@ onMounted(async () => {
81 */ 81 */
82 const page_type = getUrlParams(location.href) ? getUrlParams(location.href).page_type : ''; 82 const page_type = getUrlParams(location.href) ? getUrlParams(location.href).page_type : '';
83 const raw_url = encodeURIComponent(location.pathname + location.hash); 83 const raw_url = encodeURIComponent(location.pathname + location.hash);
84 + const flow_node_code = getUrlParams(location.href) ? getUrlParams(location.href).flow_node_code : ''; // flow_node_code 表示随机选择的流程节点的ID
84 // 数据收集设置 85 // 数据收集设置
85 - const { data } = await getFormSettingAPI({ form_code: code, page_type, data_id }); 86 + const { data } = await getFormSettingAPI({ form_code: code, page_type, data_id, flow_node_code });
86 const form_setting = {}; 87 const form_setting = {};
87 if (data.length) { 88 if (data.length) {
88 Object.assign(form_setting, data[0]['property_list'], data[0]['extend']); 89 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-07-09 16:54:57 4 + * @LastEditTime: 2024-07-12 09:54:41
5 * @FilePath: /data-table/src/views/index.vue 5 * @FilePath: /data-table/src/views/index.vue
6 * @Description: 首页 6 * @Description: 首页
7 --> 7 -->
...@@ -340,7 +340,7 @@ onMounted(async () => { ...@@ -340,7 +340,7 @@ onMounted(async () => {
340 document 340 document
341 .querySelector("body") 341 .querySelector("body")
342 .setAttribute("style", `background-color: ${styleColor.backgroundColor}`); 342 .setAttribute("style", `background-color: ${styleColor.backgroundColor}`);
343 - 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, 用来过滤流程显示字段 343 + 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
344 const form_data = data; 344 const form_data = data;
345 // 缓存表单信息 345 // 缓存表单信息
346 store.changeFormInfo(data); 346 store.changeFormInfo(data);
......
...@@ -27,9 +27,9 @@ export default ({ command, mode }) => { ...@@ -27,9 +27,9 @@ export default ({ command, mode }) => {
27 // define: '', // 定义全局常量替换方式。其中每项在开发环境下会被定义在全局,而在构建时被静态替换。 27 // define: '', // 定义全局常量替换方式。其中每项在开发环境下会被定义在全局,而在构建时被静态替换。
28 plugins: [ // 将要用到的插件数组。Falsy 虚值的插件将被忽略,插件数组将被扁平化(flatten)。查看 插件 API 获取 Vite 插件的更多细节。 28 plugins: [ // 将要用到的插件数组。Falsy 虚值的插件将被忽略,插件数组将被扁平化(flatten)。查看 插件 API 获取 Vite 插件的更多细节。
29 vue(), 29 vue(),
30 - Components({ 30 + // Components({
31 - // resolvers: [VantResolver()], 31 + // // resolvers: [VantResolver()],
32 - }), 32 + // }),
33 // styleImport({ 33 // styleImport({
34 // resolves: [VantResolve()], 34 // resolves: [VantResolve()],
35 // libs: [ 35 // libs: [
......