|
@@ -57,6 +57,7 @@
|
|
|
class="pageSubmitData"
|
|
|
:close-on-click-modal='false'
|
|
|
:close-on-press-escape="false"
|
|
|
+ :show-close="false"
|
|
|
>
|
|
|
<!-- <div class="addDialogLogo">LOGO</div> -->
|
|
|
<div class="" style="display: flex;align-items: center;justify-content: center;margin-top: 10px;">
|
|
@@ -164,21 +165,22 @@
|
|
|
dialogImageUrl:"", //封面
|
|
|
telVerify:true, //判断基础信息里联系电话
|
|
|
telVerify2:true, //添加修改成员电话判断
|
|
|
- tableStudentData:[], //学生成员成员列表
|
|
|
- tableTeacherData:[], //老师成员成员列表
|
|
|
- textarea:'', //项目简介
|
|
|
- select:{ //提交后端的基本信息数据框
|
|
|
+
|
|
|
+ tableStudentData:[], //学生成员成员列表!!!!!!!!
|
|
|
+ tableTeacherData:[], //老师成员成员列表!!!!!!!
|
|
|
+ textarea:'', //项目简介!!!!!!!
|
|
|
+ select:{ //要提交的数据!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
projectName:'', //项目名称
|
|
|
- leader:'',
|
|
|
+ leader:'', //项目负责人
|
|
|
projectDate:'', //开始结束日期
|
|
|
department:"", //部门
|
|
|
fund:'', //资金
|
|
|
MultiSelectProjectNameS:[], //优先支持项目
|
|
|
schoolRemould:'', //校园改造项目
|
|
|
tel:'', //电话
|
|
|
- value1:"",
|
|
|
+ // value1:"",
|
|
|
projectApplyPerson:'', //项目申请人
|
|
|
- sort:[] //["dawjiawdjaw",0]
|
|
|
+ // sort:[] //["dawjiawdjaw",0]
|
|
|
},
|
|
|
|
|
|
|
|
@@ -349,6 +351,7 @@
|
|
|
let a=this.projectApplicationApply1
|
|
|
a.options=p
|
|
|
this.MakerSpace.options = p;
|
|
|
+ this.projectApplicationApply1.departmentOptions=p;
|
|
|
},err=>{
|
|
|
console.log(err);
|
|
|
})
|
|
@@ -401,46 +404,58 @@
|
|
|
let a=this.projectApplicationApply1;
|
|
|
let b=this.projectApplicationApply2;
|
|
|
let c=this.projectApplicationApply3
|
|
|
- if(a.select.projectName=='') return this.$message.error('请输入项目名称')
|
|
|
- if(a.select.person=='') return this.$message.error('请输入项目负责人')
|
|
|
- if(a.select.value1=='') return this.$message.error('请选择项目开始时间')
|
|
|
- if(a.select.value=='') return this.$message.error('请选择所在部门')
|
|
|
- if(a.select.fund=='') return this.$message.error('请输入预算总经费')
|
|
|
- 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.select.projectName=='') return this.$message.error('请输入项目名称')
|
|
|
+ // if(a.select.person=='') return this.$message.error('请输入项目负责人')
|
|
|
+ // if(a.select.value1=='') return this.$message.error('请选择项目开始时间')
|
|
|
+ // if(a.select.value=='') return this.$message.error('请选择所在部门')
|
|
|
+ // if(a.select.fund=='') return this.$message.error('请输入预算总经费')
|
|
|
+ // if(a.select.tel=='') return this.$message.error('请输入联系电话')
|
|
|
+ // if(!a.telVerify) return this.$message.error('请输入正确联系电话格式')
|
|
|
+ // if(a.select.sort=='') return this.$message.error('请选择分类')
|
|
|
|
|
|
- let d=[] //按照后端格式传递数据,项目内容,要将经费支出,与项目明细放在一起,
|
|
|
- for(let key in b){
|
|
|
- d.push(b[key])
|
|
|
- }
|
|
|
+ // let d=[] //按照后端格式传递数据,项目内容,要将经费支出,与项目明细放在一起,
|
|
|
+ // for(let key in b){
|
|
|
+ // d.push(b[key])
|
|
|
+ // }
|
|
|
|
|
|
- let newData1 = c.tableData[0]; //没有输入的月支出计划改为0,向后端传递
|
|
|
- for(let key in newData1){
|
|
|
- if (newData1[key]=='-') {
|
|
|
- newData1[key]=0
|
|
|
- }
|
|
|
- }
|
|
|
- console.log(a.select.sort);
|
|
|
- let typeId=a.select.sort[0]
|
|
|
- let typeName=a.select.sort[1]
|
|
|
+ // let newData1 = c.tableData[0]; //没有输入的月支出计划改为0,向后端传递
|
|
|
+ // for(let key in newData1){
|
|
|
+ // if (newData1[key]=='-') {
|
|
|
+ // newData1[key]=0
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // console.log(a.select.sort);
|
|
|
+ // let typeId=a.select.sort[0]
|
|
|
+ // let typeName=a.select.sort[1]
|
|
|
// return console.log(typeId,typeName);
|
|
|
|
|
|
let param={
|
|
|
uid:this.$store.state.userInfo.userid,
|
|
|
- title:a.select.projectName,
|
|
|
- brief:a.textarea,
|
|
|
- leader:a.select.person,
|
|
|
- phone:a.select.tel,
|
|
|
- cid:a.select.value,
|
|
|
- student:JSON.stringify(a.tableData),
|
|
|
- message:JSON.stringify([d,[newData1,c.tableData2]]),
|
|
|
- tid:typeId,
|
|
|
- tidName:typeName,
|
|
|
- mon:a.select.fund,
|
|
|
- imgsrc:a.dialogImageUrl,
|
|
|
- beginTime:a.select.value1
|
|
|
+ // title:a.select.projectName,
|
|
|
+ // brief:a.textarea,
|
|
|
+ // leader:a.select.person,
|
|
|
+ // phone:a.select.tel,
|
|
|
+ // cid:a.select.value,
|
|
|
+ // student:JSON.stringify(a.tableData),
|
|
|
+ // message:JSON.stringify([d,[newData1,c.tableData2]]),
|
|
|
+ // tid:typeId,
|
|
|
+ // tidName:typeName,
|
|
|
+ // mon:a.select.fund,
|
|
|
+ // imgsrc:a.dialogImageUrl,
|
|
|
+ // beginTime:a.select.value1
|
|
|
+ tit:a.select.projectName,
|
|
|
+ leader:a.select.leader,
|
|
|
+ proDate:a.select.projectDate,
|
|
|
+ department:a.select.department,
|
|
|
+ fund:a.select.fund,
|
|
|
+ MultiSelectProjectNameS:JSON.stringify(a.select.MultiSelectProjectNameS),
|
|
|
+ schoolRemould:a.select.schoolRemould,
|
|
|
+ tel:a.select.tel,
|
|
|
+ person:a.select.projectApplyPerson,
|
|
|
+ student:JSON.stringify(a.tableStudentData),
|
|
|
+ teacher:JSON.stringify(a.tableTeacherData)
|
|
|
}
|
|
|
+ return console.log(param);
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api+'/CreateProject',param)
|
|
|
.then(res=>{
|