更新数据

This commit is contained in:
2025-07-17 11:58:57 +08:00
parent f80a0e5539
commit ba54ca1efb
2 changed files with 35 additions and 80 deletions

View File

@ -3,15 +3,9 @@
<div class="left"> <div class="left">
<div style="background: #fff" class="pl10 pr10 pb10 pt10"> <div style="background: #fff" class="pl10 pr10 pb10 pt10">
<div class="title">图像信息</div> <div class="title">图像信息</div>
<MyTable <MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
:tableData="pageData.tableData" :key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth"
:tableColumn="pageData.tableColumn" @chooseData="chooseData">
:tableHeight="pageData.tableHeight"
:key="pageData.keyCount"
:tableConfiger="pageData.tableConfiger"
:controlsWidth="pageData.controlsWidth"
@chooseData="chooseData"
>
<template #cjhx> <template #cjhx>
<img width="60" height="60" :src="pro" alt="" /> <img width="60" height="60" :src="pro" alt="" />
</template> </template>
@ -19,13 +13,9 @@
<img width="60" height="60" :src="pro" alt="" /> <img width="60" height="60" :src="pro" alt="" />
</template> </template>
<template #controls="{ row }"> <template #controls="{ row }">
<el-link size="small" type="success" @click="addEdit('edit', row)" <el-link size="small" type="success" @click="addEdit('edit', row)">研判确认</el-link>
>研判确认</el-link
>
<el-link size="small" type="primary">查看</el-link> <el-link size="small" type="primary">查看</el-link>
<el-link size="small" type="danger" @click="deleteRow(row)" <el-link size="small" type="danger" @click="deleteRow(row)">删除</el-link>
>删除</el-link
>
</template> </template>
</MyTable> </MyTable>
</div> </div>
@ -33,25 +23,14 @@
<div class="flex align-center"> <div class="flex align-center">
<div class="title mr20">人员信息</div> <div class="title mr20">人员信息</div>
<div class="mb13"> <div class="mb13">
<el-button <el-button size="small" v-for="it in btnsList" :key="it" @click="chooseType(it)">
size="small"
v-for="it in btnsList"
:key="it"
@click="chooseType(it)"
>
{{ it }} {{ it }}
</el-button> </el-button>
</div> </div>
</div> </div>
<MyTable <MyTable :tableData="pageData.tableDataPeople" :tableColumn="pageData.tableColumnPeople"
:tableData="pageData.tableDataPeople" :tableHeight="pageData.tableHeight1" :key="pageData.keyCount" :tableConfiger="pageData.tableConfiger1"
:tableColumn="pageData.tableColumnPeople" :controlsWidth="pageData.controlsWidth" @chooseData="chooseDataBottom">
:tableHeight="pageData.tableHeight1"
:key="pageData.keyCount"
:tableConfiger="pageData.tableConfiger1"
:controlsWidth="pageData.controlsWidth"
@chooseData="chooseDataBottom"
>
<template #ryXm="{ row }"> <template #ryXm="{ row }">
<div class="one_text_detail">姓名{{ row.ryXm }} &nbsp;</div> <div class="one_text_detail">姓名{{ row.ryXm }} &nbsp;</div>
<div class="one_text_detail">电话{{ row.rySjhm }} &nbsp;</div> <div class="one_text_detail">电话{{ row.rySjhm }} &nbsp;</div>
@ -65,45 +44,23 @@
</template> </template>
<template #bqList="{ row }"> <template #bqList="{ row }">
<div v-if="row.bqList"> <div v-if="row.bqList">
<el-tag v-for="(it, idx) in row.bqList" :key="idx" <el-tag v-for="(it, idx) in row.bqList" :key="idx">{{ it.bqMc }}</el-tag>
>{{ it.bqMc }}</el-tag
>
</div> </div>
</template> </template>
<template #czfs="{ row }"> <template #czfs="{ row }">
<div> <div>
关注<DictTag 关注<DictTag :tag="false" style="display: inline" :value="row.sfGz" :options="D_BZ_SF" />&nbsp;
:tag="false"
style="display: inline"
:value="row.sfGz"
:options="D_BZ_SF"
/>
&nbsp;
</div> </div>
<div> <div>
布控人员<DictTag 布控人员<DictTag :tag="false" style="display: inline" :value="row.sfZbkry" :options="D_BZ_SF" />&nbsp;
:tag="false"
style="display: inline"
:value="row.sfZbkry"
:options="D_BZ_SF"
/>&nbsp;
</div> </div>
<div> <div>
重点人员<DictTag 重点人员<DictTag :tag="false" style="display: inline" :value="row.sfZzdry" :options="D_BZ_SF" />
:tag="false"
style="display: inline"
:value="row.sfZzdry"
:options="D_BZ_SF"
/>
</div> </div>
</template> </template>
</MyTable> </MyTable>
<Pages <Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight1"
@changeNo="changeNo" :pageConfiger="{ ...pageData.pageConfiger, total: pageData.total }" />
@changeSize="changeSize"
:tableHeight="pageData.tableHeight1"
:pageConfiger="{ ...pageData.pageConfiger, total: pageData.total }"
/>
</div> </div>
</div> </div>
<div class="right"> <div class="right">
@ -117,21 +74,13 @@
<div class="one_text_detail">所在地址{{ item.yjDz }}</div> <div class="one_text_detail">所在地址{{ item.yjDz }}</div>
</div> </div>
</li> </li>
<MOSTY.Empty <MOSTY.Empty :show="!modelLoading && stepList.length <= 0"></MOSTY.Empty>
:show="!modelLoading && stepList.length <= 0"
></MOSTY.Empty>
</ul> </ul>
</div> </div>
</div> </div>
<!-- 弹窗 --> <!-- 弹窗 -->
<Model <Model v-model="isShow" :type="chooselx" :chooseList="chooseList" :ids="ids" @change="getList"
v-model="isShow" :dic="{ D_BZ_SF, D_GS_ZDRFJ_SPZT }"></Model>
:type="chooselx"
:chooseList="chooseList"
:ids="ids"
@change="getList"
:dic="{ D_BZ_SF, D_GS_ZDRFJ_SPZT }"
></Model>
</template> </template>
<script setup> <script setup>
import * as MOSTY from "@/components/MyComponents/index"; import * as MOSTY from "@/components/MyComponents/index";
@ -143,8 +92,7 @@ import MyTable from "@/components/aboutTable/MyTable.vue";
import Pages from "@/components/aboutTable/Pages.vue"; import Pages from "@/components/aboutTable/Pages.vue";
import { qcckPost } from "@/api/qcckApi.js"; import { qcckPost } from "@/api/qcckApi.js";
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const { D_GS_ZDRFJ_SPZT, D_BZ_SF, D_GS_RQFJ_FXDJ, D_GS_RQFJ_FXLB } = const { D_GS_ZDRFJ_SPZT, D_BZ_SF, D_GS_RQFJ_FXDJ, D_GS_RQFJ_FXLB } = proxy.$dict("D_GS_ZDRFJ_SPZT", "D_BZ_SF", "D_GS_RQFJ_FXDJ", "D_GS_RQFJ_FXLB"); //获取字典数据
proxy.$dict("D_GS_ZDRFJ_SPZT", "D_BZ_SF", "D_GS_RQFJ_FXDJ", "D_GS_RQFJ_FXLB"); //获取字典数据
const btnsList = reactive(["是否重点人", "布控", "是否关注", "移交管控"]); const btnsList = reactive(["是否重点人", "布控", "是否关注", "移交管控"]);
const chooselx = ref(""); const chooselx = ref("");
const isShow = ref(false); const isShow = ref(false);
@ -297,11 +245,10 @@ const chooseType = (val) => {
} }
); );
}) })
.catch(() => {}); .catch(() => { });
break; break;
case "是否重点人": case "是否重点人":
if (chooseList.value.length == 0) if (chooseList.value.length == 0) return ElMessage.warning("选择的数据中都是重点人");
return ElMessage.warning("选择的数据中都是重点人");
isShow.value = true; isShow.value = true;
break; break;
case "是否关注": case "是否关注":
@ -324,12 +271,14 @@ onMounted(() => {
padding: 10px 10px 0 10px; padding: 10px 10px 0 10px;
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
.title { .title {
font-size: 20px; font-size: 20px;
font-weight: 700; font-weight: 700;
margin-bottom: 20px; margin-bottom: 20px;
position: relative; position: relative;
color: #333; color: #333;
&::after { &::after {
content: ""; content: "";
position: absolute; position: absolute;
@ -337,19 +286,19 @@ onMounted(() => {
left: 0; left: 0;
width: 78px; width: 78px;
height: 4px; height: 4px;
background: linear-gradient( background: linear-gradient(90deg,
90deg,
#3597f9c4 0%, #3597f9c4 0%,
rgba(53, 150, 249, 0) 100% rgba(53, 150, 249, 0) 100%);
);
border-radius: 4px 4px 4px 4px; border-radius: 4px 4px 4px 4px;
} }
} }
.left { .left {
width: calc(100% - 410px); width: calc(100% - 410px);
height: 100%; height: 100%;
float: left; float: left;
} }
.right { .right {
width: 400px; width: 400px;
height: 100%; height: 100%;
@ -358,16 +307,19 @@ onMounted(() => {
float: right; float: right;
box-sizing: border-box; box-sizing: border-box;
background: #fff; background: #fff;
.cntBox { .cntBox {
height: calc(100% - 60px); height: calc(100% - 60px);
overflow: hidden; overflow: hidden;
overflow-y: auto; overflow-y: auto;
.step { .step {
padding-left: 20px; padding-left: 20px;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
border-left: 3px dashed #0072ff; border-left: 3px dashed #0072ff;
margin-left: 10px; margin-left: 10px;
&::before { &::before {
position: absolute; position: absolute;
content: ""; content: "";
@ -378,6 +330,7 @@ onMounted(() => {
left: -12px; left: -12px;
top: 0; top: 0;
} }
.desc { .desc {
margin: 5px; margin: 5px;
color: #929090; color: #929090;
@ -406,6 +359,7 @@ onMounted(() => {
.unit { .unit {
margin-left: 5px; margin-left: 5px;
} }
::v-deep .el-input__inner { ::v-deep .el-input__inner {
height: 36px !important; height: 36px !important;
line-height: 36px !important; line-height: 36px !important;
@ -413,6 +367,7 @@ onMounted(() => {
color: #777575; color: #777575;
} }
} }
.el-form-item--default { .el-form-item--default {
margin-bottom: 0px; margin-bottom: 0px;
} }

View File

@ -120,7 +120,7 @@ const submitForm = () => {
if (props.type == "是否关注") url = "/mosty-gsxt/tbGsxtRqfjRy/updateBySfgz"; if (props.type == "是否关注") url = "/mosty-gsxt/tbGsxtRqfjRy/updateBySfgz";
if (props.type == "移交管控") url = "/mosty-gsxt/tbGsxtRqfjRy/updateByYjgk"; if (props.type == "移交管控") url = "/mosty-gsxt/tbGsxtRqfjRy/updateByYjgk";
if (props.type == "是否重点人") { if (props.type == "是否重点人") {
url = " /mosty-gsxt/tbGsxtRqfjRy/sendZdrSs"; url = "/mosty-gsxt/tbGsxtRqfjRy/sendZdrSs";
params.ids = props.chooseList.map((v) => v.id); params.ids = props.chooseList.map((v) => v.id);
} }
qcckPost(params, url).then((res) => { qcckPost(params, url).then((res) => {