Commit 5de628cb authored by miaojiale's avatar miaojiale

增加分页

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