This commit is contained in:
姚宇浩 2024-09-02 15:19:15 +08:00
commit 88effb1c9d
6 changed files with 68 additions and 6 deletions

BIN
dist.zip Normal file

Binary file not shown.

View File

@ -178,6 +178,14 @@
<!-- <Map class="map"></Map> --> <!-- <Map class="map"></Map> -->
</div> </div>
</div> </div>
<!-- 人物详情 -->
<personDetail
class="detail"
style="width: 1920px; height: 1080px; position: absolute; top: 15px"
v-show="openD"
:message="message"
@closeDetail="closeDetail"
></personDetail>
<DialogEnrol <DialogEnrol
:dialogShowEnrol="dialogShowEnrol" :dialogShowEnrol="dialogShowEnrol"
:dataEnrol="dataEnrol" :dataEnrol="dataEnrol"
@ -224,8 +232,10 @@
:tableData="tableType.data" :tableData="tableType.data"
:pagination="pagination" :pagination="pagination"
:showXq="false" :showXq="false"
:dj="personnelDetails"
@close="closeJj" @close="closeJj"
@handle="handlePagination" @handle="handlePagination"
@openMessage="openMessage"
> >
</Dialog> </Dialog>
</div> </div>
@ -240,6 +250,7 @@ import {
onBeforeUnmount, onBeforeUnmount,
computed, computed,
} from "vue"; } from "vue";
import personDetail from "./person/index.vue";
import Dialog from "./dialog/dialog.vue"; import Dialog from "./dialog/dialog.vue";
import DialogEnrol from "./dialog/dialogEnrol.vue"; import DialogEnrol from "./dialog/dialogEnrol.vue";
import DialogElderly from "./dialog/diaLogElderlyData.vue"; import DialogElderly from "./dialog/diaLogElderlyData.vue";
@ -268,6 +279,22 @@ import jypx1 from "@/assets/images/sjfx/pxrc.png";
import jypx2 from "@/assets/images/sjfx/gygws.png"; import jypx2 from "@/assets/images/sjfx/gygws.png";
import tools from "@/utils/tools"; import tools from "@/utils/tools";
const showR = ref(false); //loading const showR = ref(false); //loading
const personnelDetails = ref(false); //
//
const openD = ref(false);
const message = ref({});
//
const openMessage = (e) => {
// console.log("", e);
message.value = e;
openD.value = true;
};
//
const closeDetail = () => {
openD.value = false;
};
// //
const dialogShowEnrol = ref(false); const dialogShowEnrol = ref(false);
const dialogShowElderly = ref(false); const dialogShowElderly = ref(false);
@ -621,6 +648,7 @@ const jsSj = (name, index) => {
getzrzc(name, 1); getzrzc(name, 1);
} }
tableType.columns = columns["聚集数据"].column; tableType.columns = columns["聚集数据"].column;
personnelDetails.value = true;
dialogShow.value = true; dialogShow.value = true;
}; };
const getzrzc = (name, bq) => { const getzrzc = (name, bq) => {
@ -1546,4 +1574,7 @@ onBeforeUnmount(() => {
:deep(.el-table .el-table__row) { :deep(.el-table .el-table__row) {
border-bottom: none; border-bottom: none;
} }
.detail {
z-index: 99999;
}
</style> </style>

View File

@ -46,6 +46,7 @@
height="100%" height="100%"
:key="tableKey" :key="tableKey"
:header-cell-style="{ background: '#008FCD' }" :header-cell-style="{ background: '#008FCD' }"
@row-click="handleRowClick"
> >
<template v-for="item in data.columns"> <template v-for="item in data.columns">
<el-table-column <el-table-column
@ -102,6 +103,10 @@ import {
nextTick, nextTick,
} from "vue"; } from "vue";
import { CircleCloseFilled } from "@element-plus/icons-vue"; import { CircleCloseFilled } from "@element-plus/icons-vue";
import { useRouter, useRoute } from "vue-router";
const router = useRouter();
const routers = useRoute();
const props = defineProps({ const props = defineProps({
dialogShow: { dialogShow: {
type: Boolean, type: Boolean,
@ -137,8 +142,26 @@ const props = defineProps({
return true; return true;
}, },
}, },
dj: {
type: Boolean,
default: () => {
return false;
},
},
}); });
const emit = defineEmits(["close", "handle"]); const emit = defineEmits(["close", "handle", "loadTables", "openMessage"]);
const handleRowClick = (row, column, event) => {
if (props.dj) {
console.log(row, props.dj, "rwxq");
// router.push({
// path: `/home/index/person`,
// query: { identNo: row.identNo, type: "detail" },
// });
// row
emit("openMessage", { identNo: row.identNo });
}
};
// //
const dialogShow = ref(); const dialogShow = ref();
@ -168,6 +191,11 @@ watch(
tableKey.value = Math.random(); tableKey.value = Math.random();
} }
); );
// watch(
// () => props.dj,
// (newVal, oldVal) => {
// }
// );
// 使 // 使
onMounted(() => { onMounted(() => {
dialogShow.value = props.dialogShow; dialogShow.value = props.dialogShow;

View File

@ -38,7 +38,7 @@ const colors = [
const data = reactive({ const data = reactive({
list: [], list: [],
option: {}, option: {},
Max: 8000, Max: 20000,
valueList: [ valueList: [
4504, 16086, 6130, 2844, 4967, 179, 1685, 5010, 633, 569, 219, 5152, 40, 4504, 16086, 6130, 2844, 4967, 179, 1685, 5010, 633, 569, 219, 5152, 40,
631, 536, 631, 536,

View File

@ -185,7 +185,11 @@ const getOption = () => {
}; };
const setChart = () => { const setChart = () => {
const myChart = echarts.init(chart.value); // const myChart = echarts.init(chart.value);
let myChart = echarts.getInstanceByDom(chart.value);
if (!myChart) {
myChart = echarts.init(chart.value);
}
if (clear.value) { if (clear.value) {
myChart.clear(); myChart.clear();
} }

View File

@ -2747,6 +2747,7 @@ const open_detail = () => {
age = ""; age = "";
dialogShow.value = true; dialogShow.value = true;
person_detail2(); person_detail2();
console.log("详情", choose.value.person);
} else if ( } else if (
// choose.value.person == "" || // choose.value.person == "" ||
// choose.value.person == "" || // choose.value.person == "" ||
@ -2767,11 +2768,9 @@ const open_detail = () => {
} }
}); });
dialogShow.value = true; dialogShow.value = true;
person_detail(age, tagId); person_detail(age, tagId);
} else { } else {
dialogShow.value = true; dialogShow.value = true;
age = choose.value.person; age = choose.value.person;
person_detail(age); person_detail(age);
} }