Q-ABAB 2 лет назад
Родитель
Сommit
6286b90b6a

+ 2 - 0
src/views/activityManage/makerActvity.vue

@@ -454,6 +454,7 @@ import downloadFile from '@/components/tool/downloadFile.js';
           this.getData();
         },
         getData(){
+          this.loading = true;
           this.ajax.get(this.$store.state.api+"/GetAllActivity",{
             uid:this.$store.state.userInfo.userid,
             pid:this.pavalues.value,
@@ -474,6 +475,7 @@ import downloadFile from '@/components/tool/downloadFile.js';
             this.options1 = data[2];
             this.options2 = data[3];
             this.Page.total = data[4][0]['total'];
+            this.loading = false;
           }).catch(err=>{
             this.$message.error(err.message)
           })

+ 3 - 2
src/views/activityManage/makerActvityDetails.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 创客创新-查看详细 -->
-     <div class="makerActvityDetails">
+     <div class="makerActvityDetails" v-loading="loading">
 
             <div class="vfpHeader">
               <div class="titleOne">活动详情</div>
@@ -571,6 +571,7 @@ export default {
         })
     },
     getData(){
+      this.loading = true;
       this.ajax.get(this.$store.state.api+"/GetActivityDetail",{
         uid:this.$store.state.userInfo.userid,
         aId:this.$route.query["Id"]
@@ -583,7 +584,7 @@ export default {
         data.reportFile = data.reportFile==''||data.reportFile==null?[]:JSON.parse(data.reportFile)
         this.tableData = data;
         this.oldMoney += Number(this.tableData.money)
-        console.log(this.tableData)
+        this.loading = false;
       }).catch(err=>{
         this.$message.error(err.message)
       })

+ 2 - 0
src/views/fundManage/makerfund.vue

@@ -534,6 +534,7 @@ import downloadFile from '@/components/tool/downloadFile.js';
           this.getData()
         },
         getData(){
+          this.loading = true;
             let param={
               uid:this.$store.state.userInfo.userid,
               filter:this.selectInp.filter,
@@ -555,6 +556,7 @@ import downloadFile from '@/components/tool/downloadFile.js';
                   this.leaderSelects=data[3];
                   console.log(data[4][0]);
                   this.table.total=data[4][0].total
+                  this.loading = false;
                 },err=>{
                   console.log(err);
                 })

+ 5 - 3
src/views/fundManage/makerfundDetails.vue

@@ -1,6 +1,6 @@
 <template>
     <!-- 创客资金申请表单 -->
-  <div class="makerfundApply">
+  <div class="makerfundApply" v-loading="loading">
     <div class="vfpHeader">
         <div class="titleOne">创客资金申请</div>
         <div class="smallTitle" style="left: 150px;">创客资金申请详情</div>
@@ -484,7 +484,7 @@ export default {
             // ], 
             status:'',   //审核状态
             auditDialog:false,   //审核按钮
-
+            loading:false,
             checkList: [],
             accept:"*",
             submitHint:false,   //提交按钮
@@ -1069,7 +1069,8 @@ export default {
             this.progress.show = false;
             // this.imageUrl=require("../../assets/img/jj.jpg")
         },
-        getData(){     
+        getData(){
+            this.loading = true;
             let param={
                 uid:this.$store.state.userInfo.userid,
             }
@@ -1079,6 +1080,7 @@ export default {
                 .then(res=>{
                     // console.log(res.data[0]);
                     this.projectFilter=res.data[0]
+                    this.loading = false;
                 },err=>{
                     console.log(err);
                 })

+ 2 - 1
src/views/projectApply/projectApplication.vue

@@ -451,6 +451,7 @@ import downloadFile from '@/components/tool/downloadFile.js';
           this.$router.push('/projectApplicationApplyMain')
         },
         getData(){    //获取表格数据
+          this.loading = true;
           let param={
             uid:this.$store.state.userInfo.userid,
             pid:this.selectInp.filter,  //筛选
@@ -476,7 +477,7 @@ import downloadFile from '@/components/tool/downloadFile.js';
                 a.sort=data[3];
                 a.person=data[4];
                 this.table.total=data[5][0].total
-                
+                this.loading = false;
               },err=>{
                 console.log(err);
               })  

+ 5 - 2
src/views/projectApply/projectApplication2.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目立项申请查看详细项目详细 -->
-    <div class="projectApplication2">
+    <div class="projectApplication2" v-loading="loading">
 
         <div class="vfpHeader">
             <div class="titleOne">项目立项申请</div>
@@ -80,6 +80,7 @@ import { VueEditor } from "vue2-editor";
         data() {
           return {
             isUpload:'',
+            loading:false,
             data:[["","","","",""],[]],
             submitHint:false,
             customToolbar: [
@@ -120,6 +121,7 @@ import { VueEditor } from "vue2-editor";
             this.submitHint=false
           },
           getData(){   //初始化完成获取基本数据进行填充
+            this.loading = true;
             let param={
               uid:this.$store.state.userInfo.userid,
               pid:JSON.parse(localStorage.getItem('pid'))
@@ -131,7 +133,8 @@ import { VueEditor } from "vue2-editor";
                       this.isUpload=res.data[0][0].isupload;
                       let GetData=JSON.parse(res.data[0][0].chapters)
                       // console.log(GetData);
-                      this.data=GetData
+                      this.data=GetData;
+                      this.loading = false;
                     },err=>{
                       console.log(err);
                     })

+ 4 - 1
src/views/projectApply/projectApplicationDetails.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目立项申请查看详细项目基本内容 -->
-  <div class="projectApplication1">
+  <div class="projectApplication1" v-loading="loading">
     <div class="vfpHeader">
       <!-- 详情页 -->
         <div class="titleOne">项目立项申请</div>
@@ -281,6 +281,7 @@
           amendMemberDialog:false,
           addMemberDialog:false,
           submitHint:false,
+          loading:false,
           select:{    //数据详情框数据
             project:'',   
             person:'',
@@ -434,6 +435,7 @@
           this.$router.push('/projectApplication')
         },
         getData(){   //初始化完成获取基本数据进行填充
+          this.loading = true;
           let param={
             uid:this.$store.state.userInfo.userid,
             pid:JSON.parse(localStorage.getItem('pid'))
@@ -454,6 +456,7 @@
                     this.select.departmentData = data['classid']
                     this.select.sort = data['typeid']
                     this.isUpload=data['isupload']
+                    this.loading = false;
                   },err=>{
                     console.log(err);
                   })

+ 4 - 1
src/views/projectManage/ProjectManagement.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目管理页面 -->
-  <div class="ProjectManagement">
+  <div class="ProjectManagement" v-loading="loading">
     <div class="pAHeader">
       <div class="pAHeader1">项目管理</div>
     </div>
@@ -196,6 +196,7 @@ import beUpload from '../../components/tool/beUpload'
           endDialog:false,
           DelFileDialog:false,
           NoReportActivity:false,
+          loading:false,
           tit:'',    //完结框项目名称
           items:[],      //项目列表数据
           table:{         // 分页数据
@@ -337,6 +338,7 @@ import beUpload from '../../components/tool/beUpload'
           this.getData()
         },
         getData(){        //获取渲染数据
+          this.loading = true;
           let param={
             uid:this.$store.state.userInfo.userid,  //当前账号id
             pid:this.selectInp.filter,  //筛选
@@ -359,6 +361,7 @@ import beUpload from '../../components/tool/beUpload'
                 a.sort=data[3];
                 a.person=data[4];
                 this.table.total=data[5][0].total
+                this.loading = false;
               },err=>{
                 console.log(err);
               })  

+ 4 - 1
src/views/projectManage/ProjectManagement1.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目管理 项目基本内容 -->
-  <div class="ProjectManagement1">
+  <div class="ProjectManagement1" v-loading="loading">
     <div class="vfpHeader">
       <!-- 详情页 -->
         <div class="titleOne">项目管理</div>
@@ -161,6 +161,7 @@
             project:'',   
             person:'',
             departmentData:"",  //部门框值
+            loading:false,
             sort:'',     //分类值
             tel:'',
             Date:'',
@@ -175,6 +176,7 @@
       },
       methods:{
         getData(){   //初始化完成获取基本数据进行填充
+          this.loading = true;
           let param={
             uid:this.$store.state.userInfo.userid,
             pid:JSON.parse(localStorage.getItem('pid'))
@@ -193,6 +195,7 @@
                     this.select.tel=data.phone;
                     this.select.departmentData = data['classid']
                     this.select.sort = data['typeid']
+                    this.loading = false;
                   },err=>{
                     console.log(err);
                   })

+ 4 - 1
src/views/projectManage/ProjectManagement2.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目管理 项目详细 -->
-    <div class="ProjectManagement2">
+    <div class="ProjectManagement2" v-loading="loading">
       <div class="vfpHeader">
       <!-- 详情页 -->
         <div class="titleOne">项目管理</div>
@@ -68,6 +68,7 @@ import { VueEditor } from "vue2-editor";
           return {
             data:[["","","","",""],[]],
             submitHint:false,
+            loading:false,
             customToolbar: [
               ["bold", "italic", "underline"], [{ list: "ordered" }, { list: "bullet" }],
               [{ align: "" }, { align: "center" }, { align: "right"}, { align: "justify"}],
@@ -77,6 +78,7 @@ import { VueEditor } from "vue2-editor";
         },
         methods:{
           getData(){   //初始化完成获取基本数据进行填充
+            this.loading = true;
             let param={
               uid:this.$store.state.userInfo.userid,
               pid:JSON.parse(localStorage.getItem('pid'))
@@ -89,6 +91,7 @@ import { VueEditor } from "vue2-editor";
                       // console.log(GetData)
                       this.data=GetData
                       // console.log(this.data);
+                      this.loading = false;
                     },err=>{
                       console.log(err);
                     })

+ 2 - 5
src/views/projectManage/ProjectManagement3.vue

@@ -125,6 +125,7 @@
           },
           getData(){
             // console.log(localStorage.getItem('pid'))
+            this.loading = true;
             let param={
               uid:this.$store.state.userInfo.userid,
               pid:JSON.parse(localStorage.getItem('pid')),
@@ -141,6 +142,7 @@
                     console.log(res.data);
                     this.tableData=res.data[0]
                     this.table.total=res.data[4][0].total
+                    this.loading = false;
                   },err=>{
                     console.log(err);
                   })
@@ -197,11 +199,6 @@
   
   <style lang="less">
   .ProjectManagement3{
-    .pagination{   //分页
-      // float: right;
-      // margin: 20px 0px 10px;
-    }
-
     .projectBlock{
       margin-top: 20px;
     }

+ 4 - 1
src/views/projectManage/ProjectManagement3_1.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目管理 活动开展 查看详细-->
-    <div class="ProjectManagement3_1">
+    <div class="ProjectManagement3_1" v-loading="loading">
       <div class="vfpHeader">
       <!-- 详情页 -->
           <div class="titleOne">项目管理</div>
@@ -255,6 +255,7 @@
         data() {
           return {
             updateActivity:false,
+            loading:false,
             isAddMember:1,
             state:0,
             customToolbar: [
@@ -292,6 +293,7 @@
         methods:{
         
               getData(){       //获取基础信息
+                this.loading = true;
                 this.ajax.get(this.$store.state.api+"/GetActivityDetail",{
                   uid:this.$store.state.userInfo.userid,
                   // aId:this.$route.query["Id"]
@@ -312,6 +314,7 @@
                   this.tableData=JSON.parse(data.course_teacher)
                   this.textareaS=JSON.parse(data.chapters)
                   this.state=data.state
+                  this.loading = false;
                 }).catch(err=>{
                   this.$message.error(err.message)
                 })

+ 4 - 1
src/views/projectManage/ProjectManagement4.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目管理 项目附件 -->
-    <div class="ProjectManagement4">
+    <div class="ProjectManagement4" v-loading="loading">
       <div class="vfpHeader">
       <!-- 详情页 -->
         <div class="titleOne">项目管理</div>
@@ -134,6 +134,7 @@
             //   packageSize:2,
             //   currentPage:1
             // }, 
+            loading:false,
             state:0,
             showFile:false,
             showFileType: 0,
@@ -210,6 +211,7 @@
         //   this.getData()
         // },
           getData(){       //获取基础信息
+            this.loading = true;
               let param={
                 uid:this.$store.state.userInfo.userid,
                 pid:JSON.parse(localStorage.getItem('pid')),
@@ -228,6 +230,7 @@
                         k=JSON.parse(l)
                       });
                       this.tableData=k
+                      this.loading = false;
                     },err=>{
                       console.log(err);
                     })

+ 4 - 1
src/views/projectManage/ProjectManagement5.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目管理 项目结题附件 -->
-    <div class="ProjectManagement5">
+    <div class="ProjectManagement5" v-loading="loading">
       <div class="vfpHeader">
       <!-- 详情页 -->
         <div class="titleOne">项目管理</div>
@@ -132,6 +132,7 @@
             //   packageSize:8,
             //   currentPage:1
             // }, 
+            loading:false,
             state:0,
             showFile:false,
             showFileType: 0,
@@ -210,6 +211,7 @@
           //   this.getData()
           // },
           getData(){       //获取基础信息
+              this.loading = true;
               let param={
                 uid:this.$store.state.userInfo.userid,
                 pid:JSON.parse(localStorage.getItem('pid')),
@@ -222,6 +224,7 @@
                       this.state=res.data[0][0].isupload;
                       let file = JSON.parse(res.data[0][0]['endFile']);
                       this.tableData=file
+                      this.loading = false;
                     },err=>{
                       console.log(err);
                     })

+ 4 - 2
src/views/projectManage/ProjectManagementFund1.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目管理 项目资金使用情况 -->
-  <div class="ProjectManagementFund1">
+  <div class="ProjectManagementFund1" v-loading="loading">
         <div class="vfpHeader">
             <div class="titleOne">预算经费</div>
             <el-button type="primary" @click="back">返回</el-button>
@@ -207,11 +207,12 @@
           textarea:'',
           input:'',
           value: '',
-
+          loading:false,
         }
       },
       methods:{
         getData(){   //初始化完成获取基本数据进行填充
+          this.loading = true;
             let param={
               uid:this.$store.state.userInfo.userid,
               pid:JSON.parse(localStorage.getItem('pid'))
@@ -234,6 +235,7 @@
                       this.remainFund=this.allFund - this.useFund
                       // console.log((this.useFund / 10000));
                       // console.log();
+                      this.loading = false;
                     },err=>{
                       console.log(err);
                     })

+ 5 - 2
src/views/projectManage/ProjectManagementFund2.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目管理 资金申报明细 -->
-    <div class="ProjectManagementFund2">
+    <div class="ProjectManagementFund2" v-loading="loading">
         <div class="vfpHeader">
             <div class="titleOne">预算经费</div>
             <el-button type="primary" @click="$router.push('/ProjectManagement')">返回</el-button>
@@ -80,7 +80,8 @@
       export default {
         data() {
           return {
-            tableData:[]
+            tableData:[],
+            loading:false,
           }
         },
         methods:{
@@ -91,6 +92,7 @@
             this.$router.push('/ProjectManagementFund2')
           },
           getData(){
+            this.loading = true;
             let param={
               uid:this.$store.state.userInfo.userid,
               cid:JSON.parse(localStorage.getItem('pid'))
@@ -102,6 +104,7 @@
                 .then(res=>{
                     console.log(res.data[0]);
                     this.tableData=res.data[0]
+                    this.loading = false;
                 },err=>{
                     console.log(err);
                 })

+ 2 - 1
src/views/projectSettlement/projectSettlement.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目结项 -->
-  <div class="projectSettlement">
+  <div class="projectSettlement" v-loading="loading">
     <div class="pAHeader">
       <div class="pAHeader1">项目结项</div>
     </div>
@@ -195,6 +195,7 @@
       data() {
         return {
           submitHint:false,
+          loading:false,
           iid:'',
           tit:'',
           options:{    //头部搜索框下拉框数据