|
@@ -166,16 +166,23 @@
|
|
>
|
|
>
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<div class="operations">
|
|
<div class="operations">
|
|
|
|
+ {{ scope.row.isupload }}
|
|
<el-button type="primary" size="mini" @click="lookDetail(scope.row.courseId,scope.row.typeid)">查看详情</el-button>
|
|
<el-button type="primary" size="mini" @click="lookDetail(scope.row.courseId,scope.row.typeid)">查看详情</el-button>
|
|
|
|
|
|
- <el-button type="primary" v-show="scope.row.apIsupload==0" @click="audit(scope.row,0)" size="mini" >审核0</el-button> <!--0申请人审核 -->
|
|
|
|
- <el-button type="primary" v-show="scope.row.apIsupload==1 && scope.row.isupload==0" class="disa" size="mini" >待审核0</el-button>
|
|
|
|
- <el-button type="primary" v-show="scope.row.apIsupload==1 && scope.row.isupload==1" class="disa" size="mini">审核中0</el-button>
|
|
|
|
- <el-button type="primary" v-show="scope.row.apIsupload==1 && scope.row.isupload==2" class="disa" size="mini">已审核0</el-button>
|
|
|
|
|
|
+ <el-button type="primary" v-show="scope.row.isupload==0" @click="audit(scope.row,0)" size="mini" >审核0</el-button> <!--0申请人审核 -->
|
|
|
|
+ <el-button type="primary" v-show="scope.row.isupload==1 " class="disa" size="mini" >审核中</el-button>
|
|
|
|
+ <el-button type="primary" v-show="scope.row.isupload==2" class="disa" size="mini">已审核</el-button>
|
|
|
|
+ <el-button type="primary" v-show="scope.row.isupload==3" class="disa" size="mini">待结项</el-button>
|
|
|
|
+ <el-button type="primary" v-show="scope.row.isupload==4" class="disa" size="mini">已结项</el-button>
|
|
|
|
+
|
|
|
|
|
|
- <el-button v-show="scope.row.isupload==0" type="primary" size="mini" @click="audit(scope.row,1)">审核1</el-button> <!--1管理员审核 -->
|
|
|
|
- <el-button v-show="scope.row.isupload==1" type="primary" class="disa" size="mini">审核中1</el-button>
|
|
|
|
|
|
+ <el-button v-show="scope.row.isupload==0" type="primary" class="disa" size="mini">审核1</el-button> <!--1管理员审核 -->
|
|
|
|
+ <el-button v-show="scope.row.isupload==1" type="primary" size="mini" @click="audit(scope.row,1)">审核1</el-button>
|
|
<el-button v-show="scope.row.isupload==2" type="primary" class="disa" size="mini">已审核1</el-button>
|
|
<el-button v-show="scope.row.isupload==2" type="primary" class="disa" size="mini">已审核1</el-button>
|
|
|
|
+ <el-button v-show="scope.row.isupload==3" type="primary" class="disa" size="mini">待结项</el-button>
|
|
|
|
+ <el-button v-show="scope.row.isupload==4" type="primary" class="disa" size="mini">已结项</el-button>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
<el-button type="primary" size="mini" @click="appTable(scope.row.typeid,scope.row.courseId)" >申请表</el-button>
|
|
<el-button type="primary" size="mini" @click="appTable(scope.row.typeid,scope.row.courseId)" >申请表</el-button>
|
|
|
|
|
|
@@ -203,7 +210,7 @@
|
|
title="立项审核"
|
|
title="立项审核"
|
|
:visible.sync="dialogVisible"
|
|
:visible.sync="dialogVisible"
|
|
class="pageSubmitData"
|
|
class="pageSubmitData"
|
|
- width="600px"
|
|
|
|
|
|
+ width="700px"
|
|
:before-close="init">
|
|
:before-close="init">
|
|
|
|
|
|
<div class="diaTit">
|
|
<div class="diaTit">
|
|
@@ -273,7 +280,7 @@
|
|
title="文档预览"
|
|
title="文档预览"
|
|
:visible.sync="WordPreview"
|
|
:visible.sync="WordPreview"
|
|
width="60%"
|
|
width="60%"
|
|
- class="addDialog">
|
|
|
|
|
|
+ class="pageSubmitData">
|
|
<div class="addDialogLogo">LOGO</div>
|
|
<div class="addDialogLogo">LOGO</div>
|
|
<MakerSpaceWordPreview v-if="PreviewTid == '5f7a66d5-c206-11ed-a4cd-509a4c5b67cf'" :data="PreviewData"/>
|
|
<MakerSpaceWordPreview v-if="PreviewTid == '5f7a66d5-c206-11ed-a4cd-509a4c5b67cf'" :data="PreviewData"/>
|
|
<studentMakerProjectPreview v-if="PreviewTid == '5e21b204-c206-11ed-a4cd-509a4c5b67cf'" :data="PreviewData"/>
|
|
<studentMakerProjectPreview v-if="PreviewTid == '5e21b204-c206-11ed-a4cd-509a4c5b67cf'" :data="PreviewData"/>
|
|
@@ -282,11 +289,12 @@
|
|
<el-button @click="WordPreview = false" class="AllDialogBtn" >取消</el-button>
|
|
<el-button @click="WordPreview = false" class="AllDialogBtn" >取消</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+
|
|
<el-dialog
|
|
<el-dialog
|
|
title="文档预览"
|
|
title="文档预览"
|
|
:visible.sync="WordPreview"
|
|
:visible.sync="WordPreview"
|
|
width="60%"
|
|
width="60%"
|
|
- class="addDialog">
|
|
|
|
|
|
+ class="pageSubmitData">
|
|
<div class="addDialogLogo">LOGO</div>
|
|
<div class="addDialogLogo">LOGO</div>
|
|
<MakerSpaceWordPreview v-if="PreviewTid == '5f7a66d5-c206-11ed-a4cd-509a4c5b67cf' && WordPreview" :data="PreviewData"/>
|
|
<MakerSpaceWordPreview v-if="PreviewTid == '5f7a66d5-c206-11ed-a4cd-509a4c5b67cf' && WordPreview" :data="PreviewData"/>
|
|
<studentMakerProjectPreview v-if="PreviewTid == '2f4c6e78-f2e7-11ed-a3f6-509a4c5b67cf' && WordPreview" :data="PreviewData"/>
|
|
<studentMakerProjectPreview v-if="PreviewTid == '2f4c6e78-f2e7-11ed-a3f6-509a4c5b67cf' && WordPreview" :data="PreviewData"/>
|
|
@@ -383,9 +391,9 @@ import studentMakerProjectPreview from '@/components/studentMakerProjectPreview.
|
|
this.dialogVisible2=false;
|
|
this.dialogVisible2=false;
|
|
},
|
|
},
|
|
audit(val,num){ //审核按钮
|
|
audit(val,num){ //审核按钮
|
|
- this.isManager=num;
|
|
|
|
- this.iid=val //将要删除的id进行存储供删除对话框使用
|
|
|
|
- if (val.isupload==0) {
|
|
|
|
|
|
+ this.isManager=num;
|
|
|
|
+ this.iid=val //储存id给对话框
|
|
|
|
+ // if (val.isupload==0) {
|
|
this.dialogVisible=true;
|
|
this.dialogVisible=true;
|
|
// console.log(val);
|
|
// console.log(val);
|
|
this.auditDialog.projectName=val.title;
|
|
this.auditDialog.projectName=val.title;
|
|
@@ -394,7 +402,7 @@ import studentMakerProjectPreview from '@/components/studentMakerProjectPreview.
|
|
this.auditDialog.fund=val.fund;
|
|
this.auditDialog.fund=val.fund;
|
|
this.auditDialog.tel=val.phone || '-';
|
|
this.auditDialog.tel=val.phone || '-';
|
|
// this.auditDialog.cid=courseId
|
|
// this.auditDialog.cid=courseId
|
|
- }
|
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -406,8 +414,8 @@ import studentMakerProjectPreview from '@/components/studentMakerProjectPreview.
|
|
pid:pid
|
|
pid:pid
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
// console.log(res['data']);
|
|
// console.log(res['data']);
|
|
- // MakerStudentWord(res['data'][0][0],res['data'][1]);
|
|
|
|
this.PreviewData = [res['data'][0][0],res['data'][1]];
|
|
this.PreviewData = [res['data'][0][0],res['data'][1]];
|
|
|
|
+
|
|
// return console.log(this.PreviewData);
|
|
// return console.log(this.PreviewData);
|
|
this.WordPreview = true;
|
|
this.WordPreview = true;
|
|
this.PreviewTid = tid;
|
|
this.PreviewTid = tid;
|
|
@@ -436,10 +444,12 @@ import studentMakerProjectPreview from '@/components/studentMakerProjectPreview.
|
|
// console.log(this.iid);
|
|
// console.log(this.iid);
|
|
let param={
|
|
let param={
|
|
uid:this.$store.state.userInfo.userid,
|
|
uid:this.$store.state.userInfo.userid,
|
|
- pid:this.iid.courseId
|
|
|
|
|
|
+ pid:this.iid.courseId,
|
|
|
|
+ num:2
|
|
}
|
|
}
|
|
this.ajax
|
|
this.ajax
|
|
- .post(this.$store.state.api+"/ApproveProject",param)
|
|
|
|
|
|
+ // .post(this.$store.state.api+"/ApproveProject",param)
|
|
|
|
+ .post(this.$store.state.api+"/updateIsupload",param)
|
|
.then(res=>{
|
|
.then(res=>{
|
|
// console.log(res);
|
|
// console.log(res);
|
|
this.dialogVisible=false;
|
|
this.dialogVisible=false;
|
|
@@ -449,14 +459,14 @@ import studentMakerProjectPreview from '@/components/studentMakerProjectPreview.
|
|
console.log(err);
|
|
console.log(err);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- ApplyPersonCommit(){ //立项审核对话框里面的申请人审核按钮
|
|
|
|
|
|
+ ApplyPersonCommit(){ //申请人审核按钮
|
|
let param={
|
|
let param={
|
|
uid:this.$store.state.userInfo.userid,
|
|
uid:this.$store.state.userInfo.userid,
|
|
pid:this.iid.courseId,
|
|
pid:this.iid.courseId,
|
|
num:1
|
|
num:1
|
|
}
|
|
}
|
|
this.ajax
|
|
this.ajax
|
|
- .post(this.$store.state.api+"/updateRejectProjectApply",param)
|
|
|
|
|
|
+ .post(this.$store.state.api+"/updateIsupload",param) //updateIsupload
|
|
.then(res=>{
|
|
.then(res=>{
|
|
this.dialogVisible=false
|
|
this.dialogVisible=false
|
|
this.$message.success('已提交')
|
|
this.$message.success('已提交')
|
|
@@ -470,7 +480,7 @@ import studentMakerProjectPreview from '@/components/studentMakerProjectPreview.
|
|
num:0
|
|
num:0
|
|
}
|
|
}
|
|
this.ajax
|
|
this.ajax
|
|
- .post(this.$store.state.api+"/updateRejectProjectApply",param)
|
|
|
|
|
|
+ .post(this.$store.state.api+"/updateIsupload",param)
|
|
.then(res=>{
|
|
.then(res=>{
|
|
this.dialogVisible=false
|
|
this.dialogVisible=false
|
|
this.$message.success('已驳回项目申请')
|
|
this.$message.success('已驳回项目申请')
|
|
@@ -482,7 +492,6 @@ import studentMakerProjectPreview from '@/components/studentMakerProjectPreview.
|
|
commit2(val){ //立项撤回对话框里面的确定撤回按钮
|
|
commit2(val){ //立项撤回对话框里面的确定撤回按钮
|
|
this.dialogVisible1=false;
|
|
this.dialogVisible1=false;
|
|
this.status--
|
|
this.status--
|
|
- // console.log(this.status);
|
|
|
|
},
|
|
},
|
|
|
|
|
|
handleSelectionChange(val) { //批量选择功能后续可能用到
|
|
handleSelectionChange(val) { //批量选择功能后续可能用到
|
|
@@ -519,7 +528,7 @@ import studentMakerProjectPreview from '@/components/studentMakerProjectPreview.
|
|
.get(this.$store.state.api+'/SelectAllProject',param)
|
|
.get(this.$store.state.api+'/SelectAllProject',param)
|
|
.then(res=>{
|
|
.then(res=>{
|
|
let data=res.data;
|
|
let data=res.data;
|
|
- // console.log(data);
|
|
|
|
|
|
+ console.log(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
|
|
return this.getData()
|
|
return this.getData()
|
|
@@ -605,79 +614,79 @@ import studentMakerProjectPreview from '@/components/studentMakerProjectPreview.
|
|
height: 0;
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
|
|
- .addDialog{ //删除对话框
|
|
|
|
- font-size: 18px;
|
|
|
|
- .el-dialog{
|
|
|
|
- border-radius: 5px;
|
|
|
|
- overflow: hidden;
|
|
|
|
- }
|
|
|
|
- .el-dialog__body{
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: center;
|
|
|
|
- }
|
|
|
|
- .deleteContent{
|
|
|
|
- // margin: 30px 0;
|
|
|
|
- font-size: 22px;
|
|
|
|
- color: #000;
|
|
|
|
- }
|
|
|
|
- .addDialogLogo{
|
|
|
|
- width: 60px;
|
|
|
|
- height: 30px;
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: center;
|
|
|
|
- line-height: 30px;
|
|
|
|
- border-radius: 5px;
|
|
|
|
- background: #f2f2f2;
|
|
|
|
- position: absolute;
|
|
|
|
- left: 20px; top: 15px;
|
|
|
|
- }
|
|
|
|
- .el-dialog__header{
|
|
|
|
- background: #32455b;
|
|
|
|
- position: relative;
|
|
|
|
- top: -2px;
|
|
|
|
- }
|
|
|
|
- .el-dialog__title{
|
|
|
|
- color:#fff;
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: center;
|
|
|
|
- font-size: 18px;
|
|
|
|
- position: relative;
|
|
|
|
- top: -2px;
|
|
|
|
- }
|
|
|
|
- .addDialogMid{
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- padding:0 60px 0 10px;
|
|
|
|
- .addDialogTit{
|
|
|
|
- display: flex;
|
|
|
|
- span{
|
|
|
|
- width: 80px;
|
|
|
|
- font-size: 16px;
|
|
|
|
- line-height: 40px;
|
|
|
|
- text-align: left;
|
|
|
|
|
|
+// .addDialog{ //文档预览
|
|
|
|
+// font-size: 18px;
|
|
|
|
+// .el-dialog{
|
|
|
|
+// border-radius: 5px;
|
|
|
|
+// overflow: hidden;
|
|
|
|
+// }
|
|
|
|
+// .el-dialog__body{
|
|
|
|
+// display: flex;
|
|
|
|
+// justify-content: center;
|
|
|
|
+// }
|
|
|
|
+// .deleteContent{
|
|
|
|
+// // margin: 30px 0;
|
|
|
|
+// font-size: 22px;
|
|
|
|
+// color: #000;
|
|
|
|
+// }
|
|
|
|
+// .addDialogLogo{
|
|
|
|
+// width: 60px;
|
|
|
|
+// height: 30px;
|
|
|
|
+// display: flex;
|
|
|
|
+// justify-content: center;
|
|
|
|
+// line-height: 30px;
|
|
|
|
+// border-radius: 5px;
|
|
|
|
+// background: #f2f2f2;
|
|
|
|
+// position: absolute;
|
|
|
|
+// left: 20px; top: 15px;
|
|
|
|
+// }
|
|
|
|
+// .el-dialog__header{
|
|
|
|
+// background: #32455b;
|
|
|
|
+// position: relative;
|
|
|
|
+// top: -2px;
|
|
|
|
+// }
|
|
|
|
+// .el-dialog__title{
|
|
|
|
+// color:#fff;
|
|
|
|
+// display: flex;
|
|
|
|
+// justify-content: center;
|
|
|
|
+// font-size: 18px;
|
|
|
|
+// position: relative;
|
|
|
|
+// top: -2px;
|
|
|
|
+// }
|
|
|
|
+// .addDialogMid{
|
|
|
|
+// box-sizing: border-box;
|
|
|
|
+// padding:0 60px 0 10px;
|
|
|
|
+// .addDialogTit{
|
|
|
|
+// display: flex;
|
|
|
|
+// span{
|
|
|
|
+// width: 80px;
|
|
|
|
+// font-size: 16px;
|
|
|
|
+// line-height: 40px;
|
|
|
|
+// text-align: left;
|
|
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .addDialogTit1{
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- margin-bottom: 15px;
|
|
|
|
- }
|
|
|
|
- .addDialogTit2{
|
|
|
|
- margin-top: 10px;
|
|
|
|
- font-size: 16px;
|
|
|
|
- color: #000;
|
|
|
|
- text-indent: 2em;
|
|
|
|
- }
|
|
|
|
- .addDialogCon{
|
|
|
|
- margin-top: 20px;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .dialog-footer{
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: center;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// .addDialogTit1{
|
|
|
|
+// display: flex;
|
|
|
|
+// justify-content: space-between;
|
|
|
|
+// margin-bottom: 15px;
|
|
|
|
+// }
|
|
|
|
+// .addDialogTit2{
|
|
|
|
+// margin-top: 10px;
|
|
|
|
+// font-size: 16px;
|
|
|
|
+// color: #000;
|
|
|
|
+// text-indent: 2em;
|
|
|
|
+// }
|
|
|
|
+// .addDialogCon{
|
|
|
|
+// margin-top: 20px;
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// .dialog-footer{
|
|
|
|
+// display: flex;
|
|
|
|
+// justify-content: center;
|
|
|
|
+// box-sizing: border-box;
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|