|
@@ -15,8 +15,12 @@
|
|
|
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
|
|
</el-col>
|
|
|
+ <el-col :span="12" style="text-align: right;">
|
|
|
+ <el-button type="primary" @click="exportExcel">导出excel</el-button>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
+
|
|
|
</div>
|
|
|
</transition>
|
|
|
<!-- 表格组件 -->
|
|
@@ -27,17 +31,29 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="姓名" align="center" prop="name" width="100" fixed="left" />
|
|
|
- <el-table-column label="所属区县" align="center" prop="county" />
|
|
|
- <el-table-column label="专家类型" align="center" prop="expert_type" />
|
|
|
- <el-table-column label="职位" align="center" prop="position" />
|
|
|
+ <el-table-column label="荣誉称号" align="center" prop="" />
|
|
|
<el-table-column label="单位" align="center" prop="unit" />
|
|
|
- <el-table-column label="联系电话" align="center" prop="phone" />
|
|
|
- <el-table-column label="现在地址" align="center" prop="address" />
|
|
|
- <el-table-column label="状态" align="center" prop="status" />
|
|
|
- <el-table-column label="擅长事故类型" align="center" prop="accident_type" />
|
|
|
- <el-table-column label="救援经历" align="center" prop="rescue_experience" />
|
|
|
- <el-table-column label="出生日期" align="center" prop="birthdate" />
|
|
|
- <el-table-column label="工作日期" align="center" prop="work_date" />
|
|
|
+ <el-table-column label="职位" align="center" prop="position" />
|
|
|
+ <el-table-column label="职称" align="center" prop="" />
|
|
|
+ <el-table-column label="发证日期" align="center" prop="" />
|
|
|
+ <el-table-column label="专业分组" align="center" prop="" />
|
|
|
+ <el-table-column label="专业领域" align="center" prop="" />
|
|
|
+ <el-table-column label="工作电话" align="center" prop="phone" />
|
|
|
+ <el-table-column label="住宅电话" align="center" prop="phone" />
|
|
|
+ <el-table-column label="移动电话" align="center" prop="phone" />
|
|
|
+ <el-table-column label="电子邮箱" align="center" prop="" />
|
|
|
+ <el-table-column label="联系地址" align="center" prop="address" />
|
|
|
+ <el-table-column label="增量标识" align="center" prop="" />
|
|
|
+ <el-table-column label="增量时间" align="center" prop="" />
|
|
|
+ <el-table-column label="批次号" align="center" prop="" />
|
|
|
+ <el-table-column label="新增时间" align="center" prop="" />
|
|
|
+<!-- <el-table-column label="所属区县" align="center" prop="county" />-->
|
|
|
+<!-- <el-table-column label="专家类型" align="center" prop="expert_type" />-->
|
|
|
+<!-- <el-table-column label="状态" align="center" prop="status" />-->
|
|
|
+<!-- <el-table-column label="擅长事故类型" align="center" prop="accident_type" />-->
|
|
|
+<!-- <el-table-column label="救援经历" align="center" prop="rescue_experience" />-->
|
|
|
+<!-- <el-table-column label="出生日期" align="center" prop="birthdate" />-->
|
|
|
+<!-- <el-table-column label="工作日期" align="center" prop="work_date" />-->
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="200">
|
|
|
<template #default="scope">
|
|
|
<el-text class="common-btn-text-primary" @click="handleView(scope.row)">查看</el-text>
|
|
@@ -60,7 +76,7 @@
|
|
|
<el-card class="card">
|
|
|
<template #header>
|
|
|
<div class="card-header">
|
|
|
- <span>类型统计</span>
|
|
|
+ <span>专业分组</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<Chart :option="option2" style="height: 180px" />
|
|
@@ -107,6 +123,8 @@ import { PatrolVO } from '@/views/inspectionWork/patrolTask.vue';
|
|
|
import { graphic } from 'echarts';
|
|
|
import Map from './Map.vue';
|
|
|
import { PointType } from '@/api/globalMap/type';
|
|
|
+import { fillingTable } from '@/api/dataFilling/fillingManage';
|
|
|
+import { download2 } from '@/utils/request';
|
|
|
const loading = ref(true);
|
|
|
const showSearch = ref(true);
|
|
|
const multiple = ref(true);
|
|
@@ -114,6 +132,8 @@ const ids = ref<Array<number | string>>([]);
|
|
|
const single = ref(true);
|
|
|
const total = ref(0);
|
|
|
const tableData = ref<PatrolVO[]>([]);
|
|
|
+const baseUrl = import.meta.env.VITE_APP_BASE_API;
|
|
|
+const filename = '专家信息表';
|
|
|
const selectedRow = ref<PatrolVO | null>(null);
|
|
|
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
@@ -215,6 +235,10 @@ const handleCancel = () => {
|
|
|
viewState.show = false;
|
|
|
editState.show = false;
|
|
|
};
|
|
|
+const exportExcel = () => {
|
|
|
+ fillingTable(ids.value[0]);
|
|
|
+ download2(baseUrl + '/api/dataFilling/export_to_excel?report_id='+ids.value[0], filename + '.xlsx');
|
|
|
+};
|
|
|
let option1 = ref({
|
|
|
grid: {
|
|
|
top: '30px',
|
|
@@ -548,12 +572,11 @@ const initData = () => {
|
|
|
// 类型统计
|
|
|
// option2.value.legend.data = ['洪水灾害', '城市内涝', '地质灾害', '气象灾害', '生物灾害', '森林火灾'];
|
|
|
option2.value.series[0].data = [
|
|
|
- { name: '洪水灾害', value: 1 },
|
|
|
- { name: '城市内涝', value: 1 },
|
|
|
- { name: '地质灾害', value: 2 },
|
|
|
- { name: '气象灾害', value: 5 },
|
|
|
- { name: '生物灾害', value: 1 },
|
|
|
- { name: '森林火灾', value: 2 }
|
|
|
+ { name: '自然灾害类', value: 50 },
|
|
|
+ { name: '事故灾害类', value: 69 },
|
|
|
+ { name: '公共卫生类', value: 9 },
|
|
|
+ { name: '社会安全类', value: 9 },
|
|
|
+ { name: '综合管理类', value: 5 }
|
|
|
];
|
|
|
// 年龄统计
|
|
|
const data1 = [6, 6, 14, 23, 32];
|