| | |
| | | prop="route_name" |
| | | label="工艺路线" |
| | | sortable="custom" |
| | | min-width="110" |
| | | min-width="120" |
| | | /> |
| | | <el-table-column |
| | | prop="stepname" |
| | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | width="120" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | |
| | | <el-dialog |
| | | :title="operation==='add'?'新增':'编辑'" |
| | | :visible.sync="dialogVisible" |
| | | width="1200px" |
| | | top="15vh" |
| | | :fullscreen="isFullscreen" |
| | | width="1000px" |
| | | :top="isIpad?'5vh':'15vh'" |
| | | :close-on-click-modal="false" |
| | | @closed="handleClose" |
| | | @close="handleClose" |
| | |
| | | |
| | | <el-table |
| | | :data="eqpDialogArr" |
| | | height="400" |
| | | :height="tableHeight" |
| | | :style="{width: 100+'%',height:tableHeight-50+'px',}" |
| | | border |
| | | stripe |
| | | highlight-current-row |
| | |
| | | :page.sync="eqpTable.page" |
| | | :limit.sync="eqpTable.rows" |
| | | align="right" |
| | | style="padding-top: 20px" |
| | | style="padding-top: 20px;" |
| | | layout="prev, pager, next,sizes" |
| | | popper-class="select_bottom" |
| | | @pagination="getEqpTable" |
| | | /> |
| | | </div> |
| | | <div v-if="eqpTableLength===0" style="width: 100px;height: 84px;" /> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | |
| | | } |
| | | } |
| | | return { |
| | | isFullscreen: false, |
| | | isIpad: false, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | |
| | | this.dialogForm.stand_value = '' |
| | | this.dialogForm.cavity_qty = '' |
| | | this.dialogForm.unprice = '' |
| | | this.eqpTableLength = 0 |
| | | this.routeDialogArr = [] |
| | | this.stepDialogArr = [] |
| | | this.eqpDialogArr = [] |
| | |
| | | getHeight() { |
| | | this.$nextTick(() => { |
| | | this.mainHeight = window.innerHeight - 250 |
| | | this.tableHeight = this.mainHeight - 100 |
| | | // this.isFullscreen = window.innerHeight < 800 |
| | | this.tableHeight = this.mainHeight - 50 |
| | | if (window.innerHeight < 769) { |
| | | this.tableHeight = this.tableHeight - 50 |
| | | } |
| | | this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367 |
| | | }) |
| | | } |
| | | } |