feat(待办列表): 添加国家励志奖学金审核和学生返校审核选项

在jwc-undo.vue、fdy-undo.vue和xw-undo.vue组件中新增了国家励志奖学金审核和学生返校审核的待办事项,以满足不同角色的审核需求
This commit is contained in:
2025-08-17 22:35:35 +08:00
parent 8106d07ac3
commit 958a5a4078
3 changed files with 166 additions and 135 deletions

View File

@@ -86,6 +86,19 @@ export default {
value: 0, value: 0,
url: "/survey/leave/fdy" url: "/survey/leave/fdy"
}, },
{
// 宁博
label: "辅导员·学生返校审核",
name: "return",
value: 0,
url: "/survey/return/fdy"
},
{
label: "辅导员·国家励志奖学金审核",
name: "knzzgl",
value: 0,
url: "/hard/gl/fdy"
}
], ],

View File

@@ -80,6 +80,13 @@ export default {
value: 0, value: 0,
url: "hard/tufa/xg" url: "hard/tufa/xg"
}, },
// 宁博
{
label: "学工·国家励志奖学金审核",
name: "knzzgl",
value: 0,
url: "/hard/gl/xg"
}
] ]
} }

View File

@@ -1,13 +1,22 @@
<template> <template>
<div> <div>
<div class="six-action-container"> <div class="six-action-container">
<div style="padding: 1rem;" class="six-action-item" v-for="(v, i) in taskList" :key="i"> <div
<div class="bubble" style="padding: 1rem"
:style="{ backgroundImage: `url(${require('@/assets/index_bg/' + (i + 1) + '.png')})` }"> class="six-action-item"
v-for="(v, i) in taskList"
:key="i"
>
<div
class="bubble"
:style="{
backgroundImage: `url(${require('@/assets/index_bg/' +
(i + 1) +
'.png')})`,
}"
>
<div class="act-text"> <div class="act-text">
<div class="title"> <div class="title">{{ v.label }}·待办</div>
{{ v.label }}·待办
</div>
<div class="todo"> <div class="todo">
{{ v.value }} {{ v.value }}
</div> </div>
@@ -20,7 +29,6 @@
</template> </template>
<script> <script>
import { countXwUnDo as countUndo } from "@/api/stuCQS/good/apply"; import { countXwUnDo as countUndo } from "@/api/stuCQS/good/apply";
import { isEmpty } from "@/api/helpFunc"; import { isEmpty } from "@/api/helpFunc";
import { checkPermi } from "@/utils/permission"; import { checkPermi } from "@/utils/permission";
@@ -28,7 +36,7 @@ export default {
name: "xw-undo", name: "xw-undo",
data() { data() {
return { return {
hasPrem:false, hasPrem: false,
taskList: [ taskList: [
{ {
@@ -78,15 +86,20 @@ export default {
label: "学务·困难资助审核", label: "学务·困难资助审核",
name: "knzz", name: "knzz",
value: 0, value: 0,
url: "hard/tufa/xw" url: "hard/tufa/xw",
},
// 宁博
{
label: "学务·国家励志奖学金审核",
name: "knzzgl",
value: 0,
url: "/hard/gl/xw",
}, },
], ],
};
}
}, },
created() { created() {
if (checkPermi(['home:xw:undo1'])) { if (checkPermi(["home:xw:undo1"])) {
this.countUndo(); this.countUndo();
this.hasPrem = true; this.hasPrem = true;
} }
@@ -96,8 +109,8 @@ export default {
let res = await countUndo(); let res = await countUndo();
if (res.code == 200) { if (res.code == 200) {
let data = [...res.data]; let data = [...res.data];
this.taskList.map(x => { this.taskList.map((x) => {
let temp = data.filter(y => y.startsWith(x.name)); let temp = data.filter((y) => y.startsWith(x.name));
if (!isEmpty(temp)) { if (!isEmpty(temp)) {
let result = temp[0].split("-")[1]; let result = temp[0].split("-")[1];
x.value = result; x.value = result;
@@ -111,9 +124,8 @@ export default {
this.$router.push(url); this.$router.push(url);
} }
}, },
} },
};
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@@ -143,7 +155,6 @@ export default {
z-index: 2; z-index: 2;
margin: 1rem; margin: 1rem;
.title { .title {
text-align: left; text-align: left;
font-size: 1.25rem; font-size: 1.25rem;