<template>
|
<!--导入-->
|
<el-dialog
|
class="height-auto"
|
title="下载模板"
|
:visible="value"
|
width="50%"
|
:modal='false'
|
:show-close="false"
|
:before-close="onCancel">
|
<el-button type="primary" size="small" @click="population">实有人口模版下载</el-button>
|
<el-button type="primary" size="small" @click="drug">吸毒人员模版下载</el-button>
|
<el-button type="primary" size="small" @click="correct">社区矫正人员模版下载</el-button>
|
<el-button type="primary" size="small" @click="essence">重精人员模版下载</el-button>
|
<el-button type="primary" size="small" @click="Cult">邪教人员模版下载</el-button>
|
<el-button type="primary" size="small" @click="prison">刑释人员模版下载</el-button>
|
<el-button type="primary" size="small" @click="petition">重点上访人员模版下载</el-button>
|
<!-- <el-button type="primary" size="small" @click="sentence">服刑人员模版下载</el-button> -->
|
<el-button type="primary" size="small" @click="retire">退役军人模版下载</el-button>
|
<el-button type="primary" size="small" @click="disability">残疾人模版下载</el-button>
|
<el-button type="primary" size="small" @click="households">低保户模版下载</el-button>
|
<el-button type="primary" size="small" @click="advanced">高龄老人模版下载</el-button>
|
<el-button type="primary" size="small" @click="provide">养老人员模版下载</el-button>
|
<span slot="footer" class="dialog-footer">
|
<el-button @click="onCancel">取 消</el-button>
|
<el-button type="primary" @click="onOk('ruleForm')" >确 定</el-button>
|
</span>
|
</el-dialog>
|
</template>
|
|
<script>
|
export default {
|
props: {
|
value: {type: Boolean},
|
},
|
|
data() {
|
return {
|
|
}
|
},
|
|
methods:{
|
/** 取消 */
|
onCancel () {
|
this.$emit('change', false);
|
},
|
|
/** 确认 */
|
onOk(formName) {
|
|
},
|
|
//实有人口模板下载
|
population() {
|
console.log("ddd")
|
this.$api.get("common/data/population/export", {}, (e) => {
|
window.location.href = e;
|
});
|
},
|
|
//吸毒模块下载
|
drug() {
|
this.$api.get("common/data/population/export/drug", {}, (e) => {
|
window.location.href = e;
|
});
|
},
|
|
//社区矫正
|
correct() {
|
this.$api.get("common/data/population/export/correctr", {}, (e) => {
|
window.location.href = e;
|
});
|
},
|
|
essence(){
|
this.$api.get("common/data/population/export/major", {}, (e) => {
|
window.location.href = e;
|
});
|
},
|
|
Cult(){
|
this.$api.get("common/data/population/export/cult", {}, (e) => {
|
window.location.href = e;
|
});
|
},
|
|
prison(){
|
this.$api.get("common/data/population/export/rehabilitation", {}, (e) => {
|
window.location.href = e;
|
});
|
},
|
|
petition(){
|
this.$api.get("common/data/population/export/key", {}, (e) => {
|
window.location.href = e;
|
});
|
},
|
|
sentence(){
|
this.$api.get("common/data/population/export/sentence", {}, (e) => {
|
window.location.href = e;
|
});
|
},
|
|
retire(){
|
this.$api.get("common/data/population/export/veterans", {}, (e) => {
|
window.location.href = e;
|
});
|
},
|
|
disability(){
|
this.$api.get("common/data/population/export/disability", {}, (e) => {
|
window.location.href = e;
|
});
|
},
|
|
households(){
|
this.$api.get("common/data/population/export/lowSecurity", {}, (e) => {
|
window.location.href = e;
|
});
|
},
|
|
advanced() {
|
this.$api.get("common/data/population/export/elder", {}, (e) => {
|
window.location.href = e;
|
});
|
},
|
|
provide() {
|
this.$api.get("common/data/population/export/pension", {}, (e) => {
|
window.location.href = e;
|
});
|
}
|
|
}
|
}
|
</script>
|
|
<style lang="less" scoped>
|
/deep/.el-dialog__body {
|
height: 150px;
|
}
|
/deep/.el-button--small {
|
margin-bottom: 15px;
|
}
|
|
</style>
|