Parcourir la source

修改填空题

yangg il y a 2 mois
Parent
commit
47520f058c

+ 1 - 1
.env.development

@@ -6,7 +6,7 @@ ENV = 'development'
 # 本地环境接口地址 121.36.251.245
 
 
-VITE_API_URL = 'https://backend.qicai321.com'
+VITE_API_URL = 'http://192.168.100.101:8083'
 # VITE_API_URL = 'https://backend.qicai321.com'
 VITE_API_WX_URL='https://api.weixin.qq.com/'
 VITE_API_URL_MINLONG='http://117.185.80.170:7861'

+ 3 - 0
src/views/position/list/crud.tsx

@@ -530,6 +530,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
 						col:{ span:3},
 					 },
 					column: {
+						show: false,
 						minWidth: 150,
 						sortable: 'custom',
 					},
@@ -549,6 +550,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
 						col:{ span:3},
 					 },
 					column: {
+						show: false,
 						showOverflowTooltip: true,
 						width: 120,
 						sortable: 'custom',
@@ -572,6 +574,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
 					title: '职位描述',
 					search: { show: false },
 					column: {
+						show: false,
 						showOverflowTooltip: true,
 						width: 120,
 						sortable: 'custom',

+ 1 - 1
src/views/questionBank/list/api.ts

@@ -124,7 +124,7 @@ export function AddFillQuestion(data:any) {
 	return request({
 	  url: '/api/system/interview_question/blank/create',
 	  method: 'post',
-	  data
+	  data:{...data,tenant_id:1}
 	});
   }
   

+ 7 - 2
src/views/questionBank/list/crud.tsx

@@ -110,8 +110,13 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
 			form.competency_tags_config = [];
 		}
 		
-		// 先调用添加题目的接口
-		const addResult = await api.AddObj(form);
+		// 根据题目类型调用不同的接口
+		let addResult;
+		if (form.question_form === 6) { // 填空题
+			addResult = await api.AddFillQuestion(form);
+		} else {
+			addResult = await api.AddObj(form);
+		}
 		
 		// 如果添加成功且题目形式为0(开放题)或5,异步触发视频生成
 		if (addResult.code === 2000 && (form.question_form === 0 || form.question_form === 5)) {