| | |
| | | <el-button type="primary" @click="complete(ids)">完成作业</el-button> |
| | | <el-button :loading="exLoading" @click="handleEx" |
| | | v-permissions="['business:platformjob:exportExcel']">导出</el-button> |
| | | <el-button :loading="updateLoading" @click="updateTotalNum" |
| | | v-permissions="['business:platformjob:updateTotalNum']">重置总作业量</el-button> |
| | | </div> |
| | | <el-table :height="tableHeightNew" v-loading="loading" :data="list" @selection-change="handleSelectionChange" stripe> |
| | | <el-table-column type="selection" width="55"></el-table-column> |
| | |
| | | <script> |
| | | import Pagination from '@/components/common/Pagination' |
| | | import QueryForm from '@/components/common/QueryForm' |
| | | import { platformJobPage, platformJobExport, platformJobDel, dealJobFinish } from '@/api' |
| | | import { platformJobPage, platformJobExport, platformJobDel, dealJobFinish ,updateTotalNum} from '@/api' |
| | | import { statusMap } from '../config' |
| | | import WaybillDetailRef from "../components/WaybillDetail.vue" |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | |
| | | statusMap, |
| | | isShowDetail: false, |
| | | exLoading: false, |
| | | updateLoading: false, |
| | | loading: false, |
| | | pagination: { |
| | | pageSize: 10, |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | updateTotalNum() { |
| | | this.$dialog.actionConfirm('确认进行该操作吗?','操作提示') |
| | | .then(() => { |
| | | this.updateLoading = true |
| | | updateTotalNum('') |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.updateLoading = false |
| | | }) |
| | | }) |
| | | }, |
| | | clear() { |
| | | this.pagination.page = 1 |
| | | this.filters = {} |