|
@@ -172,26 +172,21 @@
|
|
|
>
|
|
|
<template #default="scope">
|
|
|
<div class="operations">
|
|
|
- <!-- <el-button type="primary" > -->
|
|
|
- <!-- <el-link class="btt" type="primary" :underline="false"> -->
|
|
|
<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)" style="width: 73.3px;" size="mini" >审核0</el-button>
|
|
|
- <el-button type="primary" v-show="scope.row.apIsupload==1 && scope.row.isupload==0" style="width: 73.3px;" size="mini" >待审核0</el-button>
|
|
|
- <el-button type="primary" v-show="scope.row.apIsupload==1 && scope.row.isupload==1" style="background-color: #c8c9cc;border-color: #c8c9cc;cursor: no-drop;" size="mini">审核中</el-button>
|
|
|
- <el-button type="primary" v-show="scope.row.apIsupload==1 && scope.row.isupload==2" style="background-color: #c8c9cc;border-color: #c8c9cc;cursor: no-drop;" size="mini">已审核0</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)">审核1</el-button>
|
|
|
- <el-button v-show="scope.row.isupload==1" type="primary" style="width: 73.3px;" size="mini" @click="audit(scope.row)">审核中1</el-button>
|
|
|
- <el-button v-show="scope.row.isupload==2" type="primary" style="width: 73.3px;" size="mini" @click="audit(scope.row)">已审核1</el-button>
|
|
|
+ <el-button type="primary" v-show="scope.row.apIsupload==0" @click="audit(scope.row,0)" size="mini" >审核0</el-button>
|
|
|
+ <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 v-show="scope.row.isupload==0" type="primary" style="width: 73.3px;" size="mini" @click="audit(scope.row,1)">审核1</el-button>
|
|
|
+ <!-- <el-button v-show="scope.row.isupload==0 && scope.row.apIsupload==1" type="primary" class="disa" size="mini" @click="audit(scope.row)">审核1</el-button> -->
|
|
|
+ <el-button v-show="scope.row.isupload==1" type="primary" style="width: 73.3px;" class="disa" size="mini">审核中1</el-button>
|
|
|
+ <el-button v-show="scope.row.isupload==2" type="primary" style="width: 73.3px;" class="disa" size="mini">已审核1</el-button>
|
|
|
|
|
|
<el-button type="primary" size="mini" @click="appTable(scope.row.typeid,scope.row.courseId)" >申请表</el-button>
|
|
|
- <!-- <el-button type="primary" size="mini"><a href="/file/附件 5 :学校创客专项资金使用申请表.xlsx" download="创客活动.doc">申请表</a> </el-button> -->
|
|
|
|
|
|
<el-button type="primary" size="mini" @click="del(scope.row)">删除</el-button>
|
|
|
- <!-- </el-link> -->
|
|
|
- <!-- </el-button> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -269,7 +264,7 @@
|
|
|
title="立项审核"
|
|
|
:visible.sync="dialogVisible"
|
|
|
class="pageSubmitData"
|
|
|
- width="700px"
|
|
|
+ width="600px"
|
|
|
:before-close="init">
|
|
|
|
|
|
<div class="diaTit">
|
|
@@ -300,7 +295,7 @@
|
|
|
<el-input disabled v-model="auditDialog.tel" placeholder="联系电话"></el-input>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="diaTit1">
|
|
|
+ <div class="diaTit1" v-show="isManager==1">
|
|
|
<div class="spans1" style="position: relative;top:-24px">驳回意见</div>
|
|
|
<div class="inp">
|
|
|
<el-input
|
|
@@ -313,8 +308,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="commit" class="AllDialogBtn" >确认提交</el-button>
|
|
|
- <el-button type="primary" @click="rejectApply" class="AllDialogBtn" >驳回</el-button>
|
|
|
+ <el-button type="primary" v-show="isManager==0" @click="ApplyPersonCommit" class="AllDialogBtn" >审核</el-button>
|
|
|
+ <el-button type="primary" v-show="isManager==1" @click="ManagerCommit" class="AllDialogBtn" >通过</el-button>
|
|
|
+ <el-button type="primary" v-show="isManager==1" @click="rejectApply" class="AllDialogBtn" >驳回</el-button>
|
|
|
<el-button @click="init" class="AllDialogBtn">取消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -369,6 +365,7 @@ import MakerSpaceWordPreview from '@/components/MakerSpaceWordPreview.vue';
|
|
|
PreviewData:"",//预览数据
|
|
|
rejectApplyText:'', //驳回-修改建议
|
|
|
|
|
|
+ isManager:0, //0申请人审核科----- 1管理员审核框
|
|
|
// 分页数据
|
|
|
table:{
|
|
|
total:0,
|
|
@@ -414,6 +411,7 @@ import MakerSpaceWordPreview from '@/components/MakerSpaceWordPreview.vue';
|
|
|
department:'',
|
|
|
fund:'',
|
|
|
tel:'',
|
|
|
+ // cid:''
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -428,8 +426,8 @@ import MakerSpaceWordPreview from '@/components/MakerSpaceWordPreview.vue';
|
|
|
this.dialogVisible1=false;
|
|
|
this.dialogVisible2=false;
|
|
|
},
|
|
|
- audit(val){ //审核按钮
|
|
|
-
|
|
|
+ audit(val,num){ //审核按钮
|
|
|
+ this.isManager=num;
|
|
|
this.iid=val //将要删除的id进行存储供删除对话框使用
|
|
|
if (val.isupload==0) {
|
|
|
this.dialogVisible=true;
|
|
@@ -439,6 +437,7 @@ import MakerSpaceWordPreview from '@/components/MakerSpaceWordPreview.vue';
|
|
|
this.auditDialog.department=val.name;
|
|
|
this.auditDialog.fund=val.fund;
|
|
|
this.auditDialog.tel=val.phone || '-';
|
|
|
+ // this.auditDialog.cid=courseId
|
|
|
}
|
|
|
|
|
|
|
|
@@ -473,7 +472,7 @@ import MakerSpaceWordPreview from '@/components/MakerSpaceWordPreview.vue';
|
|
|
|
|
|
|
|
|
},
|
|
|
- commit(){ //立项审核对话框里面的确定提交按钮
|
|
|
+ ManagerCommit(){ //立项审核对话框里面的管理员通过按钮
|
|
|
// console.log(this.iid);
|
|
|
let param={
|
|
|
uid:this.$store.state.userInfo.userid,
|
|
@@ -490,8 +489,34 @@ import MakerSpaceWordPreview from '@/components/MakerSpaceWordPreview.vue';
|
|
|
console.log(err);
|
|
|
})
|
|
|
},
|
|
|
- rejectApply(){ //驳回申请
|
|
|
-
|
|
|
+ ApplyPersonCommit(){ //立项审核对话框里面的申请人审核按钮
|
|
|
+ let param={
|
|
|
+ uid:this.$store.state.userInfo.userid,
|
|
|
+ pid:this.iid.courseId,
|
|
|
+ num:1
|
|
|
+ }
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.api+"/updateRejectProjectApply",param)
|
|
|
+ .then(res=>{
|
|
|
+ this.dialogVisible=false
|
|
|
+ this.$message.success('已提交')
|
|
|
+ this.getData()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ rejectApply(){ //立项审核对话框里面的驳回申请
|
|
|
+ let param={
|
|
|
+ uid:this.$store.state.userInfo.userid,
|
|
|
+ pid:this.iid.courseId,
|
|
|
+ num:0
|
|
|
+ }
|
|
|
+ this.ajax
|
|
|
+ .post(this.$store.state.api+"/updateRejectProjectApply",param)
|
|
|
+ .then(res=>{
|
|
|
+ this.dialogVisible=false
|
|
|
+ this.$message.success('已驳回项目申请')
|
|
|
+ this.getData()
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
|
|
|
commit2(val){ //立项撤回对话框里面的确定撤回按钮
|