Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-07-12 09:57:32 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c586d0de1226ae73bb3e679a3712d8eb95465fb2
c586d0de
1 parent
fe08729e
参数指定的,或者随机选择的流程节点的ID
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
src/App.vue
src/views/index.vue
vite.config.js
src/App.vue
View file @
c586d0d
...
...
@@ -81,8 +81,9 @@ onMounted(async () => {
*/
const page_type = getUrlParams(location.href) ? getUrlParams(location.href).page_type : '';
const raw_url = encodeURIComponent(location.pathname + location.hash);
const flow_node_code = getUrlParams(location.href) ? getUrlParams(location.href).flow_node_code : ''; // flow_node_code 表示随机选择的流程节点的ID
// 数据收集设置
const { data } = await getFormSettingAPI({ form_code: code, page_type, data_id });
const { data } = await getFormSettingAPI({ form_code: code, page_type, data_id
, flow_node_code
});
const form_setting = {};
if (data.length) {
Object.assign(form_setting, data[0]['property_list'], data[0]['extend']);
...
...
src/views/index.vue
View file @
c586d0d
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-
09 16:54:57
* @LastEditTime: 2024-07-
12 09:54:41
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -340,7 +340,7 @@ onMounted(async () => {
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: formSetting.value.flow_node_code }); // flow_node_code 表示随机选择的流程节点的ID
const form_data = data;
// 缓存表单信息
store.changeFormInfo(data);
...
...
vite.config.js
View file @
c586d0d
...
...
@@ -27,9 +27,9 @@ export default ({ command, mode }) => {
// define: '', // 定义全局常量替换方式。其中每项在开发环境下会被定义在全局,而在构建时被静态替换。
plugins
:
[
// 将要用到的插件数组。Falsy 虚值的插件将被忽略,插件数组将被扁平化(flatten)。查看 插件 API 获取 Vite 插件的更多细节。
vue
(),
Components
({
// resolvers: [VantResolver()],
}),
//
Components({
//
// resolvers: [VantResolver()],
//
}),
// styleImport({
// resolves: [VantResolve()],
// libs: [
...
...
Please
register
or
login
to post a comment