Commit 33a90636 authored by liang's avatar liang

接口优化

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