廖井涛
2024-01-22 2ad00b6623beac3b504105beba9cb56143f7db13
north-glass-erp/northglass-erp/src/views/pp/report/ProductionSchedule.vue
@@ -62,7 +62,6 @@
  },//表头参数
  columns:[
    {type:'expand',fixed:"left",slots: { content:'content' },width: 50},
    { type: 'seq',fixed:"left", title: '自序', width: 50 },
    {field: '1', width: 100, title: '序号',filters:[{ data: '' }],slots: { filter: 'num1_filter' }, sortable: true, },
    {field: '2',width: 120, title: '楼层编号', sortable: true,showOverflow:"ellipsis" ,filters:[{ data: '' }],slots: { filter: 'num1_filter' }},
    {field: '3', width: 100,title: '形状', sortable: true,filters:[{ data: '' }],slots: { filter: 'num1_filter' }},
@@ -217,7 +216,7 @@
  ],//table body实际数据
  //脚部求和
  footerMethod ({ columns, data }) {//页脚函数
    let footList=['7','11','12','13','14','15','16','17','18']
    let footList=['11','12','13','14','15','16','17','18']
    return[
      columns.map((column, columnIndex) => {
        if (columnIndex === 0) {
@@ -262,6 +261,9 @@
})
const mergeCells = ref([
  { row: 0, col: 1, rowspan: 3, colspan: 0},
  { row: 3, col: 1, rowspan: 3, colspan: 0},
  { row: 0, col: 2, rowspan: 3, colspan: 0},
  { row: 3, col: 2, rowspan: 3, colspan: 0},
@@ -271,11 +273,8 @@
  { row: 0, col: 4, rowspan: 3, colspan: 0},
  { row: 3, col: 4, rowspan: 3, colspan: 0},
  { row: 0, col: 5, rowspan: 3, colspan: 0},
  { row: 3, col: 5, rowspan: 3, colspan: 0},
  { row: 0, col: 8, rowspan: 3, colspan: 0},
  { row: 3, col: 8, rowspan: 3, colspan: 0},
])
</script>
@@ -301,11 +300,11 @@
    >
      <!--      @toolbar-button-click="toolbarButtonClickEvent"-->
      <!--      下拉显示所有信息插槽-->
      <template #content="{ row}">
      <template #content="{ row }">
        <ul class="expand-wrapper">
          <li  v-for="(item,key,index) in row">
            <span style="font-weight: bold">{{key+':  '}}</span>
            <span>{{ item }}</span>
          <li  v-for="(item,index) in gridOptions.columns" v-show="item.field!=undefined ">
            <span style="font-weight: bold">{{item.title+':  '}}</span>
            <span>{{ row[item.field] }}</span>
          </li>
        </ul>
      </template>