jinlin
2024-04-07 d9461a1740bbc5d8d03258e4db0722aa9655d712
web/src/views/modules/taskReliability/TaskPhaseModel.vue
@@ -6,7 +6,7 @@
                     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"
@@ -14,7 +14,7 @@
                @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">
@@ -86,7 +86,7 @@
        }
        this.dataForm.dataThreeList = list
        console.log(time, 'async handleSaveRows')
        if (time!== 1) {
        if (time> 1) {
          this.$alert("请重新设置当前时长比分配")
          return
        }
@@ -100,6 +100,7 @@
          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数据')
        }