diff --git a/src/views/modules/base/epidemic/natInfo/natForm.vue b/src/views/modules/base/epidemic/natInfo/natForm.vue
index f332062a..3f381f9e 100644
--- a/src/views/modules/base/epidemic/natInfo/natForm.vue
+++ b/src/views/modules/base/epidemic/natInfo/natForm.vue
@@ -149,8 +149,10 @@
:before-upload="beforeUpload"
:on-change="handleEditChange"
:file-list="fileList">
-
-
+
请选择1张图片,只能上传jpg、png、gif格式
@@ -261,7 +263,6 @@ export default {
async mounted () {
const { user } = this.$store.state
this.agencyId = user.agencyId
- this.formData.agencyId = user.agencyId
//获取网格下拉框数据
await this.loadGrid()
},
@@ -269,7 +270,9 @@ export default {
methods: {
async initForm (type, icNatId) {
- this.startLoading()
+
+ this.formData.agencyId = this.agencyId
+
this.$refs['ref_form'].resetFields();
this.formType = type
@@ -280,7 +283,7 @@ export default {
this.isFromResi = false
await this.loadFormData()
}
- this.endLoading()
+
},
@@ -469,7 +472,7 @@ export default {
// if (!isLt1M) {
// this.$message.error('上传文件大小不能超过 5MB!')
// }
- return isLt1M
+ // return isLt1M
},
diff --git a/src/views/modules/base/epidemic/natInfo/natList.vue b/src/views/modules/base/epidemic/natInfo/natList.vue
index 5057e6a4..f81b2305 100644
--- a/src/views/modules/base/epidemic/natInfo/natList.vue
+++ b/src/views/modules/base/epidemic/natInfo/natList.vue
@@ -94,7 +94,7 @@
:show-file-list='false'
:before-upload="beforeUpload"
action=""
- accept=".xls,.xlsx"
+ accept=".xlsx"
:limit="1"
:on-exceed="handleExceed"
:http-request="uploadFile">
@@ -512,7 +512,8 @@ export default {
this.formData,
(data, rspMsg) => {
- this.download(data, title + '.xls')
+
+ this.download(data, title + '.xlsx')
},
(rspMsg, data) => {
this.$message.error(rspMsg);
@@ -558,7 +559,7 @@ export default {
params,
(data, rspMsg) => {
- this.download(data, title + '.xls')
+ this.download(data, title + '.xlsx')
},
(rspMsg, data) => {
this.$message.error(rspMsg);
@@ -568,15 +569,15 @@ export default {
// 上传文件之前的钩子
beforeUpload (file) {
- this.files = file;
-
- const isText = file.type === 'application/vnd.ms-excel'
- const isTextComputer = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
- if (!isText && !isTextComputer) {
- this.$message.error('请选择正确格式的文件')
+ const array = file.name.split('.')
+ const extension = array[array.length - 1]
+ // const isLt1M = (file.size / 1024 / 1024) < 5
+ if (extension !== 'xlsx') {
+ this.$message.error('只能上传xlsx文件!')
return false
} else {
+ this.files = file;
this.fileName = file.name;
return true
}
@@ -607,8 +608,6 @@ export default {
let fileFormData = new FormData();
fileFormData.append('file', this.files);//filename是键,file是值,就是要传的文件,test.zip是要传的文件名
-
- this.importRoomLoading = true
window.app.ajax.post2(url, fileFormData,
(data, rspMsg) => {
@@ -623,18 +622,17 @@ export default {
// })
// this.$message.error(rspMsg)
}
- this.$emit('refreshTree')
- this.loadTable()
- this.importRoomLoading = false
+
+ // this.loadTable()
+
},
(rspMsg, data) => {
- this.importRoomLoading = false
+
}, { headers: { 'Content-Type': 'multipart/form-data' } })
},
-
// 开启加载动画
startLoading () {
loading = Loading.service({
diff --git a/src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue b/src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue
index 8fdcfb3e..33c3e417 100644
--- a/src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue
+++ b/src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue
@@ -1,5 +1,5 @@
-
+
+ v-model="formData1.mobile">
+ v-model="formData1.content">
@@ -241,7 +241,7 @@
+ v-model="formData2.content">
@@ -298,10 +298,10 @@ export default {
formData1: {
name: '',
idCard: '',
- phone: '',
+ mobile: '',
remark: '',
noticeWay: [],
- noticeContent: '',
+ content: '',
},
@@ -309,7 +309,7 @@ export default {
personList: [],
remark: '',
noticeWay: [],
- noticeContent: '',
+ content: '',
},
tableData: [],
total: 0,
@@ -528,15 +528,12 @@ export default {
let url = ''
- if (this.formType === 'add') {
- url = '/gov/project/memoConcern/save'
- // url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoConcern/save"
- this.formData.id = ''
- } else {
- url = '/gov/project/memoConcern/update'
- // url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoConcern/update"
- }
+ url = '/epmetuser/icEpidemicSpecialAttention/vaccination-add'
+ // url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoConcern/save"
+ this.formData.id = ''
+
+
const { data, code, msg } = await requestPost(url, this.formData)
@@ -579,10 +576,10 @@ export default {
this.formData1 = {
name: '',
idCard: '',
- phone: '',
+ mobile: '',
remark: '',
noticeWay: [],
- noticeContent: '',
+ content: '',
}
@@ -590,7 +587,7 @@ export default {
personList: [],
remark: '',
noticeWay: [],
- noticeContent: '',
+ content: '',
}
this.formDataSearch = {
selGridId: '',
@@ -645,7 +642,7 @@ export default {
idCard: [
{ required: true, message: '身份证号不能为空', trigger: 'blur' }
],
- phone: [
+ mobile: [
{ required: true, message: '手机号不能为空', trigger: 'blur' },
],
diff --git a/src/views/modules/base/epidemic/veroFocus/veroFocusEdit.vue b/src/views/modules/base/epidemic/veroFocus/veroFocusEdit.vue
index 87b5f154..6e7479d4 100644
--- a/src/views/modules/base/epidemic/veroFocus/veroFocusEdit.vue
+++ b/src/views/modules/base/epidemic/veroFocus/veroFocusEdit.vue
@@ -1,5 +1,5 @@
-