|
|
@ -283,6 +283,9 @@ |
|
|
|
<el-form-item> |
|
|
|
<el-button type="primary" @click="beforeImportUser">导入</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="primary" @click="resetState">重置核酸检测状态</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-upload ref="upload" |
|
|
|
:action="uploadUrl" |
|
|
@ -699,6 +702,39 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
resetState(){ |
|
|
|
this.$confirm('此操作将重置所有人员的核酸检测状态为未检测, 是否继续?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
const loading = this.$loading({ |
|
|
|
lock: true, |
|
|
|
fullscreen: true, |
|
|
|
text: '操作中请稍后', |
|
|
|
background:'rgba(0, 0, 0, 0.8)' |
|
|
|
}); |
|
|
|
|
|
|
|
this.$http['post']('/custom/epidemicuserinfo/resetUserCheckState').then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
loading.close(); |
|
|
|
this.getDataList() |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
importResult () { |
|
|
|
this.faultDataVisible = false |
|
|
|
this.getDataList() |
|
|
|