diff --git a/src/views/corpInfo/info/components/indexAdd.vue b/src/views/corpInfo/info/components/indexAdd.vue index 8f3524a..8cfd2dc 100644 --- a/src/views/corpInfo/info/components/indexAdd.vue +++ b/src/views/corpInfo/info/components/indexAdd.vue @@ -624,7 +624,14 @@ export default { }, // 返回 goBack() { - this.$parent.activeName = 'IndexList' + this.$confirm('确定要退出吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$parent.activeName = 'IndexList' + }).catch(() => { + }) }, // 获取数据字典 getDicList(list, DICTIONARIES_ID) { diff --git a/src/views/keyprojects/outsourced/components/edit.vue b/src/views/keyprojects/outsourced/components/edit.vue index 2fdf10c..7515656 100644 --- a/src/views/keyprojects/outsourced/components/edit.vue +++ b/src/views/keyprojects/outsourced/components/edit.vue @@ -669,8 +669,15 @@ export default { }, // 返回列表 back() { - this.$parent.activeName = 'List' - this.$parent.OUTSOURCED_ID = '' + this.$confirm('确定要退出吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$parent.activeName = 'List' + this.$parent.OUTSOURCED_ID = '' + }).catch(() => { + }) }, getUnitsList() { requestFN( diff --git a/src/views/relevantunits/insert/components/corpInfoAdd.vue b/src/views/relevantunits/insert/components/corpInfoAdd.vue index 31f0ecd..1b6d0d2 100644 --- a/src/views/relevantunits/insert/components/corpInfoAdd.vue +++ b/src/views/relevantunits/insert/components/corpInfoAdd.vue @@ -208,7 +208,7 @@ 纬度: - 取 消 + 取 消 确 定 @@ -477,6 +477,16 @@ export default { this.LATITUDE = this.form.LATITUDE this.LONGITUDE = this.form.LONGITUDE }, + goBack() { + this.$confirm('确定要退出吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.dialogFormMap = false + }).catch(() => { + }) + }, getTreeList() { requestFN( '/department/listTree/', @@ -548,7 +558,14 @@ export default { }) }, back() { - this.$parent.activeName = 'CorpInfoList' + this.$confirm('确定要退出吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$parent.activeName = 'CorpInfoList' + }).catch(() => { + }) }, // 获取数据字典数据 getDict: function() { diff --git a/src/views/relevantunits/insert/components/corpInfoEdit.vue b/src/views/relevantunits/insert/components/corpInfoEdit.vue index 49efbcd..31a4212 100644 --- a/src/views/relevantunits/insert/components/corpInfoEdit.vue +++ b/src/views/relevantunits/insert/components/corpInfoEdit.vue @@ -593,7 +593,14 @@ export default { }) }, back() { - this.$parent.activeName = 'CorpInfoList' + this.$confirm('确定要退出吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$parent.activeName = 'CorpInfoList' + }).catch(() => { + }) }, // 获取数据字典数据 getDict() { diff --git a/src/views/safetyenvironmental/inspection/components/add.vue b/src/views/safetyenvironmental/inspection/components/add.vue index 76bede6..3a7f2f6 100644 --- a/src/views/safetyenvironmental/inspection/components/add.vue +++ b/src/views/safetyenvironmental/inspection/components/add.vue @@ -872,8 +872,15 @@ export default { }, goBack() { - this.$parent.INSPECTION_ID = '' - this.$parent.activeName = 'List' + this.$confirm('确定要退出吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$parent.INSPECTION_ID = '' + this.$parent.activeName = 'List' + }).catch(() => { + }) }, // 获取整改人列表 getUserList(DEPARTMENT_ID) { diff --git a/src/views/safetyenvironmental/inspection/components/edit.vue b/src/views/safetyenvironmental/inspection/components/edit.vue index ab4e2a1..05fd3d9 100644 --- a/src/views/safetyenvironmental/inspection/components/edit.vue +++ b/src/views/safetyenvironmental/inspection/components/edit.vue @@ -971,8 +971,15 @@ export default { }, goBack() { - this.$parent.INSPECTION_ID = '' - this.$parent.activeName = 'List' + this.$confirm('确定要退出吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$parent.INSPECTION_ID = '' + this.$parent.activeName = 'List' + }).catch(() => { + }) }, // 获取整改人列表 getUserList(DEPARTMENT_ID) { diff --git a/src/views/security_commitment/promise_book/components/add.vue b/src/views/security_commitment/promise_book/components/add.vue index d78ebee..8fd2d5a 100644 --- a/src/views/security_commitment/promise_book/components/add.vue +++ b/src/views/security_commitment/promise_book/components/add.vue @@ -141,7 +141,14 @@ export default { }) }, goBack() { - this.$parent.activeName = 'List' + this.$confirm('确定要退出吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$parent.activeName = 'List' + }).catch(() => { + }) } } } diff --git a/src/views/security_commitment/promise_book_issued/components/add.vue b/src/views/security_commitment/promise_book_issued/components/add.vue index 67edbf3..f3556cc 100644 --- a/src/views/security_commitment/promise_book_issued/components/add.vue +++ b/src/views/security_commitment/promise_book_issued/components/add.vue @@ -731,7 +731,14 @@ export default { }) }, goBack() { - this.$parent.activeName = 'List' + this.$confirm('确定要退出吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$parent.activeName = 'List' + }).catch(() => { + }) }, getCoroInfoAll() { requestFN(