提交 f61349eb 编写于 作者: 符英鹏's avatar 符英鹏 🏀

学年修改

上级 842828da
流水线 #7795 已通过 ,包含阶段
in 1 minute 和 30 second
无法预览此类型文件
.title[data-v-445e6c92]{text-align:center}.row-title[data-v-445e6c92]{display:flex;margin-bottom:20px}.add-btn[data-v-445e6c92]{display:flex;justify-content:center}[data-v-445e6c92] .ivu-tag-text{font-size:16px}
\ No newline at end of file
.title[data-v-0f78939e]{text-align:center}.row-title[data-v-0f78939e]{display:flex;margin-bottom:20px}.add-btn[data-v-0f78939e]{display:flex;justify-content:center}[data-v-0f78939e] .ivu-tag-text{font-size:16px}
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>iView Admin Pro</title><link href=css/app.5ea00409.css rel=stylesheet></head><body><noscript><strong>请开启 JavaScript 功能来使用 iView Admin Pro。</strong></noscript><div id=app></div><script src=js/chunk-vendors.35c4ce0a.js></script><script src=js/app.08183568.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>iView Admin Pro</title><link href=css/app.5ea00409.css rel=stylesheet></head><body><noscript><strong>请开启 JavaScript 功能来使用 iView Admin Pro。</strong></noscript><div id=app></div><script src=js/chunk-vendors.35c4ce0a.js></script><script src=js/app.b1349c80.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-03460c75"],{"736d":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{attrs:{bordered:!1}},[a("Select",{staticStyle:{width:"200px","margin-right":"15px"},model:{value:t.selectYear,callback:function(e){t.selectYear=e},expression:"selectYear"}},t._l(t.yearList,(function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1),a("Button",{staticStyle:{"margin-right":"15px"},attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),a("Dropdown",{staticStyle:{"margin-left":"20px"}},[a("Button",{attrs:{type:"primary"}},[t._v("\n 奖学金申请\n "),a("Icon",{attrs:{type:"ios-arrow-down"}})],1),a("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[a("DropdownItem",{attrs:{disabled:-1==t.projectList.indexOf("国家奖学金")},nativeOn:{click:function(e){return t.handleAdd("国家奖学金")}}},[t._v("国家奖学金")]),a("DropdownItem",{attrs:{disabled:-1==t.projectList.indexOf("国家励志奖学金")},nativeOn:{click:function(e){return t.handleAdd("国家励志奖学金")}}},[t._v("国家励志奖学金")])],1)],1),a("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableData,loading:t.loading},scopedSlots:t._u([{key:"applyforStatus",fn:function(e){var n=e.row;return["审核中"==n.applyforStatus?a("Tag",{attrs:{color:"warning"}},[t._v("审核中")]):t._e(),"已审核"==n.applyforStatus?a("Tag",{attrs:{color:"success"}},[t._v("已审核")]):t._e(),"已拒绝"==n.applyforStatus?a("Tag",{attrs:{color:"error"}},[t._v("已拒绝")]):t._e()]}},{key:"action",fn:function(e){var n=e.row;return[a("div",{on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[a("a",{attrs:{type:"text"},on:{click:function(e){return t.handleCheck(n.id)}}},[t._v("查看详情")])])]}}])}),a("Page",{staticClass:"ivu-mt",attrs:{total:t.total,"show-total":"","show-elevator":"","show-sizer":"","class-name":"pagenation",current:t.pageIndex,"page-size":t.pageSize,"page-size-opts":[10,20,50]},on:{"on-change":t.handleCurrentChange,"on-page-size-change":t.handleSizeChange}})],1)],1)},r=[],o=a("c9ee"),i={data:function(){return{columns:[],tableData:[],totalData:[],loading:!1,yearList:[],selectYear:"",projectList:[],selectPro:"",total:0,pageIndex:1,pageSize:10}},created:function(){this.GetCanApplyForItemByNowYear(),this.StudentGetAllApplyForYear()},methods:{GetCanApplyForItemByNowYear:function(){var t=this;o["a"]().then((function(e){t.projectList=e}))},getData:function(){var t=this,e={year:this.selectYear};this.loading=!0,o["h"](e).then((function(e){t.loading=!1,t.columns.length<=0&&(t.columns=[{type:"index",width:80,align:"center",title:"序号"}],Object.assign(t.columns,e.titlelist),t.columns.push({title:"操作",slot:"action"})),t.totalData=e.tableData,t.total=e.tableData.length,t.setCurrentPageData()}))},StudentGetAllApplyForYear:function(){var t=this;o["f"]().then((function(e){e.length>0&&(t.selectYear=e[0]),e.map((function(e){t.yearList.push({label:e,value:e})})),t.getData()}))},handleCurrentChange:function(t){this.pageIndex=t,this.setCurrentPageData()},handleSizeChange:function(t){this.pageSize=t,this.setCurrentPageData()},setCurrentPageData:function(t){var e=t||this.totalData,a=(this.pageIndex-1)*this.pageSize,n=this.pageIndex*this.pageSize;this.tableData=e.slice(a,n)},handleAdd:function(t){"国家奖学金"==t&&-1==this.projectList.indexOf("国家奖学金")||"国家励志奖学金"==t&&-1==this.projectList.indexOf("国家励志奖学金")||(window.sessionStorage.setItem("project",t),this.$router.push("/applyform"))},handleCheck:function(t){this.$router.push({name:"detail",params:{id:t}})}}},l=i,s=a("4ac2"),u=Object(s["a"])(l,n,r,!1,null,"91d42cc8",null);e["default"]=u.exports},c9ee:function(t,e,a){"use strict";a.d(e,"d",(function(){return r})),a.d(e,"a",(function(){return o})),a.d(e,"c",(function(){return i})),a.d(e,"h",(function(){return l})),a.d(e,"g",(function(){return s})),a.d(e,"f",(function(){return u})),a.d(e,"e",(function(){return c})),a.d(e,"b",(function(){return p}));var n=a("b6bd");function r(t){return Object(n["a"])({url:"/api/ApplyFor/GetStudentInfoByCard",method:"get",params:t})}function o(t){return Object(n["a"])({url:"/api/ApplyFor/GetCanApplyForItemByNowYear",method:"get",params:t})}function i(t){return Object(n["a"])({url:"/api/ApplyFor/GetScoreInfoByCardAndYear",method:"get",params:t})}function l(t){return Object(n["a"])({url:"/api/ApplyFor/StudentGetApplyForListByYear",method:"get",params:t})}function s(t){return Object(n["a"])({url:"/api/ApplyFor/StudentGetApplyForInfoByID",method:"get",params:t})}function u(t){return Object(n["a"])({url:"/api/ApplyFor/StudentGetAllApplyForYear",method:"get",params:t})}function c(t){return Object(n["a"])({url:"/api/ApplyFor/StudentApplyForSchoolShip",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/api/ApplyFor/GetColumnInfoByItemName",method:"get",params:t})}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-03460c75"],{"736d":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{attrs:{bordered:!1}},[a("Select",{staticStyle:{width:"200px","margin-right":"15px"},model:{value:t.selectYear,callback:function(e){t.selectYear=e},expression:"selectYear"}},t._l(t.yearList,(function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1),a("Button",{staticStyle:{"margin-right":"15px"},attrs:{type:"primary"},on:{click:t.getData}},[t._v("查询")]),a("Dropdown",{staticStyle:{"margin-left":"20px"}},[a("Button",{attrs:{type:"primary"}},[t._v("\n 奖学金申请\n "),a("Icon",{attrs:{type:"ios-arrow-down"}})],1),a("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[a("DropdownItem",{attrs:{disabled:-1==t.projectList.indexOf("国家奖学金")},nativeOn:{click:function(e){return t.handleAdd("国家奖学金")}}},[t._v("国家奖学金")]),a("DropdownItem",{attrs:{disabled:-1==t.projectList.indexOf("国家励志奖学金")},nativeOn:{click:function(e){return t.handleAdd("国家励志奖学金")}}},[t._v("国家励志奖学金")])],1)],1),a("Table",{ref:"table",staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableData,loading:t.loading},scopedSlots:t._u([{key:"applyforStatus",fn:function(e){var n=e.row;return["审核中"==n.applyforStatus?a("Tag",{attrs:{color:"warning"}},[t._v("审核中")]):t._e(),"已审核"==n.applyforStatus?a("Tag",{attrs:{color:"success"}},[t._v("已审核")]):t._e(),"已拒绝"==n.applyforStatus?a("Tag",{attrs:{color:"error"}},[t._v("已拒绝")]):t._e()]}},{key:"action",fn:function(e){var n=e.row;return[a("div",{on:{click:function(t){t.stopPropagation(),t.preventDefault()}}},[a("a",{attrs:{type:"text"},on:{click:function(e){return t.handleCheck(n.id)}}},[t._v("查看详情")])])]}}])}),a("Page",{staticClass:"ivu-mt",attrs:{total:t.total,"show-total":"","show-elevator":"","show-sizer":"","class-name":"pagenation",current:t.pageIndex,"page-size":t.pageSize,"page-size-opts":[10,20,50]},on:{"on-change":t.handleCurrentChange,"on-page-size-change":t.handleSizeChange}})],1)],1)},r=[],o=a("c9ee"),i={data:function(){return{columns:[],tableData:[],totalData:[],loading:!1,yearList:[],selectYear:"",projectList:[],selectPro:"",total:0,pageIndex:1,pageSize:10}},created:function(){this.GetCanApplyForItemByNowYear(),this.StudentGetAllApplyForYear()},methods:{GetCanApplyForItemByNowYear:function(){var t=this;o["a"]().then((function(e){t.projectList=e}))},getData:function(){var t=this,e={year:this.selectYear};this.loading=!0,o["i"](e).then((function(e){t.loading=!1,t.columns.length<=0&&(t.columns=[{type:"index",width:80,align:"center",title:"序号"}],Object.assign(t.columns,e.titlelist),t.columns.push({title:"操作",slot:"action"})),t.totalData=e.tableData,t.total=e.tableData.length,t.setCurrentPageData()}))},StudentGetAllApplyForYear:function(){var t=this;o["g"]().then((function(e){e.length>0&&(t.selectYear=e[0]),e.map((function(e){t.yearList.push({label:e,value:e})})),t.getData()}))},handleCurrentChange:function(t){this.pageIndex=t,this.setCurrentPageData()},handleSizeChange:function(t){this.pageSize=t,this.setCurrentPageData()},setCurrentPageData:function(t){var e=t||this.totalData,a=(this.pageIndex-1)*this.pageSize,n=this.pageIndex*this.pageSize;this.tableData=e.slice(a,n)},handleAdd:function(t){"国家奖学金"==t&&-1==this.projectList.indexOf("国家奖学金")||"国家励志奖学金"==t&&-1==this.projectList.indexOf("国家励志奖学金")||(window.sessionStorage.setItem("project",t),this.$router.push("/applyform"))},handleCheck:function(t){this.$router.push({name:"detail",params:{id:t}})}}},l=i,s=a("4ac2"),u=Object(s["a"])(l,n,r,!1,null,"91d42cc8",null);e["default"]=u.exports},c9ee:function(t,e,a){"use strict";a.d(e,"e",(function(){return r})),a.d(e,"a",(function(){return o})),a.d(e,"d",(function(){return i})),a.d(e,"i",(function(){return l})),a.d(e,"h",(function(){return s})),a.d(e,"g",(function(){return u})),a.d(e,"f",(function(){return c})),a.d(e,"b",(function(){return p})),a.d(e,"c",(function(){return d}));var n=a("b6bd");function r(t){return Object(n["a"])({url:"/api/ApplyFor/GetStudentInfoByCard",method:"get",params:t})}function o(t){return Object(n["a"])({url:"/api/ApplyFor/GetCanApplyForItemByNowYear",method:"get",params:t})}function i(t){return Object(n["a"])({url:"/api/ApplyFor/GetScoreInfoByCardAndYear",method:"get",params:t})}function l(t){return Object(n["a"])({url:"/api/ApplyFor/StudentGetApplyForListByYear",method:"get",params:t})}function s(t){return Object(n["a"])({url:"/api/ApplyFor/StudentGetApplyForInfoByID",method:"get",params:t})}function u(t){return Object(n["a"])({url:"/api/ApplyFor/StudentGetAllApplyForYear",method:"get",params:t})}function c(t){return Object(n["a"])({url:"/api/ApplyFor/StudentApplyForSchoolShip",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/api/ApplyFor/GetColumnInfoByItemName",method:"get",params:t})}function d(t){return Object(n["a"])({url:"/api/ApplyFor/GetNowSchoolYear",method:"get",params:t})}}}]);
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
......@@ -66,3 +66,11 @@ export function GetColumnInfoByItemName(data) {
params: data
});
}
// 获取现在的学年信息
export function GetNowSchoolYear(data) {
return request({
url: '/api/ApplyFor/GetNowSchoolYear',
method: 'get',
params: data
});
}
<template>
<div>
<Spin size="large" fix v-if="loading"></Spin>
<h2 class="title">{{ currentYear }}学年{{ projectName }}申请自评表</h2>
<h2 class="title">{{schoolYearName}}{{ projectName }}申请自评表</h2>
<Row :gutter="20" type="flex" justify="center" class="ivu-mt">
<Col :span="5">学院:{{ baseInfo.部门名称 }}</Col>
<Col :span="5">专业:{{ baseInfo.专业名称 }}</Col>
......@@ -289,6 +289,8 @@ export default {
],
},
projectName: "",
schoolYearName:'',
schoolYear:'',
};
},
computed: {
......@@ -296,12 +298,23 @@ export default {
},
created() {
this.projectName = window.sessionStorage.getItem("project");
this.GetScoreInfoByCardAndYear();
this.GetNowSchoolYear();
// this.GetScoreInfoByCardAndYear();
this.GetStudentInfoByCard();
this.GetColumnInfoByItemName();
},
methods: {
//获取现在的学年信息
GetNowSchoolYear(){
api.GetNowSchoolYear().then(resp => {
// console.log(resp)
this.schoolYearName = resp.schoolYearName;
this.schoolYear = resp.schoolYear;
this.GetScoreInfoByCardAndYear();
})
},
// 获取学生基本信息
GetStudentInfoByCard() {
const params = {
......@@ -315,7 +328,7 @@ export default {
GetScoreInfoByCardAndYear() {
const params = {
userCard: this.info.card,
year: String(new Date().getFullYear() - 1),
year: this.schoolYear,
};
api.GetScoreInfoByCardAndYear(params).then((resp) => {
this.majorMaxScoreSum = resp.majorMaxScoreSum;
......@@ -403,7 +416,7 @@ export default {
scoresumYear: this.myScoreSum,
scoremaxsumYearMajor: this.majorMaxScoreSum,
applyforItem: window.sessionStorage.getItem("project"),
applyforYear: String(new Date().getFullYear() - 1),
applyforYear: this.schoolYear,
grade: this.baseInfo.年级,
studyScore: this.studyScore,
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或