Browse Source

项目实施列表接口参数调整

ljb 8 months ago
parent
commit
36e8e8b5e4
2 changed files with 4 additions and 4 deletions
  1. 3 2
      src/api/projectManage/implement.js
  2. 1 2
      src/views/project-manage/implement.vue

+ 3 - 2
src/api/projectManage/implement.js

@@ -1,10 +1,11 @@
 import request from '@/router/axios';
 
 // 实施报告列表
-export const getList = (xmId) => {
+export const getList = (params) => {
   return request({
-    url: `/api/kd-scientific/xm/jdxbg/list/${xmId}`,
+    url: `/api/kd-scientific/xm/jdxbg/list`,
     method: 'get',
+    params
   })
 }
 

+ 1 - 2
src/views/project-manage/implement.vue

@@ -131,7 +131,7 @@ export default window.$crudCommon({
     },
     loadData() {
       this.loading = true;
-      this.api[this.option.list || 'getList'](this.params.xmId).then(({ data }) => {
+      this.api[this.option.list || 'getList'](this.params).then(({ data }) => {
         this.data = data.data.map(item => {
           item.xmmc = item.xmEntity ? item.xmEntity.xmmc : '';
           item.xmbh = item.xmEntity ? item.xmEntity.xmbh : '';
@@ -144,7 +144,6 @@ export default window.$crudCommon({
     
     },
     handleProjectChange(data) {
-      console.log(data)
       this.selProject = data;
     },
     handleExport() {