Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
temple_material_request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-09-12 13:16:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cbb3003dc0efc21a07895b99de9d1aa665260ca7
cbb3003d
1 parent
3c229504
fix 默认获取物资逻辑顺序修复
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/material_list.vue
src/views/material_list.vue
View file @
cbb3003
<!--
* @Date: 2024-07-23 10:50:38
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-
06 14:18:22
* @LastEditTime: 2024-09-
12 13:14:50
* @FilePath: /temple_material_request/src/views/material_list.vue
* @Description: 物资情况页面
-->
...
...
@@ -77,6 +77,8 @@ onMounted(async () => {
if (code) {
tabList.value = data;
if (tabList.value.length) {
// 没有指定的组别,默认选中第一个
dept_id.value = tabList.value[0]['dept_id'];
// 默认选中组别ID
tabList.value.forEach((item, index) => {
if (item.is_my_dept) { // 指定组别
...
...
@@ -84,8 +86,6 @@ onMounted(async () => {
active.value = index;
}
});
// 没有指定的组别,默认选中第一个
dept_id.value = tabList.value[0]['dept_id'];
}
}
});
...
...
Please
register
or
login
to post a comment