OnePsycho 4 年之前
父節點
當前提交
f10d1ad5b8

+ 6 - 0
TEAMModelOS/ClientApp/src/common/BaseSelectSchool.vue

@@ -126,6 +126,12 @@
 		font-family: '微軟正黑體', 'Heiti TC' !important;
 		font-family: '微軟正黑體', 'Heiti TC' !important;
 
 
 		.ivu-dropdown {
 		.ivu-dropdown {
+			
+			.ivu-select-dropdown{
+				width: max-content;
+				width: -webkit-max-content;
+				left: -35%;
+			}
 
 
 			.ivu-dropdown-item:hover {
 			.ivu-dropdown-item:hover {
 				background: #83d7ff;
 				background: #83d7ff;

+ 2 - 0
TEAMModelOS/ClientApp/src/components/questionnaire/BaseAddItem.vue

@@ -191,7 +191,9 @@
 				handler(newValue) {
 				handler(newValue) {
 					if (!newValue) return
 					if (!newValue) return
 					this.curType = newValue
 					this.curType = newValue
+					this.options = newValue === 'judge' ? [0,1] : [0,1,2,3]
 					this.optionsContent = []
 					this.optionsContent = []
+					this.initEditors()
 				}
 				}
 			},
 			},
 			editItem: {
 			editItem: {

+ 1 - 0
TEAMModelOS/ClientApp/src/components/questionnaire/BaseQuestionnaire.vue

@@ -145,6 +145,7 @@
 				let addItem = this.$refs.addItem
 				let addItem = this.$refs.addItem
 				console.log('新增Ref的内容')
 				console.log('新增Ref的内容')
 				console.log(addItem)
 				console.log(addItem)
+				console.log(addItem.optionsContent.map(i => i.value))
 				// 判断获取到的新题是否规范
 				// 判断获取到的新题是否规范
 				if ( this.getSimpleText(addItem.stemContent) && (addItem.options.length === this.curType === 'judge' ? 2 : addItem.optionsContent.length) && this.checkOptionNull(addItem.optionsContent)){
 				if ( this.getSimpleText(addItem.stemContent) && (addItem.options.length === this.curType === 'judge' ? 2 : addItem.optionsContent.length) && this.checkOptionNull(addItem.optionsContent)){
 					let newItem = {
 					let newItem = {

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

@@ -63,6 +63,9 @@
                             }
                             }
                         }
                         }
                     }
                     }
+					editor.customConfig.onVideoWarning = (text) => {
+						this.$Message.warning(text)
+					},
                     editor.customConfig.onchange = (html) => {
                     editor.customConfig.onchange = (html) => {
                         let key = String.fromCharCode(64 + parseInt(i + 1))
                         let key = String.fromCharCode(64 + parseInt(i + 1))
                         let codeArr = this.optionsContent.map(item => item.code)
                         let codeArr = this.optionsContent.map(item => item.code)