| | |
| | | <div class="table-tab"> |
| | | <div> |
| | | <ul class="tab"> |
| | | <li v-for="(m, i) in tabList" :key="m.value" :class="{ active: m.value === tabIndex }" |
| | | @click="handleTab(m)"> |
| | | {{ m.label }}</li> |
| | | <li :class="{ active: tabIndex === 0 }" @click="handleTab(0)">待下单</li> |
| | | <li :class="{ active: tabIndex === 1 }" @click="handleTab(1)">检验中</li> |
| | | <li :class="{ active: tabIndex === 2 }" @click="handleTab(2)">已检验</li> |
| | | <li :class="{ active: tabIndex === 4 }" @click="handleTab(4)">季度检验</li> |
| | | <li :class="{ active: tabIndex === 3 }" v-if="checkPermi(['get:Ifs:ByAll'])" @click="handleTab(3)">全部</li> |
| | | </ul> |
| | | </div> |
| | | <div> |
| | |
| | | }, |
| | | // 切换下单tab表格 |
| | | handleTab(m) { |
| | | this.tabIndex = m.value; |
| | | this.tabIndex = m; |
| | | this.refreshTable() |
| | | }, |
| | | // 表格选择方法 |