Explorar o código

fix: 修改相关参数绑定字段

xiaweibo hai 2 meses
pai
achega
5b7fd7266d

+ 1 - 1
src/api/safety-culture/index.ts

@@ -311,7 +311,7 @@ export function saveSafetyCultureActivityManagement(data) {
  */
 export function saveSafetyCultureActivityExecutorManagement(data) {
   return http.request({
-    url: '/safetyCulture/registration/queryPageDept',
+    url: '/safetyCulture/registration/queryPage',
     method: 'post',
     data,
   });

+ 2 - 3
src/views/production-safety/safety-culture/safetyCultureActivityManagement/configs/tables.ts

@@ -16,8 +16,7 @@ export const INVENTORY_TABLE_COLUMNS: TableColumnProps[] = [
   },
   {
     label: '行动项内容',
-    prop: 'actionContent',
-    slot: 'actionContent',
+    prop: 'planName',
     align: 'left',
     minWidth: '150px',
     // showOverflowTooltip: true,
@@ -36,7 +35,7 @@ export const INVENTORY_TABLE_COLUMNS: TableColumnProps[] = [
   },
   {
     label: '安全文化活动计划名称',
-    prop: 'planName',
+    prop: 'actionContent',
     align: 'left',
     minWidth: '120px',
     // showOverflowTooltip: true,

+ 1 - 0
src/views/production-safety/safety-culture/safetyCultureActivityManagementExecutor/components/activityRegistrationManagement.vue

@@ -217,6 +217,7 @@ async function getTableData() {
         keyword: tableQuery.queryParam.keyword,
         startDate: tableQuery.queryParam.startTime,
         endDate: tableQuery.queryParam.endTime,
+        activityId: activityRegistrationId.value,
       },
     };
 

+ 2 - 3
src/views/production-safety/safety-culture/safetyCultureActivityManagementExecutor/configs/tables.ts

@@ -16,8 +16,7 @@ export const INVENTORY_TABLE_COLUMNS: TableColumnProps[] = [
   },
   {
     label: '行动项内容',
-    prop: 'actionContent',
-    slot: 'actionContent',
+    prop: 'planName',
     align: 'left',
     minWidth: '150px',
     // showOverflowTooltip: true,
@@ -36,7 +35,7 @@ export const INVENTORY_TABLE_COLUMNS: TableColumnProps[] = [
   },
   {
     label: '安全文化活动计划名称',
-    prop: 'planName',
+    prop: 'actionContent',
     align: 'left',
     minWidth: '120px',
     // showOverflowTooltip: true,

+ 4 - 4
src/views/production-safety/safety-culture/safetyCultureActivityManagementExecutor/safetyCultureActivityManagementExecutor.vue

@@ -55,19 +55,19 @@
         <div class="batch-table">
           <BasicTable ref="basicTableRef" :tableData="tableData" :tableConfig="tableConfig"
             @update:pageSize="handleSizeChange" @update:pageNumber="handleCurrentChange">
-            <template #actionContent="scope">
+            <!-- <template #actionContent="scope">
               <div class="file-item" v-for="file in scope.row.fileUrlList" :key="file.fileId">
                 <span class="file-item--name">{{ file.fileName }}</span>
                 <div class="file-item--footer">
                   <el-button link type="primary" @click="previewOnline(file.fileUrl, file.fileType)"
                     >预览</el-button
                   >
-                  <!-- <el-button link type="primary" @click.stop="downloadFile(file.fileUrl, file.fileName)"
+                  <el-button link type="primary" @click.stop="downloadFile(file.fileUrl, file.fileName)"
                     >下载</el-button
-                  > -->
+                  >
                 </div>
               </div>
-            </template>
+            </template> -->
             <template #action="scope">
               <div class="action-container--div" style="justify-content: left">
                 <ActionButton text="编辑" v-if="scope.row.status === 1" @click="handleEdit(scope.row.id)" />