| | |
| | | <el-select v-model="searchForm.status" @change="search" clearable placeholder="状态"> |
| | | <el-option label="待处理" value="0"></el-option> |
| | | <el-option label="已处理" value="1"></el-option> |
| | | <el-option label="已退出" value="2"></el-option> |
| | | <el-option label="已退回" value="2"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="提报时间" prop="startTime"> |
| | |
| | | </el-form> |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:empower:create', 'business:empower:delete']"> |
| | | <!--<li><el-button type="primary" v-permissions="['business:empower:exportExcel']" @click="exportExcel">导出</el-button></li> --> |
| | | <ul class="toolbar" v-permissions="['business:hiddendanger:create', 'business:hiddendanger:exportExcel']"> |
| | | <li><el-button type="primary" icon="el-icon-plus" v-permissions="['business:hiddendanger:create']" @click="handleEdit">新建</el-button></li> |
| | | <li><el-button type="primary" v-permissions="['business:hiddendanger:exportExcel']" @click="handleEx">导出</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | |
| | | </pagination> |
| | | </template> |
| | | <OperaHiddenDangerWindow ref="OperaHiddenDangerWindow" @success="handlePageChange"/> |
| | | <!-- 新建 --> |
| | | <HiddenDangerParam @close="isShowEdit = false" @success="search" v-if="isShowEdit" ref="HiddenDangerParamRef" /> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaHiddenDangerWindow from '@/components/business/OperaHiddenDangerWindow' |
| | | import HiddenDangerParam from '@/components/operation/HiddenDangerParam.vue' |
| | | import { timeForMat } from '@/utils/util' |
| | | import { allList } from '@/api/business/hiddenDangerParam' |
| | | import { allList, exportExcel } from '@/api/business/hiddenDangerParam' |
| | | export default { |
| | | name: 'Empower', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination ,OperaHiddenDangerWindow}, |
| | | components: { TableLayout, Pagination ,OperaHiddenDangerWindow, HiddenDangerParam}, |
| | | data () { |
| | | return { |
| | | isShowEdit: false, |
| | | // 搜索 |
| | | searchForm: { |
| | | memberName: '', |
| | |
| | | queryEndTime: '', |
| | | areaId: null, |
| | | cateId: null, |
| | | status:null |
| | | status: null, |
| | | radio: 0 |
| | | }, |
| | | cateList: [], |
| | | areaList: [], |
| | |
| | | this.loadParams() |
| | | }, |
| | | methods: { |
| | | handleEx () { |
| | | this.$dialog.exportConfirm('确认导出吗?') |
| | | .then(() => { |
| | | this.exLoading = true |
| | | exportExcel({ |
| | | page: this.pagination.page, |
| | | capacity: 1000000, |
| | | model: this.filters |
| | | }) |
| | | .then(response => { |
| | | this.download(response) |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.exLoading = false |
| | | }) |
| | | }) |
| | | }, |
| | | handleEdit () { |
| | | this.isShowEdit = true |
| | | this.$nextTick(() => { |
| | | this.$refs.HiddenDangerParamRef.isShowModal = true |
| | | }) |
| | | }, |
| | | changeRadio (e) { |
| | | this.searchForm.radio = e |
| | | if (e === '0') { |