¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false" class="mdcutilization_list"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :md="6" :sm="8"> |
| | | <a-form-item label="ç±»å«"> |
| | | <a-input placeholder="请è¾å
¥ç±»å«" v-model="queryParam.rateParameterCategory"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | <a-col :md="6" :sm="8"> |
| | | <a-space> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload">éç½®</a-button> |
| | | </a-space> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- æä½æé®åºå --> |
| | | <!--<div class="table-operator">--> |
| | | <!--<a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button>--> |
| | | <!--<a-button type="primary" @click="searchReset" icon="reload">éç½®</a-button>--> |
| | | <!--</div>--> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <a-table ref="table" size="middle" bordered rowKey="id" :columns="columns" :dataSource="dataSource" |
| | | :pagination="ipagination" :loading="loading" |
| | | @change="handleTableChange"> |
| | | <span slot="rateParameterColor" slot-scope="text, record"> |
| | | <div :style="{background:record.rateParameterColor}"> </div> |
| | | </span> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a href="javascript:;" @click="handleEdit(record)">ç¼è¾</a> |
| | | </span> |
| | | <!--<span slot="action1" slot-scope="text,record">--> |
| | | <!--<span><=</span>--> |
| | | <!--</span>--> |
| | | </a-table> |
| | | </div> |
| | | <!-- tableåºå-end --> |
| | | <mdc-utilization-rate-model ref="formModel" @ok="modalFormOk"></mdc-utilization-rate-model> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | JeecgListMixin |
| | | } from '@/mixins/JeecgListMixin' |
| | | import JDictSelectTag from '@/components/dict/JDictSelectTag' |
| | | import { |
| | | initDictOptions, |
| | | filterDictText |
| | | } from '@/components/dict/JDictSelectUtil' |
| | | import { |
| | | requestPut |
| | | } from '@/api/manage' |
| | | import JInput from '@/components/jeecg/JInput' |
| | | import JEllipsis from '@/components/jeecg/JEllipsis' |
| | | import JDate from '@/components/jeecg/JDate' |
| | | import moment from 'moment' |
| | | import { |
| | | getAction, |
| | | postAction, |
| | | deleteAction |
| | | } from '@/api/manage' |
| | | import MdcUtilizationRateModel from './modules/mdcUtilizationRate/MdcUtilizationRateModel' |
| | | |
| | | export default { |
| | | name: 'MdcUtilizationRateList', |
| | | mixins: [JeecgListMixin], |
| | | |
| | | components: { |
| | | JDictSelectTag, |
| | | JInput, |
| | | JEllipsis, |
| | | JDate, |
| | | MdcUtilizationRateModel |
| | | }, |
| | | data() { |
| | | return { |
| | | /* å页忰 */ |
| | | ipagination:{ |
| | | current: 1, |
| | | pageSize: 30, |
| | | pageSizeOptions: ['30', '50', '100'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " å
±" + total + "æ¡" |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | columns: [{ |
| | | title: 'ç±»å«', |
| | | align: 'center', |
| | | dataIndex: 'rateParameterCategory' |
| | | }, |
| | | { |
| | | title: 'é¢è²', |
| | | align: 'center', |
| | | dataIndex: 'rateParameterColor', |
| | | scopedSlots: { |
| | | customRender: 'rateParameterColor' |
| | | } |
| | | }, |
| | | { |
| | | title: 'æå°èå´ï¼åä½ï¼%ï¼', |
| | | align: 'center', |
| | | dataIndex: 'minimumRange' |
| | | }, |
| | | // { |
| | | // title:'', |
| | | // dataIndex:'action1', |
| | | // align:'center', |
| | | // scopedSlots: { |
| | | // customRender: 'action1' |
| | | // } |
| | | // }, |
| | | { |
| | | title: 'æå¤§èå´ï¼åä½ï¼%ï¼', |
| | | align: 'center', |
| | | dataIndex: 'maximumRange' |
| | | }, |
| | | { |
| | | title: 'ç级', |
| | | align: 'center', |
| | | dataIndex: 'rateParameterLevel' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | scopedSlots: { |
| | | customRender: 'action' |
| | | } |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/mdc/MdcUtilizationRate/queryWrapper' |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.loadData() |
| | | }, |
| | | methods: { |
| | | searchReset() { |
| | | this.queryParam = {} |
| | | this.loadData() |
| | | this.onClearSelected() |
| | | }, |
| | | searchQuery() { |
| | | this.loadData() |
| | | this.onClearSelected() |
| | | }, |
| | | modalFormOk(val) { |
| | | // æ°å¢/ä¿®æ¹ æåæ¶ï¼éè½½å表 |
| | | this.loadData() |
| | | this.selectedRowKeys = [val.borrowSubId] |
| | | }, |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | this.selectedRowKeys = selectedRowKeys |
| | | this.selectionRows = selectionRows |
| | | }, |
| | | handleEdit(record) { |
| | | this.$refs.formModel.edit(record) |
| | | this.$refs.formModel.title = 'ç¼è¾' |
| | | this.$refs.formModel.disableSubmit = false |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style> |
| | | @import '~@assets/less/common.less'; |
| | | @media screen and (min-width: 1920px){ |
| | | .mdcutilization_list{ |
| | | height: 825px!important; |
| | | overflow: scroll; |
| | | } |
| | | } |
| | | @media screen and (min-width: 1680px) and (max-width: 1920px){ |
| | | .mdcutilization_list{ |
| | | height: 825px!important; |
| | | overflow: scroll; |
| | | } |
| | | } |
| | | @media screen and (min-width: 1400px) and (max-width: 1680px){ |
| | | .mdcutilization_list{ |
| | | height: 655px!important; |
| | | overflow: scroll; |
| | | } |
| | | } |
| | | @media screen and (min-width: 1280px) and (max-width: 1400px){ |
| | | .mdcutilization_list{ |
| | | height: 552px!important; |
| | | overflow: scroll; |
| | | } |
| | | } |
| | | @media screen and (max-width: 1280px){ |
| | | .mdcutilization_list{ |
| | | height: 552px!important; |
| | | overflow: scroll; |
| | | } |
| | | } |
| | | </style> |