| | |
| | | |
| | | </el-col> |
| | | </el-row> |
| | | <el-table :data="tableData" ref="dataTable" style="width: 100%"> |
| | | <el-table :data="tableData" ref="dataTable" style="width: 100%" v-loading="loading"> |
| | | <el-table-column type="selection" width="55" align="center"></el-table-column> |
| | | <el-table-column prop="number" label="编号" align="center" width="120"> |
| | | <template slot-scope="scope"> |
| | |
| | | YHBMList: [], |
| | | YHJBList: [], |
| | | tableData: [], |
| | | loading:false, |
| | | listQuery: { |
| | | page: 1, |
| | | limit: 10, |
| | |
| | | getPageList() { |
| | | this.listQuery.page = 1 |
| | | this.checkTime() |
| | | this.loading = true |
| | | getPageList(this.listQuery).then(res => { |
| | | this.loading = false |
| | | if (res.data.ok == 1) { |
| | | this.tableData = res.data.data.items |
| | | this.recordTotal = res.data.data.total |
| | |
| | | fillRectification() { |
| | | var checkData = this.$refs.dataTable.selection; |
| | | if (checkData.length < 1) { |
| | | this.$message({type: 'warn', message: "请选择勾选需要填写的数据!", duration: 3000}) |
| | | this.$message({type: 'warning', message: "请选择勾选需要填写的数据!", duration: 3000}) |
| | | return; |
| | | } |
| | | this.$router.push({ |
| | |
| | | fillInspector() { |
| | | var checkData = this.$refs.dataTable.selection; |
| | | if (checkData.length < 1) { |
| | | this.$message({type: 'warn', message: "请选择勾选需要填写的数据!", duration: 3000}) |
| | | this.$message({type: 'warning', message: "请选择勾选需要填写的数据!", duration: 3000}) |
| | | return; |
| | | } |
| | | this.$router.push({ |
| | |
| | | window.open(href, '_blank'); |
| | | }, |
| | | exportData() { |
| | | var requestData = this.listQuery; |
| | | this.listLoading = true |
| | | var requestData = JSON.parse(JSON.stringify(this.listQuery)); |
| | | //删除分页参数 |
| | | this.$delete(requestData, 'page') |
| | | this.$delete(requestData, 'limit') |
| | | self_export_do(requestData).then(res => { |
| | | this.listLoading = false |
| | | var blob = new Blob([res.data]) |
| | | var downloadElement = document.createElement('a') |
| | | var href = window.URL.createObjectURL(blob) //创建下载的链接 |
| | |
| | | revoke() { |
| | | var checkData = this.$refs.dataTable.selection; |
| | | if (checkData.length < 1) { |
| | | this.$message({type: 'warn', message: "请勾选需要撤销的数据!", duration: 3000}) |
| | | this.$message({type: 'warning', message: "请勾选需要撤销的数据!", duration: 3000}) |
| | | return; |
| | | } |
| | | var revokeIds = ""; |
| | |
| | | deleteBath() { |
| | | var checkData = this.$refs.dataTable.selection; |
| | | if (checkData.length < 1) { |
| | | this.$message({type: 'warn', message: "请勾选需要删除的数据!", duration: 3000}) |
| | | this.$message({type: 'warning', message: "请勾选需要删除的数据!", duration: 3000}) |
| | | return; |
| | | } |
| | | var deleteIds = ""; |