Commit 33a90636 authored by liang's avatar liang

接口优化

parent 1233b7e8
......@@ -73,10 +73,9 @@ export default {
// this.handleSearch()
// break
// }
console.log("status", val)
},
type(val) {
console.log("type", val)
this.getReportTotal()
sessionStorage.setItem("audit-type", val)
// switch (val) {
// case "1":
......@@ -202,9 +201,6 @@ export default {
return this.auditStatus == "1" ? checkColumns : unCkeckColumns
},
},
created() {
console.log(this.dictMap)
},
mounted() {
if (
sessionStorage.getItem("audit-status") ||
......@@ -276,7 +272,6 @@ export default {
},
async handleSearch() {
this.listLoading = true
this.getReportTotal()
let params = {
pageSize: this.pageSize,
pageNum: this.pageIndex,
......@@ -302,9 +297,6 @@ export default {
this.total = res.data.total
this.listLoading = false
},
getFollowTotal() {
getFollowTotal().then((res) => {})
},
getReportTotal() {
const API = this.type === "1" ? getFollowTotal : getScreeningTotal
API().then((res) => {
......
......@@ -109,6 +109,7 @@ export default {
watch: {},
mounted() {
this.handleSearch()
this.getReportCount()
},
methods: {
getSummaries() {
......@@ -126,6 +127,7 @@ export default {
this.selectedIndex = i
this.pageIndex = 1
this.handleSearch()
this.getReportCount()
sessionStorage.setItem("homeSelectedIndex", this.selectedIndex)
},
getReportCount() {
......@@ -137,7 +139,6 @@ export default {
},
handleSearch() {
this.listLoading = true
this.getReportCount()
let data = {
size: this.pageSize,
current: this.pageIndex,
......
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