Procházet zdrojové kódy

fix: 修改参数问题

xiaweibo před 2 měsíci
rodič
revize
19d8dcc03b

+ 2 - 3
src/api/drawLessons/index.ts

@@ -155,9 +155,8 @@ export function updateDrawLessons(data: UpdateDrawLessonsRequest) {
  */
 export function deleteDrawLessons(id: number) {
   return http.request({
-    url: '/drawLessons/admin/delete',
+    url: '/drawLessons/admin/delete?id=' + id,
     method: 'delete',
-    params: { id },
   });
 }
 
@@ -360,7 +359,7 @@ export function queryDrawLessonsAdminDetailPage(query: QueryPageRequest<DrawLess
 export function cancellationMessagePost(id: number) {
   return http.request({
     url: `/drawLessons/admin/invalid?id=${id}`,
-    method: 'put',
+    method: 'post',
   });
 }
 

+ 2 - 2
src/views/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagement/components/OneByOneNotifyTarget.vue

@@ -133,7 +133,7 @@
     type DrawLessonsQueryParam 
   } from '@/api/drawLessons';
   import type { QueryPageRequest } from '@/types/basic-query';
-  import { DRAW_LESSONS_TABLE_COLUMNS } from '../configs/tables';
+  import { DRAW_LESSONS_TABLE_COLUMNS_TOW } from '../configs/tables';
   import { t } from '@wangeditor/editor';
   import { downloadByData } from '@/utils/file/download';
 
@@ -156,7 +156,7 @@
   const id = computed(() => Number(route.query.id));
   const tableData = ref<any[]>([]);
 
-  const { tableConfig, pagination } = useTableConfig(DRAW_LESSONS_TABLE_COLUMNS, TABLE_OPTIONS, true);
+  const { tableConfig, pagination } = useTableConfig(DRAW_LESSONS_TABLE_COLUMNS_TOW, TABLE_OPTIONS, true);
   const basicTableRef = ref<InstanceType<typeof BasicTable>>();
   const rawTableData = ref<any[]>([]);
   const detailData = ref<{

+ 57 - 7
src/views/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagement/configs/tables.ts

@@ -44,13 +44,13 @@ export const DRAW_LESSONS_TABLE_COLUMNS: TableColumnProps[] = [
     minWidth: '140px',
     showOverflowTooltip: true,
   },
-    {
-    label: '部门负责人',
-    prop: 'deptUserByName',
-    align: 'left',
-    minWidth: '140px',
-    showOverflowTooltip: true,
-  },
+  //   {
+  //   label: '部门负责人',
+  //   prop: 'deptUserByName',
+  //   align: 'left',
+  //   minWidth: '140px',
+  //   showOverflowTooltip: true,
+  // },
   {
     label: '举一反三要求',
     prop: 'associationOneThree',
@@ -94,3 +94,53 @@ export const DRAW_LESSONS_TABLE_COLUMNS: TableColumnProps[] = [
     align: 'left',
   },
 ];
+
+export const DRAW_LESSONS_TABLE_COLUMNS_TOW: TableColumnProps[] = [
+  {
+    label: '编号',
+    type: 'index',
+    align: 'center',
+    width: '80px',
+  },
+  {
+    label: '隐患问题',
+    prop: 'problem',
+    align: 'left',
+    minWidth: '200px',
+  },
+  {
+    label: '状态',
+    prop: 'statusName',
+    slot: 'status',
+    align: 'center',
+    minWidth: '100px',
+  },
+  {
+    label: '部门名称',
+    prop: 'associationOtObligationDeptName',
+    align: 'left',
+    minWidth: '140px',
+    showOverflowTooltip: true,
+  },
+  {
+    label: '举一反三要求',
+    prop: 'associationOneThree',
+    align: 'left',
+    minWidth: '140px',
+    showOverflowTooltip: true,
+  },
+  {
+    label: '计划完成时间',
+    prop: 'associationOtTimeLimit',
+    align: 'left',
+    minWidth: '160px',
+  },
+  {
+    label: '操作',
+    prop: 'action',
+    slot: 'action',
+    fixed: 'right',
+    width: '320px',
+    align: 'left',
+  },
+];

+ 2 - 2
src/views/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagementDept/oneByOneManagementDept.vue

@@ -84,7 +84,7 @@
         </div>
       </div>
     </main>
-    <BatchImport
+    <!-- <BatchImport
       v-if="batchImportVisible"
       :visible="batchImportVisible"
       :import-api-url="importApiUrl"
@@ -93,7 +93,7 @@
       :show-template="false"
       @close="batchImportVisible = false"
       @update="handleUpdate"
-    />
+    /> -->
   </div>
 </template>