Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
kstsixeam
4 years ago
Commit
45f483c571145548ba1bc98f6935dc450dc48ce5
1 parent
aff8ebf7
值班管理通知信息
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
9 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/dutyIndex.js
hg-monitor-web-base/src/main/resources/static/src/controller/dutyIndex.js
View file @
45f483c
...
...
@@ -232,7 +232,8 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
return
;
}
var
useraccount
=
$
(
this
).
attr
(
'data-useraccount'
);
var
dutyTime
=
$
(
this
).
attr
(
'data-dutytime'
);
var
dutyTime
=
$
(
this
).
attr
(
'data-dutytime'
);
var
dutyDuration
=
$
(
this
).
attr
(
'data-dutyduration'
);
//权限判断
var
judge
=
false
;
//角色
...
...
@@ -264,7 +265,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
}
//自己不能调换自己
var
id
=
$
(
this
).
attr
(
'data-id'
);
exchange
(
id
);
exchange
(
id
,
dutyTime
,
dutyDuration
);
});
}
...
...
@@ -356,7 +357,7 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
}
//调换
function
exchange
(
id
)
{
function
exchange
(
id
,
changeDutyTime
,
changeDutyDuration
)
{
layer
.
open
({
type
:
1
//Page层类型
,
area
:
[
'40%'
,
'46%'
]
...
...
@@ -384,11 +385,14 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
form
.
render
();
}
,
yes
:
function
(
index
,
layero
)
{
var
changeUserName
=
''
;
var
changeUserAccount
=
''
;
//调班
if
(
exchangeSign
==
1
)
{
if
(
exchangeSign
==
1
)
{
//如果已经选择了调班对象,不能再选择其他对象
var
judge
=
iSExchange
(
id
);
if
(
!
judge
){
var
judge
=
iSExchange
(
id
);
if
(
!
judge
)
{
layer
.
msg
(
'调班过程中不能再次调班!'
,
{
icon
:
7
,
time
:
3000
});
return
;
}
...
...
@@ -402,6 +406,9 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
if
(
v
.
value
==
changeUserId
[
0
])
{
if
(
v
.
code
==
user
)
{
flagUser
=
1
;
}
else
{
changeUserName
=
v
.
name
;
changeUserAccount
=
v
.
code
;
}
}
});
...
...
@@ -431,6 +438,9 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
if
(
v
.
value
==
changeUserId
[
0
])
{
if
(
v
.
code
==
user
)
{
flagUser
=
1
;
}
else
{
changeUserName
=
v
.
name
;
changeUserAccount
=
v
.
code
;
}
}
});
...
...
@@ -441,9 +451,13 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'treeTabl
}
var
duty
=
{
id
:
id
,
changeUserId
:
changeUserId
[
0
]?
changeUserId
[
0
]:
''
,
changeDateTimeId
:
changeDataTime
?
changeDataTime
.
toString
():
''
,
exchangeSign
:
exchangeSign
?
exchangeSign
.
toString
():
''
changeUserId
:
changeUserId
[
0
]
?
changeUserId
[
0
]
:
''
,
changeDateTimeId
:
changeDataTime
?
changeDataTime
.
toString
()
:
''
,
exchangeSign
:
exchangeSign
?
exchangeSign
.
toString
()
:
''
,
changeDutyTime
,
changeDutyDuration
,
changeUserName
,
changeUserAccount
}
admin
.
req
({
url
:
domainName
+
'/api-web/manage/duty/save?access_token='
+
accessToken
,
...
...
Please
register
or
login
to post a comment