Commit 8ce86f60 by Jianli Ou

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

parent bca2d64f
......@@ -69,18 +69,14 @@ export default {
name: "CheckSearchTable",
components: {CertificationDetail},
props: {query: Object},
created() {
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()
watch: {
query: function() {
this.init()
}
},
created() {
this.init()
},
data() {
return {
isAdminBranch: false,
......@@ -238,6 +234,18 @@ export default {
this.result = result.data.list
this.page = {pageSize: 10, currPage: result.data.currPage, total: result.data.totalCount}
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