From aa4a6ed94ea6861a6ce634550d2f05f528529098 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期四, 05 九月 2024 09:07:53 +0800
Subject: [PATCH] 修改
---
web/src/views/modules/taskReliability/PlanMake.vue | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/web/src/views/modules/taskReliability/PlanMake.vue b/web/src/views/modules/taskReliability/PlanMake.vue
index d2bab9f..5a0e77c 100644
--- a/web/src/views/modules/taskReliability/PlanMake.vue
+++ b/web/src/views/modules/taskReliability/PlanMake.vue
@@ -3,12 +3,12 @@
<el-table ref="table" :data="tjDataList" height="230px" border>
<el-table-column align="center" prop="tjlx" label="鏌ヨ绫诲瀷">
</el-table-column>
- <el-table-column align="center" prop="specifiedValue" label="宸茬煡瑙勫畾鍊�">
+ <el-table-column align="center" prop="specifiedValue" label="妫�楠屼笂闄�">
<template v-slot="{ row }">
<el-input v-model="row.specifiedValue" style="width:100%" :disabled="row.tjlx==='涓嶉檺瀹氳瀹氬�兼煡璇�'"></el-input>
</template>
</el-table-column>
- <el-table-column align="center" prop="minAccepValue" label="鏈�浣庡彲鎺ュ彈鍊�">
+ <el-table-column align="center" prop="minAccepValue" label="妫�楠屼笅闄�">
<template v-slot="{ row }">
<el-input v-model="row.minAccepValue" style="width:100%"></el-input>
</template>
@@ -37,7 +37,7 @@
</el-table-column>
<el-table-column align="center" width="100" label="鎿嶄綔">
<template v-slot="{ row }">
- <el-button type="primary" @click="check(row)">鏌ヨ</el-button>
+ <el-button type="primary" @click="check(row)">{{row.btnName}}</el-button>
</template>
</el-table-column>
</el-table>
@@ -47,7 +47,7 @@
</el-table-column>
<el-table-column align="center" prop="totalTestTime" label="鎬昏瘯楠屾椂闂�(h)">
</el-table-column>
- <el-table-column v-if="isShow" align="center" prop="number" label="瑙勫畾鍊�">
+ <el-table-column v-if="isShow" align="center" prop="specifiedValue" label="妫�楠屼笂闄�">
</el-table-column>
<el-table-column align="center" prop="productionRiskReal" label="鐢熶骇鏂归闄╁疄闄呭��(%)">
</el-table-column>
@@ -69,6 +69,7 @@
isShow: false,
tjDataList: [{
tjlx: '鎸夐闄╁悕涔夊�兼煡璇�',
+ btnName: '鏌ヨ涓�',
specifiedValue: null,
minAccepValue: null,
productionRisk: null,
@@ -77,19 +78,21 @@
},
{
tjlx: '涓嶉檺瀹氱敓浜ф柟椋庨櫓鏌ヨ',
+ btnName: '鏌ヨ浜�',
specifiedValue: null,
minAccepValue: null,
productionRisk: null,
userRisk: null,
- showFailureTime: null
+ showFailureTime: 10
},
{
tjlx: '涓嶉檺瀹氳瀹氬�兼煡璇�',
+ btnName: '鏌ヨ涓�',
specifiedValue: null,
minAccepValue: null,
productionRisk: null,
userRisk: null,
- showFailureTime: null
+ showFailureTime: 10
}
],
riskList: [
@@ -161,6 +164,8 @@
this.dataList = res.data
if (row.tjlx === "涓嶉檺瀹氳瀹氬�兼煡璇�") {
this.isShow = true
+ }else{
+ this.isShow = false
}
}
}
--
Gitblit v1.9.1