浏览代码

currentToolBar.clientWidth

OnePsycho 4 年之前
父节点
当前提交
a97461df1d

+ 1 - 1
TEAMModelOS/ClientApp/src/components/questionnaire/BaseJudge.vue

@@ -200,7 +200,7 @@
 				}
 				}
 				setTimeout(function() {
 				setTimeout(function() {
 					let currentToolBar = that.$refs['singleOption' + index][0].children[0]
 					let currentToolBar = that.$refs['singleOption' + index][0].children[0]
-					if(currentToolBar.clientWidth < 850){
+					if(currentToolBar.clientWidth < 650){
 						currentToolBar.style.top = '-90px'
 						currentToolBar.style.top = '-90px'
 					}
 					}
 					currentToolBar.style.visibility = 'visible'
 					currentToolBar.style.visibility = 'visible'

+ 1 - 1
TEAMModelOS/ClientApp/src/components/questionnaire/BaseMultiple.vue

@@ -199,7 +199,7 @@
 				}
 				}
 				setTimeout(function() {
 				setTimeout(function() {
 					let currentToolBar = that.$refs['singleOption' + index][0].children[0]
 					let currentToolBar = that.$refs['singleOption' + index][0].children[0]
-					if(currentToolBar.clientWidth < 850){
+					if(currentToolBar.clientWidth < 650){
 						currentToolBar.style.top = '-90px'
 						currentToolBar.style.top = '-90px'
 					}
 					}
 					currentToolBar.style.visibility = 'visible'
 					currentToolBar.style.visibility = 'visible'

+ 1 - 1
TEAMModelOS/ClientApp/src/components/questionnaire/BaseSingle.vue

@@ -198,7 +198,7 @@
 				}
 				}
 				setTimeout(function() {
 				setTimeout(function() {
 					let currentToolBar = that.$refs['singleOption' + index][0].children[0]
 					let currentToolBar = that.$refs['singleOption' + index][0].children[0]
-					if(currentToolBar.clientWidth < 850){
+					if(currentToolBar.clientWidth < 650){
 						currentToolBar.style.top = '-90px'
 						currentToolBar.style.top = '-90px'
 					}
 					}
 					currentToolBar.style.visibility = 'visible'
 					currentToolBar.style.visibility = 'visible'

+ 1 - 1
TEAMModelOS/ClientApp/src/components/vote/BaseVoteForm.vue

@@ -293,7 +293,7 @@
                 setTimeout(function () {
                 setTimeout(function () {
                     let currentToolBar = that.$refs['voteOption' + index][0].children[0]
                     let currentToolBar = that.$refs['voteOption' + index][0].children[0]
 					console.log(currentToolBar.clientWidth)
 					console.log(currentToolBar.clientWidth)
-					if(currentToolBar.clientWidth < 850){
+					if(currentToolBar.clientWidth < 650){
 						currentToolBar.style.top = '-90px'
 						currentToolBar.style.top = '-90px'
 					}
 					}
                     currentToolBar.style.visibility = 'visible'
                     currentToolBar.style.visibility = 'visible'

+ 1 - 2
TEAMModelOS/ClientApp/src/utils/evTools.js

@@ -89,8 +89,7 @@ export default {
 				code:paper.code,
 				code:paper.code,
 				blob:paper.blob,
 				blob:paper.blob,
 				scope:paper.scope,
 				scope:paper.scope,
-				scoring:paper.scoring,
-				points:paper.points,
+				points:paper.points || [],
 				periodId:paper.periodId,
 				periodId:paper.periodId,
 				gradeIds:paper.gradeIds,
 				gradeIds:paper.gradeIds,
 				subjectId:paper.subjectId,
 				subjectId:paper.subjectId,

+ 1 - 1
TEAMModelOS/ClientApp/src/view/evaluation/types/BaseCompletion.vue

@@ -69,7 +69,7 @@
                 }
                 }
                 setTimeout(function() {
                 setTimeout(function() {
                     let currentToolBar = that.$refs['editor' + index][0].children[0]
                     let currentToolBar = that.$refs['editor' + index][0].children[0]
-                    if(currentToolBar.clientWidth < 850){
+                    if(currentToolBar.clientWidth < 650){
                     	currentToolBar.style.top = '-90px'
                     	currentToolBar.style.top = '-90px'
                     }
                     }
 					currentToolBar.style.visibility = 'visible'
 					currentToolBar.style.visibility = 'visible'

+ 1 - 1
TEAMModelOS/ClientApp/src/view/evaluation/types/BaseMultiple.vue

@@ -260,7 +260,7 @@
 				}
 				}
 				setTimeout(function() {
 				setTimeout(function() {
 					let currentToolBar = that.$refs['singleOption' + index][0].children[0]
 					let currentToolBar = that.$refs['singleOption' + index][0].children[0]
-					if(currentToolBar.clientWidth < 850){
+					if(currentToolBar.clientWidth < 650){
 						currentToolBar.style.top = '-90px'
 						currentToolBar.style.top = '-90px'
 					}
 					}
 					currentToolBar.style.visibility = 'visible'
 					currentToolBar.style.visibility = 'visible'

+ 1 - 1
TEAMModelOS/ClientApp/src/view/evaluation/types/BaseSingle.vue

@@ -225,7 +225,7 @@
 				}
 				}
 				setTimeout(function() {
 				setTimeout(function() {
 					let currentToolBar = that.$refs['singleOption' + index][0].children[0]
 					let currentToolBar = that.$refs['singleOption' + index][0].children[0]
-					if(currentToolBar.clientWidth < 850){
+					if(currentToolBar.clientWidth < 650){
 						currentToolBar.style.top = '-90px'
 						currentToolBar.style.top = '-90px'
 					}
 					}
 					currentToolBar.style.visibility = 'visible'
 					currentToolBar.style.visibility = 'visible'