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
96b197ec
Commit
96b197ec
authored
Aug 08, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除菜单
parent
05352b73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
15 deletions
+30
-15
draw.vue
src/views/equipment/draw.vue
+18
-3
draw.vue
src/views/processManagement/draw.vue
+12
-12
No files found.
src/views/equipment/draw.vue
View file @
96b197ec
...
@@ -75,8 +75,7 @@
...
@@ -75,8 +75,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"pgx"
prop=
"pgx"
>
<el-table-column
label=
"pgx"
prop=
"pgx"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.pgx === '001'"
>
压缩
</span>
<span>
{{
replace
(
scope
.
row
.
pgx
)
}}
</span>
<span
v-if=
"scope.row.pgx === '002'"
>
排水
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"pnumber"
prop=
"pnumber"
>
<el-table-column
label=
"pnumber"
prop=
"pnumber"
>
...
@@ -396,11 +395,12 @@ import {
...
@@ -396,11 +395,12 @@ import {
checkPermission
checkPermission
}
from
'@/api/equipment/draw'
}
from
'@/api/equipment/draw'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
import
{
getEquipment
}
from
'@/api/equipment/application'
import
{
getDictData
,
getEquipment
}
from
'@/api/equipment/application'
export
default
{
export
default
{
name
:
'Draw'
,
name
:
'Draw'
,
data
()
{
data
()
{
return
{
return
{
dictList
:
[],
number
:
''
,
number
:
''
,
monthDate
:
false
,
monthDate
:
false
,
// 是否切换库
// 是否切换库
...
@@ -511,8 +511,23 @@ export default {
...
@@ -511,8 +511,23 @@ export default {
}
,
}
,
created
()
{
created
()
{
this
.
getList
()
this
.
getList
()
this
.
getCodeDict
()
}
,
}
,
methods
:
{
methods
:
{
replace
(
value
)
{
return
this
.
dictList
.
find
(
item
=>
item
.
dictValue
===
value
).
dictLabel
}
,
getCodeDict
()
{
const
obj
=
{
key
:
'GX_CODE'
}
getDictData
(
obj
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
if
(
res
.
code
===
200
&&
res
.
data
!==
null
)
{
this
.
dictList
=
res
.
data
}
}
)
}
,
handleClose
()
{
handleClose
()
{
this
.
openLogin
=
false
this
.
openLogin
=
false
this
.
openHandle
=
true
this
.
openHandle
=
true
...
...
src/views/processManagement/draw.vue
View file @
96b197ec
...
@@ -378,7 +378,7 @@
...
@@ -378,7 +378,7 @@
<
/div
>
<
/div
>
<
/el-dialog
>
<
/el-dialog
>
<
el
-
dialog
title
=
"权限
校验
"
:
visible
.
sync
=
"menu"
width
=
"500px"
append
-
to
-
body
:
close
-
on
-
click
-
modal
=
"false"
@
close
=
"handlemenuClose"
>
<
el
-
dialog
title
=
"权限
验证
"
:
visible
.
sync
=
"menu"
width
=
"500px"
append
-
to
-
body
:
close
-
on
-
click
-
modal
=
"false"
@
close
=
"handlemenuClose"
>
<
div
style
=
"text-align: center"
>
<
div
style
=
"text-align: center"
>
<
span
style
=
"font-size: 15px"
>
您选择的设备入库日期较早
,
需要权限验证
<
/span
>
<
span
style
=
"font-size: 15px"
>
您选择的设备入库日期较早
,
需要权限验证
<
/span
>
<
/div
>
<
/div
>
...
@@ -399,6 +399,7 @@
...
@@ -399,6 +399,7 @@
<
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"
type
=
"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
>
...
@@ -415,6 +416,7 @@ export default {
...
@@ -415,6 +416,7 @@ export default {
name
:
'Draw'
,
name
:
'Draw'
,
data
()
{
data
()
{
return
{
return
{
errorPassword
:
false
,
isClose
:
false
,
isClose
:
false
,
number
:
''
,
number
:
''
,
menu
:
false
,
menu
:
false
,
...
@@ -560,7 +562,10 @@ export default {
...
@@ -560,7 +562,10 @@ export default {
this
.
loadingDetail
=
false
this
.
loadingDetail
=
false
this
.
openHandle
=
true
this
.
openHandle
=
true
this
.
loginform
.
password
=
''
this
.
loginform
.
password
=
''
if
(
!
this
.
isClose
)
{
console
.
log
(
'isClose'
,
this
.
isClose
)
if
(
this
.
isClose
)
{
this
.
radio1
=
'1'
}
else
{
this
.
radio1
=
'2'
this
.
radio1
=
'2'
}
}
}
,
}
,
...
@@ -636,12 +641,14 @@ export default {
...
@@ -636,12 +641,14 @@ export default {
}
,
}
,
// 菜单权限验证确定
// 菜单权限验证确定
handleConfirm
()
{
handleConfirm
()
{
this
.
isClose
=
false
const
obj
=
{
const
obj
=
{
passWord
:
this
.
loginform
.
password
passWord
:
this
.
loginform
.
password
}
}
checkPermission
(
obj
).
then
(
res
=>
{
checkPermission
(
obj
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
isClose
=
true
this
.
isClose
=
true
this
.
errorPassword
=
false
this
.
openLogin
=
false
this
.
openLogin
=
false
if
(
this
.
radio1
===
'1'
)
{
if
(
this
.
radio1
===
'1'
)
{
this
.
$message
.
success
(
'已切换到设备库'
)
this
.
$message
.
success
(
'已切换到设备库'
)
...
@@ -672,16 +679,7 @@ export default {
...
@@ -672,16 +679,7 @@ export default {
}
)
}
)
}
else
if
(
res
.
code
===
null
)
{
}
else
if
(
res
.
code
===
null
)
{
this
.
isClose
=
false
this
.
isClose
=
false
this
.
$message
.
warning
(
res
.
message
)
this
.
errorPassword
=
true
if
(
this
.
radio1
===
'2'
)
{
this
.
radio1
=
'1'
}
else
{
this
.
radio1
=
'2'
}
this
.
loadingDetail
=
false
this
.
openHandle
=
true
this
.
loginform
.
password
=
''
this
.
openLogin
=
false
}
}
}
)
}
)
}
,
}
,
...
@@ -904,6 +902,8 @@ export default {
...
@@ -904,6 +902,8 @@ export default {
}
,
}
,
// 登录
// 登录
login
()
{
login
()
{
this
.
errorPassword
=
false
this
.
isClose
=
false
console
.
log
(
'radio1'
,
this
.
radio1
)
console
.
log
(
'radio1'
,
this
.
radio1
)
if
(
this
.
radio1
===
'1'
)
{
if
(
this
.
radio1
===
'1'
)
{
this
.
title
=
'权限验证'
this
.
title
=
'权限验证'
...
...
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