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
aad22220
Commit
aad22220
authored
Jun 24, 2023
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查管理-选择全部、反向选择
parent
917cad81
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
3 deletions
+51
-3
manage.js
src/api/business/manage.js
+8
-0
medical-record-management.vue
...t/medical-record-management/medical-record-management.vue
+43
-3
No files found.
src/api/business/manage.js
View file @
aad22220
...
@@ -17,6 +17,14 @@ export function listCheckManage(query) {
...
@@ -17,6 +17,14 @@ export function listCheckManage(query) {
})
})
}
}
export
function
selectCheckAll
(
query
)
{
return
request
({
url
:
'/business/check/checkListAll'
,
method
:
'get'
,
params
:
query
})
}
// 查询业务管理-检查管理详细
// 查询业务管理-检查管理详细
export
function
getManage
(
id
)
{
export
function
getManage
(
id
)
{
return
request
({
return
request
({
...
...
src/views/service-management/medical-record-management/medical-record-management.vue
View file @
aad22220
...
@@ -63,11 +63,13 @@
...
@@ -63,11 +63,13 @@
class=
"fourWordsBtn"
class=
"fourWordsBtn"
icon=
"el-icon-plus"
icon=
"el-icon-plus"
size=
"mini"
size=
"mini"
@
click=
"selectAll()"
>
选择全部
</el-button>
>
选择全部
</el-button>
<el-button
<el-button
class=
"fourWordsBtn"
class=
"fourWordsBtn"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
size=
"mini"
size=
"mini"
@
click=
"reverseSelect()"
>
反向选择
</el-button>
>
反向选择
</el-button>
<el-button
<el-button
class=
"fourWordsBtn"
class=
"fourWordsBtn"
...
@@ -84,8 +86,8 @@
...
@@ -84,8 +86,8 @@
<el-button
style=
"position: relative; float: right;"
class=
"queryBtn"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
style=
"position: relative; float: right;"
class=
"queryBtn"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
查询
</el-button>
</el-row>
</el-row>
<el-table
v-loading=
"loading"
:data=
"manageList
"
@
selection-change=
"handleSelectionChange"
>
<el-table
ref=
"table"
v-loading=
"loading"
:data=
"manageList"
:row-key=
"getRowKeys
"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
:reserve-selection=
"true"
/>
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
/>
<el-table-column
label=
"序号"
type=
"index"
align=
"center"
/>
<el-table-column
label=
"检查类型"
align=
"center"
prop=
"checkType"
width=
"100"
>
<el-table-column
label=
"检查类型"
align=
"center"
prop=
"checkType"
width=
"100"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
...
@@ -235,7 +237,7 @@
...
@@ -235,7 +237,7 @@
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
getManage
,
delManage
,
addManage
,
updateManage
,
listCheckManage
}
from
'@/api/business/manage'
import
{
getManage
,
delManage
,
addManage
,
updateManage
,
listCheckManage
,
selectCheckAll
}
from
'@/api/business/manage'
import
{
deviceUseInSubscribeList
,
listReservationDevice
}
from
'@/api/business/device'
import
{
deviceUseInSubscribeList
,
listReservationDevice
}
from
'@/api/business/device'
import
{
listItemByType
}
from
'@/api/business/item'
import
{
listItemByType
}
from
'@/api/business/item'
import
{
parseTime
}
from
'@/utils/ruoyi'
import
{
parseTime
}
from
'@/utils/ruoyi'
...
@@ -364,6 +366,44 @@ export default {
...
@@ -364,6 +366,44 @@ export default {
this
.
loading
=
false
this
.
loading
=
false
}
)
}
)
}
,
}
,
// 表格
getRowKeys
(
row
)
{
return
row
.
id
}
,
/**
* 全部选择
* @param selection 已选择内容
* @param all 是否永远进行全选操作
*/
async
selectAll
(
selection
=
[],
all
=
true
)
{
if
(
this
.
manageList
.
length
!==
selection
.
length
&&
!
all
)
{
this
.
effectTableSelect
([])
}
else
{
await
this
.
changeTableSelect
()
}
}
,
/**
* 控制table的选择项
* @param data
*/
effectTableSelect
(
data
=
[])
{
this
.
$refs
.
table
.
store
.
states
.
selection
=
data
this
.
$refs
.
table
.
store
.
updateSelectionByRowKey
()
this
.
$refs
.
table
.
store
.
updateAllSelected
()
this
.
$refs
.
table
.
$emit
(
'selection-change'
,
data
)
}
,
reverseSelect
()
{
this
.
changeTableSelect
(
this
.
ids
)
}
,
/**
* 改变table选择项
* @param notIncludeIds 需要排除的id列表
*/
async
changeTableSelect
(
notIncludeIds
=
[])
{
// 获取反选的数据
const
{
data
}
=
await
selectCheckAll
({
notIncludeIds
}
)
this
.
effectTableSelect
(
data
)
}
,
// 检查日期
// 检查日期
changeDate
()
{
changeDate
()
{
console
.
log
(
'检查日期'
,
this
.
form
.
checkDate
)
console
.
log
(
'检查日期'
,
this
.
form
.
checkDate
)
...
...
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