Переглянути джерело

代码提交:
0831
项目管理-评估项目List添加上传状态列,
项目管理-评估项目List添加文本展示项目文件完成比例;

sunruiqi 2 роки тому
батько
коміт
746b478c1b

+ 7 - 0
src/api/sys/ProjectService.js

@@ -51,4 +51,11 @@ export default class PostService {
       responseType: 'blob'
     })
   }
+  proportion (itemType) {
+    return request({
+      url: '/sys/project/proportion',
+      method: 'get',
+      params: {itemType: itemType}
+    })
+  }
 }

+ 11 - 2
src/views/modules/sys/project/AssessList.vue

@@ -40,6 +40,7 @@
 <!--            <el-button v-if="hasPermission('sys:post:edit')" type="warning" size="small" icon="el-icon-edit-outline" @click="edit()" :disabled="$refs.projectTable && $refs.projectTable.getCheckboxRecords().length !== 1" plain>修改</el-button>-->
             <el-button v-if="hasPermission('sys:project:del')" type="danger"   size="small" icon="el-icon-delete" @click="del()" :disabled="$refs.projectTable && $refs.projectTable.getCheckboxRecords().length === 0" plain>删除</el-button>
             <el-button v-if="hasPermission('sys:project:import')"  type="default" @click="downloadTpl()" size="small">下载模板</el-button>
+            <span style="margin-left:20px">文件上传比例 {{proport}}</span>
           </template>
         </vxe-toolbar>
         <div style="height: calc(100% - 80px);">
@@ -108,7 +109,11 @@
                     {{ $dictUtils.getDictLabel("project_status", scope.row.status, '-') }}
                   </template>
                 </vxe-column>
-
+                <vxe-column width="80px"   title="上传状态" field="fileUploadType" >
+                  <template slot-scope="scope">
+                    {{ $dictUtils.getDictLabel("file_upload_type", scope.row.fileUploadType, '-') }}
+                  </template>
+                </vxe-column>
 
 
                 <!--<vxe-column  title="是否可用" field="status" sortable>
@@ -165,7 +170,8 @@
           pageSize: 10,
           orders: []
         },
-        loading: false
+        loading: false,
+        proport: ''
       }
     },
     projectService: null,
@@ -184,6 +190,9 @@
       // 获取数据列表
       refreshList () {
         this.loading = true
+        this.projectService.proportion('1').then(({data}) => {
+          this.proport = data
+        })
         this.projectService.list({
           'current': this.tablePage.currentPage,
           'size': this.tablePage.pageSize,