Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
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
胡宝山
template_vue
Commits
db8a702a
Commit
db8a702a
authored
Oct 12, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限修改
parent
3c3507a2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
19 deletions
+62
-19
draw.js
src/api/equipment/draw.js
+13
-1
draw.vue
src/views/equipment/draw.vue
+14
-7
draw.vue
src/views/processManagement/draw.vue
+35
-11
No files found.
src/api/equipment/draw.js
View file @
db8a702a
...
@@ -43,10 +43,21 @@ export function detail(id) {
...
@@ -43,10 +43,21 @@ export function detail(id) {
})
})
}
}
// 菜单权限验证接口
// export function checkPermission(data) {
// return request({
// url: '/wbapply/checkPermission',
// method: 'post',
// data,
// headers: {
// 'Content-Type': 'application/json;charset=UTF-8'
// }
// })
// }
// 菜单权限验证接口
// 菜单权限验证接口
export
function
checkPermission
(
data
)
{
export
function
checkPermission
(
data
)
{
return
request
({
return
request
({
url
:
'/wb
apply/checkPermission
'
,
url
:
'/wb
warehouselog/checkPermissionTwo
'
,
method
:
'post'
,
method
:
'post'
,
data
,
data
,
headers
:
{
headers
:
{
...
@@ -55,6 +66,7 @@ export function checkPermission(data) {
...
@@ -55,6 +66,7 @@ export function checkPermission(data) {
})
})
}
}
// 根据type查询要处理的设备
// 根据type查询要处理的设备
export
function
canceListByType
(
params
)
{
export
function
canceListByType
(
params
)
{
return
request
({
return
request
({
...
...
src/views/equipment/draw.vue
View file @
db8a702a
...
@@ -342,9 +342,8 @@
...
@@ -342,9 +342,8 @@
<
span
style
=
"font-size: 15px"
>
您选择的设备入库时间较早,需要权限验证
<
/span
>
<
span
style
=
"font-size: 15px"
>
您选择的设备入库时间较早,需要权限验证
<
/span
>
<
/div
>
<
/div
>
<
el
-
form
ref
=
"form"
:
model
=
"loginform"
label
-
width
=
"80px"
>
<
el
-
form
ref
=
"form"
:
model
=
"loginform"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"密码"
>
<
el
-
form
-
item
label
=
"用户名"
>
<
el
-
input
v
-
model
=
"loginform.password"
type
=
"password"
placeholder
=
"请输入密码"
/>
<
el
-
input
v
-
model
=
"loginform.password"
placeholder
=
"请输入用户名"
/>
<
span
v
-
if
=
"twoerrorPassword"
style
=
"font-size: 14px;color: red"
>
密码错误
,
请重试
<
/span
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
>
<
el
-
form
-
item
>
<
el
-
button
type
=
"primary"
@
click
=
"handleConfirm"
>
确定
<
/el-button
>
<
el
-
button
type
=
"primary"
@
click
=
"handleConfirm"
>
确定
<
/el-button
>
...
@@ -490,7 +489,6 @@ export default {
...
@@ -490,7 +489,6 @@ export default {
isSameMonths
(
dateArray
,
data
)
{
isSameMonths
(
dateArray
,
data
)
{
for
(
let
i
=
0
;
i
<
dateArray
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
dateArray
.
length
;
i
++
)
{
if
(
dateArray
[
i
].
getMonth
()
!==
data
.
getMonth
())
{
if
(
dateArray
[
i
].
getMonth
()
!==
data
.
getMonth
())
{
console
.
log
(
'111'
)
return
false
return
false
}
}
}
}
...
@@ -636,13 +634,20 @@ export default {
...
@@ -636,13 +634,20 @@ export default {
handleConfirm
()
{
handleConfirm
()
{
this
.
twoerrorPassword
=
false
this
.
twoerrorPassword
=
false
const
obj
=
{
const
obj
=
{
passWord
:
this
.
loginform
.
password
unlockType
:
'time'
,
unlockUsername
:
this
.
loginform
.
password
}
}
// 校验密码
checkPermission
(
obj
).
then
(
res
=>
{
checkPermission
(
obj
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
openLogin
=
false
this
.
openLogin
=
false
this
.
openHandle
=
false
this
.
openHandle
=
false
this
.
loadingDetail
=
false
this
.
loadingDetail
=
false
this
.
canceList
.
forEach
(
item
=>
{
item
.
unlockUsername
=
res
.
data
.
unlockUsername
item
.
unlockDate
=
res
.
data
.
unlockDate
}
)
// 提交选择中的数组
batchAddition
(
this
.
canceList
).
then
(
res
=>
{
batchAddition
(
this
.
canceList
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
openHandle
=
false
this
.
openHandle
=
false
...
@@ -656,7 +661,7 @@ export default {
...
@@ -656,7 +661,7 @@ export default {
}
}
}
)
}
)
}
else
if
(
res
.
code
===
null
)
{
}
else
if
(
res
.
code
===
null
)
{
this
.
twoerrorPassword
=
true
this
.
$message
.
error
(
res
.
message
)
}
}
}
)
}
)
}
,
}
,
...
@@ -683,7 +688,9 @@ export default {
...
@@ -683,7 +688,9 @@ export default {
phd
:
item
.
phd
,
phd
:
item
.
phd
,
psm
:
item
.
psm
,
psm
:
item
.
psm
,
prank
:
item
.
prank
,
prank
:
item
.
prank
,
rkDate
:
item
.
createDate
rkDate
:
item
.
createDate
,
unlockUsername
:
null
,
unlockDate
:
null
}
}
this
.
canceList
.
push
(
obj
)
this
.
canceList
.
push
(
obj
)
}
)
}
)
...
...
src/views/processManagement/draw.vue
View file @
db8a702a
...
@@ -358,9 +358,8 @@
...
@@ -358,9 +358,8 @@
<
span
style
=
"font-size: 15px"
>
您选择的设备入库日期较早
,
需要权限验证
<
/span
>
<
span
style
=
"font-size: 15px"
>
您选择的设备入库日期较早
,
需要权限验证
<
/span
>
<
/div
>
<
/div
>
<
el
-
form
ref
=
"form"
:
model
=
"menuform"
label
-
width
=
"80px"
>
<
el
-
form
ref
=
"form"
:
model
=
"menuform"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"密码"
>
<
el
-
form
-
item
label
=
"用户名"
>
<
el
-
input
v
-
model
=
"menuform.passWord"
type
=
"password"
placeholder
=
"请输入密码"
/>
<
el
-
input
v
-
model
=
"menuform.passWord"
placeholder
=
"请输入用户名"
/>
<
span
v
-
if
=
"twoerrorPassword"
style
=
"font-size: 14px;color: red"
>
密码错误
,
请重试
<
/span
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
>
<
el
-
form
-
item
>
<
el
-
button
type
=
"primary"
@
click
=
"handlemenuConfirm"
>
确定
<
/el-button
>
<
el
-
button
type
=
"primary"
@
click
=
"handlemenuConfirm"
>
确定
<
/el-button
>
...
@@ -373,9 +372,8 @@
...
@@ -373,9 +372,8 @@
<
span
style
=
"font-size: 15px"
>
当前选择跨越设备需要权限验证
<
/span
>
<
span
style
=
"font-size: 15px"
>
当前选择跨越设备需要权限验证
<
/span
>
<
/div
>
<
/div
>
<
el
-
form
ref
=
"form"
:
model
=
"loginform"
label
-
width
=
"80px"
>
<
el
-
form
ref
=
"form"
:
model
=
"loginform"
label
-
width
=
"80px"
>
<
el
-
form
-
item
label
=
"密码"
>
<
el
-
form
-
item
label
=
"用户名"
>
<
el
-
input
v
-
model
=
"loginform.password"
type
=
"password"
placeholder
=
"请输入密码"
/>
<
el
-
input
v
-
model
=
"loginform.password"
placeholder
=
"请输入用户名"
/>
<
span
v
-
if
=
"errorPassword"
style
=
"font-size: 14px;color: red"
>
密码错误
,
请重试
<
/span
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
>
<
el
-
form
-
item
>
<
el
-
button
type
=
"primary"
@
click
=
"handleConfirm"
>
确定
<
/el-button
>
<
el
-
button
type
=
"primary"
@
click
=
"handleConfirm"
>
确定
<
/el-button
>
...
@@ -392,6 +390,12 @@ export default {
...
@@ -392,6 +390,12 @@ export default {
name
:
'Draw'
,
name
:
'Draw'
,
data
()
{
data
()
{
return
{
return
{
// 选择跨越设备校验
oneTemp
:
{
check
:
false
,
userName
:
''
,
time
:
''
}
,
twoerrorPassword
:
false
,
twoerrorPassword
:
false
,
errorPassword
:
false
,
errorPassword
:
false
,
// 数据字典列表
// 数据字典列表
...
@@ -650,14 +654,20 @@ export default {
...
@@ -650,14 +654,20 @@ export default {
}
,
}
,
handlemenuConfirm
()
{
handlemenuConfirm
()
{
const
obj
=
{
const
obj
=
{
passWord
:
this
.
menuform
.
passWord
unlockType
:
'time'
,
unlockUsername
:
this
.
menuform
.
passWord
}
}
console
.
log
(
'obj'
,
obj
)
checkPermission
(
obj
).
then
(
res
=>
{
checkPermission
(
obj
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
menu
=
false
this
.
menu
=
false
this
.
loadingDetail
=
false
this
.
loadingDetail
=
false
this
.
openHandle
=
false
this
.
openHandle
=
false
this
.
twoerrorPassword
=
false
this
.
twoerrorPassword
=
false
this
.
canceList
.
forEach
(
item
=>
{
item
.
unlockUsername
=
res
.
data
.
unlockUsername
item
.
unlockDate
=
res
.
data
.
unlockDate
}
)
batchAddition
(
this
.
canceList
).
then
(
res
=>
{
batchAddition
(
this
.
canceList
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
openHandle
=
false
this
.
openHandle
=
false
...
@@ -667,7 +677,7 @@ export default {
...
@@ -667,7 +677,7 @@ export default {
}
}
}
)
}
)
}
else
if
(
res
.
code
===
null
)
{
}
else
if
(
res
.
code
===
null
)
{
this
.
twoerrorPassword
=
true
this
.
$message
.
error
(
res
.
message
)
}
}
}
)
}
)
}
,
}
,
...
@@ -688,6 +698,9 @@ export default {
...
@@ -688,6 +698,9 @@ export default {
this
.
loadingDetail
=
false
this
.
loadingDetail
=
false
this
.
openHandle
=
false
this
.
openHandle
=
false
this
.
isCheck
=
false
this
.
isCheck
=
false
this
.
oneTemp
.
check
=
false
this
.
oneTemp
.
userName
=
null
this
.
oneTemp
.
time
=
null
}
,
}
,
handcheckPermissionQuery
()
{
handcheckPermissionQuery
()
{
const
obj
=
{
const
obj
=
{
...
@@ -718,15 +731,20 @@ export default {
...
@@ -718,15 +731,20 @@ export default {
handleConfirm
()
{
handleConfirm
()
{
this
.
isClose
=
false
this
.
isClose
=
false
const
obj
=
{
const
obj
=
{
passWord
:
this
.
loginform
.
password
unlockType
:
'equipment'
,
unlockUsername
:
this
.
loginform
.
password
}
}
checkPermission
(
obj
).
then
(
res
=>
{
checkPermission
(
obj
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
console
.
log
(
'跨越设备'
)
this
.
openHandle
=
false
this
.
openHandle
=
false
this
.
loadingDetail
=
false
this
.
loadingDetail
=
false
this
.
errorPassword
=
false
this
.
errorPassword
=
false
this
.
openLogin
=
false
this
.
openLogin
=
false
this
.
isClose
=
true
this
.
isClose
=
true
this
.
oneTemp
.
check
=
true
this
.
oneTemp
.
userName
=
res
.
data
.
unlockUsername
this
.
oneTemp
.
time
=
res
.
data
.
unlockDate
const
obj
=
{
const
obj
=
{
sort
:
'1'
,
sort
:
'1'
,
pn
:
this
.
pn
,
pn
:
this
.
pn
,
...
@@ -751,7 +769,7 @@ export default {
...
@@ -751,7 +769,7 @@ export default {
}
)
}
)
}
else
if
(
res
.
code
===
null
)
{
}
else
if
(
res
.
code
===
null
)
{
this
.
isClose
=
false
this
.
isClose
=
false
this
.
errorPassword
=
true
this
.
$message
.
error
(
res
.
message
)
}
}
}
)
}
)
}
,
}
,
...
@@ -782,7 +800,9 @@ export default {
...
@@ -782,7 +800,9 @@ export default {
phd
:
item
.
phd
,
phd
:
item
.
phd
,
psm
:
item
.
psm
,
psm
:
item
.
psm
,
prank
:
item
.
prank
,
prank
:
item
.
prank
,
rkDate
:
recycleDate
rkDate
:
recycleDate
,
unlockUsername
:
null
,
unlockDate
:
null
}
}
this
.
canceList
.
push
(
obj
)
this
.
canceList
.
push
(
obj
)
}
)
}
)
...
@@ -808,6 +828,10 @@ export default {
...
@@ -808,6 +828,10 @@ export default {
this
.
menu
=
true
this
.
menu
=
true
}
}
if
(
!
this
.
monthDate
)
{
if
(
!
this
.
monthDate
)
{
this
.
canceList
.
forEach
(
item
=>
{
item
.
unlockUsername
=
this
.
oneTemp
.
userName
item
.
unlockDate
=
this
.
oneTemp
.
time
}
)
batchAddition
(
this
.
canceList
).
then
(
res
=>
{
batchAddition
(
this
.
canceList
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
loadingDetail
=
false
this
.
loadingDetail
=
false
...
...
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