feat: 增加详情
This commit is contained in:
@ -17,9 +17,10 @@
|
|||||||
<Searchs :searchArr="searchConfiger" @submit="onSearch" :key="pageData.keyCount"></Searchs>
|
<Searchs :searchArr="searchConfiger" @submit="onSearch" :key="pageData.keyCount"></Searchs>
|
||||||
</div>
|
</div>
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
<div class="tabBox" :style="{height:(pageData.tableHeight + 40)+'px'}">
|
<div class="tabBox" :style="{ height: (pageData.tableHeight + 40) + 'px' }">
|
||||||
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
|
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
|
||||||
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth">
|
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth"
|
||||||
|
:expand="true">
|
||||||
<template #sfcs="{ row }">
|
<template #sfcs="{ row }">
|
||||||
<span style="color: #0072ff;" @click="handleClick(row)">{{ row.sfcs }}</span>
|
<span style="color: #0072ff;" @click="handleClick(row)">{{ row.sfcs }}</span>
|
||||||
</template>
|
</template>
|
||||||
@ -29,6 +30,11 @@
|
|||||||
<template #czzt="{ row }">
|
<template #czzt="{ row }">
|
||||||
<DictTag :value="row.czzt" :options="D_GSXT_YJXX_CZZT" />
|
<DictTag :value="row.czzt" :options="D_GSXT_YJXX_CZZT" />
|
||||||
</template>
|
</template>
|
||||||
|
<template #expand="{ props }">
|
||||||
|
<div class="expand-content" style="max-width: 100%">
|
||||||
|
<Items :row="props || {}" :dict="dict" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
<template #controls="{ row }">
|
<template #controls="{ row }">
|
||||||
<el-link type="warning" @click="pushAssess(row)">全息档案</el-link>
|
<el-link type="warning" @click="pushAssess(row)">全息档案</el-link>
|
||||||
<el-link type="primary" @click="showDetail(row)">转合成</el-link>
|
<el-link type="primary" @click="showDetail(row)">转合成</el-link>
|
||||||
@ -60,19 +66,26 @@ import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
|||||||
import Searchs from "@/components/aboutTable/Search.vue";
|
import Searchs from "@/components/aboutTable/Search.vue";
|
||||||
import MyTable from "@/components/aboutTable/MyTable.vue";
|
import MyTable from "@/components/aboutTable/MyTable.vue";
|
||||||
import Pages from "@/components/aboutTable/Pages.vue";
|
import Pages from "@/components/aboutTable/Pages.vue";
|
||||||
|
import Items from "./item/items.vue";
|
||||||
import { tbYjxxGetZbtj, tbGsxtBqzhSelectList } from '@/api/yj.js'
|
import { tbYjxxGetZbtj, tbGsxtBqzhSelectList } from '@/api/yj.js'
|
||||||
import HolographicArchive from '@/views/home/components/holographicArchive.vue'
|
import HolographicArchive from '@/views/home/components/holographicArchive.vue'
|
||||||
import Information from "@/views/home/model/information.vue";
|
import Information from "@/views/home/model/information.vue";
|
||||||
import SemdFqzl from '@/components/instructionHasBeen/sendFqzl.vue'
|
import SemdFqzl from '@/components/instructionHasBeen/sendFqzl.vue'
|
||||||
import FkDialog from "@/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/fkDialog.vue";
|
import FkDialog from "@/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/fkDialog.vue";
|
||||||
import AddFrom from "./components/addFrom.vue";
|
import AddFrom from "./components/addFrom.vue";
|
||||||
import { reactive, ref, onMounted, getCurrentInstance, watch,nextTick } from "vue";
|
import { reactive, ref, onMounted, getCurrentInstance, watch, nextTick } from "vue";
|
||||||
import { qcckGet, qcckPost } from "@/api/qcckApi.js";
|
import { qcckGet, qcckPost } from "@/api/qcckApi.js";
|
||||||
import Detail from './components/detail.vue'
|
import Detail from './components/detail.vue'
|
||||||
import emitter from "@/utils/eventBus.js";
|
import emitter from "@/utils/eventBus.js";
|
||||||
const searchBox = ref();
|
const searchBox = ref();
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const { D_GSXT_YJXX_CZZT, D_GS_SSYJ, D_BZ_YJJB } = proxy.$dict("D_GSXT_YJXX_CZZT","D_GS_SSYJ","D_BZ_YJJB");
|
const { D_GSXT_YJXX_CZZT, D_GS_SSYJ, D_BZ_YJJB } = proxy.$dict("D_GSXT_YJXX_CZZT", "D_GS_SSYJ", "D_BZ_YJJB");
|
||||||
|
|
||||||
|
// 字典数据集合
|
||||||
|
const dict = ref({
|
||||||
|
D_GS_SSYJ,
|
||||||
|
D_GSXT_YJXX_CZZT
|
||||||
|
})
|
||||||
import { holographicProfileJump } from "@/utils/tools.js"
|
import { holographicProfileJump } from "@/utils/tools.js"
|
||||||
|
|
||||||
// 搜索配置
|
// 搜索配置
|
||||||
@ -255,7 +268,7 @@ const tabHeightFn = () => {
|
|||||||
} else {
|
} else {
|
||||||
pageData.tableHeight = window.innerHeight - 250;
|
pageData.tableHeight = window.innerHeight - 250;
|
||||||
}
|
}
|
||||||
window.onresize = function () {
|
window.onresize = function() {
|
||||||
tabHeightFn();
|
tabHeightFn();
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -0,0 +1,74 @@
|
|||||||
|
<template>
|
||||||
|
<div class="warning-item">
|
||||||
|
<div class="second-row">
|
||||||
|
<div class="info-item">姓名:<span>{{ row.xm }}</span></div>
|
||||||
|
<div class="info-item">身份证号:<span>{{ row.sfzh }}</span></div>
|
||||||
|
<div class="info-item">电话:<span>{{ row.dh }}</span></div>
|
||||||
|
</div>
|
||||||
|
<div class="second-row">
|
||||||
|
<div class="info-item">组合大类:<span>{{ row.sfdlmc }}</span></div>
|
||||||
|
<div class="info-item">组合小类:<span>{{ row.sfzlmc }}</span></div>
|
||||||
|
<div class="info-item">组合次数:<span>{{ row.sfcs }}</span></div>
|
||||||
|
</div>
|
||||||
|
<div class="second-row">
|
||||||
|
<div class="info-item">
|
||||||
|
标签颜色:<DictTag v-model:value="row.bqys" :options="props.dict.D_GS_SSYJ" />
|
||||||
|
</div>
|
||||||
|
<div class="info-item">预警时间:<span>{{ row.yjsj }}</span></div>
|
||||||
|
<div class="info-item">预警分值:<span>{{ row.sffz }}</span></div>
|
||||||
|
</div>
|
||||||
|
<div class="second-row">
|
||||||
|
<div class="info-item">
|
||||||
|
处置状态:<DictTag v-model:value="row.czzt" :options="props.dict.D_GSXT_YJXX_CZZT" />
|
||||||
|
</div>
|
||||||
|
<div class="info-item">所属县局:<span>{{ row.ssbm }}</span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
const props = defineProps({
|
||||||
|
/** 表格行数据 */
|
||||||
|
row: {
|
||||||
|
type: Object,
|
||||||
|
default: () => ({})
|
||||||
|
},
|
||||||
|
dict: {
|
||||||
|
type: Object,
|
||||||
|
default: () => ({
|
||||||
|
D_GS_SSYJ: [],
|
||||||
|
D_GSXT_YJXX_CZZT: []
|
||||||
|
})
|
||||||
|
},
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.warning-item {
|
||||||
|
width: 100%;
|
||||||
|
padding: 15px;
|
||||||
|
border: 1px solid #e8e8e8;
|
||||||
|
border-radius: 8px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.second-row {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 20px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-item {
|
||||||
|
flex: 0 0 calc(33.33% - 20px);
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: flex;
|
||||||
|
padding: 5px 0;
|
||||||
|
color: #333;
|
||||||
|
|
||||||
|
span {
|
||||||
|
font-weight: 500;
|
||||||
|
color: #606266;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user