From f906fe891f215c4cb3c2cc5ff3f30e2ba3ae650d Mon Sep 17 00:00:00 2001
From: joylink_fanyuhong <18706759286@163.com>
Date: Wed, 22 Dec 2021 17:23:34 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E5=8D=B7=E7=AE=A1=E7=90=86=E8=B0=83?=
=?UTF-8?q?=E6=95=B4new11?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/publish/examRule/draft/rule.vue | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/src/views/publish/examRule/draft/rule.vue b/src/views/publish/examRule/draft/rule.vue
index b6545673b..014ea7933 100644
--- a/src/views/publish/examRule/draft/rule.vue
+++ b/src/views/publish/examRule/draft/rule.vue
@@ -8,7 +8,14 @@
{{ getOperateName(scope.row) }}
-
+
+
+ {{ scope.row.num }}
+
+ !
+
+
+
@@ -253,7 +260,18 @@ export default {
getTopicNum(row) {
//this.operationTypeNums
//console.log(row, this.operationTypeNums);
- return this.operationTypeNums[row.trainingType] ? this.operationTypeNums[row.trainingType][row.operateType]: 0;
+ return this.operationTypeNums[row.trainingType] ? (this.operationTypeNums[row.trainingType][row.operateType]||0): 0;
+ },
+ checkNum(row) {
+ if(!this.operationTypeNums[row.trainingType]) {
+ return true;
+ } else if(!this.operationTypeNums[row.trainingType][row.operateType]){
+ return true;
+ } else if(row.num > this.operationTypeNums[row.trainingType][row.operateType]) {
+ return true;
+ } else {
+ return false;
+ }
},
handleForm(data) {
this.indexCourse = data.$index;