| | |
| | | <div class="table-tab"> |
| | | <div> |
| | | <ul class="tab"> |
| | | <li v-for="m 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 === 3 }" @click="handleTab(3)">已完成</li> |
| | | <li :class="{ active: tabIndex === 4 }" v-if="checkPermi(['get:Ifs:ByAll'])" @click="handleTab(4)">全部</li> |
| | | </ul> |
| | | </div> |
| | | <div> |
| | |
| | | methods: { |
| | | // 切换tab表格 |
| | | handleTab(m) { |
| | | this.tabIndex = m.value; |
| | | this.tabIndex = m; |
| | | this.refreshTable() |
| | | }, |
| | | // 查询回调 |
| | |
| | | entity: entity |
| | | }).then(res => { |
| | | this.outLoading = false |
| | | let url = this.javaApi + '/word/' + res.data |
| | | this.$download.saveAs(url, "原材料检测信息导出.xlsx"); |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, "原材料检测信息导出.xlsx"); |
| | | }) |
| | | }, |
| | | clear() { |