qty为 1 时 serialNo 显示,否则不显示

2023-02-05  本文已影响0人  我叫杨毅
  <el-table-column
              label="序列号"
              align="center"
              prop="serialNo"
              width="100"
              :show-overflow-tooltip="true"
            >
              <template slot-scope="scope">
                {{ scope.row.qty == 1 ? scope.row.serialNo : "" }}
              </template>
            </el-table-column>
上一篇 下一篇

猜你喜欢

热点阅读