| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :table-loading="loading" :data="data" :option="option" :search.sync="searchParam" :page.sync="page" |
| | | <avue-crud :table-loading="loading" :data="data" :option="option" :search.sync="searchParam" :page.sync="page" :permission="permissionList" |
| | | ref="crud" @refresh-change="getDataList" @search-change="handleSearch" @search-reset="handleReset" |
| | | @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 icon="el-icon-document" size="small" type="primary" @click="handleStatus" v-if="permissionList.status">集团申请状态 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | |
| | | <script> |
| | | import { getList, queryApplyStat } from '@/api/integration/application.js' |
| | | import { dateFormat } from '@/util/date.js' |
| | | import {mapGetters} from 'vuex' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | searchParam: {}, |
| | | stateParam: {}, |
| | | option: { |
| | | height: "auto", |
| | | tip:false, |
| | | index: true, |
| | | border: true, |
| | | addBtn: false, |
| | | columnBtn: false, |
| | | searchMenuSpan: 8, |
| | | highlightCurrentRow: true, |
| | | menu: false, |
| | | selection: true, |
| | | column: [ |
| | | { |
| | | label: '申请单号', |
| | | prop: 'id', |
| | | width: 300, |
| | | fixed: true, |
| | | search: true, |
| | | }, { |
| | | label: '集团码', |
| | | width: 200, |
| | | prop: 'groupCode', |
| | | search: true, |
| | | }, { |
| | | label: '操作类型', |
| | | width: 200, |
| | | prop: 'operationType', |
| | | type: 'select', |
| | | search: true, |
| | | dicData: [{ |
| | | label: '申请', |
| | | value: 1 |
| | | }, { |
| | | label: '更改', |
| | | value: 2 |
| | | }] |
| | | }, { |
| | | label: '申请单数据信息', |
| | | width: 300, |
| | | prop: 'description' |
| | | }, |
| | | { |
| | | label: '创建时间', |
| | | width: 200, |
| | | prop: 'createTime', |
| | | type: 'datetime', |
| | | search: true, |
| | | }, |
| | | { |
| | | label: '更改时间', |
| | | width: 200, |
| | | prop: 'lastModifyTime', |
| | | type: 'datetime', |
| | | search: true, |
| | | }, { |
| | | label: '返回标识', |
| | | width: 100, |
| | | prop: 'code' |
| | | }, |
| | | { |
| | | label: '返回信息', |
| | | width: 300, |
| | | prop: 'content' |
| | | }, |
| | | { |
| | | label: '消息信息', |
| | | width: 300, |
| | | prop: 'msg' |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | computed:{ |
| | | ...mapGetters(["permission"]), |
| | | permissionList(){ |
| | | return{ |
| | | searchBtn:this.vaildData(this.permission.applicationForm.applicationForm_search,false), |
| | | emptyBtn:this.vaildData(this.permission.applicationForm.applicationForm_search,false), |
| | | status:this.vaildData(this.permission.applicationForm.applicationForm_status,false) |
| | | } |
| | | }, |
| | | option(){ |
| | | return{ |
| | | height: "auto", |
| | | tip:false, |
| | | index: true, |
| | | border: true, |
| | | addBtn: false, |
| | | columnBtn: false, |
| | | searchBtn:this.permissionList.searchBtn, |
| | | emptyBtn:this.permissionList.emptyBtn, |
| | | searchMenuSpan: 8, |
| | | highlightCurrentRow: true, |
| | | menu: false, |
| | | selection: true, |
| | | column: [ |
| | | { |
| | | label: '申请单号', |
| | | prop: 'id', |
| | | width: 300, |
| | | fixed: true, |
| | | search: true, |
| | | }, { |
| | | label: '集团码', |
| | | width: 200, |
| | | prop: 'groupCode', |
| | | search: true, |
| | | }, { |
| | | label: '操作类型', |
| | | width: 200, |
| | | prop: 'operationType', |
| | | type: 'select', |
| | | search: true, |
| | | dicData: [{ |
| | | label: '申请', |
| | | value: 1 |
| | | }, { |
| | | label: '更改', |
| | | value: 2 |
| | | }] |
| | | }, { |
| | | label: '申请单数据信息', |
| | | width: 300, |
| | | prop: 'description' |
| | | }, |
| | | { |
| | | label: '创建时间', |
| | | width: 200, |
| | | prop: 'createTime', |
| | | type: 'datetime', |
| | | search: true, |
| | | }, |
| | | { |
| | | label: '更改时间', |
| | | width: 200, |
| | | prop: 'lastModifyTime', |
| | | type: 'datetime', |
| | | search: true, |
| | | }, { |
| | | label: '返回标识', |
| | | width: 100, |
| | | prop: 'code' |
| | | }, |
| | | { |
| | | label: '返回信息', |
| | | width: 300, |
| | | prop: 'content' |
| | | }, |
| | | { |
| | | label: '消息信息', |
| | | width: 300, |
| | | prop: 'msg' |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | async handleStatus() { |
| | | const { oids } = this.stateParam |