¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <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="éå
·ç¼å·"> |
| | | <j-input placeholder="请è¾å
¥éå
·ç¼å·" v-model="queryParam.toolCode" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item label="å¯ä¸ç¼ç "> |
| | | <j-input placeholder="请è¾å
¥å¯ä¸ç¼ç " v-model="queryParam.onlyCode" /> |
| | | </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> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="null" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | </a-table> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction } from '../../api/manage' |
| | | |
| | | export default { |
| | | name: 'ToolVerificationList', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'éå
·æ£å®å表', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'éå
·ç¼å·', |
| | | align:"center", |
| | | dataIndex: 'toolCode', |
| | | }, |
| | | { |
| | | title:'å¯ä¸ç¼ç ', |
| | | align:"center", |
| | | dataIndex: 'onlyCode', |
| | | }, |
| | | { |
| | | title:'éå
·åç§°', |
| | | align:"center", |
| | | dataIndex: 'toolName' |
| | | }, |
| | | { |
| | | title:'è§æ ¼', |
| | | align:"center", |
| | | dataIndex: 'toolModel' |
| | | }, |
| | | { |
| | | title:'计éå·', |
| | | align:"center", |
| | | dataIndex: 'measureNumber' |
| | | }, |
| | | { |
| | | title:'åºä½å·', |
| | | align:"center", |
| | | dataIndex: 'warehouseCode' |
| | | }, |
| | | { |
| | | title:'䏿¬¡æ£å®æ¥æ', |
| | | align:"center", |
| | | dataIndex: 'nextVerificationDate' |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "/tms/toolVerificationRecord/queryPageList", |
| | | delete: "/tms/toolVerificationRecord/delete", |
| | | deleteBatch: "/tms/toolVerificationRecord/deleteBatch", |
| | | exportXlsUrl: "/tms/toolVerificationRecord/exportXls", |
| | | importExcelUrl: "tms/toolVerificationRecord/importExcel", |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | searchReset() { |
| | | this.queryParam = {} |
| | | this.loadData(1); |
| | | }, |
| | | filterOption(input, option) { |
| | | return ( |
| | | option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 |
| | | ); |
| | | }, |
| | | initDictConfig(){ |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'string',value:'tenantId',text:'ç§æ·å·'}) |
| | | fieldList.push({type:'string',value:'createdBy',text:'å建人'}) |
| | | fieldList.push({type:'date',value:'createdTime',text:'å建æ¶é´'}) |
| | | fieldList.push({type:'string',value:'updatedBy',text:'æ´æ°äºº'}) |
| | | fieldList.push({type:'date',value:'updatedTime',text:'æ´æ°æ¶é´'}) |
| | | fieldList.push({type:'string',value:'onlyCode',text:'å¯ä¸ç¼ç '}) |
| | | fieldList.push({type:'string',value:'measureNumber',text:'计éå·'}) |
| | | fieldList.push({type:'date',value:'nextVerificationDate',text:'䏿¬¡æ£å®æ¥æ'}) |
| | | fieldList.push({type:'date',value:'verificationReportDate',text:'æ£å®æ¥åæ¥æ'}) |
| | | fieldList.push({type:'string',value:'personResponsible',text:'责任人'}) |
| | | fieldList.push({type:'string',value:'result',text:'æ£å®ç»æåæè§'}) |
| | | this.superFieldList = fieldList |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |