| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-button type="text" @click="edit('edit',row)">修改</el-button> |
| | | <el-button type="text" @click="edit('edit',row)">编辑</el-button> |
| | | <el-button type="text" @click="del(row)">删除</el-button> |
| | | </div> |
| | | </template> |
| | |
| | | </div> |
| | | |
| | | <el-dialog |
| | | :title="operation==='add'?'新增':'修改'" |
| | | :title="operation==='add'?'新增':'编辑'" |
| | | :visible.sync="dialogVisible" |
| | | width="70%" |
| | | width="1200px" |
| | | top="15vh" |
| | | :fullscreen="isFullscreen" |
| | | :close-on-click-modal="false" |
| | | @closed="handleClose" |
| | | @close="handleClose" |
| | |
| | | } |
| | | } |
| | | return { |
| | | isFullscreen: false, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | |
| | | type: 'warning' |
| | | }).then(() => { |
| | | const data = { |
| | | partcode: this.eqpTable.partcode, |
| | | routecode: this.eqpTable.routecode, |
| | | stepcode: this.eqpTable.stepcode, |
| | | partcode: row.partcode, |
| | | routecode: row.route_code, |
| | | stepcode: row.stepcode, |
| | | eqpcode: row.eqp_code |
| | | } |
| | | console.log(data) |
| | | DeleteBeatRate(data).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success('删除成功!') |
| | |
| | | this.stepDialogArr = [] |
| | | this.eqpDialogArr = [] |
| | | this.$refs.dialogForm.clearValidate() |
| | | this.getBeatRateSearch() |
| | | }, |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |
| | |
| | | this.$nextTick(() => { |
| | | this.mainHeight = window.innerHeight - 250 |
| | | this.tableHeight = this.mainHeight - 100 |
| | | this.isFullscreen = window.innerHeight < 800 |
| | | }) |
| | | } |
| | | } |