Browse Source

上传判断

master
zhangyuan 3 years ago
parent
commit
70712b42c4
  1. 7
      src/views/modules/personroom/epidemicbuildingunit.vue
  2. 5
      src/views/modules/personroom/epidemicplotbuilding.vue

7
src/views/modules/personroom/epidemicbuildingunit.vue

@ -438,8 +438,11 @@ export default {
},
beforeImportUser () {
//
if (this.gridIdImport === '') {
document.getElementById('importBut').click()
if (this.gridIdImport === '' || this.gridIdImport === undefined) {
this.$message({
type: 'warning',
message: '请先选择网格'
});
return false
}
//

5
src/views/modules/personroom/epidemicplotbuilding.vue

@ -300,10 +300,11 @@ export default {
},
beforeImportUser () {
//
if (this.gridIdImport === '') {
if (this.gridIdImport === '' || this.gridIdImport === undefined) {
document.getElementById('importBut').click()
return false
return
}
console.log("111")
//
let selectGird = this.$refs['deptTree'].getCheckedNodes()[0].label

Loading…
Cancel
Save