|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="cc-heatList">
|
|
|
+ <div class="cc-heatList flex flex-col">
|
|
|
<div class="tips-title flex" v-if="showAction">
|
|
|
<div class="left-tip">当班浇铸炉次</div>
|
|
|
<div class="flex flex-1 items-center" style="display: none">
|
|
@@ -21,15 +21,17 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!--引用表格-->
|
|
|
- <BasicTable @register="registerTable">
|
|
|
- <!--操作栏-->
|
|
|
- <template #action="{ record }">
|
|
|
- <TableAction class="flex flex-col" style="gap: 4px" :actions="getTableAction(record)" />
|
|
|
- </template>
|
|
|
- <!--字段回显插槽-->
|
|
|
- <!-- <template v-slot:bodyCell="{ column, record, index, text }"> </template> -->
|
|
|
- </BasicTable>
|
|
|
+ <div class="current-table-list flex-1">
|
|
|
+ <!--引用表格-->
|
|
|
+ <BasicTable @register="registerTable">
|
|
|
+ <!--操作栏-->
|
|
|
+ <template #action="{ record }">
|
|
|
+ <TableAction class="flex flex-col" style="gap: 4px" :actions="getTableAction(record)" />
|
|
|
+ </template>
|
|
|
+ <!--字段回显插槽-->
|
|
|
+ <!-- <template v-slot:bodyCell="{ column, record, index, text }"> </template> -->
|
|
|
+ </BasicTable>
|
|
|
+ </div>
|
|
|
<BasicTable @register="registerExtraTable" v-if="otherShiftTableData.length > 0" :dataSource="otherShiftTableData">
|
|
|
<!--操作栏-->
|
|
|
<template #action="{ record }">
|
|
@@ -131,10 +133,14 @@
|
|
|
let cunShift: any[] = [],
|
|
|
otherShift: any[] = [];
|
|
|
data.forEach((item) => {
|
|
|
- if (item.shift === props.curShiftInfo.shift && item.shiftGroup === props.curShiftInfo.shiftGroup) {
|
|
|
+ if (!props.curShiftInfo.shift && !props.curShiftInfo.shiftGroup) {
|
|
|
cunShift.push(item);
|
|
|
} else {
|
|
|
- otherShift.push(item);
|
|
|
+ if (item.shift === props.curShiftInfo.shift && item.shiftGroup === props.curShiftInfo.shiftGroup) {
|
|
|
+ cunShift.push(item);
|
|
|
+ } else {
|
|
|
+ otherShift.push(item);
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -155,7 +161,7 @@
|
|
|
},
|
|
|
columns,
|
|
|
showIndexColumn: false,
|
|
|
- canResize: props.canResize,
|
|
|
+ canResize: false,
|
|
|
striped: true,
|
|
|
showTableSetting: false,
|
|
|
pagination: false,
|
|
@@ -453,6 +459,9 @@
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
.cc-heatList {
|
|
|
+ height: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+
|
|
|
.tips-title {
|
|
|
color: #fff;
|
|
|
font-size: 18px;
|
|
@@ -466,6 +475,10 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .current-table-list {
|
|
|
+ overflow: auto;
|
|
|
+ }
|
|
|
+
|
|
|
.jeecg-basic-table {
|
|
|
padding: 0;
|
|
|
}
|