更新
This commit is contained in:
@ -1,5 +1,11 @@
|
||||
<template>
|
||||
<el-dialog :model-value="modelValue" title="情报列表" width="70%" @close="closeDialog" destroy-on-close>
|
||||
<el-dialog :model-value="modelValue" width="70%" @close="closeDialog" :destroy-on-close="true" :close-on-click-modal="false" >
|
||||
<template #title>
|
||||
<div class="flex just-between align-center">
|
||||
<span class="f18" style="color: #333;">情报列表</span>
|
||||
<span @click="exportFile" class="f14 pointer" style="color: #0072ff;">下载</span>
|
||||
</div>
|
||||
</template>
|
||||
<Search :searchArr="searchConfiger" @submit="onSearch" :key="pageData.keyCount"></Search>
|
||||
<MyTable customClass="zdy_peo_table" :tableData="pageData.tableData" :tableColumn="pageData.tableColumn"
|
||||
:tableHeight="pageData.tableHeight" :key="pageData.keyCount" :tableConfiger="pageData.tableConfiger"
|
||||
@ -10,7 +16,6 @@
|
||||
<template #qbly="{ row }">
|
||||
<DictTag :tag="false" :value="row.qbly" :options="D_GS_XS_LY" />
|
||||
</template>
|
||||
|
||||
<template #shzt="{ row }">
|
||||
<!-- 采纳(将这条信息推送到情报管理),退回! -->
|
||||
<DictTag :tag="false" :value="row.shzt" :options="D_BZ_XSSHZT" @clickTag="clickTag(row.shzt)" />
|
||||
@ -34,15 +39,14 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { exportExlByObj } from "@/utils/exportExcel.js"
|
||||
import MyTable from "@/components/aboutTable/MyTable.vue";
|
||||
import Search from "@/components/aboutTable/Search.vue";
|
||||
import Pages from "@/components/aboutTable/Pages.vue";
|
||||
import Xq from "./xq.vue";
|
||||
import { qbcjSelectPage } from "@/api/Intelligence.js";
|
||||
import {xxcjSelectPage,xxcjXxzsx} from '@/api/xxcj.js'
|
||||
import {xxcjSelectPage} from '@/api/xxcj.js'
|
||||
import { ref, reactive, getCurrentInstance, watch, onMounted } from "vue";
|
||||
import { useRoute,useRouter } from 'vue-router'
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
const { proxy } = getCurrentInstance()
|
||||
const { D_BZ_QBSBLY,D_GS_XS_LX,D_GS_XS_LY ,D_BZ_XSSHZT} = proxy.$dict("D_BZ_QBSBLY","D_GS_XS_LX","D_GS_XS_LY","D_BZ_XSSHZT")
|
||||
@ -105,7 +109,7 @@ const pageData = reactive({
|
||||
{ label: "情报上报时间", prop: "sxsbsj" ,watch:'300'},
|
||||
{ label: "情报内容", prop: "qbnr" },
|
||||
],
|
||||
tableHeight: "45vh",
|
||||
tableHeight: "40vh",
|
||||
});
|
||||
const parameter = ref()
|
||||
|
||||
@ -159,6 +163,19 @@ const clickTag = (row) => {
|
||||
dataList.value = row.row;
|
||||
}
|
||||
}
|
||||
|
||||
// 导出
|
||||
const exportFile = () =>{
|
||||
const titleObj = {
|
||||
xssbr: "上报人姓名",
|
||||
xsBh: "情报编号",
|
||||
qbmc: "情报标题",
|
||||
sxsbsj: "情报上报时间",
|
||||
qbnr: "情报内容",
|
||||
}
|
||||
exportExlByObj(titleObj, pageData.tableData, '情报列表')
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user