diff --git a/src/views/modules/epidemic/epidemicreportuserinfo.vue b/src/views/modules/epidemic/epidemicreportuserinfo.vue
index 1314790..114047f 100644
--- a/src/views/modules/epidemic/epidemicreportuserinfo.vue
+++ b/src/views/modules/epidemic/epidemicreportuserinfo.vue
@@ -7,7 +7,7 @@
@keyup.enter.native="beforeGetDataList()">
@@ -281,11 +281,21 @@
@click="exports()">{{ $t('export') }}
- 导入
+ 重置核酸检测状态
+
+
+
+
+
- 重置核酸检测状态
+ 导入
+
0){
+ this.gridIdImport = val[val.length - 1]
+ this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/custom/epidemicuserinfo/importExcel?token=
+ ${Cookies.get('token')}&gridId=` + val[val.length - 1]
+ }else{
+ this.gridIdImport = ''
+ }
}
},
methods: {
@@ -741,18 +762,16 @@ export default {
},
beforeImportUser () {
//所属组织全都不选,直接上传
- if ((this.dataForm.streetId === undefined || this.dataForm.streetId === '') &&
- (this.dataForm.communityId === undefined || this.dataForm.communityId === '') &&
- (this.dataForm.gridId === undefined || this.dataForm.gridId === '') ){
+ if (this.gridIdImport === ''){
document.getElementById('importBut').click()
return
}
//选中社区或者及街道提示请选中网格
- if ((this.dataForm.streetId != undefined || this.dataForm.streetId != '') &&
- (this.dataForm.gridId === undefined || this.dataForm.gridId === '') ){
- this.$message.error('请选择到网格层级后导入')
- return false
- }
+ // if ((this.dataForm.streetId != undefined && this.dataForm.streetId != '') &&
+ // (this.dataForm.gridId === undefined || this.dataForm.gridId === '') ){
+ // this.$message.error('请选择到网格层级后导入')
+ // return false
+ // }
//选中网格
let selectGird = this.$refs['deptTree'].getCheckedNodes()[0].label