Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
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
刘怀志
pet-business-web
Commits
948d11e9
Commit
948d11e9
authored
Sep 06, 2023
by
王飞龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
39588ba5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
16 deletions
+25
-16
equipment-management.vue
...-management/equipment-management/equipment-management.vue
+25
-16
No files found.
src/views/equipment-management/equipment-management/equipment-management.vue
View file @
948d11e9
...
...
@@ -90,24 +90,24 @@
<el-button
v-hasPermi=
"['business:device:export']"
class=
"fourWordswhiteBtn"
@
click=
"
select
All()"
@
click=
"
check
All()"
><svg-icon
style=
"margin-right: 1px"
icon-class=
"shuaixuan_icon_quanbu"
/>
选择全部
</el-button>
<el-button
v-hasPermi=
"['business:device:export']"
class=
"fourWordswhiteBtn"
@
click=
"reverseSelect
(deviceList)
"
@
click=
"reverseSelect
ion
"
><svg-icon
style=
"margin-right: 1px"
icon-class=
"shuaixuan_icon_fanxiang"
/>
反向选择
</el-button>
<!--
<el-button-->
<!-- v-hasPermi="['business:device:import']"-->
<!-- class="fourWordswhiteBtn"-->
<!-- @click="handleImport"-->
<!-- >-->
<!--
<svg-icon
style=
"margin-right: 1px"
icon-class=
"shaixuan_icon_daoru"
/>
-->
<!-- 批量导入-->
<!--
</el-button>
-->
<!--
<el-button-->
<!-- v-hasPermi="['business:device:import']"-->
<!-- class="fourWordswhiteBtn"-->
<!-- @click="handleImport"-->
<!-- >-->
<!--
<svg-icon
style=
"margin-right: 1px"
icon-class=
"shaixuan_icon_daoru"
/>
-->
<!-- 批量导入-->
<!--
</el-button>
-->
<el-button
v-hasPermi=
"['business:device:export']"
class=
"fourWordswhiteBtn"
...
...
@@ -130,9 +130,16 @@
</el-col>
</el-row>
<el-table
ref=
"table"
v-loading=
"loading"
:data=
"deviceList"
:header-cell-style=
"
{ background:'#F4F4F4'}" :row-key="getRowKeys" @selection-change="handleSelectionChange">
<el-table-column
type=
"selection"
width=
"47"
align=
"center"
:reserve-selection=
"true"
/>
<el-table-column
align=
"left"
label=
"序号"
min-width=
"60"
show-overflow-tooltip
prop=
"index"
>
<el-table
ref=
"table"
v-loading=
"loading"
:data=
"deviceList"
:header-cell-style=
"
{ background:'#F4F4F4'}"
@select="selectChange"
@select-all="selectChange"
>
<el-table-column
type=
"selection"
width=
"47"
align=
"center"
/>
<el-table-column
align=
"left"
label=
"序号"
min-width=
"60"
show-overflow-tooltip
prop=
"index"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
$index
+
1
}}
</span>
</
template
>
...
...
@@ -511,7 +518,7 @@ export default {
this
.
serviceShow
=
false
this
.
itemType
=
3
}
this
.
getItemByType
()
//
this.getItemByType()
})
},
// 显示两位数字
...
...
@@ -564,6 +571,8 @@ export default {
this
.
deviceList
=
response
.
rows
console
.
log
(
'this.deviceList'
,
this
.
deviceList
)
this
.
idsForever
=
response
.
idList
console
.
log
(
'idlist'
,
this
.
idsForever
)
this
.
total
=
response
.
total
this
.
loading
=
false
this
.
manualCheck
()
...
...
@@ -651,7 +660,7 @@ export default {
// 在下一个dom触发
this
.
$nextTick
().
then
(()
=>
{
// 当前页结合数据的id只要在临时集合里,就使得复选框勾选
this
.
d
rug
List
.
forEach
(
item
=>
{
this
.
d
evice
List
.
forEach
(
item
=>
{
if
(
this
.
ids
.
includes
(
item
.
id
))
{
this
.
$refs
.
table
.
toggleRowSelection
(
item
,
true
)
}
else
{
...
...
@@ -677,7 +686,7 @@ export default {
selectChange
(
selection
,
row
)
{
// 选中行是没有则将当前list里面的数据从ids里情况
if
(
selection
.
length
===
0
)
{
const
temp
=
this
.
d
rug
List
.
map
(
item
=>
{
const
temp
=
this
.
d
evice
List
.
map
(
item
=>
{
return
item
.
id
})
this
.
ids
=
this
.
ids
.
filter
(
item
=>
{
...
...
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