广丰卷烟厂数采质量分析系统
zhuguifei
2026-04-03 08114b7451615854cb01556a7c477e32e17f520e
ruoyi-plus-soybean/src/views/analy/store-silk/modules/store-silk-detail.vue
@@ -139,30 +139,34 @@
    title="产量明细"
    :bordered="false"
    size="small"
    class="card-wrapper flex-col-stretch"
    class="flex-col-stretch card-wrapper"
    :content-style="{ flex: 1, overflow: 'hidden', display: 'flex', flexDirection: 'column' }"
  >
    <template #header-extra>
      <NSpace :size="8">
        <NButton size="small" ghost :type="detailType === 'roller' ? 'primary' : 'default'" @click="detailType = 'roller'">
        <NButton
          size="small"
          ghost
          :type="detailType === 'roller' ? 'primary' : 'default'"
          @click="detailType = 'roller'"
        >
          卷接
        </NButton>
        <NButton size="small" ghost :type="detailType === 'packer' ? 'primary' : 'default'" @click="detailType = 'packer'">
        <NButton
          size="small"
          ghost
          :type="detailType === 'packer' ? 'primary' : 'default'"
          @click="detailType = 'packer'"
        >
          包装
        </NButton>
      </NSpace>
    </template>
    <div v-if="!detailList || detailList.length === 0" class="flex-center h-full text-gray-400">
    <div v-if="!detailList || detailList.length === 0" class="h-full flex-center text-gray-400">
      请点击上方表格行查看详情
    </div>
    <NDataTable
      v-else
      :columns="columns as any"
      :data="detailList"
      flex-height
      class="flex-1-hidden"
    />
    <NDataTable v-else :columns="columns as any" :data="detailList" flex-height class="flex-1-hidden" />
  </NCard>
</template>