hejianhao
2025-04-16 dab2d210ca06c1faa514c6388fbd5de1ab355360
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<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>