diff --git a/src/views/modules/personroom/epidemicbuildingunit.vue b/src/views/modules/personroom/epidemicbuildingunit.vue
index 48c7a4f..ba0f154 100644
--- a/src/views/modules/personroom/epidemicbuildingunit.vue
+++ b/src/views/modules/personroom/epidemicbuildingunit.vue
@@ -50,7 +50,6 @@
导入
-
导入
+
+
+
+
@@ -80,6 +83,7 @@
{{ $t('update') }}
+
{{ $t('delete') }}
@@ -95,6 +99,27 @@
+
+
+
+
+
+
+
+
+ 导出错误数据
+
+
@@ -103,6 +128,7 @@
import mixinViewModule from '@/mixins/view-module'
import AddOrUpdate from './epidemicbuildingunit-add-or-update'
import Cookies from "js-cookie";
+import qs from "qs";
export default {
mixins: [mixinViewModule],
data () {
@@ -111,9 +137,12 @@ export default {
getDataListURL: '/custom/epidemicbuildingunit/page',
getDataListIsPage: true,
deleteURL: '/custom/epidemicbuildingunit',
- deleteIsBatch: true
+ deleteIsBatch: true,
+ exportErrorInfoURL: '/custom/epidemicusererror/export'
},
options: [],
+ faultDataVisible: false,
+ errordataList: [],
deptIdListUpload: [],
roomTypeArr: [],
roomUseArr: [],
@@ -214,6 +243,38 @@ export default {
this.uploeadLoeading = false
this.$message.error('上传失败请重试')
},
+ updateMa () {
+ this.$http.post(`/custom/epidemicbuildingunit/updateMaCode`).then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ }).catch(() => {})
+ this.$http.post(`/custom/epidemicplotbuilding/updateMaCode`).then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ }).catch(() => {})
+ },
+ downloadMa (id) {
+ this.$http.post(`/custom/epidemicbuildingunit/createHouseQrcode`, {id: id}).then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg)
+ }
+ }).catch(() => {})
+ },
+ // 导出错误数据
+ exportError () {
+ var params = qs.stringify({
+ // 'token': window.localStorage.getItem('token'),
+ 'token': Cookies.get('token'),
+ ...this.dataForm
+ })
+ window.location.href = `${window.SITE_CONFIG['apiURL']}${this.mixinViewModuleOptions.exportErrorInfoURL}?${params}`
+ this.$message({
+ type: 'success',
+ message: '下载成功'
+ });
+ },
beforeImportUser () {
//所属组织全都不选,直接上传
if (this.gridIdImport === '') {