diff --git a/pages.json b/pages.json index 310c247..aa28b50 100644 --- a/pages.json +++ b/pages.json @@ -262,7 +262,15 @@ { "path": "pages/workSpace/opls/fire", "style": { - "navigationBarTitleText": "动火许可证", + "navigationBarTitleText": "动火作业许可证", + "navigationStyle": "custom", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/workSpace/opls/high", + "style": { + "navigationBarTitleText": "高处作业许可证", "navigationStyle": "custom", "enablePullDownRefresh": false } diff --git a/pages/workSpace/operation/oplCate.vue b/pages/workSpace/operation/oplCate.vue index 466ab44..e9c72f6 100644 --- a/pages/workSpace/operation/oplCate.vue +++ b/pages/workSpace/operation/oplCate.vue @@ -96,21 +96,22 @@ }) }, addCate(row,type) { - let params=null,oplCate = ''; + let params=null,oplCateCode = null; if(type==='edit'){ - oplCate = row.cate_name; + oplCateCode = row.cate_code; params = `?oplId=${row.id}&oplcateId=${row.cate_.id}&operationId=${this.operationId}&type=${type}`; }else if(type=='add'){ - oplCate = row.name; + oplCateCode = row.code; params = `?oplcateId=${row.id}&operationId=${this.operationId}&type=${type}`; }else if(type=='delete'){ this.$u.api.oplDelete(row.id).then(res => { this.getOplLists() }) } - if(oplCate==='动火'){ + if(oplCateCode!=null){ + let url = '../opls/' + oplCateCode + params uni.navigateTo({ - url: '../opls/fire' + params + url: url }) } diff --git a/pages/workSpace/opls/high.vue b/pages/workSpace/opls/high.vue new file mode 100644 index 0000000..816b7d3 --- /dev/null +++ b/pages/workSpace/opls/high.vue @@ -0,0 +1,559 @@ + + + + +