更新
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
</div>
|
||||
<!-- 表格 -->
|
||||
<div class="tabBox">
|
||||
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight" :key="pageData.keyCount" :tableConfiger="pageData.tableConfiger"
|
||||
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight" :tableConfiger="pageData.tableConfiger"
|
||||
:controlsWidth="pageData.controlsWidth" @chooseData="chooseData">
|
||||
<template #rwzt="{ row }">
|
||||
<el-table-column prop="wlq" label="未领取"/>
|
||||
@ -43,7 +43,6 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import * as MOSTY from "@/components/MyComponents/index";
|
||||
import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
|
||||
import EditAddForm from "./components/editAddForm.vue";
|
||||
import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
||||
@ -73,7 +72,6 @@ const searchConfiger = reactive([
|
||||
]);
|
||||
const pageData = reactive({
|
||||
tableData: [], //表格数据
|
||||
keyCount: 0,
|
||||
tableConfiger: {
|
||||
loading: false,
|
||||
rowHieght: 61,
|
||||
@ -94,17 +92,12 @@ const pageData = reactive({
|
||||
]
|
||||
});
|
||||
onMounted(() => {
|
||||
proxy.mittBus.on("mittFn", (data) => {
|
||||
pageData.keyCount = data;
|
||||
});
|
||||
tabHeightFn();
|
||||
getDataList();
|
||||
});
|
||||
// 搜索
|
||||
const onSearch = (val) => {
|
||||
listQuery.value = { ...listQuery.value, ...val };
|
||||
if (val.cz) listQuery.value.ssbmdm = "";
|
||||
delete listQuery.value.cz;
|
||||
getDataList();
|
||||
};
|
||||
|
||||
@ -115,7 +108,6 @@ const getDataList = () => {
|
||||
pageCurrent: pageData.pageConfiger.pageNum,
|
||||
...listQuery.value
|
||||
};
|
||||
delete pramas.daterange;
|
||||
// pageData.tableConfiger.loading = true;
|
||||
// qcckPost(pramas, "/mosty-yszx/tbYsSxt/getPageList")
|
||||
// .then((res) => {
|
||||
@ -138,11 +130,7 @@ const changeSize = (val) => {
|
||||
|
||||
// 多选
|
||||
const chooseData = (val) => {
|
||||
if (!val) return false;
|
||||
if (val instanceof Array)
|
||||
ids.value = val.map((v) => {
|
||||
return v.id;
|
||||
});
|
||||
if(Array.isArray(val)) ids.value = val.map((v) => v.id);
|
||||
};
|
||||
//批量删除
|
||||
const deletList = (id) => {
|
||||
@ -165,11 +153,8 @@ const addEditForm = (type, row) => {
|
||||
|
||||
// 表格高度计算
|
||||
const tabHeightFn = () => {
|
||||
pageData.tableHeight =
|
||||
window.innerHeight - searchBox.value.offsetHeight - 240;
|
||||
window.onresize = function () {
|
||||
tabHeightFn();
|
||||
};
|
||||
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 240;
|
||||
window.onresize = function () { tabHeightFn(); };
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user