Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
紫光云
web-project
Commits
f98cb432
Commit
f98cb432
authored
Nov 05, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(月度统计公司下拉框): 延迟
parent
0f06f487
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
13 deletions
+10
-13
data.tsx
src/views/monthlyPlan/data.tsx
+0
-3
index.vue
src/views/monthlyPlan/index.vue
+10
-10
No files found.
src/views/monthlyPlan/data.tsx
View file @
f98cb432
...
...
@@ -198,9 +198,6 @@ export const seach: FormSchema[] = [
componentProps
:
{
options
:
[],
placeholder
:
'请选择所属公司'
,
// onChange: (e) => {
// params.value.deptId = e;
// },
},
colProps
:
{
span
:
4
},
},
...
...
src/views/monthlyPlan/index.vue
View file @
f98cb432
...
...
@@ -14,7 +14,7 @@
bordered
:loading=
"loadingRef"
:rowClassName=
"setRowClassName"
:scroll=
"{ x: 1300,y: 350 }"
:scroll=
"{ x: 1300,
y: 350 }"
>
<
template
#
sourceType=
"{ text, record }"
>
<a
@
click=
"showDetails(record)"
>
{{
text
}}
</a>
...
...
@@ -35,22 +35,22 @@
import
PageCard
from
'@/components/Page/src/PageCard.vue'
;
import
{
downloadByData
}
from
'@/utils/file/download'
;
import
{
seach
}
from
'@/views/monthlyPlan/data'
;
import
{
useUserStore
}
from
'@/store/modules/user'
;
const
deptId
=
ref
(
''
);
onMounted
(
async
()
=>
{
deptId
.
value
=
useUserStore
().
userInfo
.
deptParentId
;
if
(
deptId
.
value
==
'100'
)
{
const
data
=
await
getSelectDeptById
();
seach
[
1
].
componentProps
.
options
=
data
;
}
const
data
=
await
getSelectDeptById
();
updateSchema
({
field
:
'deptId'
,
componentProps
:
{
options
:
data
,
placeholder
:
'请选择所属公司'
,
},
});
params
.
value
.
monthYear
=
getCurrentDateFormatted
();
getStatisticList
();
});
defineOptions
({
name
:
'MonthlyPlan'
});
const
[
register
,
{
openModal
:
openModal
}]
=
useModal
();
const
formElRef
=
ref
<
Nullable
<
FormActionType
>>
(
null
);
const
[
registerForm
,
{
getFieldsValue
}]
=
useForm
({
const
[
registerForm
,
{
getFieldsValue
,
updateSchema
}]
=
useForm
({
labelWidth
:
90
,
baseColProps
:
{
span
:
24
},
schemas
:
seach
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment