diff --git a/src/main.js b/src/main.js index 5faa4726c..307cf0aa7 100644 --- a/src/main.js +++ b/src/main.js @@ -109,14 +109,8 @@ router.beforeEach(function (to, from, next) { debugger if (isMobile()) { if(toName === 'processCenter'){ - const userAgent = navigator.userAgent; - if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) { - window.location.href = "about:blank" - }else { - window.opener = null; - window.open("about:blank", "_self"); - window.close(); - } + window.location.href="about:blank"; + window.close(); }else { if ((token === null || token === '' ) && toName !== 'Login') { if(toName !== 'phoneIndex'){ diff --git a/src/pages/blankPage/index.vue b/src/pages/blankPage/index.vue index dc2576abd..38fae68c1 100644 --- a/src/pages/blankPage/index.vue +++ b/src/pages/blankPage/index.vue @@ -18,14 +18,8 @@ export default { }, methods: { closeWindow(){ - const userAgent = navigator.userAgent; - if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) { - window.location.href = "about:blank" - }else { - window.opener = null; - window.open("about:blank", "_self"); - window.close(); - } + window.location.href="about:blank"; + window.close(); } } } diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index ee6e15663..173972eba 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -656,6 +656,12 @@ v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : '824f3bf9edef83fc7488917136167232'" >关联条款 + 编辑
- - - - - - + + --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0){ + this.editResolveListShowflag = true + let editItem = JSON.parse(JSON.stringify(this.selectedItemList[0])) + this.resolveListForm = editItem + this.resolveListForm.termsConditions = this.resolveListForm.termsConditions?this.resolveListForm.termsConditions.replace(/<.*?>/ig, ' '):'' + // this.resolveListForm.readContent = this.readContent?this.readContent.replace(/<.*?>/ig, ' '):'' + }else { + this.$message.warning('请选择一条数据') } }, + saveEditInfo(){ + console.log('2530',this.resolveListForm) + this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.join(',') + this.resolveListForm.zccssrq = this.resolveListForm.zccssrq.join(',') + this.$http.putData( + 'SarStandItems/sar-stand-items/updateSarItemAndInterpretation', + this.resolveListForm, + { + _this: this, + }, + (res) => { + console.log(res) + if (res.ok){ + this.$message.success('修改成功') + this.resetEditResolveListForm() + this.showItemsModel() + } + } + ) + }, + resetEditResolveListForm(){ + this.editResolveListShowflag = false + }, // 分页点击后方法 pageChange(page) { this.standItemSearch.page = page @@ -3298,6 +3525,16 @@ export default {