Explorar el Código

refactor(courseProduction): 移除知识点选择功能及相关代码

tanshanming hace 6 meses
padre
commit
da9ceac80a
Se han modificado 1 ficheros con 7 adiciones y 7 borrados
  1. 7 7
      src/views/courseAdd/components/courseProduction/index.vue

+ 7 - 7
src/views/courseAdd/components/courseProduction/index.vue

@@ -65,7 +65,7 @@
 				<a-form-item label="章节名称" name="chapterName">
 					<a-input v-model:value="formState.chapterName" placeholder="请输入章节名称" />
 				</a-form-item>
-				<a-form-item label="知识点" name="knowledgeIds">
+				<!-- <a-form-item label="知识点" name="knowledgeIds">
 					<a-select
 						mode="multiple"
 						v-model:value="formState.knowledgeIds"
@@ -76,7 +76,7 @@
 							>{{ item.label }}
 						</a-select-option>
 					</a-select>
-				</a-form-item>
+				</a-form-item> -->
 			</a-form>
 		</a-modal>
 		<!-- 添加课时模态框 -->
@@ -160,8 +160,8 @@
 				courseProductionApi
 					.add({
 						courseId: courseInfoId,
-						name: formState.chapterName,
-						knowledgeIds: formState.knowledgeIds
+						name: formState.chapterName
+						// knowledgeIds: formState.knowledgeIds
 					})
 					.then((res) => {
 						getList()
@@ -177,8 +177,8 @@
 					.edit({
 						id: formState.id,
 						courseId: courseInfoId,
-						name: formState.chapterName,
-						knowledgeIds: formState.knowledgeIds
+						name: formState.chapterName
+						// knowledgeIds: formState.knowledgeIds
 					})
 					.then((res) => {
 						getList()
@@ -209,7 +209,7 @@
 
 		formState.id = item.id
 		formState.chapterName = item.name
-		formState.knowledgeIds = item.knowledeges
+		// formState.knowledgeIds = item.knowledeges
 	}
 
 	// 编辑课时