yangg 2 өдөр өмнө
parent
commit
a31176b22a

+ 2 - 1
src/views/position/detail/index.vue

@@ -911,6 +911,7 @@
                 <el-switch 
                   v-model="settings.keepVideo" 
                   @change="(value: boolean) => handleSettingChange('keepVideo', value)"
+                  :disabled="true"
                 />
                
               </div>
@@ -4923,7 +4924,7 @@ const deleteCustomDimension = (dimension: any) => {
 
 const settings = reactive({
   
-  keepVideo: false,
+  keepVideo: true,
   interruptionMode: '',
   smartFollowUp: false,
   followUpStyle: ''

+ 4 - 4
src/views/position/list/crud.tsx

@@ -98,9 +98,9 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
 						click: () => {
 							// 使用存储的选中行
 							const selection = context.selectedRows || [];
-							console.log('选中的行:', selection);
+							console.log('选中的行:', context);
 							
-							if (!selection || selection.length === 0) {
+							if (!selection || selection.length === 0||selection.length==undefined) {
 								warningMessage('请先选择要操作的职位');
 								return;
 							}
@@ -119,9 +119,9 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
 						click: () => {
 							// 使用存储的选中行
 							const selection = context.selectedRows || [];
-							console.log('选中的行:', selection);
+							console.log('选中的行:', selection.length);
 							
-							if (!selection || selection.length === 0) {
+							if (!selection || selection.length === 0 ||selection.length==undefined) {
 								warningMessage('请先选择要操作的职位');
 								return;
 							}

+ 9 - 1
src/views/questionBank/list/crud.tsx

@@ -886,7 +886,15 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
 					title: '适用职位',
 					search: { show: true,
 						size: 'small',
-						col:{ span:3}, },
+						col:{ span:3},
+						 valueChange({ form, value, getColumn, mode }) {
+							if (value && value.length > 3) {
+								// 截断多余的选项
+								form.position_types = value.slice(0, 3);
+								// 可以添加提示
+								/* Message.warning('最多只能选择3个职位类型'); */
+							}
+							} },
 					type: 'dict-select',
 					column: {
 						minWidth: 120,

+ 1 - 1
src/views/questionBank/list/index.vue

@@ -231,7 +231,7 @@ const getTreeData = () => {
 		GetCategoryList({}).then((res: any) => {
 			console.log('res', res);
 			const categoryList = res.data.items.filter((item: any) => 
-				!['技术能力', '服务意识', '职业素质','基本常识','色盲检测','内容铺垫'].includes(item.name)
+				!['技术能力', '服务意识', '职业素质','基本常识','色盲检测','内容铺垫','心理测试','心理测试1'].includes(item.name)
 			);
 			GetTagList({}).then((res: any) => {
 				console.log('res', res);

+ 1 - 0
src/views/questionBank/positionList/crud.tsx

@@ -156,6 +156,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 						text: '上传视频',
 						type: 'text',
 						icon:"upload",
+						show:false,
 						size: 'small',
 						click: ({ row }: any) => {
 							// 触发自定义事件,让父组件处理弹窗显示