Commit 5de628cb authored by miaojiale's avatar miaojiale

增加分页

parent bf939e22
......@@ -104,12 +104,15 @@ export default {
setSelectedIndex(i) {
console.log(this.selectedIndex)
this.selectedIndex = i
this.pageIndex = 1
this.getPatientPage()
sessionStorage.setItem("homeSelectedIndex", this.selectedIndex)
},
getPatientPage() {
this.listLoading = true
let data = {
pageSize: this.pageSize,
pageNum: this.pageIndex,
patientFrom: this.selectedIndex == "0" ? null : this.selectedIndex,
}
getPatientPage(data).then((res) => {
......
......@@ -146,26 +146,26 @@ export default {
}
},
},
{
isIndex: true,
func: this.handleEdit,
formatter(row) {
if (row.checkStatus != 3 && row.checkStatus != 4) {
return {
label: "修改",
type: "text",
}
} else {
return {
label: "",
type: "text",
style: {
display: "none",
},
}
}
},
},
// {
// isIndex: true,
// func: this.handleEdit,
// formatter(row) {
// if (row.checkStatus != 3 && row.checkStatus != 4) {
// return {
// label: "修改",
// type: "text",
// }
// } else {
// return {
// label: "",
// type: "text",
// style: {
// display: "none",
// },
// }
// }
// },
// },
],
},
],
......
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