Q-ABAB před 2 roky
rodič
revize
063f17edf5

+ 4 - 1
src/views/credit/credit.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 学分登记 -->
-  <div class="credit">
+  <div class="credit" v-loading="loading">
     <div class="pAHeader">
       <div class="pAHeader1">学分登记</div>
     </div>
@@ -191,6 +191,7 @@
           tableData:[],
           ScoreData:[],
           queryScoreDialog:false,
+          loading:false,
           pavalues:{
             value:'',
             value1:'',
@@ -213,6 +214,7 @@
           this.multipleSelection = val;
         },
         getData(){
+          this.loading = true;
           this.ajax.get(this.$store.state.api+"/GetProjectIsEndProject",{
             uid:this.$store.state.userInfo.userid,
             pid:this.pavalues.value,
@@ -230,6 +232,7 @@
             this.options3 = res.data[4]
             this.Page.total = res.data[5][0]['total']
             this.tableData = data;
+            this.loading = false;
           }).catch(err=>{
             console.log(err)
           })

+ 4 - 1
src/views/credit/credit1.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 学分登记修改 -->
-    <div class="credit1">
+    <div class="credit1" v-loading="loading">
 
       <div class="vfpHeader">
         <div class="titleOne">学分登记</div>
@@ -159,6 +159,7 @@
         data() {
           return {
             changeScoreDialog:false,
+            loading:false,
             changeScoreTable:{
               id:"",
               class:"",
@@ -188,6 +189,7 @@
             this.changeScoreDialog = true;
           },
           getData(){
+            this.loading = true;
             this.ajax.get(this.$store.state.api+"/GetProjectEndByID",{
               uid:this.$store.state.userInfo.userid,
               pid:this.$route.query["Id"]
@@ -195,6 +197,7 @@
               let data = res.data[0][0]
               data['course_student'] = JSON.parse(data['course_student'])
               this.tableData = data;
+              this.loading = false;
             }).catch(err=>{
               console.log(err)
             })

+ 4 - 1
src/views/firm.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 创业公司登记 -->
-  <div class="firm">
+  <div class="firm" v-loading="loading">
     <!-- <div class="pAHeader"> -->
       <!-- <div class="pAHeader1">创业公司登记</div> -->
     <!-- </div> -->
@@ -156,6 +156,7 @@ export default {
       accept: "*",
       // showFileType: 0,
       dialogVisible1: false,
+      loading:false,
       delId:"",
       input:"",
       tableData: [],
@@ -245,6 +246,7 @@ export default {
         });
     },
     getData() {
+      this.loading = true;
       this.tableData = [];
       this.ajax
         .get(this.$store.state.api + "/GetFirmFile", {
@@ -260,6 +262,7 @@ export default {
           });
           this.Page.total = res.data[1][0]["total"];
           this.progress.show = false;
+          this.loading = false;
         })
         .catch((err) => {
           console.log(err);

+ 4 - 1
src/views/messageNotification.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 消息通知 -->
-  <div class="messageNotification">
+  <div class="messageNotification" v-loading="loading">
     <div class="pAHeader">
       <div class="pAHeader1">消息通知</div>
     </div>
@@ -155,6 +155,7 @@
         },
       data() {
         return {
+          loading:false,
           customToolbar: [
               ["bold", "italic", "underline"], [{ list: "ordered" }, { list: "bullet" }],
               [{ align: "" }, { align: "center" }, { align: "right"}, { align: "justify"}],
@@ -280,6 +281,7 @@
             // if(this.value==1){
             //   this.value=''
             // }
+            this.loading = true;
             let currentPage=this.table.currentPage;
             const param={
               uid:this.$store.state.userInfo.userid,
@@ -298,6 +300,7 @@
                 }
                 this.tableData=res.data[0];
                 this.table.total=res.data[1][0].total;
+                this.loading = false;
               },err=>{
                 console.log(err);
               })

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

@@ -269,6 +269,7 @@
           this.getData()
         },
         getData(){    //获取表格数据
+          this.loading = true;
           let param={
             uid:this.$store.state.userInfo.userid,
             pid:this.selectInp.filter,  //筛选
@@ -293,6 +294,7 @@
                 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/projectSettlement/projectSettlement1.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目结项 项目基本内容 -->
-    <div class="projectSettlement1">
+    <div class="projectSettlement1" v-loading="loading">
 
         <!-- 详情页 -->
       <div class="vfpHeader">
@@ -169,6 +169,7 @@
               value: '选项1',
               label: '中德学院'
             }],
+            loading:false,
             select:{    //数据详情框数据
               project:'',   
               person:'',
@@ -193,6 +194,7 @@
         },
         methods:{
           getData(){
+            this.loading = true;
             let param={
             uid:this.$store.state.userInfo.userid,
             pid:JSON.parse(localStorage.getItem('pid'))
@@ -214,6 +216,7 @@
                     this.select.endTime=data.endTime
                     this.select.departmentData = data['classid']
                     this.select.sort = data['typeid']
+                    this.loading=false;
                   },err=>{
                     console.log(err);
                   })

+ 4 - 1
src/views/projectSettlement/projectSettlement2.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目管理 项目详细 -->
-    <div class="ProjectManagement2">
+    <div class="ProjectManagement2" v-loading="loading">
       <div class="vfpHeader">
       <!-- 详情页 -->
         <div class="titleOne">项目管理</div>
@@ -67,6 +67,7 @@ import { VueEditor } from "vue2-editor";
         data() {
           return {
             data:[["","","","",""],[]],
+            loading:false,
             submitHint:false,
             customToolbar: [
               ["bold", "italic", "underline"], [{ list: "ordered" }, { list: "bullet" }],
@@ -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'))
@@ -88,6 +90,7 @@ import { VueEditor } from "vue2-editor";
                       let GetData=JSON.parse(res.data[0][0].chapters)
                       // console.log(GetData)
                       this.data=GetData
+                      this.loading = false;
                       // console.log(this.data);
                     },err=>{
                       console.log(err);

+ 4 - 1
src/views/projectSettlement/projectSettlement3.vue

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

+ 4 - 1
src/views/projectSettlement/projectSettlement4.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 @@
             //   currentPage:1
             // }, 
             showFileType: 0,
+            loading:false,
             tableData:[],  //附件列表
             file:'',    //上传文件数据
             showFile: false,
@@ -201,6 +202,7 @@
             this.getData()
           },
           getData(){       //获取基础信息
+            this.loading = true;
               let param={
                 uid:this.$store.state.userInfo.userid,
                 pid:JSON.parse(localStorage.getItem('pid')),
@@ -217,6 +219,7 @@
                       // console.log(file)
                      
                       this.tableData=file
+                      this.loading = false;
                     },err=>{
                       console.log(err);
                     })

+ 4 - 1
src/views/projectSettlement/projectSettlement5.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 项目结项 结项评语 -->
-    <div class="projectSettlement2">
+    <div class="projectSettlement2" v-loading="loading">
       <div class="vfpHeader">
           <div class="titleOne">项目管理</div>
           <div class="smallTitle" style="left: 100px;">项目详情</div>
@@ -169,6 +169,7 @@
           return {
             accept:"*",
             dialogVisible1:false,
+            loading:false,
             showFile:false,
             showFileType: 0,
             showFileUrl: "",
@@ -241,6 +242,7 @@
             },
 
             getData(){       //获取基础信息
+              this.loading = true;
               let param={
                 uid:this.$store.state.userInfo.userid,
                 pid:JSON.parse(localStorage.getItem('pid')),
@@ -255,6 +257,7 @@
                       if(JSON.parse(data[0].endProjectRemark)!=null){
                         this.AllRemark=JSON.parse(data[0].endProjectRemark)
                       }
+                      this.loading = false;
                     },err=>{
                       console.log(err);
                     })

+ 4 - 3
src/views/resultShow/resultShowDetail.vue

@@ -1,6 +1,6 @@
 <template>
     <!-- 成果展示 项目成果展示 -->
-    <div class="rs1apply">
+    <div class="rs1apply" v-loading="loading">
         <!-- 头部展示区开始 -->
         <div class="header">
             <div class="imgBlock">
@@ -478,6 +478,7 @@
         data() {
           return {
             pageState:0,
+            loading:false,
             TitleMessage:{ClassName:"",EndTime:"",TypeName:"",beginTime:"",brief:"",course_student:[],image:"",pro_leader:"",title:""},
             DetailMessage:[],
             ProjectFile:[],
@@ -495,13 +496,13 @@
         },
         methods:{
             getData(){
+                this.loading = true;
                 this.ActivityLookFile = [];
                 this.ajax.get(this.$store.state.api+"/GetProjectDetailIsConclusion",{
                     uid:this.$store.state.userInfo.userid,
                     pid:this.$route.query["Id"]
                 }).then(res=>{
                     let FormData = res.data;
-                    console.log(FormData)
                     this.TitleMessage = FormData[0][0]
                     this.TitleMessage['course_student'] = JSON.parse(this.TitleMessage['course_student']);
                     this.DetailMessage= JSON.parse(FormData[1][0]['chapters'])[0];
@@ -521,8 +522,8 @@
                             }else this.ActivityLookFile.push({url:"",type:""})
                         })
                     };
-                    console.log(this.ActivityLookFile)
                     if(JSON.parse(FormData[5][0]['endProjectRemark'])!=null)this.endProjectRemark = JSON.parse(FormData[5][0]['endProjectRemark']);
+                    this.loading = false;
                 }).catch(err=>{
                     console.log(err)
                 })

+ 4 - 2
src/views/resultShow/resultsShow.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 成果展示 -->
-  <div class="resultsShow">
+  <div class="resultsShow" v-loading="loading">
     <div class="pAHeader">
       <div class="pAHeader1">成果展示</div>
     </div>
@@ -138,6 +138,7 @@
           options2:[],
           options3:[],
           options4:[],
+          loading:false,
           pavalues:{
             value:0,
             value1:0,
@@ -161,6 +162,7 @@
           window.open(`/#/resultShowDetail?Id=${Id}`)
         },
         getData(){        //获取渲染数据
+          this.loading = true;
           let param={
             uid:this.$store.state.userInfo.userid,  //当前账号id
             pid:this.pavalues.value,  //筛选
@@ -175,7 +177,6 @@
           this.ajax    
             .get(this.$store.state.api+'/GetProjectIsConclusion',param)
               .then(res=>{
-                console.log(res)
                 let data = res.data;
                 this.items = data[0];
                 this.options = data[1];
@@ -183,6 +184,7 @@
                 this.options2 = data[3];
                 this.options3 = data[4];
                 this.Page.total = data[5][0]['total']
+                this.loading = false;
               },err=>{
                 console.log(err);
               })