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
678596fe
Commit
678596fe
authored
Aug 08, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除菜单
parent
c1c5ce77
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
7 deletions
+32
-7
application.vue
src/views/equipment/application.vue
+1
-1
basicInfo.vue
src/views/equipment/basicInfo.vue
+18
-3
draw.vue
src/views/equipment/draw.vue
+2
-1
income.vue
src/views/equipment/income.vue
+1
-1
index.vue
src/views/processManagement/deviceReuse/index.vue
+1
-1
draw.vue
src/views/processManagement/draw.vue
+9
-0
No files found.
src/views/equipment/application.vue
View file @
678596fe
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
style=
"flex-basis: 50%;"
>
<el-form-item
style=
"flex-basis: 50%;"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
提交
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
...
src/views/equipment/basicInfo.vue
View file @
678596fe
...
@@ -63,8 +63,7 @@
...
@@ -63,8 +63,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=
"ptype"
prop=
"ptype"
>
<el-table-column
label=
"ptype"
prop=
"ptype"
>
...
@@ -209,6 +208,7 @@ export default {
...
@@ -209,6 +208,7 @@ export default {
name
:
'BasicInfo'
,
name
:
'BasicInfo'
,
data
()
{
data
()
{
return
{
return
{
dictList
:
[],
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 选中数组
// 选中数组
...
@@ -312,18 +312,32 @@ export default {
...
@@ -312,18 +312,32 @@ export default {
next
()
next
()
},
},
created
()
{
created
()
{
this
.
init
()
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
if
(
this
.
$store
.
getters
.
searchParams
[
this
.
$route
.
path
])
{
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
{
searchParams
}
=
this
.
$store
.
getters
;
const
{
path
}
=
this
.
$route
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
const
param
=
JSON
.
parse
(
searchParams
[
path
])
// 保留着的查询条件
this
.
queryParams
=
{
...
param
}
this
.
queryParams
=
{
...
param
}
}
}
this
.
getList
()
this
.
getList
()
this
.
init
()
// this.getDicts(dictCons['NORMAL_DISABLE']).then(response => {
// this.getDicts(dictCons['NORMAL_DISABLE']).then(response => {
// this.statusOptions = response.data;
// this.statusOptions = response.data;
// });
// });
},
},
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
}
})
},
// 回车跳转下一个输入框
// 回车跳转下一个输入框
focusNextInput
(
form
)
{
focusNextInput
(
form
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -343,6 +357,7 @@ export default {
...
@@ -343,6 +357,7 @@ export default {
},
},
// 初始化要调的接口
// 初始化要调的接口
init
()
{
init
()
{
this
.
getCodeDict
()
this
.
getDict
()
this
.
getDict
()
},
},
/** 查询基础信息列表 */
/** 查询基础信息列表 */
...
...
src/views/equipment/draw.vue
View file @
678596fe
...
@@ -591,6 +591,7 @@ export default {
...
@@ -591,6 +591,7 @@ export default {
// 处理弹窗里的勾选确定
// 处理弹窗里的勾选确定
handleCance
()
{
handleCance
()
{
this
.
loadingDetail
=
true
this
.
loadingDetail
=
true
this
.
monthDate
=
false
this
.
title
=
'权限验证'
this
.
title
=
'权限验证'
if
(
this
.
multipleSelection
.
length
===
0
)
{
if
(
this
.
multipleSelection
.
length
===
0
)
{
this
.
$message
.
warning
(
'请至少选择一个要处理的设备'
)
this
.
$message
.
warning
(
'请至少选择一个要处理的设备'
)
...
@@ -711,7 +712,7 @@ export default {
...
@@ -711,7 +712,7 @@ export default {
this
.
openHandle
=
true
this
.
openHandle
=
true
}
}
}
)
}
)
this
.
title
=
'
权限验证
'
this
.
title
=
'
处理
'
this
.
loadingDetail
=
true
this
.
loadingDetail
=
true
}
,
}
,
...
...
src/views/equipment/income.vue
View file @
678596fe
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
style=
"flex-basis: 50%;"
>
<el-form-item
style=
"flex-basis: 50%;"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
提交
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
...
src/views/processManagement/deviceReuse/index.vue
View file @
678596fe
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
style=
"flex-basis: 50%;"
>
<el-form-item
style=
"flex-basis: 50%;"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
提交
</el-button>
<el-button
style=
"padding: 8px 7px;"
icon=
"el-icon-refresh"
size=
"small"
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
...
src/views/processManagement/draw.vue
View file @
678596fe
...
@@ -415,6 +415,7 @@ export default {
...
@@ -415,6 +415,7 @@ export default {
name
:
'Draw'
,
name
:
'Draw'
,
data
()
{
data
()
{
return
{
return
{
isClose
:
false
,
number
:
''
,
number
:
''
,
menu
:
false
,
menu
:
false
,
menuform
:
{
menuform
:
{
...
@@ -559,6 +560,9 @@ export default {
...
@@ -559,6 +560,9 @@ export default {
this
.
loadingDetail
=
false
this
.
loadingDetail
=
false
this
.
openHandle
=
true
this
.
openHandle
=
true
this
.
loginform
.
password
=
''
this
.
loginform
.
password
=
''
if
(
!
this
.
isClose
)
{
this
.
radio1
=
'2'
}
}
,
}
,
handlemenuConfirm
()
{
handlemenuConfirm
()
{
const
obj
=
{
const
obj
=
{
...
@@ -637,6 +641,7 @@ export default {
...
@@ -637,6 +641,7 @@ export default {
}
}
checkPermission
(
obj
).
then
(
res
=>
{
checkPermission
(
obj
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
isClose
=
true
this
.
openLogin
=
false
this
.
openLogin
=
false
if
(
this
.
radio1
===
'1'
)
{
if
(
this
.
radio1
===
'1'
)
{
this
.
$message
.
success
(
'已切换到设备库'
)
this
.
$message
.
success
(
'已切换到设备库'
)
...
@@ -666,6 +671,7 @@ export default {
...
@@ -666,6 +671,7 @@ export default {
}
}
}
)
}
)
}
else
if
(
res
.
code
===
null
)
{
}
else
if
(
res
.
code
===
null
)
{
this
.
isClose
=
false
this
.
$message
.
warning
(
res
.
message
)
this
.
$message
.
warning
(
res
.
message
)
if
(
this
.
radio1
===
'2'
)
{
if
(
this
.
radio1
===
'2'
)
{
this
.
radio1
=
'1'
this
.
radio1
=
'1'
...
@@ -674,6 +680,8 @@ export default {
...
@@ -674,6 +680,8 @@ export default {
}
}
this
.
loadingDetail
=
false
this
.
loadingDetail
=
false
this
.
openHandle
=
true
this
.
openHandle
=
true
this
.
loginform
.
password
=
''
this
.
openLogin
=
false
}
}
}
)
}
)
}
,
}
,
...
@@ -681,6 +689,7 @@ export default {
...
@@ -681,6 +689,7 @@ export default {
// 处理弹窗里的勾选确定
// 处理弹窗里的勾选确定
handleCance
()
{
handleCance
()
{
this
.
loadingDetail
=
true
this
.
loadingDetail
=
true
this
.
monthDate
=
false
if
(
this
.
multipleSelection
.
length
===
0
)
{
if
(
this
.
multipleSelection
.
length
===
0
)
{
this
.
$message
.
warning
(
'请至少选择一个要处理的设备'
)
this
.
$message
.
warning
(
'请至少选择一个要处理的设备'
)
}
else
{
}
else
{
...
...
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