qinzhipeng_v 5 жил өмнө
parent
commit
f3fb07cdff

+ 6 - 0
src/views/projectManage/projectList/projectIndex.vue

@@ -105,6 +105,7 @@
           >新建</el-button>
         </div>
         <el-table
+          v-loading="table_loading"
           :data="table_project"
           style="width: 100%"
           highlight-current-row
@@ -365,6 +366,7 @@ export default {
       formLabelWidth: '100px',
       currentPage: 0,
       table_project: [],
+      table_loading: false,
       options1: [
         {
           teamName: '选项1',
@@ -417,9 +419,11 @@ export default {
     },
     get_projectList() {
       // 获取list
+      this.table_loading = true
       projectList({ curIndex: 1, pageSize: 15 }).then(res => {
         this.table_project = res.data
         this.total = res.total
+        this.table_loading = false
       })
       projectBizList({}).then(res => {
         this.all_bizId = res.data
@@ -489,6 +493,7 @@ export default {
     },
     query_project(e) {
       // 查询
+      this.table_loading = true
       this.query_object.projectOwner = e.projectOwner
       this.query_object.creater = e.creater
       this.query_object.curIndex = this.curIndex
@@ -496,6 +501,7 @@ export default {
       projectList(this.query_object).then(res => {
         this.table_project = res.data
         this.total = res.total
+        this.table_loading = false
       })
     },
     query_Reset() {

+ 0 - 1
src/views/projectManage/projectList/projectViewDetails.vue

@@ -1086,7 +1086,6 @@ export default {
           })
         })
         this.tableData = res.data.list
-        console.log(this.tableData)
         this.total = res.data.total
         this.loading = false
         this.$refs.all_tasks.style.color = '#000'