| | |
| | | <basic-container> |
| | | <avue-crud :table-loading="loading" :data="data" :option="option" :search.sync="searchParam" :page.sync="page" |
| | | ref="crud" @refresh-change="getDataList" @search-change="handleSearch" @search-reset="handleReset" |
| | | @size-change="handleSizePage" @current-change="handleCurrentPage" @on-load="getDataList"> |
| | | @size-change="handleSizePage" @current-change="handleCurrentPage" @on-load="getDataList" |
| | | @selection-change="selectionChange" @row-click="handleRowClick"> |
| | | <template slot="menuLeft"> |
| | | <el-button icon="el-icon-document" size="small" type="primary" @click="handleStatus">集团申请状态 |
| | | </el-button> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getList } from '@/api/integration/application.js' |
| | | import { getList, queryApplyStat } from '@/api/integration/application.js' |
| | | import { dateFormat } from '@/util/date.js' |
| | | export default { |
| | | data() { |
| | |
| | | total: 0 |
| | | }, |
| | | searchParam: {}, |
| | | stateParam: {}, |
| | | option: { |
| | | height: "auto", |
| | | index: true, |
| | |
| | | columnBtn: false, |
| | | searchMenuSpan: 8, |
| | | highlightCurrentRow: true, |
| | | menu:false, |
| | | menu: false, |
| | | selection: true, |
| | | column: [ |
| | | { |
| | | label: '申请单号', |
| | |
| | | prop: 'lastModifyTime', |
| | | type: 'datetime', |
| | | search: true, |
| | | formatter: () => { |
| | | |
| | | } |
| | | }, { |
| | | label: '返回标识', |
| | | width: 100, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | handleStatus() { |
| | | |
| | | async handleStatus() { |
| | | const { oids } = this.stateParam |
| | | if (this.$utilFunc.isEmpty(oids)) { |
| | | this.$message({ |
| | | type: "error", |
| | | message: "请至少选择一条数据!" |
| | | }) |
| | | } else { |
| | | console.log(this.stateParam) |
| | | const response = await queryApplyStat(this.stateParam) |
| | | if (response.status === 200) { |
| | | console.log(response) |
| | | } |
| | | } |
| | | }, |
| | | async getDataList() { |
| | | this.loading = true |
| | |
| | | this.page.currentPage = 1 |
| | | this.getDataList() |
| | | done() |
| | | } |
| | | }, |
| | | selectionChange(list) { |
| | | console.log(list) |
| | | let newData = list.map(item => { |
| | | const { dataOid } = item |
| | | return dataOid |
| | | }) |
| | | this.stateParam = { oids: newData.toString() } |
| | | console.log(newData) |
| | | }, |
| | | handleRowClick(row) { |
| | | this.$refs.crud.toggleRowSelection(row, true) |
| | | }, |
| | | } |
| | | } |
| | | </script> |