|
@@ -81,8 +81,8 @@
|
|
|
:data="tableData"
|
|
|
tooltip-effect="dark"
|
|
|
stripe
|
|
|
- class="fontSize"
|
|
|
- style="height: 500px;"
|
|
|
+ class="fontSize core_dialogue"
|
|
|
+ style="height: 480px;overflow: auto;"
|
|
|
:header-cell-style="{ background: '#f2f2f2',color:'#000' }"
|
|
|
@selection-change="handleSelectionChange">
|
|
|
<!-- selection-change批量选择功能后续可能用到 -->
|
|
@@ -157,9 +157,9 @@
|
|
|
<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-if="scope.row.isupload==0" type="primary" size="mini" @click="audit(scope.row)">审核</el-button>
|
|
|
- <el-button v-if="scope.row.isupload==1" type="info" disabled size="mini">审核中</el-button>
|
|
|
- <el-button v-if="scope.row.isupload==2" type="info" disabled size="mini">已审核</el-button>
|
|
|
+ <el-button v-if="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>
|
|
|
+ <el-button type="info" style="background-color: #c8c9cc;border-color: #c8c9cc;cursor: no-drop;" v-if="scope.row.isupload==2" size="mini">已审核</el-button>
|
|
|
|
|
|
<el-button type="primary" size="mini" @click="appTable(scope)" >申请表</el-button>
|
|
|
<el-button type="primary" size="mini" @click="del(scope.row)">删除</el-button>
|
|
@@ -309,7 +309,7 @@
|
|
|
// 分页数据
|
|
|
table:{
|
|
|
total:0,
|
|
|
- packageSize:10,
|
|
|
+ packageSize:8,
|
|
|
currentPage:1
|
|
|
},
|
|
|
tableData:[], //列表数据
|
|
@@ -373,7 +373,7 @@
|
|
|
// }
|
|
|
// console.log(val);
|
|
|
// this.dialogVisible2=true
|
|
|
- // this.iid=val //将要删除的id进行存储供删除对话框使用
|
|
|
+ this.iid=val //将要删除的id进行存储供删除对话框使用
|
|
|
if (val.isupload==0) {
|
|
|
this.dialogVisible=true;
|
|
|
console.log(val);
|
|
@@ -382,8 +382,6 @@
|
|
|
this.auditDialog.department=val.name;
|
|
|
this.auditDialog.fund=val.money;
|
|
|
this.auditDialog.tel=val.phone;
|
|
|
- }else if(val.isupload==2){
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|
|
@@ -392,6 +390,7 @@
|
|
|
|
|
|
},
|
|
|
commit(){ //立项审核对话框里面的确定提交按钮
|
|
|
+ console.log(this.iid);
|
|
|
let param={
|
|
|
uid:this.$store.state.userInfo.userid,
|
|
|
pid:this.iid.courseId
|
|
@@ -401,8 +400,8 @@
|
|
|
.then(res=>{
|
|
|
console.log(res);
|
|
|
this.dialogVisible=false;
|
|
|
- this.$message.success('审核成功')
|
|
|
-
|
|
|
+ this.$message.success('提交成功')
|
|
|
+ this.getData()
|
|
|
},err=>{
|
|
|
console.log(err);
|
|
|
})
|
|
@@ -450,10 +449,11 @@
|
|
|
lim:this.table.packageSize //限制获取几页
|
|
|
}
|
|
|
// return 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];
|
|
@@ -461,6 +461,7 @@
|
|
|
a.department=data[2];
|
|
|
a.sort=data[3];
|
|
|
a.person=data[4];
|
|
|
+ this.table.total=data[5][0].total
|
|
|
},err=>{
|
|
|
console.log(err);
|
|
|
})
|
|
@@ -498,7 +499,7 @@
|
|
|
handleCurrentChange(val) { //当页数发生改变的时候调用获取列表数据请求
|
|
|
// console.log(`当前页: ${val}`);
|
|
|
this.table.currentPage=val
|
|
|
- this.getCourseManagement()
|
|
|
+ this.getData()
|
|
|
},
|
|
|
},
|
|
|
watch:{ //监视选择框的变化,实施刷新表格数据
|