|
@@ -235,6 +235,7 @@
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
@click="lookDetail(scope.row.courseId, scope.row.typeid)"
|
|
|
+ class="btnClass"
|
|
|
>查看详情</el-button
|
|
|
>
|
|
|
|
|
@@ -242,81 +243,98 @@
|
|
|
type="primary"
|
|
|
v-if="scope.row.isupload == 0"
|
|
|
@click="audit(scope.row, 0)"
|
|
|
+ class="btnClass"
|
|
|
>提交</el-button
|
|
|
>
|
|
|
<!--0申请人审核 -->
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
v-if="scope.row.isupload == 1"
|
|
|
- class="disa"
|
|
|
+ class="disa btnClass"
|
|
|
>已提交</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
- v-if="scope.row.isupload == 2&& $store.state.userInfo.type!=0"
|
|
|
- class="disa"
|
|
|
+ v-if="
|
|
|
+ scope.row.isupload == 2 && $store.state.userInfo.type != 0
|
|
|
+ "
|
|
|
+ class="disa btnClass"
|
|
|
size="mini"
|
|
|
>已审核</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
- v-if="scope.row.isupload == 3&& $store.state.userInfo.type!=0"
|
|
|
- class="disa"
|
|
|
+ v-if="
|
|
|
+ scope.row.isupload == 3 && $store.state.userInfo.type != 0
|
|
|
+ "
|
|
|
+ class="disa btnClass"
|
|
|
size="mini"
|
|
|
>待结项</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
- v-if="scope.row.isupload == 4&& $store.state.userInfo.type!=0"
|
|
|
- class="disa"
|
|
|
+ v-if="
|
|
|
+ scope.row.isupload == 4 && $store.state.userInfo.type != 0
|
|
|
+ "
|
|
|
+ class="disa btnClass"
|
|
|
size="mini"
|
|
|
>已结项</el-button
|
|
|
>
|
|
|
|
|
|
<!--1管理员审核 -->
|
|
|
<el-button
|
|
|
- v-if="scope.row.isupload == 0&& $store.state.userInfo.type==0"
|
|
|
+ v-if="
|
|
|
+ scope.row.isupload == 0 && $store.state.userInfo.type == 0
|
|
|
+ "
|
|
|
type="primary"
|
|
|
- class="disa"
|
|
|
+ class="disa btnClass"
|
|
|
size="mini"
|
|
|
>审核</el-button
|
|
|
>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<el-button
|
|
|
- v-if="scope.row.isupload == 1 && $store.state.userInfo.type==0"
|
|
|
+ v-if="
|
|
|
+ scope.row.isupload == 1 && $store.state.userInfo.type == 0
|
|
|
+ "
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
+ class="btnClass"
|
|
|
@click="audit(scope.row, 1)"
|
|
|
>审核</el-button
|
|
|
>
|
|
|
|
|
|
<el-button
|
|
|
- v-if="scope.row.isupload == 2 && $store.state.userInfo.type==0"
|
|
|
+ v-if="
|
|
|
+ scope.row.isupload == 2 && $store.state.userInfo.type == 0
|
|
|
+ "
|
|
|
type="primary"
|
|
|
- class="disa"
|
|
|
+ class="disa btnClass"
|
|
|
size="mini"
|
|
|
>已审核</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
- v-if="scope.row.isupload == 3 && $store.state.userInfo.type==0"
|
|
|
+ v-if="
|
|
|
+ scope.row.isupload == 3 && $store.state.userInfo.type == 0
|
|
|
+ "
|
|
|
type="primary"
|
|
|
- class="disa"
|
|
|
+ class="disa btnClass"
|
|
|
size="mini"
|
|
|
>待结项</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
- v-if="scope.row.isupload == 4 && $store.state.userInfo.type==0"
|
|
|
+ v-if="
|
|
|
+ scope.row.isupload == 4 && $store.state.userInfo.type == 0
|
|
|
+ "
|
|
|
type="primary"
|
|
|
- class="disa"
|
|
|
+ class="disa btnClass"
|
|
|
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="del(scope.row)">删除</el-button
|
|
|
+ <el-button type="primary" class="btnClass" size="mini" @click="del(scope.row)"
|
|
|
+ >删除</el-button
|
|
|
>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -729,26 +747,26 @@ export default {
|
|
|
dialogDel() {
|
|
|
//确定删除这个项目
|
|
|
// if (this.iid.userid == this.$store.state.userInfo.userid) {
|
|
|
- let param = {
|
|
|
- uid: this.$store.state.userInfo.userid,
|
|
|
- pid: this.iid.courseId,
|
|
|
- };
|
|
|
- this.ajax.post(this.$store.state.api + "/DeleteProject", param).then(
|
|
|
- (res) => {
|
|
|
- console.log(res);
|
|
|
- if (res.data) {
|
|
|
- this.$message.success("删除成功");
|
|
|
- this.getData();
|
|
|
- this.dialogVisible2 = false;
|
|
|
- return;
|
|
|
- } else {
|
|
|
- this.$message.error("删除失败");
|
|
|
- }
|
|
|
- },
|
|
|
- (err) => {
|
|
|
- console.log(err);
|
|
|
+ let param = {
|
|
|
+ uid: this.$store.state.userInfo.userid,
|
|
|
+ pid: this.iid.courseId,
|
|
|
+ };
|
|
|
+ this.ajax.post(this.$store.state.api + "/DeleteProject", param).then(
|
|
|
+ (res) => {
|
|
|
+ console.log(res);
|
|
|
+ if (res.data) {
|
|
|
+ this.$message.success("删除成功");
|
|
|
+ this.getData();
|
|
|
+ this.dialogVisible2 = false;
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ this.$message.error("删除失败");
|
|
|
}
|
|
|
- );
|
|
|
+ },
|
|
|
+ (err) => {
|
|
|
+ console.log(err);
|
|
|
+ }
|
|
|
+ );
|
|
|
// }
|
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
@@ -783,7 +801,6 @@ export default {
|
|
|
this.getData(); //获取表格数据
|
|
|
// this.getUser();
|
|
|
// console.log(this.$store.state.userInfo.type);
|
|
|
-
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -793,5 +810,11 @@ export default {
|
|
|
// .el-table::before{
|
|
|
// height: 0;
|
|
|
// }
|
|
|
+
|
|
|
+ .btnClass{
|
|
|
+ width: 70px !important;
|
|
|
+ max-width: 70px;
|
|
|
+ min-width: 70px;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|