From 658f06778c80893e8618d62357cebf49aea9346e Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期一, 12 八月 2024 10:01:24 +0800 Subject: [PATCH] 修改 --- web/src/views/modules/taskReliability/PlanMake.vue | 29 ++++++++++++++--------------- 1 files changed, 14 insertions(+), 15 deletions(-) diff --git a/web/src/views/modules/taskReliability/PlanMake.vue b/web/src/views/modules/taskReliability/PlanMake.vue index 6f8912f..d2bab9f 100644 --- a/web/src/views/modules/taskReliability/PlanMake.vue +++ b/web/src/views/modules/taskReliability/PlanMake.vue @@ -1,11 +1,11 @@ <template> <div class="fa-card-b"> <el-table ref="table" :data="tjDataList" height="230px" border> - <el-table-column align="center" prop="tjlx" width="100" label="鏉′欢绫诲瀷"> + <el-table-column align="center" prop="tjlx" label="鏌ヨ绫诲瀷"> </el-table-column> <el-table-column align="center" prop="specifiedValue" label="宸茬煡瑙勫畾鍊�"> <template v-slot="{ row }"> - <el-input v-model="row.specifiedValue" style="width:100%" :disabled="row.tjlx==='鏉′欢3'"></el-input> + <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="鏈�浣庡彲鎺ュ彈鍊�"> @@ -16,7 +16,7 @@ <el-table-column align="center" prop="productionRisk" label="鐢熶骇鏂归闄�"> <template v-slot="{ row }"> <el-select style="width: 100%" :value-key="key" v-model="row.productionRisk" - @change="onChange()" :disabled="row.tjlx==='鏉′欢2'"> + :disabled="row.tjlx==='涓嶉檺瀹氱敓浜ф柟椋庨櫓鏌ヨ'"> <el-option v-for="item in riskList" :key="item.value" :label="item.label" :value="item.value"></el-option> </el-select> @@ -24,8 +24,7 @@ </el-table-column> <el-table-column align="center" prop="userRisk" label="浣跨敤鏂归闄�"> <template v-slot="{ row }"> - <el-select style="width: 100%" :value-key="key" v-model="row.userRisk" - @change="onChange()"> + <el-select style="width: 100%" :value-key="key" v-model="row.userRisk"> <el-option v-for="item in riskList" :key="item.value" :label="item.label" :value="item.value"></el-option> </el-select> @@ -33,7 +32,7 @@ </el-table-column> <el-table-column align="center" prop="showFailureTime" label="鏁呴殰鎺ュ彈鍊兼渶澶ф樉绀�"> <template v-slot="{ row }"> - <el-input v-model="row.showFailureTime" style="width:100%" :disabled="row.tjlx==='鏉′欢1'"></el-input> + <el-input v-model="row.showFailureTime" style="width:100%" :disabled="row.tjlx==='鎸夐闄╁悕涔夊�兼煡璇�'"></el-input> </template> </el-table-column> <el-table-column align="center" width="100" label="鎿嶄綔"> @@ -69,7 +68,7 @@ dataList: [], isShow: false, tjDataList: [{ - tjlx: '鏉′欢1', + tjlx: '鎸夐闄╁悕涔夊�兼煡璇�', specifiedValue: null, minAccepValue: null, productionRisk: null, @@ -77,7 +76,7 @@ showFailureTime: null }, { - tjlx: '鏉′欢2', + tjlx: '涓嶉檺瀹氱敓浜ф柟椋庨櫓鏌ヨ', specifiedValue: null, minAccepValue: null, productionRisk: null, @@ -85,7 +84,7 @@ showFailureTime: null }, { - tjlx: '鏉′欢3', + tjlx: '涓嶉檺瀹氳瀹氬�兼煡璇�', specifiedValue: null, minAccepValue: null, productionRisk: null, @@ -137,20 +136,20 @@ this.$tip.alert("鏈�浣庡彲鎺ュ彈鍊间笉鑳藉ぇ浜庤瀹氬��") flag =false } - if (row.tjlx === "鏉′欢1"){ - if (!row.specifiedValue ||!row.minAccepValue || !row.productionRisk||!userRisk) { + if (row.tjlx === "鎸夐闄╁悕涔夊�兼煡璇�"){ + if (!row.specifiedValue ||!row.minAccepValue || !row.productionRisk||!row.userRisk) { this.$tip.alert("鏈夋湭濉啓鐨勫��") flag =false } } - if (row.tjlx === "鏉′欢2"){ + if (row.tjlx === "涓嶉檺瀹氱敓浜ф柟椋庨櫓鏌ヨ"){ if (!row.specifiedValue ||!row.minAccepValue || !row.showFailureTime||!row.userRisk) { this.$tip.alert("鏈夋湭濉啓鐨勫��") flag =false } } - if (row.tjlx === "鏉′欢3"){ - if (!row.showFailureTime ||!row.minAccepValue || !row.productionRisk||!userRisk) { + if (row.tjlx === "涓嶉檺瀹氳瀹氬�兼煡璇�"){ + if (!row.showFailureTime ||!row.minAccepValue || !row.productionRisk||!row.userRisk) { this.$tip.alert("鏈夋湭濉啓鐨勫��") flag =false } @@ -160,7 +159,7 @@ } let res = await this.$http.get(`/TestScheme/TestScheme/condition`, {params: row}) this.dataList = res.data - if (row.tjlx === "鏉′欢3") { + if (row.tjlx === "涓嶉檺瀹氳瀹氬�兼煡璇�") { this.isShow = true } } -- Gitblit v1.9.1