lcw
This commit is contained in:
@ -24,7 +24,7 @@
|
||||
<span style="color: #0072ff;" @click="handleClick(row)">{{ row.xwcs }}</span>
|
||||
</template>
|
||||
<template #bqYs="{ row }">
|
||||
<DictTag :value="row.bqYs" :tag="false" :options="D_GS_SSYJ" />
|
||||
<DictTag :value="row.bqys" :tag="false" :options="D_GS_SSYJ" />
|
||||
</template>
|
||||
<template #controls="{ row }">
|
||||
<el-link type="primary">下发指令</el-link>
|
||||
@ -115,7 +115,7 @@ const getList = () =>{
|
||||
qcckGet(queryFrom.value,'/mosty-gsxt/yjzxXwyj/getPageList').then((res)=>{
|
||||
pageData.total = res.total || 0;
|
||||
pageData.tableConfiger.loading = false;
|
||||
pageData.tableData = res.records || [];
|
||||
// pageData.tableData = res.records || [];
|
||||
}).catch(()=>{
|
||||
pageData.tableConfiger.loading = false;
|
||||
})
|
||||
|
||||
@ -6,25 +6,40 @@
|
||||
<span>{{ changetText(props.item.yjJb) }}</span>
|
||||
</div>
|
||||
<div>
|
||||
<el-image :preview-teleported="true" style="width: 80px; height: 110px" :src="props.item.yjTp"
|
||||
:preview-src-list="[props.item.yjTp]" />
|
||||
<el-image :preview-teleported="true" style="width: 80px; height: 110px" :src="item.yjTp"
|
||||
:preview-src-list="[item.yjTp]" show-progress>
|
||||
<template #error>
|
||||
<div class="image-slot error">
|
||||
<img src="@/assets/images/car.png" width="65" height="80" v-if="item.yjLx == 2" />
|
||||
<img src="@/assets/images/default_male.png" width="80" height="110" v-else />
|
||||
</div>
|
||||
</template>
|
||||
</el-image>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<span class="smallbtn" @click.stop="() => { }">全息档案{{ props.item.id }}</span>
|
||||
<span class="smallbtn" @click.stop="() => { }">全息档案</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="infoBox">
|
||||
<div style="height: 110px">
|
||||
<div class="flex nowrap align-center just-between linItem">
|
||||
<div class="wichAlian3">{{ props.item.yjRyxm }}</div>
|
||||
<div>|</div>
|
||||
<div class="wichAlian3">
|
||||
<span v-if="item.yjLx == 2" >{{ props.item.yjClcph }}</span>
|
||||
<span v-else >{{ props.item.yjRyxm }}</span>
|
||||
</div>
|
||||
|
||||
<template v-if="item.yjLx == 1">
|
||||
<div>|</div>
|
||||
<div class="wichAlian">{{ IdCard(props.item.yjRysfzh, 2) }}</div>
|
||||
<div>|</div>
|
||||
<div class="wichAlian2"> {{ IdCard(props.item.yjRysfzh, 3) }}</div>
|
||||
<div>|</div>
|
||||
</template>
|
||||
|
||||
<div class="wichAlian3"> <span class="bqbox ml6">{{ props.item.yjbq }}</span></div>
|
||||
</div>
|
||||
<div class="linItem">身份证号:{{ props.item.yjRysfzh }}</div>
|
||||
<div class="linItem" v-if="item.yjLx == 1">身份证号:{{ props.item.yjRysfzh }}</div>
|
||||
<div class="linItem">预警时间:{{ props.item.yjSj }}</div>
|
||||
<div class="linItem flex nowrap align-center just-between">预警次数:{{ props.item.yjCs }}<div></div>
|
||||
<div>相似度:90%</div>
|
||||
@ -39,7 +54,7 @@
|
||||
v-if="props.item.yjJb != 10 && props.item.czzt == '03'"> 查看反馈 </span>
|
||||
<div>
|
||||
<span class="smllbtn" v-if="track" @click.stop="showDetail(props.item)">发送指令</span>
|
||||
<span class="smllbtn" v-else @click.stop="openTrack(props.item)">历史轨迹</span>
|
||||
<span class="smllbtn" v-else @click.stop="openTrack(props.item)">历史轨迹</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="items">
|
||||
@ -105,7 +120,7 @@ watch(() => props.item, (newVal) => {
|
||||
console.log(newVal);
|
||||
|
||||
}
|
||||
},{deep:true})
|
||||
}, { deep: true })
|
||||
const deptLevel = ref(null)
|
||||
const emit = defineEmits(['showDetail'])
|
||||
const showDetail = (val) => {
|
||||
@ -158,9 +173,9 @@ const changetText = (type) => {
|
||||
return "不关注";
|
||||
}
|
||||
};
|
||||
const showTrack=ref(false)
|
||||
const showTrack = ref(false)
|
||||
const openTrack = () => {
|
||||
showTrack.value=true
|
||||
showTrack.value = true
|
||||
};
|
||||
// <!-- 虚拟触发 -->
|
||||
// <!-- <el-popover ref="popoverRef" :visible="isShowVisble" :width="400" :virtual-ref="buttonRef" trigger="click" title="反馈" virtual-triggering >
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<div class="systemBox">
|
||||
<GdMap></GdMap>
|
||||
<!-- 头部筛选 -->
|
||||
<div class="topSearch">
|
||||
<!-- <div class="topSearch">
|
||||
<el-form v-model="listQuery">
|
||||
<MOSTY.Select v-model="listQuery.sd" :dictEnum="search.xd" />
|
||||
<MOSTY.Select v-model="listQuery.zs" :dictEnum="search.zs" />
|
||||
@ -10,7 +10,7 @@
|
||||
<MOSTY.Select v-model="listQuery.dz" :dictEnum="search.dz" />
|
||||
</el-form>
|
||||
<el-button type="primary">搜索</el-button>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="systemBox">
|
||||
<!-- 左边列表 -->
|
||||
<div class="leftList">
|
||||
@ -30,9 +30,10 @@
|
||||
</template>
|
||||
</el-input>
|
||||
</div>
|
||||
<!-- @click.stop="showDetail(item)" -->
|
||||
|
||||
<ul class="listContent noScollLine mt10" v-infinite-scroll="loadList" style="overflow: auto"
|
||||
v-loading="loading">
|
||||
<!-- @click.stop="showDetail(item)" -->
|
||||
<li v-for="(item, index) in personList" :key="index" @click="markAbove(item)">
|
||||
<YjItem :item="item" type="yj" :dic="{ D_BZ_YJCZZT }" @showDetail="showDetail"></YjItem>
|
||||
</li>
|
||||
|
||||
@ -7,8 +7,16 @@
|
||||
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
|
||||
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth">
|
||||
<template #yjTp="{ row }">
|
||||
<el-image :preview-teleported="true" style="width: 80px; height: 110px" :src="row.yjTp"
|
||||
:preview-src-list="[row.yjTp]" />
|
||||
<el-image style="width: 80px; height:120px" :src="row.yjTp" :preview-src-list="[row.yjTp]" show-progress>
|
||||
<template #error>
|
||||
<div class="image-slot error">
|
||||
<img src="@/assets/images/car.png" width="65" height="70" v-if="row.yjLx == 2"/>
|
||||
<img src="@/assets/images/default_male.png" width="65" height="70" v-else/>
|
||||
</div>
|
||||
</template>
|
||||
</el-image>
|
||||
<!-- <el-image :preview-teleported="true" style="width: 80px; height: 110px" :src="row.yjTp"
|
||||
:preview-src-list="[row.yjTp]" /> -->
|
||||
</template>
|
||||
<template #nl="{ row }">
|
||||
{{ IdCard(row.yjRysfzh, 3) }}
|
||||
@ -61,7 +69,7 @@ const pageData = reactive({
|
||||
}, //分页
|
||||
controlsWidth: 160, //操作栏宽度
|
||||
tableColumn: [
|
||||
{ label: "人像照片", prop: "yjTp", showSolt: true },
|
||||
{ label: "预警图片", prop: "yjTp", showSolt: true },
|
||||
{ label: "姓名", prop: "yjRyxm" },
|
||||
{ label: "年龄", prop: "nl", showSolt: true },
|
||||
{ label: "性别", prop: "xb", showSolt: true },
|
||||
|
||||
@ -44,8 +44,19 @@
|
||||
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="500"
|
||||
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth">
|
||||
<template #yjTp="{ row }">
|
||||
<el-image :preview-teleported="true" style="width: 80px; height: 110px" :src="row.yjTp"
|
||||
:preview-src-list="[row.yjTp]" />
|
||||
<el-image style="width: 80px; height:120px" :src="row.yjTp" :preview-src-list="[row.yjTp]" show-progress>
|
||||
<template #error>
|
||||
<div class="image-slot error">
|
||||
<img src="@/assets/images/car.png" width="65" height="70" v-if="row.yjLx == 2"/>
|
||||
<img src="@/assets/images/default_male.png" width="65" height="70" v-else/>
|
||||
</div>
|
||||
</template>
|
||||
</el-image>
|
||||
|
||||
|
||||
|
||||
<!-- <el-image :preview-teleported="true" style="width: 80px; height: 110px" :src="row.yjTp"
|
||||
:preview-src-list="[row.yjTp]" /> -->
|
||||
</template>
|
||||
<template #nl="{ row }">
|
||||
{{ IdCard(row.yjRysfzh, 3) }}
|
||||
@ -133,7 +144,7 @@ const pageData = reactive({
|
||||
}, //分页
|
||||
controlsWidth: 160, //操作栏宽度
|
||||
tableColumn: [
|
||||
{ label: "人像照片", prop: "yjTp", showSolt: true },
|
||||
{ label: "预警图片", prop: "yjTp", showSolt: true },
|
||||
{ label: "姓名", prop: "yjRyxm" },
|
||||
{ label: "年龄", prop: "nl", showSolt: true },
|
||||
{ label: "性别", prop: "xb", showSolt: true },
|
||||
@ -211,42 +222,42 @@ const exportExcel = () => {
|
||||
const handleExport = () => {
|
||||
// 创建一个临时表格用于导出
|
||||
const tempTable = document.createElement('table');
|
||||
|
||||
|
||||
// 创建表头
|
||||
const thead = document.createElement('thead');
|
||||
const headerRow = document.createElement('tr');
|
||||
|
||||
|
||||
// 添加序号列
|
||||
const indexTh = document.createElement('th');
|
||||
indexTh.textContent = '序号';
|
||||
headerRow.appendChild(indexTh);
|
||||
|
||||
|
||||
// 添加其他列头
|
||||
pageData.tableColumn.forEach(column => {
|
||||
const th = document.createElement('th');
|
||||
th.textContent = column.label;
|
||||
headerRow.appendChild(th);
|
||||
});
|
||||
|
||||
|
||||
thead.appendChild(headerRow);
|
||||
tempTable.appendChild(thead);
|
||||
|
||||
|
||||
// 创建表体
|
||||
const tbody = document.createElement('tbody');
|
||||
|
||||
|
||||
// 处理表格数据
|
||||
pageData.tableData.forEach((row, index) => {
|
||||
const tr = document.createElement('tr');
|
||||
|
||||
|
||||
// 添加序号
|
||||
const indexTd = document.createElement('td');
|
||||
indexTd.textContent = index + 1;
|
||||
tr.appendChild(indexTd);
|
||||
|
||||
|
||||
// 添加其他单元格数据
|
||||
pageData.tableColumn.forEach(column => {
|
||||
const td = document.createElement('td');
|
||||
|
||||
|
||||
// 处理自定义插槽的情况
|
||||
if (column.showSolt) {
|
||||
if (column.prop === 'yjTp') {
|
||||
@ -269,15 +280,15 @@ const handleExport = () => {
|
||||
// 普通字段
|
||||
td.textContent = row[column.prop] || '';
|
||||
}
|
||||
|
||||
|
||||
tr.appendChild(td);
|
||||
});
|
||||
|
||||
|
||||
tbody.appendChild(tr);
|
||||
});
|
||||
|
||||
|
||||
tempTable.appendChild(tbody);
|
||||
|
||||
|
||||
// 执行Excel导出
|
||||
let xlsxParam = { raw: true };
|
||||
let wb = XLSX.utils.table_to_book(tempTable, xlsxParam);
|
||||
@ -286,7 +297,7 @@ const handleExport = () => {
|
||||
bookSST: true,
|
||||
type: "array"
|
||||
});
|
||||
|
||||
|
||||
// 保存文件
|
||||
try {
|
||||
const exportTime = new Date().toLocaleString('zh-CN').replace(/\//g, '-').replace(/:/g, '-');
|
||||
|
||||
Reference in New Issue
Block a user