更新页面

This commit is contained in:
2025-09-22 19:00:02 +08:00
parent 811fd41070
commit ed6cdcd0da
9 changed files with 25 additions and 41 deletions

View File

@ -3,10 +3,7 @@
<div class="titleBox">
<page-title title="单位管理" />
</div>
<!-- 搜索 -->
<div ref="searchBox">
<Search :searchArr="searchConfiger" @submit="onSearch"></Search>
</div>
<!-- 表格 -->
<div class="tabBox">
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
@ -46,20 +43,6 @@ const visible = ref(false);
const searchBox = ref(null);
const detailsRef = ref(null);
const D_BZ_BXDLX = ref([]);
const searchConfiger = ref([
{
label: "巡逻路线名称",
prop: "bxxMc",
placeholder: "巡逻路线名称",
showType: "input"
},
{
label: "所属辖区",
prop: "ssbmdm",
placeholder: "分县局",
showType: "department"
}
]);
const pageData = reactive({
tableData: [{}],
@ -76,17 +59,17 @@ const pageData = reactive({
},
controlsWidth: 180,
tableColumn: [
{ label: "姓名", prop: "bxxMc" },
{ label: "证件号码", prop: "ssbm" },
{ label: "巡逻路线类型", prop: "bxxLx", showSolt: true },
{ label: "巡逻点位数量", prop: "bxds", showSolt: true }
{ label: "单位名称", prop: "bxxMc" },
{ label: "信用代码", prop: "ssbm" },
{ label: "场所名称", prop: "bxxLx", showSolt: true },
{ label: "场所电话", prop: "bxds", showSolt: true }
]
});
// 表格高度计算
const tabHeightFn = () => {
pageData.tableHeight =
window.innerHeight - searchBox.value.offsetHeight - 250;
window.innerHeight - 240;
window.onresize = function () {
tabHeightFn();
};