| | |
| | | |
| | | <el-table |
| | | ref="eqpDialogArrRef" |
| | | :key="tableTimeStampKey" |
| | | class="tableFixed" |
| | | :data="eqpDialogArr" |
| | | :height="tableHeight" |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-button v-show="row.isVisible===1" type="text" @click="saveRow(row)">保存</el-button> |
| | | <el-button v-show="row.isVisible===1" type="text" @click="cancelRow(row)">取消</el-button> |
| | | <el-button v-show="row.isVisible===0" type="text" @click="editRow(row)">编辑</el-button> |
| | | <el-button v-show="row.isVisible===0" type="text" @click="copyRow(row)">复制</el-button> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="saveRow(row)">保存</el-button> |
| | | <el-button v-if="row.isVisible===1" type="text" @click="cancelRow(row)">取消</el-button> |
| | | <el-button v-if="row.isVisible===0" type="text" @click="editRow(row)">编辑</el-button> |
| | | <el-button v-if="row.isVisible===0" type="text" @click="copyRow(row)">复制</el-button> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | operation: '', |
| | | dialogFormRules: {}, |
| | | radioChangeTempValue: '', |
| | | |
| | | tableTimeStampKey: new Date().getTime(), |
| | | |
| | | title_value: '数据导入 / 节拍工价', |
| | | code: '24', |
| | |
| | | // 取消行 |
| | | cancelRow(row) { |
| | | this.getEqpTable() |
| | | |
| | | this.radioChange(this.radioChangeTempValue) |
| | | this.dialogForm.stepcode = this.radioChangeTempValue |
| | | |
| | | this.isEqpTableEdit = true |
| | | }, |
| | | // 编辑行 |
| | |
| | | } |
| | | }) |
| | | this.isEqpTableEdit = false |
| | | this.tableTimeStampKey = new Date().getTime() |
| | | } else { |
| | | return this.$message.info('只能一行一行修改!') |
| | | } |