This commit is contained in:
2025-12-12 15:20:17 +08:00
4 changed files with 44 additions and 22 deletions

View File

@ -15,7 +15,7 @@ export function isLocalDict(dictCode) {
D_GS_SSYJ: true, // "岗哨系统四色预警" D_GS_SSYJ: true, // "岗哨系统四色预警"
D_BZ_SF: true, // "是否" D_BZ_SF: true, // "是否"
BD_BK_CLYJBQ: true, // "车辆预警标签" BD_BK_CLYJBQ: true, // "车辆预警标签"
D_YJXX_CZCSLX:true, //常控处置措施类型 D_YJXX_CZCSLX: true, //常控处置措施类型
} }
return localDicObj[dictCode] return localDicObj[dictCode]
} }
@ -32,12 +32,14 @@ export function getDict(...args) {
getSysDictByCode({ getSysDictByCode({
dictCode: d dictCode: d
}).then(result => { }).then(result => {
result = result || {}
result.itemList = Array.isArray(result.itemList) ? result.itemList : []
result.itemList.forEach(p => { result.itemList.forEach(p => {
p.label = p.zdmc p.label = p.zdmc
p.value = p.dm p.value = p.dm
p.id = p.dm p.id = p.dm
p.elTagType = p.dictType p.elTagType = p.dictType
if (p.itemList && p.itemList.length > 0) { if (p?.itemList && p.itemList?.length > 0) {
getChildren(p) getChildren(p)
} }
p.children = p.itemList p.children = p.itemList

View File

@ -379,5 +379,5 @@ export const bqYs = (val) => {
*/ */
export function holographicProfileJump(szhm) { export function holographicProfileJump(szhm) {
if (!szhm) return if (!szhm) return
window.open(`https://tyyy.lz.dsj.xz/profile/people/person-manage?szhm=${szhm}&from=portal`) window.open(`https://tyyy.lz.dsj.xz/profile/people/person-manage?sfzhm=${szhm}&from=portal`)
} }

View File

@ -5,19 +5,19 @@
<!-- <el-button type="primary" @click="exportExcel"> <!-- <el-button type="primary" @click="exportExcel">
<span style="vertical-align: middle">导出</span> <span style="vertical-align: middle">导出</span>
</el-button> --> </el-button> -->
<el-button type="success" @click="openSearch"> <el-button type="success" @click="openSearch">
<Search style="width: 1em; height: 1em; margin-right: 8px" /> <Search style="width: 1em; height: 1em; margin-right: 8px" />
<span style="vertical-align: middle" v-if="!search">搜索</span> <span style="vertical-align: middle" v-if="!search">搜索</span>
<span style="vertical-align: middle" v-else>关闭搜索</span> <span style="vertical-align: middle" v-else>关闭搜索</span>
</el-button> </el-button>
</PageTitle> </PageTitle>
</div> </div>
<!-- 搜索 --> <!-- 搜索 -->
<div ref="searchBox" v-if="search"> <div ref="searchBox" v-if="search">
<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">
<template #xwcs="{ row }"> <template #xwcs="{ row }">
@ -26,8 +26,8 @@
<template #bqYs="{ row }"> <template #bqYs="{ row }">
<DictTag :value="row.bqys" :tag="false" :color="bqYs(row.bqys)" :options="D_GS_SSYJ" /> <DictTag :value="row.bqys" :tag="false" :color="bqYs(row.bqys)" :options="D_GS_SSYJ" />
</template> </template>
<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 #controls="{ row }"> <template #controls="{ row }">
<el-link type="warning" @click="pushAssess(row)">全息档案</el-link> <el-link type="warning" @click="pushAssess(row)">全息档案</el-link>
@ -54,7 +54,7 @@
:tacitly="tacitly" /> :tacitly="tacitly" />
</Information> </Information>
<!-- 详情 --> <!-- 详情 -->
<AddFrom ref="addModelRef" :dict="{D_GSXT_YJXX_CZZT, D_BZ_YJJB,D_GS_SSYJ}"></AddFrom> <AddFrom ref="addModelRef" :dict="{ D_GSXT_YJXX_CZZT, D_BZ_YJJB, D_GS_SSYJ }"></AddFrom>
</template> </template>
<script setup> <script setup>
@ -71,12 +71,12 @@ import Information from "@/views/home/model/information.vue";
import SemdFqzl from '@/components/instructionHasBeen/sendFqzl.vue' import SemdFqzl from '@/components/instructionHasBeen/sendFqzl.vue'
import emitter from "@/utils/eventBus.js"; import emitter from "@/utils/eventBus.js";
import FkDialog from "@/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/fkDialog.vue"; import FkDialog from "@/views/backOfficeSystem/fourColorManage/warningControl/centerHome/components/fkDialog.vue";
import { reactive, ref, onMounted, getCurrentInstance, computed, watch,nextTick } from "vue"; import { reactive, ref, onMounted, getCurrentInstance, computed, watch, nextTick } from "vue";
import AddFrom from './components/addFrom.vue' import AddFrom from './components/addFrom.vue'
import { holographicProfileJump } from "@/utils/tools.js" import { holographicProfileJump } from "@/utils/tools.js"
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const { D_GS_SSYJ ,D_GSXT_YJXX_CZZT} = proxy.$dict("D_GS_SSYJ","D_GSXT_YJXX_CZZT"); //获取字典数据 const { D_GS_SSYJ, D_GSXT_YJXX_CZZT } = proxy.$dict("D_GS_SSYJ", "D_GSXT_YJXX_CZZT"); //获取字典数据
const searchBox = ref(); //搜索框 const searchBox = ref(); //搜索框
const bqLbData = ref({ const bqLbData = ref({
bqXl: [] bqXl: []
@ -120,8 +120,8 @@ const pageData = reactive({
{ label: "行为次数", prop: "xwcs", showSolt: true }, { label: "行为次数", prop: "xwcs", showSolt: true },
{ label: "行为颜色", prop: "bqYs", showSolt: true }, { label: "行为颜色", prop: "bqYs", showSolt: true },
{ label: "行为分值", prop: "xwfz", }, { label: "行为分值", prop: "xwfz", },
{ label: "处置状态", prop: "czzt", showSolt: true }, { label: "处置状态", prop: "czzt", showSolt: true },
{ label: "所属县局", prop: "ssbm" }, { label: "所属县局", prop: "ssbm" },
] ]
}); });
@ -174,7 +174,7 @@ const getList = () => {
pageData.total = res.total || 0; pageData.total = res.total || 0;
pageData.tableConfiger.loading = false; pageData.tableConfiger.loading = false;
pageData.tableData = res.records.map(item => { pageData.tableData = res.records.map(item => {
return { ...item, bqys: '01' } return { ...item }
}) || []; }) || [];
}).catch(() => { }).catch(() => {
pageData.tableConfiger.loading = false; pageData.tableConfiger.loading = false;
@ -197,13 +197,13 @@ const exportExcel = () => {
XLSX.writeFile(workbook, "行为预警.xlsx"); XLSX.writeFile(workbook, "行为预警.xlsx");
} }
const bqYs = (val) => { const bqYs = (val) => {
if (val == '01') { if (val == '01') { // 红
return '#ff0202' return '#ff0202'
} else if (val == '02') { } else if (val == '02') { // 橙
return '#ff8c00' return '#ff8c00'
} else if (val == '03') { } else if (val == '03') { // 黄
return '#ffff00' return '#c2c203' // 原亮黄色:ffff00
} else if (val == '04') { } else if (val == '04') { // 蓝
return '#0000ff' return '#0000ff'
} }
} }
@ -282,7 +282,7 @@ const tabHeightFn = () => {
} else { } else {
pageData.tableHeight = window.innerHeight - 250; pageData.tableHeight = window.innerHeight - 250;
} }
window.onresize = function () { window.onresize = function() {
tabHeightFn(); tabHeightFn();
}; };
}; };
@ -292,4 +292,12 @@ const tabHeightFn = () => {
.el-loading-mask { .el-loading-mask {
background: rgba(0, 0, 0, 0.5) !important; background: rgba(0, 0, 0, 0.5) !important;
} }
/** 方便查看对应的颜色, */
.test-top-color {
color: #ff0202;
background-color: #ff8c00;
border-color: #c2c203;
outline-color: #0000ff;
}
</style> </style>

12
打包.bat Normal file
View File

@ -0,0 +1,12 @@
@echo off
echo <20><>ʼ<EFBFBD><CABC>֥<EFBFBD>ڸ<EFBFBD>pc<70><63><EFBFBD><EFBFBD>(sgxt_pc)...
call npm run build
echo <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD><EFBFBD>ѹ<EFBFBD><D1B9>...
if exist gsxt.zip del gsxt.zip
powershell Compress-Archive -Path gsxt -DestinationPath gsxt.zip
echo ѹ<><D1B9><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD>
explorer .
msg * "<EFBFBD><EFBFBD>֥<EFBFBD>ڸ<EFBFBD>pc<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD>"
start http://localhost:9528?project=sgxt_pc
powershell -Command "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD>', '<27>ɹ<EFBFBD>', [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::Exclamation)"