修改bug

This commit is contained in:
2026-04-20 20:36:59 +08:00
parent 6b563f728f
commit 571e149313
11 changed files with 114 additions and 76 deletions

View File

@ -640,10 +640,7 @@ const submit = () => {
});
loading.value = true;
let url =
title.value == "新增"
? "/mosty-gsxt/tbGsxtBk/save"
: "/mosty-gsxt/tbGsxtBk/update";
let url = title.value == "新增" ? "/mosty-gsxt/tbGsxtBk/save" : "/mosty-gsxt/tbGsxtBk/update";
qcckPost(params, url)
.then((res) => {
proxy.$message({ type: "success", message: "布控成功" });

View File

@ -3,7 +3,7 @@
<!-- 搜索 -->
<div ref="searchBox" class="mt10">
<Search :searchArr="searchConfiger" @submit="onSearch" >
<el-button type="primary" size="small" @click="handleAdd('add', null)">发起布控</el-button>
<el-button type="primary" size="small" @click="handleAdd('add', null)">发起布控</el-button>
</Search>
</div>
@ -177,6 +177,7 @@ const pageData = reactive({
{ label: "开始时间", prop: "bkSjKs", showOverflowTooltip: true },
{ label: "结束时间", prop: "bkSjJs", showOverflowTooltip: true },
{ label: "申请人", prop: "bkfqrXm" },
{ label: "身份证号", prop: "bkfqrSfzh" },
{ label: "布控状态", prop: "bkZt", showSolt: true },
]
});
@ -196,9 +197,28 @@ const createProcess = (row) => {
onMounted(() => {
getList();
tabHeightFn();
if(route.name == 'PrivateSurveillance'){
// 临时布控
searchConfiger.value = [
...searchConfiger.value,
{
label: "姓名",
prop: "bkfqrXm",
placeholder: "请输入姓名",
showType: "input"
},
{
label: "身份证号",
prop: "bkfqrSfzh",
placeholder: "请输入身份证号",
showType: "input"
}
]
}
});
// 搜索
// 搜索
const onSearch = (val) => {
queryFrom.value = {
...val,
@ -229,7 +249,7 @@ const getList = () => {
};
qcckGet(data, "/mosty-gsxt/tbGsxtBk/selectPage").then((res) => {
pageData.tableData = res.records || [];
pageData.total = res.total;
pageData.total = res.total || 0;
pageData.tableConfiger.loading = false;
}).catch(() => {
pageData.tableConfiger.loading = false;