| | |
| | | delete-url="/taskReliability/TaskPhaseModel/" v-slot="{ table }"> |
| | | <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()"> |
| | | <el-form-item> |
| | | <zt-button type="warning" @click="handleSaveRows">保存</zt-button> |
| | | <zt-button v-if="dataForm.phaseId" type="warning" @click="handleSaveRows">保存</zt-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" |
| | |
| | | @cell-click="handleCellClick" |
| | | @selection-change="table.selectionChangeHandle"> |
| | | <el-table-column prop="operatConditName" label="工况名称" width="160"/> |
| | | <el-table-column prop="operatConditDurationRate" label="工况时长比"> |
| | | <el-table-column prop="operatConditDurationRate" label="时长比" align="right" width="100"> |
| | | <template slot-scope="scope"> |
| | | <span |
| | | v-if="editingCell && editingCell.row === scope.row && editingCell.column.property === scope.column.property"> |
| | |
| | | } |
| | | this.dataForm.dataThreeList = list |
| | | console.log(time, 'async handleSaveRows') |
| | | if (time!== 1) { |
| | | if (time> 1) { |
| | | this.$alert("请重新设置当前时长比分配") |
| | | return |
| | | } |
| | |
| | | this.originalData = null |
| | | this.dataForm.dataThreeList = null |
| | | this.$refs.tableObj.query() |
| | | this.$emit('getList') |
| | | this.originalTableData = JSON.parse(JSON.stringify(this.dataList)); // 更新初始数据为当前数据 |
| | | console.log(this.originalTableData, 'this.originalTableData 当前表格json数据') |
| | | } |