|
|
@ -82,10 +82,13 @@ |
|
|
|
>导入疫苗接种点数据</el-button |
|
|
|
> |
|
|
|
</el-upload> |
|
|
|
<el-button style="float:left;margin-left:10px" |
|
|
|
class="diy-button--reset" |
|
|
|
size="small" |
|
|
|
@click="handleExport">导出</el-button> |
|
|
|
<el-button |
|
|
|
style="float: left; margin-left: 10px" |
|
|
|
class="diy-button--reset" |
|
|
|
size="small" |
|
|
|
@click="handleExport" |
|
|
|
>导出</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
style="margin-left: 15px" |
|
|
|
class="diy-button--more" |
|
|
@ -187,7 +190,7 @@ |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
@click="addOrUpdateHandle(scope.row.id, '修改')" |
|
|
|
>{{ scope.row.longitude === null ? '待完善' : '修改' }}</el-button |
|
|
|
>{{ scope.row.longitude === null ? "待完善" : "修改" }}</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
@ -216,6 +219,9 @@ |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-press-escape="false" |
|
|
|
:destroy-on-close="true" |
|
|
|
width="850px" |
|
|
|
top="5vh" |
|
|
|
custom-class="dialog-h" |
|
|
|
> |
|
|
|
<add-or-update |
|
|
|
ref="addOrUpdate" |
|
|
@ -268,7 +274,7 @@ export default { |
|
|
|
sendNoticeFormShow: false, |
|
|
|
noticeVisible: false, |
|
|
|
noticeOrigin: "4", |
|
|
|
dialogTitle: '', |
|
|
|
dialogTitle: "", |
|
|
|
}; |
|
|
|
}, |
|
|
|
components: { |
|
|
@ -279,64 +285,59 @@ export default { |
|
|
|
this.noticeFun(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
async handleDelete (id) { |
|
|
|
|
|
|
|
this.$confirm("确认删除?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.deleteNat(id) |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
if (err == "cancel") { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
async deleteNat (id) { |
|
|
|
const url = "/epmetuser/icPointVaccinesInoculation/delete" |
|
|
|
let params = [id] |
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
if (code === 0) { |
|
|
|
this.$message({ |
|
|
|
type: "success", |
|
|
|
message: "删除成功" |
|
|
|
}); |
|
|
|
this.getDataList() |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
async handleDelete(id) { |
|
|
|
this.$confirm("确认删除?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
this.deleteNat(id); |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
if (err == "cancel") { |
|
|
|
} |
|
|
|
}, |
|
|
|
//导出表格 |
|
|
|
async handleExport () { |
|
|
|
let title = '疫苗接种点' |
|
|
|
|
|
|
|
const url = "/epmetuser/icPointVaccinesInoculation/point-export" |
|
|
|
|
|
|
|
app.ajax.exportFilePost( |
|
|
|
url, |
|
|
|
this.dataForm, |
|
|
|
(data, rspMsg) => { |
|
|
|
}); |
|
|
|
}, |
|
|
|
async deleteNat(id) { |
|
|
|
const url = "/epmetuser/icPointVaccinesInoculation/delete"; |
|
|
|
let params = [id]; |
|
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
|
if (code === 0) { |
|
|
|
this.$message({ |
|
|
|
type: "success", |
|
|
|
message: "删除成功", |
|
|
|
}); |
|
|
|
this.getDataList(); |
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}, |
|
|
|
//导出表格 |
|
|
|
async handleExport() { |
|
|
|
let title = "疫苗接种点"; |
|
|
|
|
|
|
|
this.download(data, title + '.xlsx') |
|
|
|
}, |
|
|
|
(rspMsg, data) => { |
|
|
|
this.$message.error(rspMsg); |
|
|
|
} |
|
|
|
); |
|
|
|
const url = "/epmetuser/icPointVaccinesInoculation/point-export"; |
|
|
|
|
|
|
|
}, |
|
|
|
//重置搜索条件 |
|
|
|
resetSearch () { |
|
|
|
this.dataForm = { |
|
|
|
name: '', |
|
|
|
mobile: '' |
|
|
|
} |
|
|
|
this.pageNo = 1 |
|
|
|
}, |
|
|
|
app.ajax.exportFilePost( |
|
|
|
url, |
|
|
|
this.dataForm, |
|
|
|
(data, rspMsg) => { |
|
|
|
this.download(data, title + ".xlsx"); |
|
|
|
}, |
|
|
|
(rspMsg, data) => { |
|
|
|
this.$message.error(rspMsg); |
|
|
|
} |
|
|
|
); |
|
|
|
}, |
|
|
|
//重置搜索条件 |
|
|
|
resetSearch() { |
|
|
|
this.dataForm = { |
|
|
|
name: "", |
|
|
|
mobile: "", |
|
|
|
}; |
|
|
|
this.pageNo = 1; |
|
|
|
}, |
|
|
|
// 发送通知 |
|
|
|
handleSendNotice() { |
|
|
|
this.sendNoticeFormShow = true; |
|
|
@ -357,7 +358,7 @@ export default { |
|
|
|
.catch(() => {}); |
|
|
|
}, |
|
|
|
// 新增 / 修改 |
|
|
|
addOrUpdateHandle(id,title) { |
|
|
|
addOrUpdateHandle(id, title) { |
|
|
|
this.dialogTitle = title; |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.addOrUpdate.dataForm.id = id; |
|
|
@ -368,7 +369,7 @@ export default { |
|
|
|
// 关闭弹窗 |
|
|
|
closeDialog() { |
|
|
|
this.addOrUpdateVisible = false; |
|
|
|
this.dialogTitle = ''; |
|
|
|
this.dialogTitle = ""; |
|
|
|
}, |
|
|
|
handleExportModule() { |
|
|
|
let title = "疫苗接种点模板"; |
|
|
@ -490,4 +491,7 @@ export default { |
|
|
|
border-radius: 5px; |
|
|
|
padding: 10px; |
|
|
|
} |
|
|
|
.dialog-h{ |
|
|
|
overflow: scroll; |
|
|
|
} |
|
|
|
</style> |
|
|
|