From ba77fdc6a30c9ad0941e40319f8c4f6fe6fdf9f1 Mon Sep 17 00:00:00 2001 From: cuilei <ray_tsu1@163.com> Date: 星期四, 07 八月 2025 10:30:42 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/mdc/base/MdcUtilizationRateList.vue | 209 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 209 insertions(+), 0 deletions(-) diff --git a/src/views/mdc/base/MdcUtilizationRateList.vue b/src/views/mdc/base/MdcUtilizationRateList.vue new file mode 100644 index 0000000..896efef --- /dev/null +++ b/src/views/mdc/base/MdcUtilizationRateList.vue @@ -0,0 +1,209 @@ +<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> -- Gitblit v1.9.3