|
@@ -87,11 +87,12 @@
|
|
|
@change="getData"
|
|
|
placeholder="请选择"
|
|
|
>
|
|
|
+ <el-option label="所有状态" value=""/>
|
|
|
<el-option
|
|
|
- v-for="item in options.state"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
+ v-for="(value,key,index) in classType"
|
|
|
+ :key="index"
|
|
|
+ :label="value"
|
|
|
+ :value="key"
|
|
|
>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -232,9 +233,11 @@
|
|
|
>
|
|
|
<template #default="scope">
|
|
|
<div>
|
|
|
+ <!-- {{ scope.row.isupload+"-"+scope.row.isReturn }} -->
|
|
|
+ <span v-if="scope.row.isReturn!=0">{{ isReturnType[scope.row.isReturn] }}</span>
|
|
|
<!-- {{scope.row.name + (scope.row.status==0?"":"(已屏蔽)")}} -->
|
|
|
<!-- {{ (scope.row.isupload==0?"未审核": scope.row.data==1?"正在审核":"已审核") }} -->
|
|
|
- <span>{{ classType[scope.row.isupload] }}</span>
|
|
|
+ <span v-else>{{ classType[scope.row.isupload] }}</span>
|
|
|
|
|
|
<!-- <span v-if="scope.row.isupload == 0">未审核</span>
|
|
|
<span v-if="scope.row.isupload == 1">审核中</span>
|
|
@@ -278,25 +281,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
v-if="
|
|
|
- scope.row.isupload == 2 && $store.state.userInfo.type != 0 && $store.state.userInfo.type != 3
|
|
|
- "
|
|
|
- class="disa btnClass"
|
|
|
- size="mini"
|
|
|
- >审核中</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- v-if="
|
|
|
- scope.row.isupload == 3 && $store.state.userInfo.type != 0 && $store.state.userInfo.type != 3
|
|
|
- "
|
|
|
- class="disa btnClass"
|
|
|
- size="mini"
|
|
|
- >审核中</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- v-if="
|
|
|
- scope.row.isupload == 4 && $store.state.userInfo.type != 0 && $store.state.userInfo.type != 3
|
|
|
+ [5,6,7].includes(scope.row.isupload) && $store.state.userInfo.type != 0 && $store.state.userInfo.type != 3
|
|
|
"
|
|
|
class="disa btnClass"
|
|
|
size="mini"
|
|
@@ -305,7 +290,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
v-if="
|
|
|
- scope.row.isupload == 5 && $store.state.userInfo.type != 0 && $store.state.userInfo.type != 3
|
|
|
+ scope.row.isupload == 2 && $store.state.userInfo.type != 0 && $store.state.userInfo.type != 3
|
|
|
"
|
|
|
class="disa btnClass"
|
|
|
size="mini"
|
|
@@ -336,25 +321,7 @@
|
|
|
|
|
|
<el-button
|
|
|
v-if="
|
|
|
- scope.row.isupload == 2 && ($store.state.userInfo.type == 0 || $store.state.userInfo.type == 3)
|
|
|
- "
|
|
|
- type="primary"
|
|
|
- class="disa btnClass"
|
|
|
- size="mini"
|
|
|
- >已通过</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- v-if="
|
|
|
- scope.row.isupload == 3 && ($store.state.userInfo.type == 0 || $store.state.userInfo.type == 3)
|
|
|
- "
|
|
|
- type="primary"
|
|
|
- class="disa btnClass"
|
|
|
- size="mini"
|
|
|
- >审核中</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- v-if="
|
|
|
- scope.row.isupload == 4 && ($store.state.userInfo.type == 0 || $store.state.userInfo.type == 3)
|
|
|
+ [5,6,7].includes(scope.row.isupload) && ($store.state.userInfo.type == 0 || $store.state.userInfo.type == 3)
|
|
|
"
|
|
|
type="primary"
|
|
|
class="disa btnClass"
|
|
@@ -363,7 +330,7 @@
|
|
|
>
|
|
|
<el-button
|
|
|
v-if="
|
|
|
- scope.row.isupload == 5 && ($store.state.userInfo.type == 0 || $store.state.userInfo.type == 3)
|
|
|
+ scope.row.isupload == 2 && ($store.state.userInfo.type == 0 || $store.state.userInfo.type == 3)
|
|
|
"
|
|
|
type="primary"
|
|
|
class="disa btnClass"
|
|
@@ -541,10 +508,17 @@ export default {
|
|
|
classType:{
|
|
|
"0":'未提交',
|
|
|
'1':"已提交",
|
|
|
- '2':"所在学院/部门审核中",
|
|
|
- '3':"创新创业学院审核中",
|
|
|
- '4':'学校终审中',
|
|
|
- '5':'待结项'
|
|
|
+ '5':'所在学院/部门审核中',
|
|
|
+ '6':'创新创业学院审核中',
|
|
|
+ '7':'学校终审中',
|
|
|
+ '2':"待结项",
|
|
|
+ '3':"提交结项中",
|
|
|
+ '4':'已结项',
|
|
|
+ },
|
|
|
+ isReturnType:{
|
|
|
+ '5':'所在学院/部门审核驳回',
|
|
|
+ '6':'创新创业学院审核驳回',
|
|
|
+ '7':'学校终审驳回',
|
|
|
},
|
|
|
|
|
|
selectInp: {
|
|
@@ -701,7 +675,7 @@ export default {
|
|
|
let param = {
|
|
|
uid: this.$store.state.userInfo.userid,
|
|
|
pid: this.iid.courseId,
|
|
|
- num: 2,
|
|
|
+ num: 5,
|
|
|
};
|
|
|
this.ajax
|
|
|
// .post(this.$store.state.api+"/ApproveProject",param)
|
|
@@ -808,6 +782,7 @@ export default {
|
|
|
// this.$router.push('/projectApplicationApplyMain')
|
|
|
// },
|
|
|
getData() {
|
|
|
+ if(this.loading)return;
|
|
|
//获取表格数据
|
|
|
this.loading = true;
|
|
|
let param = {
|
|
@@ -824,12 +799,14 @@ export default {
|
|
|
};
|
|
|
// return console.log(param);
|
|
|
// console.log(param)
|
|
|
+ this.tableData = [];
|
|
|
this.ajax.get(this.$store.state.api + "/SelectAllProject", param).then(
|
|
|
(res) => {
|
|
|
let data = res.data;
|
|
|
console.log(data);
|
|
|
if (data[0].length == 0 && data[5][0]["total"] != 0) {
|
|
|
this.table.currentPage = 1;
|
|
|
+ this.loading =false;
|
|
|
return this.getData();
|
|
|
}
|
|
|
let a = this.options;
|
|
@@ -985,10 +962,13 @@ export default {
|
|
|
// 默认选择当前年份
|
|
|
this.selectInp.year = new Date().getFullYear().toString();
|
|
|
//跳转到此页面立刻获取数据
|
|
|
- this.getData(); //获取表格数据
|
|
|
+ // this.getData(); //获取表格数据
|
|
|
// this.getUser();
|
|
|
// console.log(this.$store.state.userInfo.type);
|
|
|
},
|
|
|
+ activated(){
|
|
|
+ this.getData()
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|