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-31 10:55:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6fbb0fc0535926c3108f88fde3e0b446b6c85ebc
6fbb0fc0
1 parent
efe20093
fix 审批结果默认显示第一个
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
src/views/index.vue
src/views/index.vue
View file @
6fbb0fc
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-31 10:
14:24
* @LastEditTime: 2024-07-31 10:
53:58
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -60,7 +60,7 @@
<p style="margin-bottom: 1rem; font-size: 0.85rem; font-weight: bold;">审批结果</p>
<div style="margin-bottom: 1rem; border-left: 1px solid #eee; border-right: 1px solid #eee;">
<van-collapse ref="collapseRef" v-model="active_flow_process">
<van-collapse-item v-for="(item, index) in form_flow_process_list" :value="item.node_action_id === 'commit' ? '提交' : '驳回'" :name="item.
node_cod
e">
<van-collapse-item v-for="(item, index) in form_flow_process_list" :value="item.node_action_id === 'commit' ? '提交' : '驳回'" :name="item.
created_tim
e">
<template #title>
<div style="display: flex; align-items: center;">
<van-icon
...
...
@@ -424,11 +424,11 @@ onMounted(async () => {
setTimeout(() => {
form_flow_process_list.value = flow_process_list; // 上中下游节点的审批意见
if (flow_process_list?.length) {
// active_flow_process.value.push(flow_process_list[0]['node_cod
e']);
nextTick(() => {
// 全部展开
collapseRef.value?.toggleAll(true);
})
active_flow_process.value.push(flow_process_list[0]['created_tim
e']);
//
nextTick(() => {
//
// 全部展开
//
collapseRef.value?.toggleAll(true);
//
})
}
}, 1000);
}
...
...
Please
register
or
login
to post a comment