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