|  |  | 
 |  |  |     <template v-slot:table-wrap> | 
 |  |  |       <ul class="toolbar"> | 
 |  |  |         <li><el-button type="primary" @click="$refs.operaDeviceExtWindow.open('新建设备')" v-permissions="['ext:deviceext:create']">新增</el-button></li> | 
 |  |  |         <li v-permissions="['ext:deviceExt:importExcel']"> | 
 |  |  |           <ImportButton | 
 |  |  |             text="导入" | 
 |  |  |             template-name="device_import_template.xlsx" | 
 |  |  |             template-path="/template/device_import_template.xlsx" | 
 |  |  |             action="/ext/deviceExt/importBatch" | 
 |  |  |             @success="search" | 
 |  |  |           /> | 
 |  |  |         </li> | 
 |  |  |         <li> | 
 |  |  |           <el-button | 
 |  |  |             type="primary" | 
 |  |  | 
 |  |  |         </el-table-column> | 
 |  |  |         <el-table-column prop="wpmodel.unionName" label="待生产货位" show-overflow-tooltip min-width="100px"> | 
 |  |  |           <template slot-scope="{row}"> | 
 |  |  |             <span class="long-title-style">{{ row.wpmodel.unionName }}</span> | 
 |  |  |             <span class="long-title-style">{{ row.wpmodel ? row.wpmodel.unionName : '-' }}</span> | 
 |  |  |           </template> | 
 |  |  |         </el-table-column> | 
 |  |  |         <el-table-column prop="wfmodel.unionName" label="已完工货位" show-overflow-tooltip min-width="100px"> | 
 |  |  |           <template slot-scope="{row}"> | 
 |  |  |             <span class="long-title-style">{{ row.wfmodel.unionName }}</span> | 
 |  |  |             <span class="long-title-style">{{ row.wfmodel ? row.wfmodel.unionName : '-' }}</span> | 
 |  |  |           </template> | 
 |  |  |         </el-table-column> | 
 |  |  |         <el-table-column prop="stationCode" label="工位编号" min-width="100px"></el-table-column> | 
 |  |  | 
 |  |  | <script> | 
 |  |  | import BaseTable from '@/components/base/BaseTable' | 
 |  |  | import TableLayout from '@/layouts/TableLayout' | 
 |  |  | import ImportButton from '@/components/common/ImportButton' | 
 |  |  | // import SearchFormCollapse from '@/components/common/SearchFormCollapse' | 
 |  |  | import Pagination from '@/components/common/Pagination' | 
 |  |  | import OperaDeviceExtWindow from '@/components/ext/OperaDeviceExtWindow' | 
 |  |  | 
 |  |  | export default { | 
 |  |  |   name: 'DeviceExt', | 
 |  |  |   extends: BaseTable, | 
 |  |  |   components: { TableLayout, Pagination, OperaDeviceExtWindow, QrCodeLabel }, | 
 |  |  |   components: { TableLayout, Pagination, OperaDeviceExtWindow, ImportButton, QrCodeLabel }, | 
 |  |  |   data () { | 
 |  |  |     return { | 
 |  |  |       // 搜索 | 
 |  |  | 
 |  |  |     } | 
 |  |  |   } | 
 |  |  | } | 
 |  |  | /** | 
 |  |  |  *   | 
 |  |  |  */ | 
 |  |  | </script> |