diff --git a/src/views/business/export/index.vue b/src/views/business/export/index.vue index 9e6801f..6428058 100644 --- a/src/views/business/export/index.vue +++ b/src/views/business/export/index.vue @@ -51,11 +51,10 @@ 删除 - --> - 导入 + --> 导出 @@ -315,8 +314,8 @@ export default { deptId: null, deptName: null, orgCode: null, - fileType: null, - coordinateSystem: null, + fileType: '1', + coordinateSystem: '2', fileUrl: null, taskStatus: '1', } @@ -340,6 +339,10 @@ export default { }, /** 新增按钮操作 */ handleAdd() { + if(this.selectDeptName == null || this.selectDeptName == ''){ + this.$modal.msgWarning("请先选择县级及以下行政区划!") + return + } this.reset() this.form.deptId = this.queryParams.deptId; this.form.deptName = this.selectDeptName; diff --git a/src/views/business/import/index.vue b/src/views/business/import/index.vue index 05514ac..29a5976 100644 --- a/src/views/business/import/index.vue +++ b/src/views/business/import/index.vue @@ -56,11 +56,10 @@ 删除 - --> - 导入 + --> 导出 @@ -346,9 +345,9 @@ export default { deptId: null, deptName: null, orgCode: null, - fileType: null, - importType: null, - coordinateSystem: null, + fileType: '1', + importType: '1', + coordinateSystem: '1', fileUrl: null, taskStatus: '1', } @@ -372,6 +371,10 @@ export default { }, /** 新增按钮操作 */ handleAdd() { + if(this.selectDeptName == null || this.selectDeptName == ''){ + this.$modal.msgWarning("请先选择县级及以下行政区划!") + return + } this.reset() this.open = true this.form.deptId = this.queryParams.deptId;