From 6bd005efa5bb1b9aa0bbb312378d57440c29366c Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 05 一月 2023 16:47:22 +0800
Subject: [PATCH] 1.节拍工价 编辑行功能优化
---
src/views/zzmx/jpgj.vue | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/src/views/zzmx/jpgj.vue b/src/views/zzmx/jpgj.vue
index b2ae70b..42bc740 100644
--- a/src/views/zzmx/jpgj.vue
+++ b/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('鍙兘涓�琛屼竴琛屼慨鏀癸紒')
}
--
Gitblit v1.9.3