loulijun2021
2023-01-05 6bd005efa5bb1b9aa0bbb312378d57440c29366c
src/views/zzmx/jpgj.vue
@@ -333,6 +333,7 @@
        <el-table
          ref="eqpDialogArrRef"
          :key="tableTimeStampKey"
          class="tableFixed"
          :data="eqpDialogArr"
          :height="tableHeight"
@@ -444,10 +445,10 @@
          >
            <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>
@@ -559,6 +560,8 @@
      operation: '',
      dialogFormRules: {},
      radioChangeTempValue: '',
      tableTimeStampKey: new Date().getTime(),
      title_value: '数据导入 / 节拍工价',
      code: '24',
@@ -727,6 +730,10 @@
    // 取消行
    cancelRow(row) {
      this.getEqpTable()
      this.radioChange(this.radioChangeTempValue)
      this.dialogForm.stepcode = this.radioChangeTempValue
      this.isEqpTableEdit = true
    },
    // 编辑行
@@ -742,6 +749,7 @@
          }
        })
        this.isEqpTableEdit = false
        this.tableTimeStampKey = new Date().getTime()
      } else {
        return this.$message.info('只能一行一行修改!')
      }