Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-manager-ui
Commits
fe7a8d31
Commit
fe7a8d31
authored
Jan 23, 2025
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:优化考勤异常处理时数据不存在添加提示窗
parent
99bf9250
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
20 deletions
+22
-20
src/assets/mixins/formdialog.js
src/assets/mixins/formdialog.js
+0
-2
src/views/attendance/record/error/drawershow.vue
src/views/attendance/record/error/drawershow.vue
+22
-16
src/views/attendance/record/error/list.vue
src/views/attendance/record/error/list.vue
+0
-2
No files found.
src/assets/mixins/formdialog.js
View file @
fe7a8d31
...
...
@@ -123,8 +123,6 @@ export default {
}
})
:
this
.
afterRender
(
res
);
console
.
log
(
res
.
entity
);
})
.
catch
((
error
)
=>
{
...
...
src/views/attendance/record/error/drawershow.vue
View file @
fe7a8d31
...
...
@@ -6,7 +6,7 @@
:direction=
"direction"
size=
"50%"
>
<div
style=
"padding:
20px;font-size:
15px"
>
<div
style=
"padding:
20px; font-size:
15px"
>
<div>
已选择
{{
selection
.
length
}}
个:
</div>
<div
class=
"staffList mt20"
>
<div
v-for=
"item in selection"
:key=
"item"
class=
"mt10"
>
...
...
@@ -15,7 +15,7 @@
>
的
{{
item
.
goOrOff
}}
时间
{{
item
.
goOffDateTime
}}
打卡异常状态
</span
>
<span
class=
"ml10"
style=
"color:#f56c6c"
>
<span
class=
"ml10"
style=
"color:
#f56c6c"
>
{{
dict
[
"
errorStatus
"
][
item
.
errorStatus
]
}}
</span>
<span
class=
"ml10"
>
修改为
</span>
...
...
@@ -140,12 +140,20 @@ export default {
},
getInital
(
id
)
{
this
.
$post
(
this
.
urls
.
currUrl
+
"
?id=
"
+
id
).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
afterRender
();
this
.
dict
=
res
.
data
.
dict
;
}
});
console
.
log
(
id
);
this
.
$post
(
this
.
urls
.
currUrl
+
"
?id=
"
+
id
)
.
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
afterRender
();
this
.
dict
=
res
.
data
.
dict
;
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
// 保存
saveForm
()
{
...
...
@@ -167,15 +175,14 @@ export default {
}
//删除不必要的提交参数
if
(
this
.
dealParams
.
recordErrorEntities
.
length
>
0
){
let
newArrays
=
this
.
dealParams
.
recordErrorEntities
.
map
(
i
=>
{
let
obj
=
{}
obj
.
id
=
i
.
id
;
obj
.
staffId
=
i
.
staffId
;
if
(
this
.
dealParams
.
recordErrorEntities
.
length
>
0
)
{
let
newArrays
=
this
.
dealParams
.
recordErrorEntities
.
map
((
i
)
=>
{
let
obj
=
{};
obj
.
id
=
i
.
id
;
obj
.
staffId
=
i
.
staffId
;
return
obj
;
});
this
.
dealParams
.
recordErrorEntities
=
newArrays
this
.
dealParams
.
recordErrorEntities
=
newArrays
;
}
this
.
btnLoading
=
true
;
// 保存结果处理
...
...
@@ -189,7 +196,6 @@ export default {
})
.
catch
((
error
)
=>
{
this
.
btnLoading
=
false
;
console
.
log
(
error
);
this
.
$message
.
error
(
error
.
message
);
});
},
...
...
src/views/attendance/record/error/list.vue
View file @
fe7a8d31
...
...
@@ -310,12 +310,10 @@ export default {
},
// 处理
handle
(
err
)
{
console
.
log
(
err
);
this
.
$refs
.
drawerShow
.
edit
(
err
,
[]);
},
// 撤销
reCancle
(
err
)
{
console
.
log
(
err
);
this
.
currentParams
=
err
;
this
.
dialogVisible
=
true
;
},
...
...
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