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

feat:'奖学金申请可切换学年,根据学年更新绩点信息'

上级 19b9c604
流水线 #7806 已通过 ,包含阶段
in 1 minute 和 35 second
.title[data-v-6acfae1d]{text-align:center;display:flex;justify-content:center;align-items:center}.row-title[data-v-6acfae1d]{display:flex;margin-bottom:20px}.add-btn[data-v-6acfae1d]{display:flex;justify-content:center}[data-v-6acfae1d] .ivu-tag-text{font-size:16px}
\ No newline at end of file
.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
<!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.4fc184b4.js></script><script src=js/app.4ffaa01d.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.38322bdc.js></script></body></html>
\ No newline at end of file
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d5ffb27"],{"5dc3":function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},"731a":function(e,t,r){},a83a:function(e,t,r){var o=r("9cff"),n=r("e0ff").set;e.exports=function(e,t,r){var a,i=t.constructor;return i!==r&&"function"==typeof i&&(a=i.prototype)!==r.prototype&&o(a)&&n&&n(e,a),e}},b0d5:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.loading?r("Spin",{attrs:{size:"large",fix:""}}):e._e(),r("h2",{staticClass:"title"},[r("Select",{staticStyle:{width:"200px","margin-right":"5px"},on:{"on-change":e.schoolYearChange},model:{value:e.schoolYear,callback:function(t){e.schoolYear=t},expression:"schoolYear"}},e._l(e.yearList,(function(t,o){return r("Option",{key:o,attrs:{value:t.schoolYear}},[e._v(e._s(t.schoolYearName))])})),1),e._v("\n "+e._s(e.projectName)+"申请自评表\n ")],1),r("Row",{staticClass:"ivu-mt",attrs:{gutter:20,type:"flex",justify:"center"}},[r("Col",{attrs:{span:5}},[e._v("学院:"+e._s(e.baseInfo.部门名称))]),r("Col",{attrs:{span:5}},[e._v("专业:"+e._s(e.baseInfo.专业名称))]),r("Col",{attrs:{span:5}},[e._v("班级:"+e._s(e.baseInfo.行政班名称))]),r("Col",{attrs:{span:5}},[e._v("姓名:"+e._s(e.baseInfo.姓名))])],1),r("Form",{ref:"form",staticClass:"ivu-mt",staticStyle:{padding:"0 5%"},attrs:{model:e.formData,rules:e.ruleValidate,"label-width":80,"label-position":"left"}},[r("Card",{staticClass:"ivu-mt form-card",attrs:{bordered:!1,"dis-hover":""}},[r("h3",{attrs:{slot:"title"},slot:"title"},[e._v("学习成绩")]),r("DescriptionList",{attrs:{col:2}},[r("Description",{attrs:{term:"年度学分绩点和:"}},[e._v(e._s(e.myScoreSum))]),r("Description",{attrs:{term:"专业年级年度最高学分绩点和:"}},[e._v(e._s(e.majorMaxScoreSum))]),r("Description",{attrs:{term:"学习成绩评分:"}},[e._v(e._s(e.studyScore))])],1)],1),r("Card",{staticClass:"ivu-mt form-card",attrs:{bordered:!1,"dis-hover":""}},[r("h3",{attrs:{slot:"title"},slot:"title"},[e._v("创新能力")]),r("div",{directives:[{name:"font",rawName:"v-font",value:16,expression:"16"}],staticClass:"row-title"},[r("div",{staticStyle:{width:"80px"}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("序号")])],1),r("Row",{staticStyle:{"text-align":"left",flex:"1"},attrs:{gutter:20}},[r("Col",{attrs:{span:13}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("加分项目(学生竞赛获奖、发表论文及发明专利)")])],1),r("Col",{attrs:{span:8,offset:"1"}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("单项得分")])],1)],1)],1),e._l(e.formFileds.innovation,(function(t,o){return r("FormItem",{key:o,attrs:{label:t.index}},[r("Row",{attrs:{gutter:20}},[r("Col",{attrs:{span:13}},[r("Input",{attrs:{type:"text",placeholder:"请输入"},model:{value:t.value,callback:function(r){e.$set(t,"value",r)},expression:"item.value"}})],1),r("Col",{attrs:{span:8,offset:"1"}},[r("Cascader",{attrs:{data:e.innovationTree},on:{"on-change":function(t,r){e.handleinnovationChange(t,r,o)}},model:{value:t.name,callback:function(r){e.$set(t,"name",r)},expression:"item.name"}})],1),r("Col",{attrs:{span:2}},[r("Button",{attrs:{type:"error",shape:"circle",icon:"md-close"},on:{click:function(t){return e.handleInnovationRemove(o)}}})],1)],1)],1)})),r("div",{staticClass:"add-btn"},[r("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(t){return e.handleAdd("innovation")}}},[e._v("\n 新增项目\n ")])],1)],2),r("Card",{staticClass:"ivu-mt form-card",attrs:{bordered:!1,"dis-hover":""}},[r("h3",{attrs:{slot:"title"},slot:"title"},[e._v("社会实践(实践活动与志愿服务分别最高可申请10条)")]),r("div",{directives:[{name:"font",rawName:"v-font",value:16,expression:"16"}],staticClass:"row-title"},[r("div",{staticStyle:{width:"80px"}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("序号")])],1),r("Row",{staticStyle:{"text-align":"left",flex:"1"},attrs:{gutter:20}},[r("Col",{attrs:{span:13}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("加分项目(校内外社会实践及志愿服务)")])],1),r("Col",{attrs:{span:8,offset:"1"}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("单项得分")])],1)],1)],1),e._l(e.formFileds.social,(function(t,o){return r("FormItem",{key:o,attrs:{label:t.index}},[r("Row",{attrs:{gutter:20}},[r("Col",{attrs:{span:13}},[r("Input",{attrs:{type:"text",placeholder:"请输入"},model:{value:t.value,callback:function(r){e.$set(t,"value",r)},expression:"item.value"}})],1),r("Col",{attrs:{span:8,offset:"1"}},[r("Cascader",{attrs:{data:e.praticeTree},on:{"on-change":function(t,r){e.handlesocialChange(t,r,o)}},model:{value:t.name,callback:function(r){e.$set(t,"name",r)},expression:"item.name"}})],1),r("Col",{attrs:{span:2}},[r("Button",{attrs:{type:"error",shape:"circle",icon:"md-close"},on:{click:function(t){return e.handleSocialRemove(o)}}})],1)],1)],1)})),r("div",{staticClass:"add-btn"},[r("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(t){return e.handleAdd("social")}}},[e._v("\n 新增项目\n ")])],1)],2),r("Card",{staticClass:"ivu-mt form-card",attrs:{bordered:!1,"dis-hover":""}},[r("h3",{attrs:{slot:"title"},slot:"title"},[e._v("综合素质")]),r("div",{directives:[{name:"font",rawName:"v-font",value:16,expression:"16"}],staticClass:"row-title"},[r("div",{staticStyle:{width:"80px"}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("序号")])],1),r("Row",{staticStyle:{"text-align":"left",flex:"1"},attrs:{gutter:20}},[r("Col",{attrs:{span:13}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("加分项目(学生获得各级表彰情况)")])],1),r("Col",{attrs:{span:8,offset:"1"}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("单项得分")])],1)],1)],1),e._l(e.formFileds.Comprehensive,(function(t,o){return r("FormItem",{key:o,attrs:{label:t.index}},[r("Row",{attrs:{gutter:20}},[r("Col",{attrs:{span:13}},[r("Input",{attrs:{type:"text",placeholder:"请输入"},model:{value:t.value,callback:function(r){e.$set(t,"value",r)},expression:"item.value"}})],1),r("Col",{attrs:{span:8,offset:"1"}},[r("Cascader",{attrs:{data:e.comprehensiveTree},on:{"on-change":function(t,r){e.handleComprehensiveChange(t,r,o)}},model:{value:t.name,callback:function(r){e.$set(t,"name",r)},expression:"item.name"}})],1),r("Col",{attrs:{span:2}},[r("Button",{attrs:{type:"error",shape:"circle",icon:"md-close"},on:{click:function(t){return e.handleComprehensiveRemove(o)}}})],1)],1)],1)})),r("div",{staticClass:"add-btn"},[r("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(t){return e.handleAdd("Comprehensive")}}},[e._v("\n 新增项目\n ")])],1)],2)],1),r("FooterToolbar",{attrs:{extra:"额外信息"}},[r("Button",{attrs:{type:"primary",size:"large",loading:e.loading},on:{click:e.handleSubmit}},[e._v("提交")])],1)],1)},n=[],a=(r("ac67"),r("1bc7"),r("32ea"),r("a450"),r("e680"),r("55ae")),i=r("c9ee"),s=r("7736");function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){Object(a["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u={data:function(){return{baseInfo:{},formData:{},ruleValidate:{},myScoreSum:"",majorMaxScoreSum:"",studyScore:"",loading:!1,innovationIndex:1,socialIndex:1,comprehensiveIndex:1,innovationTree:[],praticeTree:[],comprehensiveTree:[],formFileds:{innovation:[{value:"",index:"1",score:void 0,name:[]}],social:[{value:"",index:"1",score:void 0,name:[]}],Comprehensive:[{value:"",index:"1",score:void 0,name:[]}]},projectName:"",schoolYearName:"",schoolYear:"",yearList:[]}},computed:l({},Object(s["e"])("admin/user",["info"])),created:function(){this.projectName=window.sessionStorage.getItem("project"),this.GetNowSchoolYear(),this.GetStudentInfoByCard(),this.GetColumnInfoByItemName()},methods:{GetNowSchoolYear:function(){var e=this;i["c"]().then((function(t){console.log(t),t.map((function(t){"YES"==t.isNow&&(e.schoolYear=t.schoolYear)})),e.yearList=t,e.GetScoreInfoByCardAndYear()}))},GetStudentInfoByCard:function(){var e=this,t={userCard:this.info.card};i["e"](t).then((function(t){e.baseInfo=t}))},GetScoreInfoByCardAndYear:function(){var e=this,t={userCard:this.info.card,year:this.schoolYear};i["d"](t).then((function(t){e.majorMaxScoreSum=t.majorMaxScoreSum,e.myScoreSum=t.myScoreSum,e.studyScore=t.studyScore}))},GetColumnInfoByItemName:function(){var e=this;i["b"]().then((function(t){e.innovationTree=t[0].treeModels,e.praticeTree=t[1].treeModels,e.comprehensiveTree=t[2].treeModels}))},handleAdd:function(e){switch(e){case"innovation":this.innovationIndex++,this.formFileds.innovation.push({value:"",index:String(this.innovationIndex),score:void 0,name:[]});break;case"social":this.socialIndex++,this.formFileds.social.push({value:"",index:String(this.socialIndex),score:void 0,name:[]});break;case"Comprehensive":this.comprehensiveIndex++,this.formFileds.Comprehensive.push({value:"",index:String(this.comprehensiveIndex),score:void 0,name:[]});break}},handleSubmit:function(){var e=this,t=[],r=[],o=[];this.formFileds.innovation.map((function(e){t.push({itemName:e.value,sort:Number(e.index),columnId:e.name.join(","),score:e.score})})),this.formFileds.social.map((function(e){console.log(e),r.push({itemName:e.value,sort:Number(e.index),columnId:e.name.join(","),score:e.score})})),this.formFileds.Comprehensive.map((function(e){o.push({itemName:e.value,sort:Number(e.index),columnId:e.name.join(","),score:e.score})}));var n={studentCard:this.baseInfo.学号,studentName:this.baseInfo.姓名,deptId:this.baseInfo.部门id,deptName:this.baseInfo.部门名称,majorId:this.baseInfo.专业id,majorName:this.baseInfo.专业名称,classId:this.baseInfo.行政班id,className:this.baseInfo.行政班名称,scoresumYear:this.myScoreSum,scoremaxsumYearMajor:this.majorMaxScoreSum,applyforItem:window.sessionStorage.getItem("project"),applyforYear:this.schoolYear,grade:this.baseInfo.年级,studyScore:this.studyScore,innovationAbilityTables:t,socialPracticeTables:r,comprehensiveQualityTables:o},a=0,s=0;r.map((function(e){"23"==e.columnId&&(a+=Number(e.score)),"24"==e.columnId&&(s+=Number(e.score))})),a>10?this.$Message.error("实践活动项目最多可申请10条"):s>10?this.$Message.error("志愿服务项目最多可申请10条"):(this.loading=!0,i["f"](n).then((function(t){e.loading=!1,e.$Message.success(t),e.$router.push("/center/mine")})))},handleinnovationChange:function(e,t,r){this.formFileds.innovation[r].score=t[t.length-1].score},handlesocialChange:function(e,t,r){this.formFileds.social[r].score=t[t.length-1].score},handleComprehensiveChange:function(e,t,r){this.formFileds.Comprehensive[r].score=t[t.length-1].score},handleInnovationRemove:function(e){var t=this;this.$Modal.confirm({title:"确定要删除该记录吗?",onOk:function(){t.formFileds.innovation.splice(e,1)}})},handleSocialRemove:function(e){var t=this;this.$Modal.confirm({title:"确定要删除该记录吗?",onOk:function(){t.formFileds.social.splice(e,1)}})},handleComprehensiveRemove:function(e){var t=this;this.$Modal.confirm({title:"确定要删除该记录吗?",onOk:function(){t.formFileds.Comprehensive.splice(e,1)}})},schoolYearChange:function(e){console.log(e),this.GetScoreInfoByCardAndYear()}}},d=u,p=(r("d73c"),r("4ac2")),f=Object(p["a"])(d,o,n,!1,null,"6acfae1d",null);t["default"]=f.exports},c9ee:function(e,t,r){"use strict";r.d(t,"e",(function(){return n})),r.d(t,"a",(function(){return a})),r.d(t,"d",(function(){return i})),r.d(t,"i",(function(){return s})),r.d(t,"h",(function(){return c})),r.d(t,"g",(function(){return l})),r.d(t,"f",(function(){return u})),r.d(t,"b",(function(){return d})),r.d(t,"c",(function(){return p}));var o=r("b6bd");function n(e){return Object(o["a"])({url:"/api/ApplyFor/GetStudentInfoByCard",method:"get",params:e})}function a(e){return Object(o["a"])({url:"/api/ApplyFor/GetCanApplyForItemByNowYear",method:"get",params:e})}function i(e){return Object(o["a"])({url:"/api/ApplyFor/GetScoreInfoByCardAndYear",method:"get",params:e})}function s(e){return Object(o["a"])({url:"/api/ApplyFor/StudentGetApplyForListByYear",method:"get",params:e})}function c(e){return Object(o["a"])({url:"/api/ApplyFor/StudentGetApplyForInfoByID",method:"get",params:e})}function l(e){return Object(o["a"])({url:"/api/ApplyFor/StudentGetAllApplyForYear",method:"get",params:e})}function u(e){return Object(o["a"])({url:"/api/ApplyFor/StudentApplyForSchoolShip",method:"post",data:e})}function d(e){return Object(o["a"])({url:"/api/ApplyFor/GetColumnInfoByItemName",method:"get",params:e})}function p(e){return Object(o["a"])({url:"/api/ApplyFor/GetNowSchoolYear",method:"get",params:e})}},d73c:function(e,t,r){"use strict";r("731a")},e0ff:function(e,t,r){var o=r("9cff"),n=r("a86f"),a=function(e,t){if(n(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=r("1e4d")(Function.call,r("285b").f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(n){t=!0}return function(e,r){return a(e,r),t?e.__proto__=r:o(e,r),e}}({},!1):void 0),check:a}},e680:function(e,t,r){"use strict";var o=r("0b34"),n=r("4fd4"),a=r("cea2"),i=r("a83a"),s=r("5d10"),c=r("0926"),l=r("21d9").f,u=r("285b").f,d=r("bb8b").f,p=r("eb34").trim,f="Number",m=o[f],h=m,v=m.prototype,y=a(r("7ee3")(v))==f,b="trim"in String.prototype,g=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=b?t.trim():p(t,3);var r,o,n,a=t.charCodeAt(0);if(43===a||45===a){if(r=t.charCodeAt(2),88===r||120===r)return NaN}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:o=2,n=49;break;case 79:case 111:o=8,n=55;break;default:return+t}for(var i,c=t.slice(2),l=0,u=c.length;l<u;l++)if(i=c.charCodeAt(l),i<48||i>n)return NaN;return parseInt(c,o)}}return+t};if(!m(" 0o1")||!m("0b1")||m("+0x1")){m=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof m&&(y?c((function(){v.valueOf.call(r)})):a(r)!=f)?i(new h(g(t)),r,m):g(t)};for(var I,C=r("26df")?l(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;C.length>S;S++)n(h,I=C[S])&&!n(m,I)&&d(m,I,u(h,I));m.prototype=v,v.constructor=m,r("84e8")(o,f,m)}},eb34:function(e,t,r){var o=r("e99b"),n=r("3ab0"),a=r("0926"),i=r("5dc3"),s="["+i+"]",c="​…",l=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),d=function(e,t,r){var n={},s=a((function(){return!!i[e]()||c[e]()!=c})),l=n[e]=s?t(p):i[e];r&&(n[r]=l),o(o.P+o.F*s,"String",n)},p=d.trim=function(e,t){return e=String(n(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};e.exports=d}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ae52a5e"],{"4bbc":function(e,t,r){},"5dc3":function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},"84ee":function(e,t,r){"use strict";r("4bbc")},a83a:function(e,t,r){var o=r("9cff"),n=r("e0ff").set;e.exports=function(e,t,r){var a,i=t.constructor;return i!==r&&"function"==typeof i&&(a=i.prototype)!==r.prototype&&o(a)&&n&&n(e,a),e}},b0d5:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.loading?r("Spin",{attrs:{size:"large",fix:""}}):e._e(),r("h2",{staticClass:"title"},[e._v(e._s(e.schoolYearName)+e._s(e.projectName)+"申请自评表")]),r("Row",{staticClass:"ivu-mt",attrs:{gutter:20,type:"flex",justify:"center"}},[r("Col",{attrs:{span:5}},[e._v("学院:"+e._s(e.baseInfo.部门名称))]),r("Col",{attrs:{span:5}},[e._v("专业:"+e._s(e.baseInfo.专业名称))]),r("Col",{attrs:{span:5}},[e._v("班级:"+e._s(e.baseInfo.行政班名称))]),r("Col",{attrs:{span:5}},[e._v("姓名:"+e._s(e.baseInfo.姓名))])],1),r("Form",{ref:"form",staticClass:"ivu-mt",staticStyle:{padding:"0 5%"},attrs:{model:e.formData,rules:e.ruleValidate,"label-width":80,"label-position":"left"}},[r("Card",{staticClass:"ivu-mt form-card",attrs:{bordered:!1,"dis-hover":""}},[r("h3",{attrs:{slot:"title"},slot:"title"},[e._v("学习成绩")]),r("DescriptionList",{attrs:{col:2}},[r("Description",{attrs:{term:"年度学分绩点和:"}},[e._v(e._s(e.myScoreSum))]),r("Description",{attrs:{term:"专业年级年度最高学分绩点和:"}},[e._v(e._s(e.majorMaxScoreSum))]),r("Description",{attrs:{term:"学习成绩评分:"}},[e._v(e._s(e.studyScore))])],1)],1),r("Card",{staticClass:"ivu-mt form-card",attrs:{bordered:!1,"dis-hover":""}},[r("h3",{attrs:{slot:"title"},slot:"title"},[e._v("创新能力")]),r("div",{directives:[{name:"font",rawName:"v-font",value:16,expression:"16"}],staticClass:"row-title"},[r("div",{staticStyle:{width:"80px"}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("序号")])],1),r("Row",{staticStyle:{"text-align":"left",flex:"1"},attrs:{gutter:20}},[r("Col",{attrs:{span:13}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("加分项目(学生竞赛获奖、发表论文及发明专利)")])],1),r("Col",{attrs:{span:8,offset:"1"}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("单项得分")])],1)],1)],1),e._l(e.formFileds.innovation,(function(t,o){return r("FormItem",{key:o,attrs:{label:t.index}},[r("Row",{attrs:{gutter:20}},[r("Col",{attrs:{span:13}},[r("Input",{attrs:{type:"text",placeholder:"请输入"},model:{value:t.value,callback:function(r){e.$set(t,"value",r)},expression:"item.value"}})],1),r("Col",{attrs:{span:8,offset:"1"}},[r("Cascader",{attrs:{data:e.innovationTree},on:{"on-change":function(t,r){e.handleinnovationChange(t,r,o)}},model:{value:t.name,callback:function(r){e.$set(t,"name",r)},expression:"item.name"}})],1),r("Col",{attrs:{span:2}},[r("Button",{attrs:{type:"error",shape:"circle",icon:"md-close"},on:{click:function(t){return e.handleInnovationRemove(o)}}})],1)],1)],1)})),r("div",{staticClass:"add-btn"},[r("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(t){return e.handleAdd("innovation")}}},[e._v("\n 新增项目\n ")])],1)],2),r("Card",{staticClass:"ivu-mt form-card",attrs:{bordered:!1,"dis-hover":""}},[r("h3",{attrs:{slot:"title"},slot:"title"},[e._v("社会实践(实践活动与志愿服务分别最高可申请10条)")]),r("div",{directives:[{name:"font",rawName:"v-font",value:16,expression:"16"}],staticClass:"row-title"},[r("div",{staticStyle:{width:"80px"}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("序号")])],1),r("Row",{staticStyle:{"text-align":"left",flex:"1"},attrs:{gutter:20}},[r("Col",{attrs:{span:13}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("加分项目(校内外社会实践及志愿服务)")])],1),r("Col",{attrs:{span:8,offset:"1"}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("单项得分")])],1)],1)],1),e._l(e.formFileds.social,(function(t,o){return r("FormItem",{key:o,attrs:{label:t.index}},[r("Row",{attrs:{gutter:20}},[r("Col",{attrs:{span:13}},[r("Input",{attrs:{type:"text",placeholder:"请输入"},model:{value:t.value,callback:function(r){e.$set(t,"value",r)},expression:"item.value"}})],1),r("Col",{attrs:{span:8,offset:"1"}},[r("Cascader",{attrs:{data:e.praticeTree},on:{"on-change":function(t,r){e.handlesocialChange(t,r,o)}},model:{value:t.name,callback:function(r){e.$set(t,"name",r)},expression:"item.name"}})],1),r("Col",{attrs:{span:2}},[r("Button",{attrs:{type:"error",shape:"circle",icon:"md-close"},on:{click:function(t){return e.handleSocialRemove(o)}}})],1)],1)],1)})),r("div",{staticClass:"add-btn"},[r("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(t){return e.handleAdd("social")}}},[e._v("\n 新增项目\n ")])],1)],2),r("Card",{staticClass:"ivu-mt form-card",attrs:{bordered:!1,"dis-hover":""}},[r("h3",{attrs:{slot:"title"},slot:"title"},[e._v("综合素质")]),r("div",{directives:[{name:"font",rawName:"v-font",value:16,expression:"16"}],staticClass:"row-title"},[r("div",{staticStyle:{width:"80px"}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("序号")])],1),r("Row",{staticStyle:{"text-align":"left",flex:"1"},attrs:{gutter:20}},[r("Col",{attrs:{span:13}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("加分项目(学生获得各级表彰情况)")])],1),r("Col",{attrs:{span:8,offset:"1"}},[r("Tag",{attrs:{type:"border",size:"large",color:"primary"}},[e._v("单项得分")])],1)],1)],1),e._l(e.formFileds.Comprehensive,(function(t,o){return r("FormItem",{key:o,attrs:{label:t.index}},[r("Row",{attrs:{gutter:20}},[r("Col",{attrs:{span:13}},[r("Input",{attrs:{type:"text",placeholder:"请输入"},model:{value:t.value,callback:function(r){e.$set(t,"value",r)},expression:"item.value"}})],1),r("Col",{attrs:{span:8,offset:"1"}},[r("Cascader",{attrs:{data:e.comprehensiveTree},on:{"on-change":function(t,r){e.handleComprehensiveChange(t,r,o)}},model:{value:t.name,callback:function(r){e.$set(t,"name",r)},expression:"item.name"}})],1),r("Col",{attrs:{span:2}},[r("Button",{attrs:{type:"error",shape:"circle",icon:"md-close"},on:{click:function(t){return e.handleComprehensiveRemove(o)}}})],1)],1)],1)})),r("div",{staticClass:"add-btn"},[r("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:function(t){return e.handleAdd("Comprehensive")}}},[e._v("\n 新增项目\n ")])],1)],2)],1),r("FooterToolbar",{attrs:{extra:"额外信息"}},[r("Button",{attrs:{type:"primary",size:"large",loading:e.loading},on:{click:e.handleSubmit}},[e._v("提交")])],1)],1)},n=[],a=(r("ac67"),r("1bc7"),r("32ea"),r("a450"),r("e680"),r("55ae")),i=r("c9ee"),s=r("7736");function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){Object(a["a"])(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var u={data:function(){return{baseInfo:{},formData:{},ruleValidate:{},myScoreSum:"",majorMaxScoreSum:"",studyScore:"",loading:!1,innovationIndex:1,socialIndex:1,comprehensiveIndex:1,currentYear:(new Date).getFullYear()-1,innovationTree:[],praticeTree:[],comprehensiveTree:[],formFileds:{innovation:[{value:"",index:"1",score:void 0,name:[]}],social:[{value:"",index:"1",score:void 0,name:[]}],Comprehensive:[{value:"",index:"1",score:void 0,name:[]}]},projectName:"",schoolYearName:"",schoolYear:""}},computed:l({},Object(s["e"])("admin/user",["info"])),created:function(){this.projectName=window.sessionStorage.getItem("project"),this.GetNowSchoolYear(),this.GetStudentInfoByCard(),this.GetColumnInfoByItemName()},methods:{GetNowSchoolYear:function(){var e=this;i["c"]().then((function(t){e.schoolYearName=t.schoolYearName,e.schoolYear=t.schoolYear,e.GetScoreInfoByCardAndYear()}))},GetStudentInfoByCard:function(){var e=this,t={userCard:this.info.card};i["e"](t).then((function(t){e.baseInfo=t}))},GetScoreInfoByCardAndYear:function(){var e=this,t={userCard:this.info.card,year:this.schoolYear};i["d"](t).then((function(t){e.majorMaxScoreSum=t.majorMaxScoreSum,e.myScoreSum=t.myScoreSum,e.studyScore=t.studyScore}))},GetColumnInfoByItemName:function(){var e=this;i["b"]().then((function(t){e.innovationTree=t[0].treeModels,e.praticeTree=t[1].treeModels,e.comprehensiveTree=t[2].treeModels}))},handleAdd:function(e){switch(e){case"innovation":this.innovationIndex++,this.formFileds.innovation.push({value:"",index:String(this.innovationIndex),score:void 0,name:[]});break;case"social":this.socialIndex++,this.formFileds.social.push({value:"",index:String(this.socialIndex),score:void 0,name:[]});break;case"Comprehensive":this.comprehensiveIndex++,this.formFileds.Comprehensive.push({value:"",index:String(this.comprehensiveIndex),score:void 0,name:[]});break}},handleSubmit:function(){var e=this,t=[],r=[],o=[];this.formFileds.innovation.map((function(e){t.push({itemName:e.value,sort:Number(e.index),columnId:e.name.join(","),score:e.score})})),this.formFileds.social.map((function(e){console.log(e),r.push({itemName:e.value,sort:Number(e.index),columnId:e.name.join(","),score:e.score})})),this.formFileds.Comprehensive.map((function(e){o.push({itemName:e.value,sort:Number(e.index),columnId:e.name.join(","),score:e.score})}));var n={studentCard:this.baseInfo.学号,studentName:this.baseInfo.姓名,deptId:this.baseInfo.部门id,deptName:this.baseInfo.部门名称,majorId:this.baseInfo.专业id,majorName:this.baseInfo.专业名称,classId:this.baseInfo.行政班id,className:this.baseInfo.行政班名称,scoresumYear:this.myScoreSum,scoremaxsumYearMajor:this.majorMaxScoreSum,applyforItem:window.sessionStorage.getItem("project"),applyforYear:this.schoolYear,grade:this.baseInfo.年级,studyScore:this.studyScore,innovationAbilityTables:t,socialPracticeTables:r,comprehensiveQualityTables:o},a=0,s=0;r.map((function(e){"23"==e.columnId&&(a+=Number(e.score)),"24"==e.columnId&&(s+=Number(e.score))})),a>10?this.$Message.error("实践活动项目最多可申请10条"):s>10?this.$Message.error("志愿服务项目最多可申请10条"):(this.loading=!0,i["f"](n).then((function(t){e.loading=!1,e.$Message.success(t),e.$router.push("/center/mine")})))},handleinnovationChange:function(e,t,r){this.formFileds.innovation[r].score=t[t.length-1].score},handlesocialChange:function(e,t,r){this.formFileds.social[r].score=t[t.length-1].score},handleComprehensiveChange:function(e,t,r){this.formFileds.Comprehensive[r].score=t[t.length-1].score},handleInnovationRemove:function(e){var t=this;this.$Modal.confirm({title:"确定要删除该记录吗?",onOk:function(){t.formFileds.innovation.splice(e,1)}})},handleSocialRemove:function(e){var t=this;this.$Modal.confirm({title:"确定要删除该记录吗?",onOk:function(){t.formFileds.social.splice(e,1)}})},handleComprehensiveRemove:function(e){var t=this;this.$Modal.confirm({title:"确定要删除该记录吗?",onOk:function(){t.formFileds.Comprehensive.splice(e,1)}})}}},d=u,p=(r("84ee"),r("4ac2")),m=Object(p["a"])(d,o,n,!1,null,"445e6c92",null);t["default"]=m.exports},c9ee:function(e,t,r){"use strict";r.d(t,"e",(function(){return n})),r.d(t,"a",(function(){return a})),r.d(t,"d",(function(){return i})),r.d(t,"i",(function(){return s})),r.d(t,"h",(function(){return c})),r.d(t,"g",(function(){return l})),r.d(t,"f",(function(){return u})),r.d(t,"b",(function(){return d})),r.d(t,"c",(function(){return p}));var o=r("b6bd");function n(e){return Object(o["a"])({url:"/api/ApplyFor/GetStudentInfoByCard",method:"get",params:e})}function a(e){return Object(o["a"])({url:"/api/ApplyFor/GetCanApplyForItemByNowYear",method:"get",params:e})}function i(e){return Object(o["a"])({url:"/api/ApplyFor/GetScoreInfoByCardAndYear",method:"get",params:e})}function s(e){return Object(o["a"])({url:"/api/ApplyFor/StudentGetApplyForListByYear",method:"get",params:e})}function c(e){return Object(o["a"])({url:"/api/ApplyFor/StudentGetApplyForInfoByID",method:"get",params:e})}function l(e){return Object(o["a"])({url:"/api/ApplyFor/StudentGetAllApplyForYear",method:"get",params:e})}function u(e){return Object(o["a"])({url:"/api/ApplyFor/StudentApplyForSchoolShip",method:"post",data:e})}function d(e){return Object(o["a"])({url:"/api/ApplyFor/GetColumnInfoByItemName",method:"get",params:e})}function p(e){return Object(o["a"])({url:"/api/ApplyFor/GetNowSchoolYear",method:"get",params:e})}},e0ff:function(e,t,r){var o=r("9cff"),n=r("a86f"),a=function(e,t){if(n(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=r("1e4d")(Function.call,r("285b").f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(n){t=!0}return function(e,r){return a(e,r),t?e.__proto__=r:o(e,r),e}}({},!1):void 0),check:a}},e680:function(e,t,r){"use strict";var o=r("0b34"),n=r("4fd4"),a=r("cea2"),i=r("a83a"),s=r("5d10"),c=r("0926"),l=r("21d9").f,u=r("285b").f,d=r("bb8b").f,p=r("eb34").trim,m="Number",f=o[m],h=f,v=f.prototype,b=a(r("7ee3")(v))==m,y="trim"in String.prototype,g=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=y?t.trim():p(t,3);var r,o,n,a=t.charCodeAt(0);if(43===a||45===a){if(r=t.charCodeAt(2),88===r||120===r)return NaN}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:o=2,n=49;break;case 79:case 111:o=8,n=55;break;default:return+t}for(var i,c=t.slice(2),l=0,u=c.length;l<u;l++)if(i=c.charCodeAt(l),i<48||i>n)return NaN;return parseInt(c,o)}}return+t};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof f&&(b?c((function(){v.valueOf.call(r)})):a(r)!=m)?i(new h(g(t)),r,f):g(t)};for(var I,C=r("26df")?l(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;C.length>S;S++)n(h,I=C[S])&&!n(f,I)&&d(f,I,u(h,I));f.prototype=v,v.constructor=f,r("84e8")(o,m,f)}},eb34:function(e,t,r){var o=r("e99b"),n=r("3ab0"),a=r("0926"),i=r("5dc3"),s="["+i+"]",c="​…",l=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),d=function(e,t,r){var n={},s=a((function(){return!!i[e]()||c[e]()!=c})),l=n[e]=s?t(p):i[e];r&&(n[r]=l),o(o.P+o.F*s,"String",n)},p=d.trim=function(e,t){return e=String(n(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};e.exports=d}}]);
\ No newline at end of file
<template>
<div>
<Spin size="large" fix v-if="loading"></Spin>
<h2 class="title">{{schoolYearName}}{{ projectName }}申请自评表</h2>
<h2 class="title">
<Select
v-model="schoolYear"
style="width: 200px; margin-right: 5px"
@on-change="schoolYearChange"
>
<Option
v-for="(item, index) in yearList"
:value="item.schoolYear"
:key="index"
>{{ item.schoolYearName }}</Option
>
</Select>
{{ projectName }}申请自评表
</h2>
<Row :gutter="20" type="flex" justify="center" class="ivu-mt">
<Col :span="5">学院:{{ baseInfo.部门名称 }}</Col>
<Col :span="5">专业:{{ baseInfo.专业名称 }}</Col>
......@@ -255,7 +269,6 @@ export default {
innovationIndex: 1,
socialIndex: 1,
comprehensiveIndex: 1,
currentYear: new Date().getFullYear() - 1,
innovationTree: [],
praticeTree: [],
comprehensiveTree: [],
......@@ -289,8 +302,9 @@ export default {
],
},
projectName: "",
schoolYearName:'',
schoolYear:'',
schoolYearName: "",
schoolYear: "",
yearList: [],
};
},
computed: {
......@@ -303,17 +317,21 @@ export default {
this.GetStudentInfoByCard();
this.GetColumnInfoByItemName();
},
methods: {
//获取现在的学年信息
GetNowSchoolYear(){
api.GetNowSchoolYear().then(resp => {
// console.log(resp)
this.schoolYearName = resp.schoolYearName;
this.schoolYear = resp.schoolYear;
GetNowSchoolYear() {
api.GetNowSchoolYear().then((resp) => {
console.log(resp);
resp.map((item) => {
if (item.isNow == "YES") {
this.schoolYear = item.schoolYear;
}
});
this.yearList = resp;
this.GetScoreInfoByCardAndYear();
})
});
},
// 获取学生基本信息
GetStudentInfoByCard() {
......@@ -485,6 +503,11 @@ export default {
},
});
},
schoolYearChange(data) {
console.log(data);
this.GetScoreInfoByCardAndYear();
},
},
};
</script>
......@@ -492,6 +515,9 @@ export default {
<style scoped lang='less'>
.title {
text-align: center;
display: flex;
justify-content: center;
align-items: center;
}
.row-title {
display: flex;
......
......@@ -61,7 +61,7 @@ export default {
} = {}) {
return new Promise((resolve, reject) => {
// 开始请求登录接口
Login({userCard:username,password:password})
Login({userCard:username,password:md5(password)})
.then(async res => {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或