Преглед изворни кода

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

Q-ABAB пре 2 година
родитељ
комит
24e758123a

+ 72 - 38
src/views/fundManage/makerfund.vue

@@ -10,35 +10,33 @@
     <div class="selects">
       <div class="selectsBlock">
         <div class="selectLabel">项目筛选</div>
-        <el-select v-model="selectInp.filter" placeholder="我的项目">
-          <el-option label="所有项目筛选" :value="0"></el-option>
-
+        <el-select v-model="selectInp.filter" @change="getData" placeholder="我的项目">
+          <el-option label="所有项目" :value="0"></el-option>
           <el-option
             v-for="item in filterSelects"
-            :key="item.value"
-            :label="item.label"
-            :value="item.value">
+            :key="item.id"
+            :label="item.title"
+            :value="item.id">
           </el-option>
         </el-select>
       </div>
 
       <div class="selectsBlock">
         <div class="selectLabel">部门</div>
-        <el-select v-model="selectInp.department" placeholder="请选择">
+        <el-select v-model="selectInp.department" @change="getData" placeholder="请选择">
           <el-option label="所有部门" :value="0"></el-option>
-
           <el-option
             v-for="item in departmentSelect"
-            :key="item.value"
-            :label="item.label"
-            :value="item.value">
+            :key="item.id"
+            :label="item.name"
+            :value="item.id">
           </el-option>
         </el-select>
       </div>
 
       <div class="selectsBlock">
         <div class="selectLabel">分类</div>
-        <el-select v-model="selectInp.type" placeholder="请选择">
+        <el-select v-model="selectInp.type" @change="getData" placeholder="请选择">
           <el-option label="所有分类" :value="0"></el-option>
           <el-option
             v-for="item in typeSelects"
@@ -51,20 +49,20 @@
 
       <div class="selectsBlock">
         <div class="selectLabel">负责人</div>
-        <el-select v-model="selectInp.leader" placeholder="请选择">
+        <el-select v-model="selectInp.leader" @change="getData" placeholder="请选择">
           <el-option label="所有负责人" :value="''"></el-option>
           <el-option
-            v-for="item in leaderSelects"
-            :key="item.value"
-            :label="item.label"
-            :value="item.value">
+            v-for="(item,index) in leaderSelects"
+            :key="index"
+            :label="item.pro_leader"
+            :value="item.pro_leader">
           </el-option>
         </el-select>
       </div>
 
       <div class="selectsBlock">
         <div class="selectLabel">状态</div>
-        <el-select v-model="selectInp.status" placeholder="请选择">
+        <el-select v-model="selectInp.status" @change="getData" placeholder="请选择">
           <el-option label="所有状态" :value="99"></el-option>
           <el-option
             v-for="item in statusSelects"
@@ -91,49 +89,44 @@
         @selection-change="handleSelectionChange">
         
         <el-table-column
-          prop="projectName"
+          prop="title"
           label="项目名称"
           align="center"
           min-width="10%"
           >
         </el-table-column>
         <el-table-column
-          prop="projectPerson"
+          prop="pro_leader"
           align="center"
-          min-width="8%"
-
+          min-width="7%"
           label="负责人"
           >
         </el-table-column>
         <el-table-column
           align="center"
           min-width="8%"
-
-          prop="relevancy"
+          prop="type"
           label="项目类型"
           >
         </el-table-column>
         <el-table-column
-          prop="budget"
+          prop="fund"
           align="center"
           min-width="8%"
-
           label="申请经费(元)"
           >
         </el-table-column>
         <el-table-column
-          prop="useBudget"
+          prop="usedFund"
           align="center"
           min-width="8%"
-
           label="实际使用(元)"
           >
         </el-table-column>
         <el-table-column
-          prop="dept"
+          prop="name"
           align="center"
           min-width="8%"
-
           label="所在部门"
           >
         </el-table-column>
@@ -141,15 +134,19 @@
           prop="status"
           align="center"
           min-width="7%"
-
           label="状态"
           >
+          <template #default="scope">
+            <div>
+              <span v-show="!scope.state">未结题</span>
+              <span v-show="scope.state">已结题</span>
+            </div>
+          </template>
         </el-table-column>
         <el-table-column
-          prop="date"
+          prop="time"
           align="center"
           min-width="10%"
-
           label="申请时间"
           >
         </el-table-column>
@@ -174,6 +171,18 @@
     </div>
 <!-- 表格结束 -->
 
+
+    <!-- 分页 -->
+    <el-pagination
+      @current-change="handleCurrentChange"
+      :current-page="table.currentPage"
+      :page-size="table.packageSize"
+      layout=" prev, pager, next"
+      background
+      class="paginations"
+      :total="table.total">
+    </el-pagination>
+  <!-- 分页结束 -->
     <!-- 审核对话框开始 -->
     <div class="dialog">
       <el-dialog
@@ -414,7 +423,16 @@
           },   
           filterSelects:[],        
           departmentSelect:[],
-          typeSelects:[],
+          typeSelects:[
+            {
+              value:'0',
+              label:'个人创客'
+            },
+            {
+              value:'1',
+              label:'活动创客'
+            }
+          ],
           leaderSelects:[],
           statusSelects:[
             {
@@ -430,7 +448,7 @@
             {
             projectName:'陆地游泳辅助器',
             projectPerson:'王多鱼',
-            relevancy:'西虹市',
+            relevancy:'个人创客',
             budget:'200',
             useBudget:'2000',
             date:'2022年-11月-12日',
@@ -449,6 +467,11 @@
         }
       },
       methods:{
+        handleCurrentChange(val) {   //当页数发生改变的时候调用获取列表数据请求
+          // console.log(`当前页: ${val}`);
+          this.table.currentPage=val
+          this.getData()
+        },
         getData(){
             let param={
               uid:this.$store.state.userInfo.userid,
@@ -456,12 +479,20 @@
               department:this.selectInp.department,
               type:this.selectInp.type,
               leader:this.selectInp.leader,
-              status:this.selectInp.status
+              status:this.selectInp.status,
+              page:this.table.currentPage,
+              lim:this.table.packageSize
             }
+            console.log(param);
             this.ajax
-                .get(this.$store.state.api+'/',param)
+                .get(this.$store.state.api+'/SelectMakerFund',param)
                 .then(res=>{
-                  console.log(res);
+                  console.log(res.data[0]);
+                  let data=res.data;
+                  this.tableData=data[0];
+                  this.filterSelects=data[1];
+                  this.departmentSelect=data[2];
+                  this.leaderSelects=data[3];
                 },err=>{
                   console.log(err);
                 })
@@ -484,6 +515,9 @@
         details(){
           this.$router.push('/makerfundDetails')
         }
+      },
+      mounted(){
+        this.getData();
       }
     }
 </script>

+ 256 - 16
src/views/fundManage/makerfundApply.vue

@@ -11,7 +11,7 @@
     <!-- 项目名称、类型开始 -->
     <div class="Apply1">
         <div class="inpInterval">项目名称</div>
-        <el-select v-model="selects.projectName" style="width: 30%;" placeholder="请选择">
+        <el-select v-model="selects.projectName"  style="width: 30%;" placeholder="请选择">
             <el-option
             v-for="item in projectFilter"
             :key="item.id"
@@ -27,7 +27,7 @@
             v-for="item in projectType"
             :key="item.id"
             :label="item.name"
-            :value="item.id">
+            :value="item.name">
             </el-option>
         </el-select>
     </div>
@@ -115,7 +115,7 @@
                 </div>
                 <div class="howMoney">
                     <div class="inpInterval twoStyle">余额</div>
-                    <el-input v-model="item.reason" class="howMoneyInp" placeholder="金额"></el-input>
+                    <el-input v-model="item.remainFund" class="howMoneyInp" placeholder="金额"></el-input>
 
                 </div>
             </div>
@@ -173,7 +173,7 @@
             v-model="residue.reason">
             </el-input>
         </div>
-       
+
     </div>
 
 
@@ -182,9 +182,24 @@
             <div><p>附件上传</p></div>
         </div>
         <hr>
-        <!-- <div class="makerfundDetailsAccessoryBlock">文件</div> -->
-        <div class="makerfundDetailsaddMoneyBtn">
-            <div class="jia">+</div>添加
+        <div style="display: flex;justify-content: flex-start;">
+            <el-upload
+            class="avatar-uploader"
+            action="#"
+            disabled
+            :show-file-list="false"
+            v-for="(item,index) in this.file" :key="index"
+            >
+            <img v-if="imageUrl" :src="imageUrl" class="avatar">
+            <i v-else class="el-icon-plus avatar-uploader-icon"></i>
+            </el-upload>
+        </div>
+        
+        <div>
+            <div class="addMoneyBtn" style="position: relative;">
+                <div class="jia">+</div>添加
+                <BeUpload @getFile="getFile" style="position: absolute;left: 0;width: 120px;height: 40px;opacity: 0;" class="uploadPic" :navName="'上传封面'" :accept="accept"></BeUpload>
+            </div>
         </div>
 
     </div>
@@ -194,26 +209,48 @@
     <div class="baseBtn">
         <div class="blockWidth">
             <el-button type="primary">生成表单</el-button>
-            <el-button type="primary">提交</el-button>
+            <el-button type="primary" @click="uploadData">提交</el-button>
         </div>
     </div>
+
+        <!-- 提交对话框开始 -->
+        <el-dialog
+          title="提示"
+          :visible.sync="submitHint"
+          width="600px"
+          class="projectApplicationfundAddDialog"
+          :before-close="init">
+          <div class="addDialogLogo">LOGO</div>
+          <div class="deleteContent">确定提交?</div>
+          <span slot="footer" class="dialog-footer">
+            <el-button type="primary" @click="submitAll" class="btn5">确认提交</el-button>
+            <el-button @click="init" class="btn5" style="background:#cccccc" size="small">取消</el-button>
+          </span>
+        </el-dialog>
+      <!-- 提交对话框结束 -->
   </div>
 </template>
 
 <script>
+    import BeUpload from "../../components/tool/beUpload.vue";
+
 export default {
+    components: {
+        BeUpload,
+      },
     data() {
         return {
-            textarea:'',
-            value: '',
-            input:'',
+            accept:"*",
+            submitHint:false,   //提交按钮
+
+            imageUrl: require('../../assets/img/cocoClass.png'),
+            file:[],
             selects:{
                 projectName:'',
                 projectType:''
             },
             projectFilter:[],    //项目名称
             projectType:[     //项目类型
-
                 {
                     id:1,
                     name:'个人创客'
@@ -253,10 +290,31 @@ export default {
                     remainFund:'',
                     reason:''          //理由
                 }
-            ],       
+            ], 
             newDirectFundBlock:{     //添加直接经费
                 directFundData:'',
-                directFundSelects:[],
+                directFundSelects:[
+                        {
+                            value:1,
+                            label:'小型仪器设备费'
+                        },
+                        {
+                            value:2,
+                            label:'材料费'
+                        },
+                        {
+                            value:3,
+                            label:'测试化验加工费'
+                        },
+                        {
+                            value:4,
+                            label:'项目协作费'
+                        },
+                        {
+                            value:5,
+                            label:'其他支出'
+                        },
+                ],
                 budget:'',         //预算
                 usedFund:'',       //已使用
                 remainFund:'',
@@ -298,7 +356,28 @@ export default {
             ], 
             newIndirectFundBlock:{    //添加间接经费
                 indirectFundData:'',
-                indirectFundSelects:[],
+                indirectFundSelects:[
+                        {
+                            value:1,
+                            label:'项目成功鉴定费'
+                        },
+                        {
+                            value:2,
+                            label:'参展参赛费'
+                        },
+                        {
+                            value:3,
+                            label:'创客交流活动费'
+                        },
+                        {
+                            value:4,
+                            label:'知识产权事务费'
+                        },
+                        {
+                            value:5,
+                            label:'其他支出'
+                        },
+                ],
                 budget:'',         //预算
                 usedFund:'',       //已使用
                 remainFund:'',
@@ -316,7 +395,59 @@ export default {
             ,
         }
     },
+    computed :{
+            // sum(){
+            //     // return 1+1
+            //     let addsum=[]
+            //     this.directFundBlock.forEach((e,i)=>{
+            //         // console.log( e.budget-e.usedFund);
+            //         addsum.push(e.budget-e.usedFund)
+            //     })
+            //     return addsum
+            // },
+        },
     methods:{
+        uploadData(){
+            this.submitHint=true;
+        },
+        submitAll(){
+            if(this.selects.projectName=='') return this.$message.error('请选择项目名称')
+            if(this.selects.projectType=='') return this.$message.error('请选择项目类型')
+
+            let num=0;
+            let sum = this.directFundBlock.reduce((per,cur)=>{
+                return per+cur[budget]
+            })
+            console.log(sum);
+            // return
+            let param={
+                uid:this.$store.state.userInfo.userid,
+                cid:this.selects.projectName,
+                type:this.selects.projectType,
+                dir:JSON.stringify(this.directFundBlock),
+                indir:JSON.stringify(this.indirectFundBlock),
+                elseFund:JSON.stringify(this.residue),
+                file:JSON.stringify(this.file)
+            }
+            this.ajax
+                .post(this.$store.state.api+'/insertMakerFund',param)
+                .then(res=>{
+                    console.log(res);
+                    if (res.data==1) {
+                       this.$router.push('/makerfund')
+                       return this.$message.success('创建成功')
+                    }else{
+                        this.$message.error('创建失败')
+                    }
+                },err=>{
+                    console.log(err);
+                })
+        },
+        getFile(val) {       //上传封面
+            console.log(val);
+            this.file.push(val)
+            this.imageUrl=require("../../assets/img/cocoClass.png")
+        },
         getData(){
             this.ajax
                 .get(this.$store.state.api+'/SelectMakerFundSelects',{uid:this.$store.state.userInfo.userid})
@@ -328,11 +459,20 @@ export default {
                 })
         },
         addDirectFund(){
-            this.directFundBlock.push(this.newDirectFundBlock)
+            let oldArr={};
+            Object.assign(oldArr,this.newDirectFundBlock)
+            this.directFundBlock.push(oldArr)
+            for(let k in this.newDirectFundBlock) return this.newDirectFundBlock[k]=''
         },
         addIndirectFund(){
             this.indirectFundBlock.push(this.newIndirectFundBlock)
         },
+        init(){
+                //重置
+                // this.projectApplicationApply1.addMemberDialog=false
+                this.submitHint=false;
+                
+        },
     },
     mounted(){
         this.getData()
@@ -342,7 +482,107 @@ export default {
 
 <style lang="less">
 .makerfundApply{
+   //提交对话框开始
+   .projectApplicationfundAddDialog{  
+ 
+    .el-dialog__header{
+        display: flex;
+        justify-content: center;
+    }
+    .el-dialog{
+    border-radius: 5px;
+    overflow: hidden;
+
+    top: 10%;
+    }
+    
+    .deleteContent{
+    width: 100%;
+    text-align: center;
+    font-size: 22px;
+    color: #000;
+    }
+    .addDialogLogo{
+    width: 60px;
+        height: 30px;
+        border-radius: 5px;
+        display: flex;
+        justify-content: center;
+        line-height: 30px;
+        background: #f2f2f2;
+        position: absolute;
+        left: 20px; top: 15px; 
+    }
+    .el-dialog__header{
+    background: #32455b;
+    }
+    .el-dialog__title{
+    font-size: 18px;
 
+    color:rgb(246, 247, 246);
+    }
+    .addDialogMid{
+    box-sizing: border-box;
+    padding:0 60px 0 10px;
+    .addDialogTit{
+        display: flex;
+        span{
+        width: 80px;
+        line-height: 40px;
+        text-align: left;
+        }
+    }
+    .addDialogTit1{
+    display: flex;
+    justify-content: space-between;
+    margin-bottom: 15px;
+    }
+    .addDialogTit2{
+    margin-top: 10px;
+    font-size: 18px;
+    color: #000;
+    text-indent: 2em;
+    }
+    .addDialogCon{
+    margin-top: 20px;
+    }
+    }
+    .dialog-footer{
+    display: flex;
+    justify-content: center;
+    .btn5{
+    height: 40px;
+    font-size: 16px;
+    background: #0e72e6;
+    width: 200px;
+    }
+    }
+    }
+    //提交对话框结束
+
+    .avatar-uploader .el-upload {
+        border: 1px dashed #d9d9d9;
+        border-radius: 6px;
+        cursor: pointer;
+        position: relative;
+        overflow: hidden;
+    }
+    // .avatar-uploader .el-upload:hover {
+    //     border-color: #409EFF;
+    // }
+    .avatar-uploader-icon {
+        font-size: 28px;
+        color: #8c939d;
+        width: 178px;
+        height: 178px;
+        line-height: 178px;
+        text-align: center;
+    }
+    .avatar {
+        width: 178px;
+        height: 178px;
+        display: block;
+    }
   .Apply1{
     height: 45px;
     width: 100%;

+ 1 - 1
src/views/fundManage/makerfundDetails.vue

@@ -10,7 +10,7 @@
       <hr>
       <div class="Apply1">
           <div class="inpInterval">项目名称</div>
-          <el-select style="width:70%" v-model="projectName" placeholder="请输入项目名称">
+          <el-select style="width:30%" v-model="projectName" placeholder="请输入项目名称">
               <el-option label="测试" value="测试"></el-option>
           </el-select>
       </div>

+ 17 - 12
src/views/projectApply/projectApplication.vue

@@ -12,7 +12,7 @@
       <div class="selectsBlock">
         <div class="selectLabel">项目筛选</div>
         <el-select v-model="selectInp.filter" @change="getData" placeholder="我的项目">
-          <el-option label="所有项目"  :value="0"></el-option>
+          <el-option label="所有项目"  value=""></el-option>
           <el-option
             v-for="item in options.projectFilter"
             :key="item.courseId"
@@ -25,7 +25,7 @@
       <div class="selectsBlock">
         <div class="selectLabel">部门</div>
         <el-select v-model="selectInp.department" @change="getData" placeholder="请选择">
-          <el-option label="所有部门" :value="0"></el-option>
+          <el-option label="所有部门" value=""></el-option>
           <el-option
             v-for="item in options.department"
             :key="item.classid"
@@ -38,7 +38,7 @@
       <div class="selectsBlock">
         <div class="selectLabel">分类</div>
         <el-select v-model="selectInp.sort" @change="getData" placeholder="请选择">
-          <el-option label="所有分类" :value="0"></el-option>
+          <el-option label="所有分类" value=""></el-option>
           <el-option
             v-for="item in options.sort"
             :key="item.typeid"
@@ -51,7 +51,7 @@
       <div class="selectsBlock">
         <div class="selectLabel">负责人</div>
         <el-select v-model="selectInp.person" @change="getData" placeholder="请选择">
-          <el-option label="所有负责人" :value="''"></el-option>
+          <el-option label="所有负责人" value=""></el-option>
           <el-option
             v-for="(item,index) in options.person"
             :key="index"
@@ -154,7 +154,6 @@
                   <!-- <el-button type="primary" > -->
                     <!-- <el-link class="btt" type="primary" :underline="false"> -->
                         <el-button type="primary"  size="mini" @click="lookDetail(scope.row.courseId)">查看详情</el-button>
-                        <!-- <el-button type="primary"  size="mini" @click="audit(scope.row)">{{(status==-1?"审核": status?"撤回":"审核")}}</el-button> -->
                         <!-- <el-button type="primary"  size="mini" @click="audit(scope.row)">{{(scope.row.data==1?"审核": scope.row.data==1?"正在审核":"审核")}}</el-button> -->
                         <el-button v-show="scope.row.isupload==0" type="primary" style="width: 73.3px;" size="mini" @click="audit(scope.row)">审核</el-button>
                         <el-button type="info" style="background-color: #c8c9cc;border-color: #c8c9cc;cursor: no-drop;" v-if="scope.row.isupload==1"  size="mini">审核中</el-button>
@@ -314,11 +313,11 @@
           tableData:[],    //列表数据
           
           selectInp:{  // 头部搜索框的内容
-            filter:0,
-            department:0,
-            sort:0,
+            filter:'',
+            department:'',
+            sort:'',
             person:'',
-            state:99,
+            state:'',
           },
           options:{    //头部搜索框下拉框数据
             projectFilter:[],//项目筛选
@@ -327,7 +326,7 @@
             person:[],//负责人
             state:[//状态
               {
-                value:99,
+                value:'',
                 label:'全部'
               },
               {
@@ -438,11 +437,11 @@
             lim:this.table.packageSize  //限制获取几条数据
           }
           // return console.log(param);
-          // console.log(param)
+          console.log(param)
           this.ajax    
             .get(this.$store.state.api+'/SelectAllProject',param)
               .then(res=>{
-                // console.log(res.data);
+                console.log(res.data);
                 let data=res.data;
                 let a=this.options;
                 this.tableData=data[0];
@@ -451,6 +450,12 @@
                 a.sort=data[3];
                 a.person=data[4];
                 this.table.total=data[5][0].total
+                // this.tableData=data[0];
+                // a.projectFilter=data[2];
+                // a.department=data[3];
+                // a.sort=data[4];
+                // a.person=data[5];
+                // this.table.total=data[5][0].total
               },err=>{
                 console.log(err);
               })  

+ 5 - 17
src/views/projectApply/projectApplicationApply.vue

@@ -289,24 +289,23 @@
             this.dialogVisible = true;
         },
         getText(value) {     //电话验证
-          // console.log(value);
-          // let text = document.getElementById(inputId).value; //获取输入框的ID 存放到text变量中
           let verify = /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/; //获取正则表达式 存放到verify变量中
           let result = verify.test(value.trim()); //判断输入框内容是否符合 正则表达式
           // if(!result && value != "") {
+            // debugger
           if(!result) {
             if (value == this.data.select.tel) {
                 this.$message.error('请输入正确联系号码格式')
                 return  this.data.telVerify=false;
             }
-            if (value == this.data.Member.phone || value == this.data.Member2.phone) {
-              return  this.data.telVerify2=false;
+            if (value == this.data.Member.phone) {
+                return  this.data.telVerify2=false;
             }
           }else{
             if (value == this.data.select.tel) {
                  this.data.telVerify=true;
             }
-            if (value == this.data.Member.phone || value == this.data.Member2.phone) {
+            if (value == this.data.Member.phone) {
               return  this.data.telVerify2=true;
             }
           }
@@ -351,13 +350,7 @@
           this.data.tableData.splice(a,1);
           this.$message.success('删除成功');
           this.delMember=false;
-          // this.data.tableData.forEach((item, index, arr)=> {
-          //     if(item.id === a) {
-          //         arr.splice(index, 1);
-          //         this.$message.success('删除成功')
-          //         this.init()
-          //     }
-          // });
+        
         },
         backBtn1(){  // 上一步
           this.$router.push('/projectApplication')
@@ -395,11 +388,6 @@
             }
         }
       },
-
-      mounted(){
-        // console.log(this.data)
-        
-      }
     }
 </script>
 

+ 5 - 12
src/views/projectApply/projectApplicationApplyMain.vue

@@ -61,8 +61,8 @@
             projectApplicationApply1:{   //立项基础信息页面
               amendMemberDialog:false,  //修改人员对话框显示判断
                 dialogImageUrl:"",  //封面
-                telVerify:'',
-                telVerify2:'',  //添加修改成员电话判断
+                telVerify:true,
+                telVerify2:true,  //添加修改成员电话判断
                 select:{    //基本信息数据框
                   projectName:'', 
                   person:'',
@@ -186,7 +186,6 @@
 
             init(){
                 //重置
-                // this.projectApplicationApply1.addMemberDialog=false
                 this.submitHint=false;
                 
             },
@@ -197,12 +196,10 @@
                   data.items[key]='-'
                 }
               }
-              // Object.assign(data.items2,data.items)   //如果提交后不用清除数据的话,这句不用写也行的,直接添加data.items
                Object.assign(data.tableData[0],data.items)              
               },
 
             submitBtn(){   //预算经费页面提交显示对话框
-                // console.log("提交啦");
                 this.submitHint = true;
             },
             submitAll(){
@@ -220,12 +217,7 @@
               if(a.select.tel=='') return this.$message.error('请输入联系电话')
               if(!a.telVerify) return this.$message.error('请输入正确联系电话格式')
               if(a.select.sort=='') return this.$message.error('请选择分类')
-              // if(a.textarea=='') return this.$message.error('请输入项目简介')
-              // if(b.contentOne=='') return this.$message.error('请输入项目创新点')
-              // if(b.contentTwo=='') return this.$message.error('请输入预期取得成果')
-              // if(b.contentThree=='') return this.$message.error('请输入预期取得成果')
-              // if(b.contentFour=='') return this.$message.error('请输入预期取得成果')
-              // if(b.contentFive=='') return this.$message.error('请输入项目实施计划')
+              
               let d=[]   //按照后端格式传递数据,项目内容,要将经费支出,与项目明细放在一起,
               for(let key in b){
                   d.push(b[key])
@@ -336,7 +328,8 @@
   .projectApplicationfundAddDialog{  
  
     .el-dialog__header{
-
+        display: flex;
+        justify-content: center;
     }
     .el-dialog{
       border-radius: 5px;

+ 10 - 10
src/views/projectManage/ProjectManagement.vue

@@ -13,7 +13,7 @@
       <div class="selectsBlock">
         <span class="selectLabel">项目筛选</span>
         <el-select v-model="selectInp.filter" @change="getData" placeholder="我的项目">
-          <el-option label="所有项目"  :value="0"></el-option>
+          <el-option label="所有项目"  value=""></el-option>
           <el-option
             v-for="item in options.projectFilter"
             :key="item.courseId"
@@ -26,7 +26,7 @@
       <div class="selectsBlock">
         <span class="selectLabel">部门</span>
         <el-select v-model="selectInp.department" @change="getData" placeholder="请选择">
-          <el-option label="所有部门" :value="0"></el-option>
+          <el-option label="所有部门" value=""></el-option>
           <el-option
             v-for="item in options.department"
             :key="item.classid"
@@ -39,7 +39,7 @@
       <div class="selectsBlock">
         <span class="selectLabel">分类</span>
         <el-select v-model="selectInp.sort" @change="getData" placeholder="请选择">
-          <el-option label="所有分类" :value="0"></el-option>
+          <el-option label="所有分类" value=""></el-option>
           <el-option
             v-for="item in options.sort"
             :key="item.typeid"
@@ -64,7 +64,7 @@
       <div class="selectsBlock">
         <span class="selectLabel">负责人</span>
         <el-select v-model="selectInp.leader" @change="getData" placeholder="请选择">
-          <el-option label="所有负责人" :value="''"></el-option>
+          <el-option label="所有负责人" value=""></el-option>
           <el-option
             v-for="(item,index) in options.person"
             :key="index"
@@ -196,7 +196,7 @@ import beUpload from '../../components/tool/beUpload'
             person:[],//负责人
             state:[//状态
               {
-                value:99,
+                value:'',
                 label:'全部'
               },
               {
@@ -214,10 +214,10 @@ import beUpload from '../../components/tool/beUpload'
             ],
           },
           selectInp:{     //select选定所显示的值 
-            filter:0,     //不要带引号,select框是根据id来选择下面数据的
-            department:0,
-            sort:0,
-            state:99,
+            filter:'',     //不要带引号,select框是根据id来选择下面数据的
+            department:'',
+            sort:'',
+            state:'',
             leader:'',
           },
         
@@ -298,7 +298,7 @@ import beUpload from '../../components/tool/beUpload'
               .then(res=>{
                 // console.log(res);
                 let data=res.data;
-                // console.log(res);
+                console.log(data);
                 let a=this.options;
                 this.items=data[0];
                 // console.log(this.items);