Browse Source

Merge branch 'feature/sleltc'

master
曲树通 3 years ago
parent
commit
c794b6db2a
  1. 69
      src/views/modules/epidemic/epidemicreportuserinfo.vue

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

@ -9,9 +9,11 @@
label-width="90px"> label-width="90px">
<el-cascader v-model="deptIdList" <el-cascader v-model="deptIdList"
ref="deptTreeOld" ref="deptTreeOld"
:props="props"
:options="options" :options="options"
:props="{ checkStrictly: true }" collapse-tags
clearable> clearable
@change="handleChange">
</el-cascader> </el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="姓名" <el-form-item label="姓名"
@ -793,6 +795,7 @@ export default {
mixins: [mixinViewModule], mixins: [mixinViewModule],
data () { data () {
return { return {
props: { multiple: true },
mixinViewModuleOptions: { mixinViewModuleOptions: {
getDataListURL: '/custom/epidemicuserinfo/page', getDataListURL: '/custom/epidemicuserinfo/page',
getDataListIsPage: true, getDataListIsPage: true,
@ -816,7 +819,8 @@ export default {
startBirthdayTime: '', startBirthdayTime: '',
endBirthdayTime: '', endBirthdayTime: '',
startCheckTime: '', startCheckTime: '',
endCheckTime: '' endCheckTime: '',
deptIdList: []
}, },
pickerBeginDateBefore: { pickerBeginDateBefore: {
disabledDate: (time) => { disabledDate: (time) => {
@ -913,7 +917,8 @@ export default {
isDisabled: false, isDisabled: false,
buttonName: "发送验证码", buttonName: "发送验证码",
buttonTime: 60, buttonTime: 60,
gridIdImport: '' gridIdImport: '',
deptIdList:null
} }
}, },
created: function () { created: function () {
@ -928,28 +933,30 @@ export default {
InfoDetail InfoDetail
}, },
watch: { watch: {
'deptIdList': function (val) { 'dataForm.deptIdList': function (val) {
if (val.length === 0) { // console.log("11111")
this.dataForm.streetId = '' // console.log(val)
this.dataForm.communityId = '' // if (val.length === 0) {
this.dataForm.gridId = '' // this.dataForm.streetId = ''
} // this.dataForm.communityId = ''
if (val.length === 1) { // this.dataForm.gridId = ''
this.dataForm.streetId = this.deptIdList[0] // }
this.dataForm.communityId = '' // if (val.length === 1) {
this.dataForm.gridId = '' // this.dataForm.streetId = this.deptIdList[0]
} // this.dataForm.communityId = ''
if (val.length === 2) { // this.dataForm.gridId = ''
this.dataForm.streetId = this.deptIdList[0] // }
this.dataForm.communityId = this.deptIdList[1] // if (val.length === 2) {
this.dataForm.gridId = '' // this.dataForm.streetId = this.deptIdList[0]
} // this.dataForm.communityId = this.deptIdList[1]
if (val.length === 3) { // this.dataForm.gridId = ''
this.dataForm.streetId = this.deptIdList[0] // }
this.dataForm.communityId = this.deptIdList[1] // if (val.length === 3) {
this.dataForm.gridId = this.deptIdList[2] // this.dataForm.streetId = this.deptIdList[0]
// this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/custom/epidemicuserinfo/importExcel?token=${Cookies.get('token')}&gridId=` + this.deptIdList[2] // this.dataForm.communityId = this.deptIdList[1]
} // this.dataForm.gridId = this.deptIdList[2]
// // this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/custom/epidemicuserinfo/importExcel?token=${Cookies.get('token')}&gridId=` + this.deptIdList[2]
// }
}, },
'deptIdListUpload': function (val) { 'deptIdListUpload': function (val) {
if (val.length > 0) { if (val.length > 0) {
@ -962,6 +969,14 @@ export default {
} }
}, },
methods: { methods: {
handleChange(value){
this.dataForm.deptIdList = []
value.forEach(e => {
this.dataForm.deptIdList.push(e.at(-1))
});
this.dataForm.deptIdList = this.dataForm.deptIdList + ''
},
resetState () { resetState () {
this.$confirm('此操作将重置所有人员的核酸检测状态为未检测, 是否继续?', '提示', { this.$confirm('此操作将重置所有人员的核酸检测状态为未检测, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -975,7 +990,7 @@ export default {
background: 'rgba(0, 0, 0, 0.8)' background: 'rgba(0, 0, 0, 0.8)'
}); });
this.$http['post']('/custom/epidemicuserinfo/resetUserCheckState').then(({ data: res }) => { this.$http['post']('/custom/epidemicuserinfo/rqesetUserCheckState').then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }

Loading…
Cancel
Save