|
|
@@ -217,9 +217,11 @@
|
|
|
},
|
|
|
},
|
|
|
activated() {
|
|
|
+ this.getParams()
|
|
|
this.queryData()
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.getParams()
|
|
|
this.queryData()
|
|
|
this.getOptions()
|
|
|
},
|
|
|
@@ -277,6 +279,7 @@
|
|
|
})
|
|
|
},
|
|
|
handleDetail(row) {
|
|
|
+ this.storeParams()
|
|
|
this.$router.push({
|
|
|
path: '/consult/detail',
|
|
|
query: {
|
|
|
@@ -312,6 +315,35 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ // 存储参数
|
|
|
+ storeParams() {
|
|
|
+ let data = {
|
|
|
+ pageNum: this.queryForm.pageNum,
|
|
|
+ pageSize: this.queryForm.pageSize,
|
|
|
+ name: this.queryForm.name,
|
|
|
+ inchargeName: this.queryForm.inchargeName,
|
|
|
+ unit: this.queryForm.unit,
|
|
|
+ state: this.queryForm.state,
|
|
|
+ }
|
|
|
+ localStorage.setItem('consultSearchParams', JSON.stringify(data))
|
|
|
+ },
|
|
|
+ // 获取参数
|
|
|
+ getParams() {
|
|
|
+ if (this.$route.params.isGetParams == '1') {
|
|
|
+ let params = localStorage.getItem('consultSearchParams')
|
|
|
+ if (params) {
|
|
|
+ let data = JSON.parse(params)
|
|
|
+ this.queryForm.pageNum = data.pageNum
|
|
|
+ this.queryForm.pageSize = data.pageSize
|
|
|
+ this.queryForm.name = data.name
|
|
|
+ this.queryForm.inchargeName = data.inchargeName
|
|
|
+ this.queryForm.unit = data.unit
|
|
|
+ this.queryForm.state = data.state
|
|
|
+ }
|
|
|
+ localStorage.removeItem('consultSearchParams')
|
|
|
+ this.$route.params.isGetParams = undefined
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|