chenxiaochao 3 nedēļas atpakaļ
vecāks
revīzija
4421dead21

+ 10 - 5
apps/web-ele/src/views/knowledge/edit/index.vue

@@ -42,6 +42,7 @@ const centerloading = ref(false);
42 42
 const chapterData = ref([]) as any;
43 43
 // 附件列表
44 44
 const attachments = ref({}) as any;
45
+// @ts-ignore
45 46
 const { action, headers } = getFileUploadConfig();
46 47
 // 查询章节数据
47 48
 const chapterDatafn = async (ID: any) => {
@@ -88,6 +89,8 @@ const saveDraft = () => {
88 89
 
89 90
 // 发布
90 91
 const publish = () => {
92
+  console.log('发布的附件',attachments.value[selectedChapter.value.id]);
93
+  
91 94
   centerloading.value = true;
92 95
   editKnowledgeContent({
93 96
     categoryId: selectedChapter.value?.categoryId,
@@ -97,7 +100,7 @@ const publish = () => {
97 100
     title: selectedChapter.value?.label,
98 101
     content: selectedChapter.value?.content,
99 102
     attachment: attachments.value[selectedChapter.value.id]
100
-      .map((item: any) => item.response.data.fileName)
103
+      ?.map((item: any) => item.response.data.fileName)
101 104
       .join(','),
102 105
   })
103 106
     .then(() => {
@@ -133,12 +136,15 @@ const publish = () => {
133 136
 const handleAttachmentSuccess = (response: any, file: any, fileList: any[]) => {
134 137
   console.log('上传成功:', response, file, fileList);
135 138
   attachments.value[selectedChapter.value.id] = fileList;
136
-  console.log(fileList);
137 139
 };
138 140
 // 移除附件
139 141
 const handleAttachmentRemove = (file: any, fileList: any[]) => {
140
-  console.log('移除文件:', file, fileList);
141 142
   attachments.value[selectedChapter.value.id] = fileList;
143
+  console.log(
144
+    '移除文件:',
145
+    fileList,
146
+    attachments.value[selectedChapter.value.id],
147
+  );
142 148
 };
143 149
 
144 150
 // 点击章节
@@ -159,7 +165,7 @@ const handleChapterClick = async (node: any) => {
159 165
       if (res.data.attachment) {
160 166
         attachments.value[res.data.id] = res.data.attachment
161 167
           .split(',')
162
-          .map((item, index) => {
168
+          .map((item: any, index: any) => {
163 169
             return {
164 170
               name: item,
165 171
               response: {
@@ -172,7 +178,6 @@ const handleChapterClick = async (node: any) => {
172 178
               raw: item,
173 179
             };
174 180
           });
175
-        // console.log(res.data.attachment);
176 181
       }
177 182
     }
178 183
   } catch (error) {

+ 36 - 1
apps/web-ele/src/views/knowledge/type/index.vue

@@ -280,6 +280,8 @@ const deleteCategory = async (id: any) => {
280 280
   padding: 16px;
281 281
   background-color: #fff;
282 282
   border-radius: 6px;
283
+  width: 100%;
284
+  box-sizing: border-box;
283 285
 }
284 286
 
285 287
 .header {
@@ -293,12 +295,30 @@ const deleteCategory = async (id: any) => {
293 295
   grid-template-columns: repeat(3, 1fr);
294 296
   gap: 16px;
295 297
   margin-bottom: 24px;
298
+  width: 100%;
299
+  box-sizing: border-box;
300
+}
301
+
302
+/* 响应式布局调整 */
303
+@media (max-width: 1200px) {
304
+  .card-list {
305
+    grid-template-columns: repeat(2, 1fr);
306
+  }
307
+}
308
+
309
+@media (max-width: 768px) {
310
+  .card-list {
311
+    grid-template-columns: 1fr;
312
+  }
296 313
 }
297 314
 
298 315
 .category-card {
299 316
   height: 100%;
300 317
   cursor: pointer;
301 318
   transition: all 0.3s ease;
319
+  width: 100%;
320
+  box-sizing: border-box;
321
+  min-width: 0;
302 322
 }
303 323
 
304 324
 .category-card:hover {
@@ -318,11 +338,19 @@ const deleteCategory = async (id: any) => {
318 338
   display: flex;
319 339
 }
320 340
 
341
+.card-item {
342
+  width: 100%;
343
+  box-sizing: border-box;
344
+  min-width: 0;
345
+}
346
+
321 347
 .card-content {
322 348
   display: flex;
323 349
   gap: 12px;
324 350
   align-items: center;
325 351
   padding: 10px 0;
352
+  width: 100%;
353
+  box-sizing: border-box;
326 354
 }
327 355
 
328 356
 .card-icon {
@@ -332,11 +360,14 @@ const deleteCategory = async (id: any) => {
332 360
   width: 48px;
333 361
   height: 48px;
334 362
   border-radius: 6px;
363
+  flex-shrink: 0;
364
+  box-sizing: border-box;
335 365
 }
336 366
 
337 367
 .card-main {
338 368
   flex: 1;
339 369
   min-width: 0;
370
+  box-sizing: border-box;
340 371
 }
341 372
 
342 373
 .card-title {
@@ -347,6 +378,7 @@ const deleteCategory = async (id: any) => {
347 378
   text-overflow: ellipsis;
348 379
   white-space: nowrap;
349 380
   transition: color 0.3s ease;
381
+  box-sizing: border-box;
350 382
 }
351 383
 
352 384
 .card-description {
@@ -356,11 +388,14 @@ const deleteCategory = async (id: any) => {
356 388
   color: #666;
357 389
   text-overflow: ellipsis;
358 390
   white-space: nowrap;
391
+  box-sizing: border-box;
359 392
 }
360 393
 
361 394
 .card-info {
362
-  min-width: 80px;
395
+  flex: 0 0 auto;
363 396
   text-align: right;
397
+  box-sizing: border-box;
398
+  min-width: 0;
364 399
 }
365 400
 
366 401
 .creator {

+ 51 - 34
apps/web-ele/src/views/schedule/view/components/create/config-data.tsx

@@ -41,8 +41,10 @@ let templateList = [] as any; // 任务模板下拉
41 41
 
42 42
 const getUserListfn = async () => {
43 43
   const res = await queryExecutorList({});
44
+  console.log('获取执行人列表', res);
45
+
44 46
   getUserListOptions = res.map((item: any, index: number) => ({
45
-    label: `${item.userName}-${item.postName}-${item.stationName}`,
47
+    label: `${item.userName}-${item.postName}${item.stationName ? `-` + item.stationName : ''}`,
46 48
     value: index.toString(),
47 49
     data: item,
48 50
   }));
@@ -92,43 +94,20 @@ export const drawerFormSchema: any = (type: any) => [
92 94
   },
93 95
   {
94 96
     component: 'ApiSelect',
95
-    componentProps: {
96
-      getPopupContainer,
97
-      api: async () => {
98
-        const data = await selectAllSysStation({
99
-          isAll: true,
100
-        });
101
-        return data;
102
-      },
103
-      multiple: true,
104
-      labelField: 'stationName',
105
-      valueField: 'id',
106
-    },
107
-
108
-    fieldName: 'stationId',
109
-    label: '场站',
110
-    rules: 'required',
111
-    dependencies: {
112
-      show: () => {
113
-        return type !== 3;
114
-      },
115
-      required: () => {
116
-        return type !== 3;
117
-      },
118
-      disabled: false,
119
-      triggerFields: ['stationId'],
120
-    },
121
-  },
122
-  {
123
-    component: 'ApiSelect',
124 97
     fieldName: 'executors',
125 98
     label: '执行人名称',
126 99
     rules: 'required',
100
+    dependencies: {
101
+      disabled: (values: any) => !values.executePosition,
102
+      triggerFields: ['executePosition'],
103
+    },
127 104
     componentProps: (data: any, formApi: any) => {
128
-      const options =
129
-        type === 3
130
-          ? getUserListOptions.filter((item: any) => item.data.postId === 3)
131
-          : getUserListOptions;
105
+      const executePosition = data.executePosition;
106
+      const options = executePosition
107
+        ? getUserListOptions.filter(
108
+            (item: any) => item.data.postId === executePosition,
109
+          )
110
+        : [];
132 111
       return {
133 112
         placeholder: '请选择执行人',
134 113
         clearable: true,
@@ -152,6 +131,44 @@ export const drawerFormSchema: any = (type: any) => [
152 131
     },
153 132
   },
154 133
   {
134
+    component: 'ApiSelect',
135
+    fieldName: 'stationId',
136
+    label: '场站',
137
+    rules: 'required',
138
+    componentProps: (data: any) => {
139
+      const executorValues = data.executorIds || [];
140
+      const userIds = executorValues.map((value: any) => value?.userId);
141
+      return {
142
+        getPopupContainer,
143
+        api: async () => {
144
+          if (userIds.length === 0) {
145
+            return [];
146
+          }
147
+          const data = await selectAllSysStation({
148
+            // userIds: userIds.join(','),
149
+          });
150
+          return data;
151
+        },
152
+        multiple: true,
153
+        labelField: 'stationName',
154
+        valueField: 'id',
155
+        key: executorValues.map((v: any) => v?.userId).join(','), // 当执行人变化时,重新初始化组件
156
+        immediate: true, // 立即执行api
157
+      };
158
+    },
159
+    dependencies: {
160
+      show: () => {
161
+        return type !== 3;
162
+      },
163
+      required: () => {
164
+        return type !== 3;
165
+      },
166
+      disabled: (values: any) =>
167
+        !values.executors || values.executors.length === 0,
168
+      triggerFields: ['executors'],
169
+    },
170
+  },
171
+  {
155 172
     component: 'RadioGroup',
156 173
     fieldName: 'formType',
157 174
     label: '任务名称',

+ 5 - 4
apps/web-ele/src/views/schedule/work/class/component/addandedit.vue

@@ -2,7 +2,7 @@
2 2
 import type { FormInstance, FormRules } from 'element-plus';
3 3
 
4 4
 import { onMounted, reactive, ref, watch } from 'vue';
5
-import { useRoute } from 'vue-router';
5
+import { useRoute, useRouter } from 'vue-router';
6 6
 
7 7
 // @ts-ignore
8 8
 import { Page } from '@vben/common-ui';
@@ -28,6 +28,7 @@ import { getDictOptions } from '#/utils/dict';
28 28
 // const emits = defineEmits(['submit']);
29 29
 const stationName = ref('');
30 30
 const route = useRoute();
31
+const router = useRouter();
31 32
 const ruleFormRef = ref<FormInstance>();
32 33
 const querydata = route.query as any;
33 34
 const tableData = ref([]) as any;
@@ -174,9 +175,9 @@ const submitForm = (formEl: FormInstance | undefined) => {
174 175
           workDate: dayjs(ruleForm.value.workDate).format('YYYY-MM-DD'),
175 176
           workNum: tableData.value.length,
176 177
         });
177
-        // router.replace({
178
-        //   path: '/schedule/work/class',
179
-        // });
178
+        router.replace({
179
+          path: '/schedule/work/class',
180
+        });
180 181
       } catch (error: any) {
181 182
         ElMessage.error(error.message);
182 183
       }

+ 16 - 4
apps/web-ele/src/views/schedule/work/class/index.vue

@@ -1,4 +1,5 @@
1 1
 <script setup lang="ts">
2
+import { onMounted, watch } from 'vue';
2 3
 import { Page } from '@vben/common-ui';
3 4
 import { useRouter } from 'vue-router';
4 5
 import { useVbenVxeGrid, type VxeGridProps } from '#/adapter/vxe-table';
@@ -70,7 +71,9 @@ const formOptions: VbenFormProps = {
70 71
     ],
71 72
   ],
72 73
 };
73
-
74
+onMounted(() => {
75
+  console.log(router);
76
+});
74 77
 // 列表中显示配置
75 78
 const gridOptions: VxeGridProps = {
76 79
   checkboxConfig: {
@@ -127,11 +130,11 @@ const handleAddClick = async () => {
127 130
     },
128 131
   });
129 132
 };
130
-const handleViewClick =  (data: any) => {
131
-    router.push({
133
+const handleViewClick = (data: any) => {
134
+  router.push({
132 135
     path: '/schedule/work/class/addandedit',
133 136
     query: {
134
-      stationId:data.stationId,
137
+      stationId: data.stationId,
135 138
       Detailsid: data.id,
136 139
     },
137 140
   });
@@ -140,6 +143,15 @@ const handleViewClick =  (data: any) => {
140 143
 // const handleEditClick = (row: any) => {
141 144
 //   console.log(row);
142 145
 // };
146
+
147
+watch(
148
+  () => router.currentRoute.value.path,
149
+  (newPath, oldPath) => {
150
+    if (newPath === '/schedule/work/class' && oldPath === '/schedule/work/class/addandedit') {
151
+      BasicTableApi.reload();
152
+    }
153
+  }
154
+);
143 155
 </script>
144 156
 <template>
145 157
   <Page :auto-content-height="true">

+ 49 - 40
apps/web-ele/src/views/system/taskDesign/formDesign/index.vue

@@ -298,7 +298,8 @@ async function editCheckItem(checkItem: any) {
298 298
   // console.log(checkItem);
299 299
   // const aa = "http://192.168.1.33:19000/smart-steward-bucket/comment/20260206/ca63ff81.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=root%2F20260206%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260206T100201Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=99e33fd4c65189bc90e60ca65dad1149f316847d69325484dc6850129427c5d4"
300 300
   // console.log(aa.split('?')[0].split('/').slice(-3).join('/'));
301
-  
301
+  // console.log('编辑内容', checkItem);
302
+
302 303
   try {
303 304
     await queryinspectionItemDetail(checkItem.id);
304 305
   } catch (error) {
@@ -321,26 +322,26 @@ async function editCheckItem(checkItem: any) {
321 322
   editForm.photoPrompt = checkItem?.photoPrompt || '';
322 323
   editForm.checkResult = String(checkItem?.checkResult) || '';
323 324
   editForm.limitScore = checkItem?.limitScore || '';
324
-  // fileList.value = checkItem?.exampleImageUrl.map(
325
-  //   (item: any, index: number) => {
326
-  //     return {
327
-  //       name: item.split('?')[0].split('/').slice(-3).join('/'),
328
-  //       response: {
329
-  //         code: 200,
330
-  //         data: {
331
-  //           fileName: item.split('?')[0].split('/').slice(-3).join('/'),
332
-  //           url: item,
333
-  //         },
334
-  //         msg: '操作成功',
335
-  //       },
336
-  //       url: item,
337
-  //       status: 'success',
338
-  //       uid: index + Math.random().toString(36).substring(2),
339
-  //     };
340
-  //   },
341
-  // );
325
+  fileList.value = checkItem?.exampleImageUrl.map(
326
+    (item: any, index: number) => {
327
+      return {
328
+        name: item.split('?')[0].split('/').slice(-3).join('/'),
329
+        response: {
330
+          code: 200,
331
+          data: {
332
+            fileName: item.split('?')[0].split('/').slice(-3).join('/'),
333
+            url: item,
334
+          },
335
+          msg: '操作成功',
336
+        },
337
+        url: item,
338
+        status: 'success',
339
+        uid: index + Math.random().toString(36).substring(2),
340
+      };
341
+    },
342
+  );
342 343
   // console.log(fileList.value);
343
-  
344
+
344 345
   editForm.checkDescription = checkItem?.checkDescription || '';
345 346
 }
346 347
 
@@ -352,7 +353,7 @@ function saveEdit() {
352 353
       switch (editType.value) {
353 354
         case 'addcheck': {
354 355
           // console.log(editForm);
355
-          console.log(fileList.value);
356
+          // console.log(fileList.value);
356 357
           // 新增检查项
357 358
           try {
358 359
             await addinspectionItemApi({
@@ -372,7 +373,7 @@ function saveEdit() {
372 373
               limitScore: editForm?.limitScore || '',
373 374
               exampleImage: fileList.value
374 375
                 .map((file: any) => file?.response?.data?.fileName)
375
-                .join(';'),
376
+                .join(','),
376 377
               // exampleImagelist: fileList.value,
377 378
               checkDescription: editForm?.checkDescription || '',
378 379
             });
@@ -424,7 +425,7 @@ function saveEdit() {
424 425
                 limitScore: editForm?.limitScore || '',
425 426
                 exampleImage: fileList.value
426 427
                   .map((file: any) => file?.response?.data?.fileName)
427
-                  .join(';'),
428
+                  .join(','),
428 429
                 checkDescription: editForm?.checkDescription || '',
429 430
               });
430 431
               await queryinspectionItemlist(selectedSubItemId.value);
@@ -557,18 +558,18 @@ async function onDrop(
557 558
       item.order = index + 1;
558 559
     });
559 560
 
560
-    console.log(
561
-      '拖拽排序完成:',
562
-      itemId,
563
-      '到',
564
-      targetItem.id,
565
-      '新顺序:',
566
-      items.map((item: any) => ({
567
-        id: item.id,
568
-        name: item.name,
569
-        order: item.order,
570
-      })),
571
-    );
561
+    // console.log(
562
+    //   '拖拽排序完成:',
563
+    //   itemId,
564
+    //   '到',
565
+    //   targetItem.id,
566
+    //   '新顺序:',
567
+    //   items.map((item: any) => ({
568
+    //     id: item.id,
569
+    //     name: item.name,
570
+    //     order: item.order,
571
+    //   })),
572
+    // );
572 573
 
573 574
     // 保存排序结果到后端(只处理子项)
574 575
     if (type === 'sub') {
@@ -617,7 +618,7 @@ const handlePictureCardPreview = (uploadFile: any) => {
617 618
 };
618 619
 // 抽屉打开后处理函数
619 620
 function handleDrawerOpen() {
620
-  console.log('抽屉打开后处理函数');
621
+  // console.log('抽屉打开后处理函数');
621 622
 
622 623
   const drawerContent = document.querySelector('.el-drawer__body');
623 624
   if (drawerContent) {
@@ -625,7 +626,7 @@ function handleDrawerOpen() {
625 626
   }
626 627
 }
627 628
 const closeEditDrawer = () => {
628
-  console.log('关闭了');
629
+  // console.log('关闭了');
629 630
   editForm.id = '';
630 631
   editForm.name = '';
631 632
   // 关联子项
@@ -653,10 +654,17 @@ const closeEditDrawer = () => {
653 654
   fileList.value = [];
654 655
 };
655 656
 
656
-const handleUpload = ()=>{
657
+const handleUpload = () => {
657 658
   console.log(fileList.value);
658
-  
659
-}
659
+};
660
+//上传前校验
661
+const beforeUpload = (file: any) => {
662
+  const maxSize = 10485760;
663
+  if (file.size > maxSize) {
664
+    ElMessage.error('文件大小不能超过10MB');
665
+    return false;
666
+  }
667
+};
660 668
 </script>
661 669
 
662 670
 <template>
@@ -1032,6 +1040,7 @@ const handleUpload = ()=>{
1032 1040
             :headers="{ Authorization: `Bearer ${accessStore.accessToken}` }"
1033 1041
             :limit="3"
1034 1042
             list-type="picture-card"
1043
+            :before-upload="beforeUpload"
1035 1044
             :on-preview="handlePictureCardPreview"
1036 1045
             :on-remove="handleRemove"
1037 1046
             :on-success="handleUpload"

+ 2 - 1
apps/web-ele/src/views/system/taskDesign/taskTemplate/index.vue

@@ -125,12 +125,13 @@ async function handleView(row: any) {
125 125
 async function handleEdit(row: any) {
126 126
   try {
127 127
     const res = await xiangqigApi(row.id);
128
+    console.log('编辑数据', res);
128 129
     drawerApi
129 130
       .setData({
130 131
         ...res,
131 132
         isUpdate: true,
132 133
         executePosition: Number(res.executePosition),
133
-        taskLeader: Number(res.taskLeader),
134
+        taskLeader: String(res.taskLeader),
134 135
         isLicensable: String(res.isLicensable),
135 136
         isRating: String(res.isRating),
136 137
         isMust: String(res.isMust),

+ 0 - 123
apps/web-ele/src/views/system/taskDesign/taskTemplate/taskTemplate-drawer.vue

@@ -75,124 +75,7 @@ const formOptions = computed(() => {
75 75
 const handleTaskFrequencyChange = (value: string) => {
76 76
   taskFrequency.value = value;
77 77
 };
78
-// 每天一次 daily
79
-// 每周一次 weekly
80
-// 每月一次 monthly
81
-// 每两月一次 every_two_months
82
-// 每三月一次 every_three_months
83
-// 每六月一次 every_six_months
84
-// 每年一次 yearly
85
-// const startTimeDayOptions = ref<any[]>([]);
86
-// const endTimeDayOptions = ref<any[]>([]);
87
-// const startTimeHourOptions = ref<any[]>([]);
88
-// const endTimeHourOptions = ref<any[]>([]);
89
-// watch(
90
-//   () => taskFrequency.value,
91
-//   (newValue) => {
92
-//     if (newValue === 'daily') {
93
-//       startTimeDayOptions.value = [
94
-//         {
95
-//           label: '每天一次',
96
-//           value: 'daily',
97
-//         },
98
-//       ];
99
-//       endTimeDayOptions.value = [];
100
-//       startTimeHourOptions.value = [];
101
-//       endTimeHourOptions.value = [];
102
-//     } else if (newValue === 'weekly') {
103
-//       startTimeDayOptions.value = [
104
-//         {
105
-//           label: '每周一次',
106
-//           value: 'weekly',
107
-//         },
108
-//       ];
109
-//       endTimeDayOptions.value = [];
110
-//       startTimeHourOptions.value = [];
111
-//       endTimeHourOptions.value = [];
112
-//     } else if (newValue === 'monthly') {
113
-//       startTimeDayOptions.value = [
114
-//         {
115
-//           label: '每月一次',
116
-//           value: 'monthly',
117
-//         },
118
-//       ];
119
-//       endTimeDayOptions.value = [];
120
-//       startTimeHourOptions.value = [];
121
-//       endTimeHourOptions.value = [];
122
-//     } else if (newValue === 'every_two_months') {
123
-//       startTimeDayOptions.value = [
124
-//         {
125
-//           label: '每两月一次',
126
-//           value: 'every_two_months',
127
-//         },
128
-//       ];
129
-//       endTimeDayOptions.value = [];
130
-//       startTimeHourOptions.value = [];
131
-//       endTimeHourOptions.value = [];
132
-//     } else if (newValue === 'every_three_months') {
133
-//       startTimeDayOptions.value = [
134
-//         {
135
-//           label: '每三月一次',
136
-//           value: 'every_three_months',
137
-//         },
138
-//       ];
139
-//       endTimeDayOptions.value = [];
140
-//       startTimeHourOptions.value = [];
141
-//       endTimeHourOptions.value = [];
142
-//     } else if (newValue === 'every_six_months') {
143
-//       startTimeDayOptions.value = [
144
-//         {
145
-//           label: '每六月一次',
146
-//           value: 'every_six_months',
147
-//         },
148
-//       ];
149
-//       endTimeDayOptions.value = [];
150
-//       startTimeHourOptions.value = [];
151
-//       endTimeHourOptions.value = [];
152
-//     } else if (newValue === 'yearly') {
153
-//       startTimeDayOptions.value = [
154
-//         {
155
-//           label: '每年一次',
156
-//           value: 'yearly',
157
-//         },
158
-//       ];
159
-//       endTimeDayOptions.value = [];
160
-//       startTimeHourOptions.value = [];
161
-//       endTimeHourOptions.value = [];
162
-//     } else {
163
-//       startTimeDayOptions.value = [];
164
-//     }
165
-//   },
166
-//   { immediate: true }, // 立即执行一次,设置初始值
167
-// );
168
-// watch(
169
-//   () => taskFrequency.value,
170
-//   (newValue) => {
171
-//     console.log('taskFrequency changed:', newValue);
172
-//   },
173
-// );
174 78
 const [Form, formApi] = useVbenForm(formOptions.value);
175
-
176
-// 存储表单值的响应式变量
177
-const formValues = ref({});
178
-
179
-// 更新表单值的函数
180
-// const updateFormValues = async () => {
181
-//   try {
182
-//     formValues.value = await formApi.getValues();
183
-//   } catch (error) {
184
-//     console.error('获取表单值失败:', error);
185
-//   }
186
-// };
187
-
188
-// // 监听表单值变化
189
-// Form.onValuesChange(() => {
190
-//   updateFormValues();
191
-// });
192
-
193
-// // 初始化时获取表单值
194
-// updateFormValues();
195
-
196 79
 const drawerTitle = computed(() => {
197 80
   if (isViewRef.value) return '查看任务';
198 81
   if (isUpdateRef.value) return '编辑任务';
@@ -449,12 +332,6 @@ const selectIcon = (val: any, item: any) => {
449 332
           :options="{ auto_focus: 'false' }"
450 333
         />
451 334
       </template>
452
-      <!-- // postId 1  管理部
453
-// postId 2  片区经理
454
-// postId 3  站长
455
-// postId 4  当班经理
456
-// postId 5  测试
457
-// postId 6  安全管理部 -->
458 335
       <!-- v-if="formApi.getValues().then(res)=>res.executePosition==='0'" -->
459 336
       <template #distributionMethod="scope">
460 337
         <div style="display: flex; gap: 16px; align-items: center">