瀏覽代碼

Merge branch 'master' of https://git.cocorobo.cn/CocoRoboLabs/ssti-CollegeManage

yuanyiming 2 年之前
父節點
當前提交
1c837af91f
共有 2 個文件被更改,包括 12 次插入4 次删除
  1. 11 3
      src/views/projectApply/projectApplication.vue
  2. 1 1
      src/views/projectApply/projectApplicationApplyMain.vue

+ 11 - 3
src/views/projectApply/projectApplication.vue

@@ -127,13 +127,13 @@
           </template>
           </template>
         </el-table-column>
         </el-table-column>
         <el-table-column
         <el-table-column
-          prop="money"
+          prop="fund"
           label="预算(万)"
           label="预算(万)"
           align="center"
           align="center"
           min-width="8%">
           min-width="8%">
         </el-table-column>
         </el-table-column>
         <el-table-column
         <el-table-column
-          prop="time"
+          prop="time[0]"
           align="center"
           align="center"
           label="开始时间"
           label="开始时间"
           min-width="11%">
           min-width="11%">
@@ -492,6 +492,7 @@ import downloadFile from '@/components/tool/downloadFile.js';
             .get(this.$store.state.api+'/SelectAllProject',param)
             .get(this.$store.state.api+'/SelectAllProject',param)
               .then(res=>{
               .then(res=>{
                 console.log(res);
                 console.log(res);
+                // this.loading = false;
                 let data=res.data;
                 let data=res.data;
                 if (data[0].length==0 && data[5][0]['total'] != 0) {
                 if (data[0].length==0 && data[5][0]['total'] != 0) {
                   this.table.currentPage=1
                   this.table.currentPage=1
@@ -505,6 +506,13 @@ import downloadFile from '@/components/tool/downloadFile.js';
                 a.sort=data[3];
                 a.sort=data[3];
                 a.person=data[4];
                 a.person=data[4];
                 this.table.total=data[5][0].total
                 this.table.total=data[5][0].total
+                this.tableData.forEach(item=>{
+                  if(item['time']!=null&&item['time']!=''){
+                    item['time']=JSON.parse(item['time'])
+                  }else{
+                    item['time'] = []
+                  }
+                })
                 this.loading = false;
                 this.loading = false;
 
 
                 // console.log(this.tableData)
                 // console.log(this.tableData)
@@ -558,7 +566,7 @@ import downloadFile from '@/components/tool/downloadFile.js';
           // }
           // }
       },
       },
       mounted(){      //跳转到此页面立刻获取数据
       mounted(){      //跳转到此页面立刻获取数据
-        // this.getData();     //获取表格数据
+        this.getData();     //获取表格数据
       }
       }
 
 
     }
     }

+ 1 - 1
src/views/projectApply/projectApplicationApplyMain.vue

@@ -571,7 +571,7 @@
               this.ajax.post(this.$store.state.api+"/InsertProjectMakerSpace",param).then(res=>{
               this.ajax.post(this.$store.state.api+"/InsertProjectMakerSpace",param).then(res=>{
                 if(res.data==1){
                 if(res.data==1){
                   this.$message.success("提交成功")
                   this.$message.success("提交成功")
-                  this.$route.push('/projectApplication')
+                  this.$router.push('/projectApplication')
                 }else{
                 }else{
                   this.$message.error("提交失败")
                   this.$message.error("提交失败")
                 }
                 }