This commit is contained in:
lcw
2025-09-24 19:34:38 +08:00
parent c6a0f0b9aa
commit e712c4cb34
3 changed files with 242 additions and 20253 deletions

View File

@ -38,7 +38,8 @@ import Pages from "@/components/aboutTable/Pages.vue";
import Search from "@/components/aboutTable/Search.vue";
import DetailForm from "./components/detailForm.vue";
import Pxgs from "./components/pxgs.vue";
import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
import {getItem} from '@/utils/storage.js'
import { cyryPage} from "@/api/pxzx.js";
import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue";
const { proxy } = getCurrentInstance();
const activeTab = ref(2)
@ -63,7 +64,7 @@ const searchConfiger = ref([
showType: "input"
},
]);
const idEntityCard=getItem('idEntityCard')
const queryFrom = ref({});
const pageData = reactive({
tableData: [{name:'张三',idNumber:'44032519900101001X',contactInfo:'13800000000',isInspected:'是',inspectionTime:'2023-08-01'}],
@ -87,9 +88,8 @@ const pageData = reactive({
{ label: "年检时间", prop: "inspectionTime", width: 120 }
]
});
onMounted(() => {
getList();
getInfo();
tabHeightFn();
});
@ -112,10 +112,24 @@ const changeSize = (val) => {
pageData.pageConfiger.pageSize = val;
getList();
};
const getInfo = () => {
let promes = { sfzh: idEntityCard }
cyryPage(promes).then(res => {
pageData.tableData = res.records || [];
pageData.total = res.total;
}).finally(() => {
pageData.tableConfiger.loading = false;
})
}
// 获取列表
const getList = () => {
// pageData.tableConfiger.loading = true;
pageData.tableConfiger.loading = true;
// const promes = {
// ...pageData.pageConfiger,
// ...queryFrom.value
// }
//
// let data = { ...pageData.pageConfiger, ...queryFrom.value };
// qcckGet(data, "/mosty-jbld/jbldzsd/selectPage").then((res) => {
// pageData.tableData = res.records || [];