Commit 2aa908df authored by v_liuhuaizhi's avatar v_liuhuaizhi

Merge remote-tracking branch 'origin/master'

parents 7f00c0be d309fdb2
...@@ -110,11 +110,11 @@ ...@@ -110,11 +110,11 @@
</el-form> </el-form>
<el-table <el-table
ref="table"
v-loading="loading" v-loading="loading"
:data="recordList" :data="recordList"
:header-cell-style="{background:'#E8E9E8'}" :header-cell-style="{background:'#E8E9E8'}"
border border
ref="table"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column align="center" type="selection" width="55"/> <el-table-column align="center" type="selection" width="55"/>
...@@ -292,7 +292,7 @@ export default { ...@@ -292,7 +292,7 @@ export default {
*/ */
async changeTableSelect(notIncludeIds = []) { async changeTableSelect(notIncludeIds = []) {
// 获取反选的数据 // 获取反选的数据
//需要一个可以根据条件和params.notIncludeIds排除部分数据的不分页查询的接口 // 需要一个可以根据条件和params.notIncludeIds排除部分数据的不分页查询的接口
const { data } = await listAllArticle({ const { data } = await listAllArticle({
...this.queryParams, ...this.queryParams,
params: { params: {
...@@ -334,7 +334,7 @@ export default { ...@@ -334,7 +334,7 @@ export default {
this.loading = true this.loading = true
listRecord(this.queryParams).then(response => { listRecord(this.queryParams).then(response => {
console.log('病历列表的数据:', response) console.log('病历列表的数据:', response)
this.recordList = response.rows this.recordList = response.rows.rows
console.log('这是病历,我要开始取字段了!', this.recordList) console.log('这是病历,我要开始取字段了!', this.recordList)
this.total = response.total this.total = response.total
this.loading = false this.loading = false
......
...@@ -364,6 +364,7 @@ export default { ...@@ -364,6 +364,7 @@ export default {
console.log('这是我要调的挂号列表内容:', this.registerList) console.log('这是我要调的挂号列表内容:', this.registerList)
this.total = response.total this.total = response.total
this.loading = false this.loading = false
this.manualCheck()
}) })
}, },
// 取消按钮 // 取消按钮
...@@ -458,6 +459,8 @@ export default { ...@@ -458,6 +459,8 @@ export default {
}, },
// 反向选择(把永久临时集合和变化的临时集合做减法重新赋给变化的临时集合赋给) // 反向选择(把永久临时集合和变化的临时集合做减法重新赋给变化的临时集合赋给)
reverseSelection() { reverseSelection() {
console.log('永久的集合', this.registerIdsForever)
console.log('临时集合', this.registerEmptyIds)
if (this.isCheckAll) { if (this.isCheckAll) {
this.registerEmptyIds = this.registerIdsForever.filter(id => !this.registerIds.includes(id)) this.registerEmptyIds = this.registerIdsForever.filter(id => !this.registerIds.includes(id))
} else { } else {
...@@ -501,10 +504,10 @@ export default { ...@@ -501,10 +504,10 @@ export default {
// 重置选择 // 重置选择
.then(_ => this.effectTableSelect([])) .then(_ => this.effectTableSelect([]))
}, },
/** 列表区--多选框选中数据 */ // /** 列表区--多选框选中数据 */
handleSelectionChange(selection) { // handleSelectionChange(selection) {
this.ids = selection.map(item => item.id) // this.ids = selection.map(item => item.id)
}, // },
/** 详情按钮操作--跳转文章详情页 */ /** 详情按钮操作--跳转文章详情页 */
handleDetail(row, type = 'detail') { handleDetail(row, type = 'detail') {
this.reset() this.reset()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment