| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <TableLayout :permissions="['business:tmsfactoryparam:query']"> |
| | | <!-- æç´¢è¡¨å --> |
| | | <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> |
| | | <ul class="toolbar" v-permissions="['business:tmsfactoryparam:create', 'business:tmsfactoryparam:delete']"> |
| | | <li><el-button type="primary" @click="$refs.operaTmsFactoryParamWindow.open('æ°å»ºTMSå·¥åé
置信æ¯è¡¨')" icon="el-icon-plus" v-permissions="['business:tmsfactoryparam:create']">æ°å»º</el-button></li> |
| | | <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:tmsfactoryparam:delete']">å é¤</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | :height="tableHeightNew" |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55"></el-table-column> |
| | | <el-table-column prop="name" label="åç§°" min-width="100px"></el-table-column> |
| | | <el-table-column prop="code" label="ç¼ç " min-width="100px"></el-table-column> |
| | | <el-table-column prop="num1" label="æ»åºåéï¼ä¸æ¯ï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="param3" label="8å°æ¶åºåºè½åï¼ä¸æ¯ï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="num2" label="æå¤§åºåºè½åï¼ä¸æ¯ï¼" min-width="100px"></el-table-column> |
| | | <el-table-column prop="sortnum" label="æåºç " min-width="100px"></el-table-column> |
| | | <el-table-column prop="editorName" label="æä½äºº" min-width="100px"></el-table-column> |
| | | <el-table-column prop="editDate" label="æ´æ°æ¶é´" min-width="150px"></el-table-column> |
| | | <el-table-column |
| | | v-if="containPermissions(['business:tmsfactoryparam:update', 'business:tmsfactoryparam:delete'])" |
| | | label="æä½" |
| | | min-width="120" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaTmsFactoryParamWindow.open('ç¼è¾TMSå·¥åé
置信æ¯è¡¨', row)" icon="el-icon-edit" v-permissions="['business:tmsfactoryparam:update']">ç¼è¾</el-button> |
| | | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:tmsfactoryparam:delete']">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handlePageChange" |
| | | :pagination="tableData.pagination" |
| | | > |
| | | </pagination> |
| | | </template> |
| | | <!-- æ°å»º/ä¿®æ¹ --> |
| | | <OperaTmsFactoryParamWindow ref="operaTmsFactoryParamWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaTmsFactoryParamWindow from '@/components/business/OperaTmsFactoryParamWindow' |
| | | export default { |
| | | name: 'TmsFactoryParam', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaTmsFactoryParamWindow }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | code: '', |
| | | name: '' |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'TMSå·¥åé
置信æ¯è¡¨', |
| | | api: '/business/tmsFactoryParam', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | } |
| | | } |
| | | </script> |