Commit 8ce86f60 by Jianli Ou

一期隐藏检测校准申请菜单和个人中心首页的检测校准申请相关内容

parent bca2d64f
...@@ -69,18 +69,14 @@ export default { ...@@ -69,18 +69,14 @@ export default {
name: "CheckSearchTable", name: "CheckSearchTable",
components: {CertificationDetail}, components: {CertificationDetail},
props: {query: Object}, props: {query: Object},
created() { watch: {
this.isAdminBranch = JSON.parse(localStorage.getItem('gs-user')).type === 'adminBranch' query: function() {
if (this.isAdminBranch) this.search.branchCode = String(JSON.parse(localStorage.getItem('loginInfo')).levels) this.init()
this.search.logout_flag = this.query.status === '3' ? '' : this.query.status
if (this.query.type === 'new') {
// TODO 查询新增
this.getAuditList()
} else {
// TODO 查询变更
this.getAuditList()
} }
}, },
created() {
this.init()
},
data() { data() {
return { return {
isAdminBranch: false, isAdminBranch: false,
...@@ -238,6 +234,18 @@ export default { ...@@ -238,6 +234,18 @@ export default {
this.result = result.data.list this.result = result.data.list
this.page = {pageSize: 10, currPage: result.data.currPage, total: result.data.totalCount} this.page = {pageSize: 10, currPage: result.data.currPage, total: result.data.totalCount}
this.loading = false this.loading = false
},
init() {
this.isAdminBranch = JSON.parse(localStorage.getItem('gs-user')).type === 'adminBranch'
if (this.isAdminBranch) this.search.branchCode = String(JSON.parse(localStorage.getItem('loginInfo')).levels)
this.search.logout_flag = this.query.status === '3' ? '' : this.query.status
if (this.query.type === 'new') {
// TODO 查询新增
this.getAuditList()
} else {
// TODO 查询变更
this.getAuditList()
}
} }
}, },
} }
......
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