Browse Source

数据长度判断

feature/sleltc
123456 3 years ago
parent
commit
7bd402eba3
  1. 4
      src/views/modules/epidemic/epidemicreportuserinfo.vue

4
src/views/modules/epidemic/epidemicreportuserinfo.vue

@ -932,6 +932,7 @@ export default {
buttonTime: 60, buttonTime: 60,
gridIdImport: '', gridIdImport: '',
deptIdList:null, deptIdList:null,
deptIdListLt:null,
agencyList:null, agencyList:null,
} }
}, },
@ -996,6 +997,7 @@ export default {
type:'warning' type:'warning'
}) })
} }
this.deptIdListLt = this.dataForm.deptIdList.length
this.dataForm.deptIdList = this.dataForm.deptIdList + '' this.dataForm.deptIdList = this.dataForm.deptIdList + ''
}, },
communityHandleChange(value){ communityHandleChange(value){
@ -1082,7 +1084,7 @@ export default {
}).catch(() => { }) }).catch(() => { })
}, },
beforeGetDataListSearch () { beforeGetDataListSearch () {
if(this.dataForm.deptIdList.length > 100){ if(this.deptIdListLt > 100){
this.$message({ this.$message({
message: '所属组织数据选择过多,请选择所属社区进行查询', message: '所属组织数据选择过多,请选择所属社区进行查询',
type:'warning' type:'warning'

Loading…
Cancel
Save