| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <GlobalWindow |
| | | :title="title" |
| | | width="85%" |
| | | :visible.sync="visible" |
| | | > |
| | | <TableLayout > |
| | | <!-- æç´¢è¡¨å --> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="客æ·åç§°" prop="name"> |
| | | <el-input v-model="searchForm.name" placeholder="请è¾å
¥å®¢æ·åç§°" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="客æ·ç®ç " prop="code"> |
| | | <el-input v-model="searchForm.code" placeholder="请è¾å
¥å®¢æ·ç®ç " @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <el-table |
| | | :height="tableHeightNew" |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column prop="sortnum" label="客æ·åºå·" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="客æ·ç®ç " min-width="120px"></el-table-column> |
| | | <el-table-column prop="name" label="客æ·åç§°" min-width="120px"></el-table-column> |
| | | <el-table-column prop="lineName" label="线路åç§°" min-width="180px" show-tooltip-when-overflow></el-table-column> |
| | | <el-table-column prop="totalNum" label="éè´§é(æ¡)" min-width="120px"></el-table-column> |
| | | <el-table-column prop="dateInfo" label="éè´§æ¥æ" min-width="120px"></el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handlePageChange" |
| | | :pagination="tableData.pagination" |
| | | > |
| | | </pagination> |
| | | </template> |
| | | </TableLayout> |
| | | <template v-slot:footer> |
| | | <el-button @click="visible=false">è¿å</el-button> |
| | | </template> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | export default { |
| | | name: 'OperaJkSketchCustomerWindow', |
| | | extends: BaseTable, |
| | | components: { GlobalWindow, TableLayout, Pagination }, |
| | | data () { |
| | | return { |
| | | // è¡¨åæ°æ® |
| | | visible: false, |
| | | title: '', |
| | | searchForm: { |
| | | sketchLineId: '', |
| | | name: '', |
| | | code: '' |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: '交æ§-线路ä¼å线路客æ·è®°å½ä¿¡æ¯è¡¨', |
| | | api: '/business/jkSketchCustomer', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | open (title, row) { |
| | | this.title = title + (row.lineName) |
| | | this.searchForm.sketchLineId = row.id |
| | | this.visible = true |
| | | this.tableData = { |
| | | // å·²éä¸çæ°æ® |
| | | selectedRows: [], |
| | | // æåºçåæ®µ |
| | | sorts: [], |
| | | // å½åé¡µæ°æ® |
| | | list: [], |
| | | // å页 |
| | | pagination: { |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | total: 0 |
| | | } |
| | | } |
| | | this.search() |
| | | } |
| | | } |
| | | } |
| | | </script> |