提交 a6e27f52 编写于 作者: 刘英杰's avatar 刘英杰

更新审批退回发起人

上级 b2e51264
流水线 #22876 已通过 ,包含阶段
in 47 second
.tableList{display:flex;justify-content:center;flex-wrap:wrap;.container{border-collapse:collapse;.row{width:100%;height:100%}.colTitle{width:200px}.colContent,.colTitle{text-align:center;height:50px}.colContent{width:500px}}}
\ No newline at end of file
.tableList{display:flex;justify-content:center;flex-wrap:wrap;.container{border-collapse:collapse;.row{width:100%;height:100%}.colTitle{width:200px}.colContent,.colTitle{text-align:center;height:50px}.colContent{width:500px}}}
\ No newline at end of file
.container[data-v-17ae9b7c]{height:100vh;width:100vw}.container .header[data-v-17ae9b7c]{display:flex;justify-content:center;align-items:center;position:relative;width:100%;height:8%;border-top:5px solid #2d8cf0}.container .header .h_left[data-v-17ae9b7c],.container .header .h_right[data-v-17ae9b7c]{width:20%;height:100%;background-color:#fff}.container .header .h_content[data-v-17ae9b7c]{width:60%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#fff}.container .content[data-v-17ae9b7c]{width:100%;height:92%;align-content:flex-start;overflow-y:auto}.container .content .tableList[data-v-17ae9b7c],.container .content[data-v-17ae9b7c]{display:flex;flex-wrap:wrap;justify-content:center}.container .content .tableList .container1[data-v-17ae9b7c]{border-collapse:collapse;box-sizing:border-box;width:100%}.container .content .tableList .container1 .row[data-v-17ae9b7c]{width:100%;height:100%}.container .content .tableList .container1 .colTitle[data-v-17ae9b7c]{text-align:center;width:30%;height:50px}.container .content .tableList .container1 .colContent[data-v-17ae9b7c]{height:50px;text-align:center}.container .content .card[data-v-17ae9b7c]{padding:5px 5px}.container .content .teamInfo[data-v-17ae9b7c]{color:#1e93ff;cursor:pointer}.container .content .text[data-v-17ae9b7c]:hover{transform:scale(1.3)}.container .content .aText[data-v-17ae9b7c]:hover{transform:scale(1.2)}
\ No newline at end of file
.tableList[data-v-cdc53b04]{display:flex;justify-content:center;flex-wrap:wrap}.tableList .container1[data-v-cdc53b04]{border-collapse:collapse}.tableList .container1 .row[data-v-cdc53b04]{width:100%;height:100%}.tableList .container1 .colTitle[data-v-cdc53b04]{text-align:center;width:200px;height:50px}.tableList .container1 .colContent[data-v-cdc53b04]{width:500px;height:50px;text-align:center}.tableList .container1 .aText[data-v-cdc53b04]:hover{transform:scale(1.2)}
\ No newline at end of file
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-24c81626"],{"386d":function(e,t,a){"use strict";var n=a("cb7c"),i=a("83a1"),r=a("5f1b");a("214f")("search",1,(function(e,t,a,s){return[function(a){var n=e(this),i=void 0==a?void 0:a[t];return void 0!==i?i.call(a,n):new RegExp(a)[t](String(n))},function(e){var t=s(a,e,this);if(t.done)return t.value;var l=n(e),c=String(this),o=l.lastIndex;i(o,0)||(l.lastIndex=0);var u=r(l,c);return i(l.lastIndex,o)||(l.lastIndex=o),null===u?-1:u.index}]}))},"504c":function(e,t,a){var n=a("9e1e"),i=a("0d58"),r=a("6821"),s=a("52a7").f;e.exports=function(e){return function(t){var a,l=r(t),c=i(l),o=c.length,u=0,p=[];while(o>u)a=c[u++],n&&!s.call(l,a)||p.push(e?[a,l[a]]:l[a]);return p}}},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},a044:function(e,t,a){},dce5:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Card",{ref:"card",scopedSlots:e._u([{key:"title",fn:function(){return[a("div",{staticStyle:{height:"80px"}},[a("h3",[e._v("证书列表")]),a("Row",{staticStyle:{"margin-top":"30px"}},[a("Col",{attrs:{span:"8"}},[e._v("\n 参与方式:\n "),a("Select",{staticStyle:{width:"10vw"},attrs:{disabled:!0},model:{value:e.search.way,callback:function(t){e.$set(e.search,"way",t)},expression:"search.way"}},e._l(e.search.wayArray,(function(t,n){return a("Option",{key:n,attrs:{value:t.value}},[e._v(" "+e._s(t.label)+"\n ")])})),1)],1),a("Col",{attrs:{span:"8"}},[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[e._v("\n 赛事级别:\n "),a("Select",{staticStyle:{width:"10vw"},model:{value:e.search.level,callback:function(t){e.$set(e.search,"level",t)},expression:"search.level"}},e._l(e.search.levelArray,(function(t,n){return a("Option",{key:n,attrs:{value:t.value}},[e._v(" "+e._s(t.label)+"\n ")])})),1)],1)]),a("Col",{attrs:{span:"8"}},[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"flex-end"}},[e._v("\n 审批状态:\n "),a("Select",{staticStyle:{width:"10vw"},model:{value:e.search.approval_state,callback:function(t){e.$set(e.search,"approval_state",t)},expression:"search.approval_state"}},e._l(e.search.approval_stateArray,(function(t,n){return a("Option",{key:n,attrs:{value:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1)])],1)],1)]},proxy:!0},{key:"extra",fn:function(){return[a("Input",{staticStyle:{width:"15vw"},attrs:{placeholder:"请输入竞赛名称..."},model:{value:e.search.name,callback:function(t){e.$set(e.search,"name",t)},expression:"search.name"}}),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",disabled:e.searchButton},on:{click:e.searchFun}},[e._v("查找")]),e.getRole?a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:e.batchApproval}},[e._v("一键审批\n ")]):e._e(),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:e.importData}},[e._v("证书数据导出")])]},proxy:!0}])},[a("Table",{attrs:{columns:e.columns,data:e.tableData,loading:e.loading},scopedSlots:e._u([{key:"competition_type",fn:function(t){var a=t.row;return[e._v("\n "+e._s(["","A类","B类"][a.competition_type])+"\n ")]}},{key:"team_id",fn:function(t){var n=t.row;return[a("a",{on:{click:function(t){return e.teamInfo(n.team_id)}}},[e._v("详细")])]}},{key:"race_level",fn:function(t){var a=t.row;return[e._v("\n "+e._s(["","国家级","省一级","省二级","国际级"][a.race_level])+"\n ")]}},{key:"way",fn:function(t){var n=t.row;return[a("Tag",{attrs:{color:["success","primary"][n.way]}},[e._v(e._s(["团队","个人"][n.way]))])]}},{key:"approval_state",fn:function(t){var a=t.row;return[e._v("\n "+e._s(["未审批","审批中","审批通过","审批不通过"][a.approval_state])+"\n ")]}},{key:"action",fn:function(t){var n=t.row;return[a("a",{staticStyle:{"margin-left":"15px"},on:{click:function(t){return e.edit(n)}}},[e._v("详细")]),a("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(t){return e.delCompetition(n)},"on-cancel":e.cancel}},[a("a",{staticStyle:{"margin-left":"15px",color:"red"}},[e._v("删除")])])]}}])}),a("div",{staticStyle:{height:"60px",display:"flex","align-items":"center"}},[a("Page",{key:e.pageKey,attrs:{total:e.init.total,"show-total":"","show-sizer":"","page-size":e.init.page_size},on:{"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize},model:{value:e.init.page_index,callback:function(t){e.$set(e.init,"page_index",t)},expression:"init.page_index"}})],1)],1),a("Drawer",{key:e.keyBy,attrs:{title:"团队详细",closable:!0,width:"40%"},model:{value:e.teamDrawer,callback:function(t){e.teamDrawer=t},expression:"teamDrawer"}},[a("div",{staticClass:"demo-drawer-profile"},[a("Row",{staticClass:"row"},[a("Col",{attrs:{span:"12"}},[e._v("\n 团队名称:\n ")]),a("Col",{attrs:{span:"12"}},[e._v("\n "+e._s(e.drawerObject.teamname)+"\n ")])],1),a("Row",{staticClass:"row"},[a("Col",{attrs:{span:"12"}},[e._v("\n 人数:\n ")]),a("Col",{attrs:{span:"12"}},[e._v("\n "+e._s(e.drawerObject.num)+"人\n ")])],1),a("Row",{staticClass:"row"},[a("Col",{attrs:{span:"12"}},[e._v("\n 是否获奖:\n ")]),a("Col",{attrs:{span:"12"}},[e._v("\n "+e._s(e.drawerObject.is_win)+"\n ")])],1)],1),a("Table",{attrs:{columns:e.drawerColumn,data:e.drawerObject.members}})],1),a("Drawer",{attrs:{width:800,title:"详细",closable:!0},model:{value:e.drawer,callback:function(t){e.drawer=t},expression:"drawer"}},[a("div",{staticClass:"tableList"},[a("h1",{staticStyle:{display:"flex","justify-content":"center"}},[e._v("获奖材料上传")]),a("table",{staticClass:"container",attrs:{border:"1"}},e._l(e.drawerKeyValueArray,(function(t,n){return a("tr",{key:n,staticClass:"row"},["level"===t[0]?a("th",{staticClass:"colTitle"},[e._v(e._s(t[2]))]):e._e(),"level"===t[0]?a("td",{staticClass:"colContent"},[e._v(e._s(["国家级","省一级","省二级"][t[1]]))]):e._e(),"race_level"===t[0]?a("th",{staticClass:"colTitle"},[e._v(e._s(t[2]))]):e._e(),"race_level"===t[0]?a("td",{staticClass:"colContent"},[e._v("\n "+e._s(["","国家级","省一级","省二级","国际级"][t[1]])+"\n ")]):e._e(),"approval_state"===t[0]?a("th",{staticClass:"colTitle"},[e._v(e._s(t[2]))]):e._e(),"approval_state"===t[0]?a("td",{staticClass:"colContent"},[e._v("\n "+e._s(["未审批","审批中","审批通过","审批不通过"][t[1]])+"\n ")]):e._e(),"competition_type"===t[0]?a("th",{staticClass:"colTitle"},[e._v(e._s(t[2]))]):e._e(),"competition_type"===t[0]?a("td",{staticClass:"colContent"},[e._v("\n "+e._s(["","A类","B类"][t[1]])+"\n ")]):e._e(),"way"===t[0]?a("th",{staticClass:"colTitle"},[e._v(e._s(t[2]))]):e._e(),"way"===t[0]?a("td",{staticClass:"colContent"},[e._v("\n "+e._s(["团队","个人"][t[1]])+"\n ")]):e._e(),"studentExcellenceFileList"!==t[0]&&"StudentExcellence"!==t[0]&&"teacherExcellenceFileList"!==t[0]&&"competition_type"!==t[0]&&"team_id"!==t[0]&&"level"!==t[0]&&"race_level"!==t[0]&&"way"!==t[0]&&"approval_state"!==t[0]?a("th",{staticClass:"colTitle"},[e._v(e._s(t[2])+"\n ")]):e._e(),"studentExcellenceFileList"!==t[0]&&"StudentExcellence"!==t[0]&&"teacherExcellenceFileList"!==t[0]&&"competition_type"!==t[0]&&"team_id"!==t[0]&&"level"!==t[0]&&"race_level"!==t[0]&&"way"!==t[0]&&"approval_state"!==t[0]?a("td",{staticClass:"colContent"},[e._v(e._s(t[1])+"\n ")]):e._e(),"teacherExcellenceFileList"===t[0]?a("th",{staticClass:"colTitle"},[e._v(e._s(t[2]))]):e._e(),"teacherExcellenceFileList"===t[0]?a("td",{staticClass:"colContent"},e._l(t[1],(function(t,n){return a("a",{key:n,staticClass:"aText",staticStyle:{display:"flex","flex-wrap":"wrap","justify-content":"center"},attrs:{href:t.path}},[e._v("\n "+e._s(t.file_name)+"\n ")])})),0):e._e(),"studentExcellenceFileList"===t[0]?a("th",{staticClass:"colTitle"},[e._v(e._s(t[2]))]):e._e(),"studentExcellenceFileList"===t[0]?a("td",{staticClass:"colContent"},e._l(t[1],(function(t,n){return a("a",{key:n,staticClass:"aText",staticStyle:{display:"flex","flex-wrap":"wrap","justify-content":"center"},attrs:{href:t.path}},[e._v("\n "+e._s(t.file_name)+"\n ")])})),0):e._e()])})),0)])])],1)},i=[],r=(a("ac6a"),a("ffc1"),a("96cf"),a("1da1")),s=(a("7f7f"),a("386d"),a("967e")),l=a.n(s),c=a("61be"),o=a("7f6b"),u=a("2ef0"),p=a.n(u),h=a("c276"),d=(a("2d959"),{name:"list",data:function(){return{keyBy:1,drawerKeyValueArray:[],drawer:!1,teamDrawer:!1,drawerObject:{members:[]},grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"赛事名称",key:"competitionname",align:"center",show:!0,minWidth:200},{title:"赛项名称",key:"competitionsubitem_name",align:"center",show:!0,minWidth:150},{title:"主办单位",key:"sponsor",align:"center",show:!0,minWidth:150},{title:"赛事级别",slot:"race_level",align:"center",show:!0,minWidth:100},{title:"竞赛类别",slot:"competition_type",align:"center",show:!0,minWidth:100},{title:"申请人",key:"createby",align:"center",show:!0,minWidth:120},{title:"比赛形式",slot:"way",align:"center",show:!0,minWidth:120},{title:"审批状态",slot:"approval_state",align:"center",show:!0,minWidth:150},{title:"比赛开始时间",key:"begin_time",align:"center",show:!0,minWidth:150},{title:"比赛结束时间",key:"end_time",align:"center",show:!0,minWidth:150},{title:"操作",align:"center",minWidth:130,fixed:"right",show:!0,slot:"action"}],drawerColumn:[{title:"姓名",key:"name",align:"center",show:!0,width:80},{title:"成员工号",key:"card_name",align:"center",show:!0,minWidth:120},{title:"是否为教师",key:"is_tea",align:"center",show:!0,minWidth:150},{title:"是否为指导教师",key:"is_lead",align:"center",show:!0,minWidth:100},{title:"班级",key:"classname",align:"center",show:!0,minWidth:120},{title:"部门",key:"dept",align:"center",show:!0,minWidth:120}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""},search:{way:"",name:"",approval_state:"",level:"",wayCurrentValue:"",nameCurrentValue:"",approval_stateCurrentValue:"",levelCurrentValue:"",approval_stateArray:[{value:0,label:"未审批"},{value:1,label:"审批中"},{value:2,label:"审批通过"},{value:3,label:"审批不通过"}],levelArray:[{value:1,label:"国家级"},{value:2,label:"省一级"},{value:3,label:"省二级"}],wayArray:[{value:0,label:"团队"},{value:1,label:"个人"}]},init:{page_index:1,page_size:10,total:0},pageKey:1}},created:function(){},computed:{searchButton:function(){return""===this.search.way&&""===this.search.level&&""===this.search.name&&""===this.search.approval_state},getRole:function(){var e=JSON.parse(h["a"].cookies.get("userinfo"));return-1!==e.role.indexOf('["管理员"]')}},mounted:function(){this.getGetCertificateList()},methods:{importData:function(){var e=this;c["c"](Object(r["a"])(l.a.mark((function t(){var a,n;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={name:e.search.wayCurrentValuethis,level:e.search.levelCurrentValue,way:e.search.wayCurrentValue,approval_state:e.search.approval_stateCurrentValue,page_index:e.init.page_index,page_size:e.init.page_size},t.next=3,o["f"](a);case 3:return n=t.sent,window.location.href=n.response,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)}))))},batchApproval:function(){c["c"](Object(r["a"])(l.a.mark((function e(){return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o["g"]();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))))},teamInfo:function(){var e=Object(r["a"])(l.a.mark((function e(t){var a,n;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.$Spin.show(),e.prev=1,a={teamid:t},e.next=5,o["ub"](a);case 5:n=e.sent,this.drawerObject=n.response,this.drawerObject.members=n.response.members,this.teamDrawer=!0,c["e"](n),e.next=17;break;case 12:e.prev=12,e.t0=e["catch"](1),this.drawerObject={},this.$Spin.hide(),this.$Message.error("找不到团队id!");case 17:case"end":return e.stop()}}),e,this,[[1,12]])})));function t(t){return e.apply(this,arguments)}return t}(),delCompetition:function(){var e=Object(r["a"])(l.a.mark((function e(t){var a,n;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={id:t.certificateid},e.next=3,o["e"](a);case 3:return n=e.sent,c["e"](n),e.next=7,this.getGetCertificateList();case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleChangePage:function(e){this.init.page_index=e,this.getGetCertificateList()},handleChangePageSize:function(e){this.init.page_size=e,this.getGetCertificateList()},searchFun:function(){var e=Object(r["a"])(l.a.mark((function e(){return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.search.wayCurrentValuethis=this.search.name,this.search.levelCurrentValue=this.search.level,this.search.wayCurrentValue=this.search.way,this.search.approval_stateCurrentValue=this.search.approval_state,this.pageKey++,this.init.page_index=1,e.next=8,this.getGetCertificateList();case 8:e.sent;case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getGetCertificateList:function(){var e=Object(r["a"])(l.a.mark((function e(){var t,a;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,t={name:this.search.wayCurrentValuethis,level:this.search.levelCurrentValue,way:this.search.wayCurrentValue,approval_state:this.search.approval_stateCurrentValue,page_index:this.init.page_index,page_size:this.init.page_size},e.next=4,o["D"](t);case 4:a=e.sent,this.tableData=a.response.data,this.init.total=a.response.data_count,this.loading=!1;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),add:function(){this.$refs.addEdit.add()},edit:function(){var e=Object(r["a"])(l.a.mark((function e(t){var a,n;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.drawer=!0,e.next=3,o["C"]({id:t.certificateid});case 3:a=e.sent,console.log("🚀🚀🚀,",a),n=p.a.cloneDeep(a.response.certificateInfo),delete n.competitionreportid,delete n.certificateid,delete n.certificate_file,delete n.createtime,delete n.approval_remark,delete n.certificate_description,delete n.team_id,delete n.competitionsubitem_id,n.teacherExcellenceFileList=a.response.teacherExcellenceFileList,n.studentExcellenceFileList=a.response.studentExcellenceFileList,delete n.money,delete n.team_id,delete n.certificate_name,console.log("🚀🚀array🚀,",n),this.drawerKeyValueArray=Object.entries(n),this.drawerKeyValueArray.map((function(e,t){var a=["赛事名称","主办单位","赛事级别","审批状态","竞赛类别","比赛开始时间","比赛结束时间","赛项名称","竞赛形式","申请人","教师证书","学生证书"];e.push(a[t])})),console.log("🚀🚀drawerKeyValueArray🚀,",this.drawerKeyValueArray);case 23:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),del:function(e){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")}}}),_=d,v=(a("fc9c"),a("2877")),f=Object(v["a"])(_,n,i,!1,null,null,null);t["default"]=f.exports},fc9c:function(e,t,a){"use strict";a("a044")},ffc1:function(e,t,a){var n=a("5ca1"),i=a("504c")(!0);n(n.S,"Object",{entries:function(e){return i(e)}})}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d217eab"],{c987:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Card",[n("h1",[e._v("333测试中...")])])},o=[],i={components:{},data:function(){return{init:{columns:[],tableData:[],page_index:1,page_size:10,total:0,title:"",start_time:"",end_time:"",public_type:"",approval_state:"",is_public:""},columns:[{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Address",key:"address"}],data:[{name:"John Brown",age:18,address:"New York No. 1 Lake Park",date:"2016-10-03"},{name:"Jim Green",age:24,address:"London No. 1 Lake Park",date:"2016-10-01"},{name:"Joe Black",age:30,address:"Sydney No. 1 Lake Park",date:"2016-10-02"},{name:"Jon Snow",age:26,address:"Ottawa No. 2 Lake Park",date:"2016-10-04"}],theme:"light"}},computed:{},watch:{},methods:{handleChangePage:function(e){this.init.page_index=e,this.getCompetitionSignList()},handleChangePageSize:function(e){this.init.page_size=e,this.getCompetitionSignList()},aaa:function(e){console.log("🚀🚀11111111111111111🚀,",e)}},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},d=i,s=n("2877"),c=Object(s["a"])(d,a,o,!1,null,"591bf8bd",null);t["default"]=c.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-436ddaa3"],{"317b":function(e,t,a){"use strict";a("a0a2")},"386d":function(e,t,a){"use strict";var n=a("cb7c"),i=a("83a1"),r=a("5f1b");a("214f")("search",1,(function(e,t,a,s){return[function(a){var n=e(this),i=void 0==a?void 0:a[t];return void 0!==i?i.call(a,n):new RegExp(a)[t](String(n))},function(e){var t=s(a,e,this);if(t.done)return t.value;var l=n(e),o=String(this),c=l.lastIndex;i(c,0)||(l.lastIndex=0);var u=r(l,o);return i(l.lastIndex,c)||(l.lastIndex=c),null===u?-1:u.index}]}))},"504c":function(e,t,a){var n=a("9e1e"),i=a("0d58"),r=a("6821"),s=a("52a7").f;e.exports=function(e){return function(t){var a,l=r(t),o=i(l),c=o.length,u=0,p=[];while(c>u)a=o[u++],n&&!s.call(l,a)||p.push(e?[a,l[a]]:l[a]);return p}}},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},a0a2:function(e,t,a){},bd43:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Card",{ref:"card",scopedSlots:e._u([{key:"title",fn:function(){return[a("div",{staticStyle:{height:"80px"}},[a("h3",[e._v("补助金列表")]),a("Row",{staticStyle:{"margin-top":"30px"}},[a("Col",{attrs:{span:"8"}},[e._v("\n 参与方式:\n "),a("Select",{staticStyle:{width:"10vw"},attrs:{disabled:!0},model:{value:e.search.way,callback:function(t){e.$set(e.search,"way",t)},expression:"search.way"}},e._l(e.search.wayArray,(function(t,n){return a("Option",{key:n,attrs:{value:t.value}},[e._v(" "+e._s(t.label)+"\n ")])})),1)],1),a("Col",{attrs:{span:"8"}},[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[e._v("\n 竞赛类别:\n "),a("Select",{staticStyle:{width:"10vw"},model:{value:e.search.level,callback:function(t){e.$set(e.search,"level",t)},expression:"search.level"}},e._l(e.search.levelArray,(function(t,n){return a("Option",{key:n,attrs:{value:t.value}},[e._v(" "+e._s(t.label)+"\n ")])})),1)],1)]),a("Col",{attrs:{span:"8"}},[a("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"flex-end"}},[e._v("\n 审批状态:\n "),a("Select",{staticStyle:{width:"10vw"},model:{value:e.search.approval_state,callback:function(t){e.$set(e.search,"approval_state",t)},expression:"search.approval_state"}},e._l(e.search.approval_stateArray,(function(t,n){return a("Option",{key:n,attrs:{value:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1)])],1)],1)]},proxy:!0},{key:"extra",fn:function(){return[a("Input",{staticStyle:{width:"15vw"},attrs:{placeholder:"请输入竞赛名称..."},model:{value:e.search.name,callback:function(t){e.$set(e.search,"name",t)},expression:"search.name"}}),a("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",disabled:e.searchButton},on:{click:e.searchFun}},[e._v("查找")])]},proxy:!0}])},[a("Table",{attrs:{columns:e.columns,data:e.tableData,loading:e.loading},scopedSlots:e._u([{key:"race_level",fn:function(t){var a=t.row;return[e._v("\n "+e._s(["","国家级","省一级","省二级"][a.race_level])+"\n ")]}},{key:"way",fn:function(t){var n=t.row;return[a("Tag",{attrs:{color:["success","primary"][n.way]}},[e._v(e._s(["团队","个人"][n.way]))])]}},{key:"approval_state",fn:function(t){var a=t.row;return[e._v("\n "+e._s(["未审批","审批中","审批通过","审批不通过"][a.approval_state])+"\n ")]}},{key:"action",fn:function(t){var n=t.row;return[a("a",{on:{click:function(t){return e.importFile(n)}}},[e._v("导出")]),a("a",{staticStyle:{"margin-left":"15px"},on:{click:function(t){return e.edit(n)}}},[e._v("详细")]),a("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(t){return e.delCompetition(n)},"on-cancel":e.cancel}},[a("a",{staticStyle:{"margin-left":"15px",color:"red"}},[e._v("删除")])])]}}])},[e._v("\n >\n ")]),a("div",{staticStyle:{height:"60px",display:"flex","align-items":"center"}},[a("Page",{key:e.pageKey,attrs:{total:e.init.total,"show-total":"","show-sizer":"","page-size":e.init.page_size},on:{"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize},model:{value:e.init.page_index,callback:function(t){e.$set(e.init,"page_index",t)},expression:"init.page_index"}})],1)],1),a("Modal",{attrs:{title:"文件导出"},scopedSlots:e._u([{key:"footer",fn:function(){return[a("Button",{attrs:{type:"text"},on:{click:function(t){e.importModal=!1}}},[e._v("关闭")])]},proxy:!0}]),model:{value:e.importModal,callback:function(t){e.importModal=t},expression:"importModal"}},[e.importLoading?a("Spin",{attrs:{fix:""}}):e._e(),a("div",{staticStyle:{display:"flex","justify-content":"space-around"}},e._l(e.fileObject,(function(t,n){return a("Button",{key:n,attrs:{icon:"md-log-in"},on:{click:function(a){return e.importButton(t[1])}}},[e._v("\n "+e._s(t[2])+"\n ")])})),1)],1),a("Drawer",{attrs:{width:800,title:"详细",closable:!0},model:{value:e.drawer,callback:function(t){e.drawer=t},expression:"drawer"}},[a("div",{staticClass:"tableList"},[a("h1",{staticStyle:{display:"flex","justify-content":"center"}},[e._v("补助金内容详细")]),a("table",{staticClass:"container",attrs:{border:"1"}},e._l(e.drawerKeyValueArray,(function(t,n){return a("tr",{key:n,staticClass:"row"},["level"===t[0]?a("th",{staticClass:"colTitle"},[e._v(e._s(t[2]))]):e._e(),"level"===t[0]?a("td",{staticClass:"colContent"},[e._v(e._s(["国家级","省一级","省二级"][t[1]]))]):e._e(),"way"===t[0]?a("th",{staticClass:"colTitle"},[e._v(e._s(t[2]))]):e._e(),"way"===t[0]?a("td",{staticClass:"colContent"},[e._v(e._s(["团队","个人"][t[1]]))]):e._e(),"approval_state"===t[0]?a("th",{staticClass:"colTitle"},[e._v(e._s(t[2]))]):e._e(),"approval_state"===t[0]?a("td",{staticClass:"colContent"},[e._v("\n "+e._s(["未审批","审批中","审批通过","审批不通过"][t[1]])+"\n ")]):e._e(),"fileList"!==t[0]&&"level"!==t[0]&&"way"!==t[0]&&"approval_state"!==t[0]?a("th",{staticClass:"colTitle"},[e._v(e._s(t[2])+"\n ")]):e._e(),"fileList"!==t[0]&&"level"!==t[0]&&"way"!==t[0]&&"approval_state"!==t[0]?a("td",{staticClass:"colContent"},[e._v(e._s(t[1])+"\n ")]):e._e(),"fileList"===t[0]?a("th",{staticClass:"colTitle"},[e._v(e._s(t[2]))]):e._e(),"fileList"===t[0]?a("td",{staticClass:"colContent"},e._l(t[1],(function(t,n){return a("a",{key:n,staticClass:"aText",staticStyle:{display:"flex","flex-wrap":"wrap","justify-content":"center"},attrs:{href:t.path}},[e._v("\n "+e._s(t.file_name)+"\n ")])})),0):e._e()])})),0)])])],1)},i=[],r=(a("ac6a"),a("ffc1"),a("96cf"),a("1da1")),s=(a("7f7f"),a("386d"),a("967e")),l=a.n(s),o=a("61be"),c=a("7f6b"),u=a("2ef0"),p=a.n(u),h={name:"list",data:function(){return{importLoading:!1,importModal:!1,drawerKeyValueArray:[],drawer:!1,grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"姓名",key:"name",align:"center",show:!0,minWidth:200},{title:"性别",key:"sex",align:"center",show:!0,minWidth:150},{title:"学号/工号",key:"card_name",align:"center",show:!0,minWidth:100},{title:"专业/班级",key:"specialty_class",align:"center",show:!0,minWidth:120},{title:"竞赛名称",key:"competitionname",align:"center",show:!0,minWidth:150},{title:"竞赛类别",slot:"race_level",align:"center",show:!0,minWidth:150},{title:"补助金额",key:"money",align:"center",show:!0,minWidth:200},{title:"审批状态",slot:"approval_state",align:"center",show:!0,minWidth:200},{title:"补助时间",key:"grant_time",align:"center",show:!0,minWidth:200},{title:"竞赛文件名",key:"file_name",align:"center",show:!0,minWidth:200},{title:"计划集训时间",key:"plan_train_time",align:"center",show:!0,minWidth:200},{title:"实际集训起止时间",key:"train_time",align:"center",show:!0,minWidth:200},{title:"参赛具体情况",key:"competition_info",align:"center",show:!0,minWidth:200},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""},search:{way:"",name:"",approval_state:"",level:"",wayCurrentValue:"",nameCurrentValue:"",approval_stateCurrentValue:"",levelCurrentValue:"",approval_stateArray:[{value:0,label:"未审批"},{value:1,label:"审批中"},{value:2,label:"审批通过"},{value:3,label:"审批不通过"}],levelArray:[{value:1,label:"国家级"},{value:2,label:"省一级"},{value:3,label:"省二级"}],wayArray:[{value:0,label:"团队"},{value:1,label:"个人"}]},init:{page_index:1,page_size:10,total:0},pageKey:1,fileObject:{}}},created:function(){},computed:{searchButton:function(){return""===this.search.way&&""===this.search.level&&""===this.search.name&&""===this.search.approval_state}},mounted:function(){this.getCompetitionSignList()},methods:{importButton:function(e){window.open(e,"_blank")},importOk:function(){},delCompetition:function(){var e=Object(r["a"])(l.a.mark((function e(t){var a,n;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={id:t.bursaryid},e.next=3,c["c"](a);case 3:return n=e.sent,o["e"](n),e.next=7,this.getCompetitionSignList();case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleChangePage:function(e){this.init.page_index=e,this.getCompetitionSignList()},handleChangePageSize:function(e){this.init.page_size=e,this.getCompetitionSignList()},searchFun:function(){var e=Object(r["a"])(l.a.mark((function e(){return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.search.wayCurrentValuethis=this.search.name,this.search.levelCurrentValue=this.search.level,this.search.wayCurrentValue=this.search.way,this.search.approval_stateCurrentValue=this.search.approval_state,this.pageKey++,this.init.page_index=1,e.next=8,this.getCompetitionSignList();case 8:e.sent;case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getCompetitionSignList:function(){var e=Object(r["a"])(l.a.mark((function e(){var t,a;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,t={name:this.search.wayCurrentValuethis,level:this.search.levelCurrentValue,way:this.search.wayCurrentValue,approval_state:this.search.approval_stateCurrentValue,page_index:this.init.page_index,page_size:this.init.page_size},e.next=4,c["B"](t);case 4:a=e.sent,this.tableData=a.response.data,this.init.total=a.response.data_count,this.loading=!1;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),add:function(){this.$refs.addEdit.add()},importFile:function(){var e=Object(r["a"])(l.a.mark((function e(t){var a,n,i;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.importModal=!0,this.importLoading=!0,e.next=4,c["d"]({id:t.bursaryid});case 4:a=e.sent;try{delete a.response.response.file_name,n=Object.entries(a.response.response),i=["PDF导出","Word导出"],n.map((function(e,t){e.push(i[t])})),this.fileObject=n,this.importLoading=!1}catch(r){this.importLoading=!1}case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),edit:function(){var e=Object(r["a"])(l.a.mark((function e(t){var a,n;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,c["A"]({id:t.bursaryid});case 2:a=e.sent,console.log("🚀🚀🚀,",a),this.drawer=!0,n=p.a.cloneDeep(t),delete n.bursaryid,delete n.grant_file,delete n.competitionreportid,delete n.createtime,delete n._rowKey,delete n._index,delete n.approval_remark,n.fileList=a.response.fileList,this.drawerKeyValueArray=Object.entries(n),this.drawerKeyValueArray.map((function(e,t){var a=["姓名","性别","学号/工号","身份证","专业/班级","竞赛名称","竞赛文件名","竞赛类别","补助时间","补助金额","计划集训时间","实际集训起止时间","参赛具体情况","审批状态","附件"];e.push(a[t])})),console.log("🚀🚀🚀,",this.drawerKeyValueArray);case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),del:function(e){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")}}},d=h,f=(a("317b"),a("2877")),v=Object(f["a"])(d,n,i,!1,null,null,null);t["default"]=v.exports},ffc1:function(e,t,a){var n=a("5ca1"),i=a("504c")(!0);n(n.S,"Object",{entries:function(e){return i(e)}})}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5d104c54"],{"22ab":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container"},[i("div",{staticClass:"content"},["CompetitionReport"===t.form_name?i("Card",{staticStyle:{width:"50%","margin-top":"20px","border-radius":"20px"}},[i("div",{staticClass:"tableList"},[i("h1",{staticStyle:{display:"flex","justify-content":"center"}},[t._v(" "+t._s(t.data.Object.module))]),i("table",{staticClass:"container1",attrs:{border:"1"}},t._l(t.data.keyValueArray,(function(e,a){return i("tr",{key:a},["level"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"level"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["","国家级","省一级","省二级","国际级"][e[1]])+"\n ")]):t._e(),"way"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"way"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["团队","个人"][e[1]]))]):t._e(),"approval_state"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"approval_state"===e[0]?i("td",{staticClass:"colContent"},[t._v("\n "+t._s(["未审批","审批中","审批通过","审批不通过"][e[1]])+"\n ")]):t._e(),"competition_type"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"competition_type"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["","A类","B类"][e[1]])+"\n ")]):t._e(),"competition_type"!==e[0]&&"level"!==e[0]&&"way"!==e[0]&&"approval_state"!==e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2])+"\n ")]):t._e(),"competition_type"!==e[0]&&"level"!==e[0]&&"way"!==e[0]&&"approval_state"!==e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(e[1])+"\n ")]):t._e()])})),0)])]):t._e(),"CompetitionSign"===t.form_name?i("Card",{staticStyle:{width:"50%","margin-top":"20px","border-radius":"20px"}},[i("div",{staticClass:"tableList"},[i("h1",{staticStyle:{display:"flex","justify-content":"center"}},[t._v(" "+t._s(t.data.Object.module))]),i("table",{staticClass:"container1",attrs:{border:"1"}},[t._l(t.data.keyValueArray,(function(e,a){return i("tr",{key:a},["level"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"level"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["","国家级","省一级","省二级"][e[1]]))]):t._e(),"race_level"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"race_level"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["","国家级","省一级","省二级"][e[1]])+"\n ")]):t._e(),"way"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"way"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["团队","个人"][e[1]]))]):t._e(),"approval_state"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"approval_state"===e[0]?i("td",{staticClass:"colContent"},[t._v("\n "+t._s(["未审批","审批中","审批通过","审批不通过"][e[1]])+"\n ")]):t._e(),"race_level"!==e[0]&&"level"!==e[0]&&"way"!==e[0]&&"approval_state"!==e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2])+"\n ")]):t._e(),"race_level"!==e[0]&&"level"!==e[0]&&"way"!==e[0]&&"approval_state"!==e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(e[1])+"\n ")]):t._e()])})),i("tr",[i("th",[t._v("附件:")]),i("td",{staticClass:"colContent"},t._l(t.data.Object.file_list,(function(e,a){return i("a",{key:a,staticClass:"aText",staticStyle:{display:"flex","flex-wrap":"wrap","justify-content":"center"},on:{click:function(i){return t.viewFile(e)}}},[t._v("\n "+t._s(e.file_name)+"\n ")])})),0)])],2),i("div",{staticStyle:{width:"100%",height:"50vh","overflow-y":"auto"}},t._l(t.competitionsignTeam,(function(e,a){return i("Card",{key:a,staticStyle:{"margin-top":"1vw",width:"100%"},scopedSlots:t._u([{key:"title",fn:function(){return[i("h3",[t._v(t._s(e.teanname)+"(指导教师"+t._s(e.teacher_list.length)+"位;参赛学生"+t._s(e.student_list.length)+"位;)")])]},proxy:!0}],null,!0)},[i("Table",{attrs:{columns:t.columnsTeacher,data:e.teacher_list}}),i("Table",{attrs:{columns:t.columnsStudent,data:e.student_list}})],1)})),1)])]):t._e(),"Certificate"===t.form_name?i("Card",{staticStyle:{width:"50%","margin-top":"20px","border-radius":"20px"}},[i("div",{staticClass:"tableList"},[i("h1",{staticStyle:{display:"flex","justify-content":"center"}},[t._v(" "+t._s(t.data.Object.module))]),i("table",{staticClass:"container1",attrs:{border:"1"}},[t._l(t.data.keyValueArray,(function(e,a){return i("tr",{key:a},["level"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"level"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["","国家级","省一级","省二级"][e[1]]))]):t._e(),"race_level"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"race_level"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["","国家级","省一级","省二级","国际级"][e[1]])+"\n ")]):t._e(),"team_id"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"team_id"===e[0]?i("td",{staticClass:"colContent teamInfo",on:{click:t.teamInfo}},[t._v("团队详细")]):t._e(),"way"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"way"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["团队","个人"][e[1]]))]):t._e(),"competition_type"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"competition_type"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["","A类","B类"][e[1]]))]):t._e(),"approval_state"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"approval_state"===e[0]?i("td",{staticClass:"colContent"},[t._v("\n "+t._s(["未审批","审批中","审批通过","审批不通过"][e[1]])+"\n ")]):t._e(),"competition"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"competition"===e[0]?i("td",{staticClass:"colContent"},[t._v("\n "+t._s(["","A类","B类"][e[1]])+"\n ")]):t._e(),"competition_type"!==e[0]&&"competition"!==e[0]&&"team_id"!==e[0]&&"race_level"!==e[0]&&"level"!==e[0]&&"way"!==e[0]&&"approval_state"!==e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2])+"\n ")]):t._e(),"competition_type"!==e[0]&&"competition"!==e[0]&&"team_id"!==e[0]&&"race_level"!==e[0]&&"level"!==e[0]&&"way"!==e[0]&&"approval_state"!==e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(e[1])+"\n ")]):t._e()])})),i("tr",[i("th",[t._v("附件:")]),i("td",{staticClass:"colContent"},t._l(t.data.Object.file_list,(function(e,a){return i("a",{key:a,staticClass:"aText",staticStyle:{display:"flex","flex-wrap":"wrap","justify-content":"center"},attrs:{href:e.path}},[t._v("\n "+t._s(e.file_name)+"\n ")])})),0)])],2)])]):t._e(),"Bursary"===t.form_name?i("Card",{staticStyle:{width:"50%","margin-top":"20px","border-radius":"20px"}},[i("div",{staticClass:"tableList"},[i("h1",{staticStyle:{display:"flex","justify-content":"center"}},[t._v(" "+t._s(t.data.Object.module))]),i("table",{staticClass:"container1",attrs:{border:"1"}},[t._l(t.data.keyValueArray,(function(e,a){return i("tr",{key:a},["level"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"level"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["","国家级","省一级","省二级"][e[1]]))]):t._e(),"race_level"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"race_level"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["","国家级","省一级","省二级","国际级"][e[1]])+"\n ")]):t._e(),"way"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"way"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["团队","个人"][e[1]]))]):t._e(),"approval_state"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"approval_state"===e[0]?i("td",{staticClass:"colContent"},[t._v("\n "+t._s(["未审批","审批中","审批通过","审批不通过"][e[1]])+"\n ")]):t._e(),"race_level"!==e[0]&&"level"!==e[0]&&"way"!==e[0]&&"approval_state"!==e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2])+"\n ")]):t._e(),"race_level"!==e[0]&&"level"!==e[0]&&"way"!==e[0]&&"approval_state"!==e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(e[1])+"\n ")]):t._e()])})),i("tr",[i("th",[t._v("附件:")]),i("td",{staticClass:"colContent"},t._l(t.data.Object.file_list,(function(e,a){return i("a",{key:a,staticClass:"aText",staticStyle:{display:"flex","flex-wrap":"wrap","justify-content":"center"},attrs:{href:e.path}},[t._v("\n "+t._s(e.file_name)+"\n ")])})),0)])],2)])]):t._e(),"Notice"===t.form_name?i("Card",{staticStyle:{width:"50%","margin-top":"20px","border-radius":"20px"}},[i("div",{staticClass:"tableList"},[i("h1",{staticStyle:{display:"flex","justify-content":"center"}},[t._v(" "+t._s(t.data.Object.module))]),i("table",{staticClass:"container1",attrs:{border:"1"}},[t._l(t.data.keyValueArray,(function(e,a){return i("tr",{key:a},["is_top"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"is_top"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["否","是"][e[1]]))]):t._e(),"is_public"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"is_public"===e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(["否","是"][e[1]]))]):t._e(),"content"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2])+"\n ")]):t._e(),"content"===e[0]?i("td",{staticClass:"colContent"},[i("spin",{staticStyle:{"max-height":"500px","overflow-y":"auto"},domProps:{innerHTML:t._s(e[1])}})],1):t._e(),"approval_state"===e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"approval_state"===e[0]?i("td",{staticClass:"colContent"},[t._v("\n "+t._s(["未审批","审批中","审批通过","审批不通过"][e[1]])+"\n ")]):t._e(),"content"!==e[0]&&"race_level"!==e[0]&&"is_top"!==e[0]&&"is_public"!==e[0]&&"way"!==e[0]&&"approval_state"!==e[0]?i("th",{staticClass:"colTitle"},[t._v(t._s(e[2])+"\n ")]):t._e(),"content"!==e[0]&&"race_level"!==e[0]&&"is_top"!==e[0]&&"is_public"!==e[0]&&"way"!==e[0]&&"approval_state"!==e[0]?i("td",{staticClass:"colContent"},[t._v(t._s(e[1])+"\n ")]):t._e()])})),i("tr",[i("th",[t._v("附件:")]),i("td",{staticClass:"colContent"},t._l(t.data.Object.file_list,(function(e,a){return i("a",{key:a,staticClass:"aText",staticStyle:{display:"flex","flex-wrap":"wrap","justify-content":"center"},attrs:{href:e.path}},[t._v("\n "+t._s(e.file_name)+"\n ")])})),0)])],2)])]):t._e(),i("div",{staticStyle:{"box-sizing":"border-box","border-top":"#1e93ff 0.3vw solid",width:"15%",height:"127vh","margin-top":"20px",padding:"3vw 1vw 3vw 1vw","background-color":"white",display:"flex","justify-content":"center"}},[i("Timeline",t._l(t.timeLineArray,(function(e,a){return i("TimelineItem",{key:a,attrs:{color:["blue","green"][Number(!e.action_name)]},scopedSlots:t._u([Number(!!e.action_name)?{key:"dot",fn:function(){return[i("Icon",{attrs:{type:"ios-checkmark-circle",color:"#1e93ff"}})]},proxy:!0}:null],null,!0)},[Number(!!e.action_name)?i("div",[i("h3",{staticStyle:{"font-family":"'宋体'"}},[t._v(t._s(e.node_name))])]):i("div",[i("div",{staticStyle:{display:"flex","align-items":"center"}},[i("h3",{staticStyle:{"font-family":"'宋体'"}},[t._v(t._s(e.node_name))]),t._v("(当前节点)\n ")])]),i("div",[e.name?i("div",[t._v("\n 用户名:"),i("span",{staticStyle:{color:"#1e93ff"}},[t._v(t._s(e.name))])]):t._e(),e.action_name?i("div",[t._v("\n 审批动作:"),i("span",{staticStyle:{color:"#1e93ff"}},[t._v(t._s(e.action_name))])]):t._e()]),e.comment?i("div",[t._v("审批意见:"+t._s(e.comment))]):t._e(),e.approver_time?i("div",[t._v("处理时间:"+t._s(e.approver_time))]):t._e(),e.elapsed_time?i("div",[t._v("处理耗时:"+t._s(e.elapsed_time))]):t._e()])})),1)],1)],1),i("div",{staticClass:"header"},[i("div",{staticClass:"h_left"}),i("div",{staticClass:"h_content"},[t.flowInfo?"流程详细信息"===t.flowInfo?[i("Button",{staticStyle:{"margin-right":"20px",width:"12vw"},attrs:{type:"primary"},on:{click:function(e){return t.$router.back()}}},[t._v("返回")])]:t._e():[i("Button",{staticStyle:{"margin-right":"20px",width:"12vw"},attrs:{type:"primary"},on:{click:function(e){return t.$router.back()}}},[t._v("返回")]),i("Button",{staticStyle:{width:"12vw","margin-right":"20px"},attrs:{type:"primary"},on:{click:t.passFlow}},[t._v("通过审批")]),i("Button",{staticStyle:{width:"12vw"},attrs:{type:"warning"},on:{click:t.revocationFlow}},[t._v("退回流程")])]],2),i("div",{staticClass:"h_right"})]),i("Modal",{attrs:{title:"审批意见"},on:{"on-ok":t.ok,"on-cancel":t.cancel},model:{value:t.publicModal,callback:function(e){t.publicModal=e},expression:"publicModal"}},[i("Select",{model:{value:t.publicAction,callback:function(e){t.publicAction=e},expression:"publicAction"}},t._l(t.publicState.revocationApporval,(function(e,a){return i("Option",{key:a,attrs:{value:e.value}},[t._v(t._s(e.label)+"\n ")])})),1),i("Input",{attrs:{type:"textarea",autosize:{minRows:5,maxRows:10},placeholder:"请输入审批意见..."},model:{value:t.publicTextarea,callback:function(e){t.publicTextarea=e},expression:"publicTextarea"}})],1),i("Drawer",{attrs:{title:"团队详细",closable:!1,width:"40%"},model:{value:t.teamDrawer,callback:function(e){t.teamDrawer=e},expression:"teamDrawer"}},[i("div",{staticClass:"demo-drawer-profile"},[i("Row",{staticClass:"row"},[i("Col",{attrs:{span:"12"}},[t._v("\n 团队名称:\n ")]),i("Col",{attrs:{span:"12"}},[t._v("\n "+t._s(t.drawerObject.teamname)+"\n ")])],1),i("Row",{staticClass:"row"},[i("Col",{attrs:{span:"12"}},[t._v("\n 人数:\n ")]),i("Col",{attrs:{span:"12"}},[t._v("\n "+t._s(t.drawerObject.num)+"人\n ")])],1),i("Row",{staticClass:"row"},[i("Col",{attrs:{span:"12"}},[t._v("\n 是否获奖:\n ")]),i("Col",{attrs:{span:"12"}},[t._v("\n "+t._s(t.drawerObject.is_win)+"\n ")])],1)],1),i("Table",{attrs:{columns:t.drawerColumn,data:t.drawerObject.members}})],1),i("Drawer",{attrs:{width:"90",closable:""},scopedSlots:t._u([{key:"header",fn:function(){return[i("div",{staticStyle:{width:"100%","mix-height":"35px","max-height":"auto",position:"relative"}},[i("h3",{staticStyle:{"margin-bottom":"5px"}},[t._v("附件预览")]),t._l(t.data.Object.file_list,(function(e,a){return i("a",{key:a,staticClass:"aText",staticStyle:{"margin-right":"3vw"},on:{click:function(i){return t.updateViewFile(e)}}},[t._v("\n "+t._s(e.file_name)+"\n ")])}))],2)]},proxy:!0}]),model:{value:t.drawerPreview,callback:function(e){t.drawerPreview=e},expression:"drawerPreview"}},[t.src&&"office"===t.fileType?i("VueDocPreview",{key:t.viewFileUpdataKeys,attrs:{value:t.src,url:t.src,language:"JavaScript",type:"office"}}):t._e(),t.src&&"image"===t.fileType?i("i-frame",{key:t.viewFileUpdataKeys,attrs:{src:t.src}}):t._e()],1)],1)},s=[],n=(i("2fdb"),i("ffc1"),i("6762"),i("ac6a"),i("456d"),i("96cf"),i("1da1")),r=i("967e"),o=i.n(r),c=i("61be"),l=i("7f6b"),_=i("5ccc"),p={components:{},data:function(){return{viewFileUpdataKeys:1,split:.7,drawerPreview:!1,fileType:"",src:"",columnsStudent:[{title:"参赛学生",minWidth:100,key:"name"},{title:"学号",minWidth:120,key:"card_name"},{title:"身份证号",minWidth:180,key:"sfzh"},{title:"班级",minWidth:150,key:"classname"},{title:"性别",minWidth:80,key:"gender"},{title:"联系电话",minWidth:150,key:"phone"}],columnsTeacher:[{title:"指导教师",minWidth:100,key:"name"},{title:"工号",minWidth:120,key:"card_name"},{title:"身份证号",minWidth:180,key:"sfzh"},{title:"教学院系",minWidth:150,key:"dept"},{title:"性别",minWidth:80,key:"gender"},{title:"联系电话",minWidth:150,key:"phone"}],competitionsignTeam:[],flowInfo:"",publicIdentificatio:"",publicTextarea:"",publicAction:"",publicModal:!1,data:{keyValueArray:[],Object:{}},runid:"",form_name:"",promiseAllArray:[],drawerObject:{},teamDrawer:!1,drawerColumn:[{title:"姓名",key:"name",align:"center",show:!0,width:80},{title:"成员工号",key:"card_name",align:"center",show:!0,minWidth:120},{title:"是否为教师",key:"is_tea",align:"center",show:!0,minWidth:150},{title:"是否为指导教师",key:"is_lead",align:"center",show:!0,minWidth:100},{title:"班级",key:"classname",align:"center",show:!0,minWidth:120},{title:"部门",key:"dept",align:"center",show:!0,minWidth:120}],drawerData:[],timeLineArray:[]}},computed:{publicState:function(){return _["a"]}},watch:{},methods:{updateViewFile:function(t){var e=this,i=function(t,i){e.src=window.location.protocol+"//"+window.location.host+i.path,e.fileType=t,e.viewFileUpdataKeys++};".jpg"===t.suffix||".jpeg"===t.suffix||".png"===t.suffix||".pdf"===t.suffix?i("image",t):".doc"!==t.suffix&&".docx"!==t.suffix&&".xls"!==t.suffix&&".xlsx"!==t.suffix||i("office",t)},viewFile:function(t){var e=this,i=function(t,i){e.src=window.location.protocol+"//"+window.location.host+i.path,e.fileType=t,e.drawerPreview=!0};".jpg"===t.suffix||".jpeg"===t.suffix||".png"===t.suffix||".pdf"===t.suffix?i("image",t):".doc"!==t.suffix&&".docx"!==t.suffix&&".xls"!==t.suffix&&".xlsx"!==t.suffix||i("office",t)},GetFlowLogList:function(t){var e=this;c["a"]((function(){l["L"]({form_id:t}).then((function(t){console.log("🚀🚀resres🚀,",t),e.timeLineArray=t.response}))}))},teamInfo:function(){var t=Object(n["a"])(o.a.mark((function t(){var e;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.$Spin.show(),t.next=3,l["ub"]({teamid:this.data.Object.certificate.team_id});case 3:e=t.sent,this.drawerObject=e.response,c["e"](e),this.teamDrawer=!0;case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),ok:function(){var t=Object(n["a"])(o.a.mark((function t(){var e,i,a,s=this;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.$Spin.show(),e={taskid:this.data.Object.taskid,remark:this.publicTextarea},t.t0=this.publicIdentificatio,t.next="pass"===t.t0?5:"revocation"===t.t0?11:16;break;case 5:return t.next=7,l["h"](e);case 7:return i=t.sent,c["e"](i),1===i.code&&setTimeout((function(){localStorage.setItem("updataEvent","getDataEvent"),s.$router.back()}),1500),t.abrupt("break",16);case 11:return t.next=13,l["t"](e);case 13:return a=t.sent,1===a.code?(c["e"](a),setTimeout((function(){localStorage.setItem("updataEvent","getDataEvent"),s.$router.back()}),1500)):(this.$Spin.hide(),this.$Message.error(a.msg_detail)),t.abrupt("break",16);case 16:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),cancel:function(){this.publicModal=!1},cancelFlow:function(){var t=Object(n["a"])(o.a.mark((function t(){var e,i;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.$Spin.show(),e={runid:this.runid},t.next=4,l["j"](e);case 4:i=t.sent,1===i.code?c["e"](i):(this.$Spin.hide(),this.$Message.error(i.msg_detail));case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),revocationFlow:function(){this.publicTextarea="",this.publicIdentificatio="revocation",this.publicModal=!0},passFlow:function(){this.publicTextarea="",this.publicIdentificatio="pass",this.publicModal=!0},getInitList:function(){var t=Object(n["a"])(o.a.mark((function t(){var e,i,a,s,n,r,c,_,p,d,u,f,v,h=this;return o.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=function(t){1!==t.code&&(h.$Spin.hide(),h.$Message.error("无数据"))},t.t0=this.form_name,t.next="CompetitionReport"===t.t0?4:"CompetitionSign"===t.t0?19:"Certificate"===t.t0?35:"Bursary"===t.t0?57:"Notice"===t.t0?73:89;break;case 4:return this.$Spin.show(),i={runid:this.runid},t.next=8,l["K"](i);case 8:return a=t.sent,console.log("🚀🚀🚀,",a),this.GetFlowLogList(a.response.competition_report.competitionreportid),e(a),this.data.Object=a.response,s=["competitionname","sponsor","way","dept","competitionsubitem_name","report_code","competitionbatch_name","competition_type_name","competition_level_name"],Object.keys(a.response.competition_report).map((function(t){return s.includes(t)?"":delete a.response.competition_report[t]})),this.data.keyValueArray=Object.entries(a.response.competition_report),this.data.keyValueArray.map((function(t,e){var i=["赛事名称","主办单位","比赛形式","教学单位","赛项名称","赛事编码","学年名称","赛事类型","赛事级别","相关专业"];t.push(i[e])})),this.$Spin.hide(),t.abrupt("break",89);case 19:return this.$Spin.show(),n={runid:this.runid},t.next=23,l["K"](n);case 23:return r=t.sent,this.GetFlowLogList(r.response.competition_sign.competitionsignid),e(r),this.data.Object=r.response,this.data.competitionsignid=r.response.competition_sign.competitionsignid,l["gc"]({signid:r.response.competition_sign.competitionsignid}).then((function(t){h.competitionsignTeam=t.response})),c=["competitionname","sponsor","way","class_hour","end_time","competitionsubitem_name","report_code","competition_type_name","competition_level_name","begin_time","money"],Object.keys(r.response.competition_sign).map((function(t){-1===c.indexOf(t)&&delete r.response.competition_sign[t]})),this.data.keyValueArray=Object.entries(r.response.competition_sign),this.data.keyValueArray.map((function(t,e){var i=["赛事编号","赛事名称","赛项名称","主办单位","赛事级别","赛事类别","参赛形式","比赛开始时间","比赛结束时间","经费预算","计划培训课时"];t.push(i[e])})),this.$Spin.hide(),t.abrupt("break",89);case 35:return this.$Spin.show(),_={runid:this.runid},t.next=39,l["K"](_);case 39:return p=t.sent,this.GetFlowLogList(p.response.certificate.certificateid),e(p),this.data.Object=p.response,delete p.response.certificate.certificateid,delete p.response.certificate.certificate_file,delete p.response.certificate.approval_remark,delete p.response.certificate.competitionreportid,delete p.response.certificate.createtime,delete p.response.certificate.certificate_description,delete p.response.certificate.competitionsubitem_id,delete p.response.certificate.money,delete p.response.certificate.team_id,delete p.response.certificate.certificate_name,this.data.keyValueArray=Object.entries(p.response.certificate),this.data.keyValueArray.map((function(t,e){var i=["赛事名称","主办单位","赛事级别","审批状态","竞赛类别","比赛开始时间","比赛结束时间","赛项名称","竞赛形式","申请人"];t.push(i[e])})),this.$Spin.hide(),t.abrupt("break",89);case 57:return this.$Spin.show(),d={runid:this.runid},t.next=61,l["K"](d);case 61:return u=t.sent,this.GetFlowLogList(u.response.bursary.competitionreportid),e(u),this.data.Object=u.response,delete u.response.bursary.bursaryid,delete u.response.bursary.grant_file,delete u.response.bursary.competitionreportid,delete u.response.bursary.approval_remark,this.data.keyValueArray=Object.entries(u.response.bursary),this.data.keyValueArray.map((function(t,e){var i=["姓名","性别","学号/工号","身份证","专业/班级","竞赛名称","竞赛文件名","竞赛类别","补助时间","补助金额","计划集训时间","实际集训起止时间","参赛具体情况","创建时间","审批状态"];t.push(i[e])})),this.$Spin.hide(),t.abrupt("break",89);case 73:return this.$Spin.show(),f={runid:this.runid},t.next=77,l["K"](f);case 77:return v=t.sent,e(v),this.data.Object=v.response,delete v.response.notice.noticeid,delete v.response.notice.typeid,delete v.response.notice.grant_file,delete v.response.notice.createtime,delete v.response.notice.competitionreportid,this.data.keyValueArray=Object.entries(v.response.notice),this.data.keyValueArray.map((function(t,e){var i=["公告标题","公告类型","发布时间","发布用户","修改人","修改时间","是否置顶","是否发布","审批状态","公告内容"];t.push(i[e])})),this.$Spin.hide(),t.abrupt("break",89);case 89:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},beforeCreate:function(){},created:function(){},beforeMount:function(){},mounted:function(){this.runid=this.$route.query.runid,this.form_name=this.$route.query.form_name,this.flowInfo=this.$route.query.flowInfo,this.getInitList()},beforeUpdate:function(){},updated:function(){},beforeDestroy:function(){},destroyed:function(){},activated:function(){}},d=p,u=(i("9e50"),i("2877")),f=Object(u["a"])(d,a,s,!1,null,"17ae9b7c",null);e["default"]=f.exports},"504c":function(t,e,i){var a=i("9e1e"),s=i("0d58"),n=i("6821"),r=i("52a7").f;t.exports=function(t){return function(e){var i,o=n(e),c=s(o),l=c.length,_=0,p=[];while(l>_)i=c[_++],a&&!r.call(o,i)||p.push(t?[i,o[i]]:o[i]);return p}}},"9e50":function(t,e,i){"use strict";i("eb60")},eb60:function(t,e,i){},ffc1:function(t,e,i){var a=i("5ca1"),s=i("504c")(!0);a(a.S,"Object",{entries:function(t){return s(t)}})}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67368ac8"],{"386d":function(t,e,n){"use strict";var a=n("cb7c"),i=n("83a1"),s=n("5f1b");n("214f")("search",1,(function(t,e,n,r){return[function(n){var a=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,a):new RegExp(n)[e](String(a))},function(t){var e=r(n,t,this);if(e.done)return e.value;var l=a(t),o=String(this),c=l.lastIndex;i(c,0)||(l.lastIndex=0);var u=s(l,o);return i(l.lastIndex,c)||(l.lastIndex=c),null===u?-1:u.index}]}))},"504c":function(t,e,n){var a=n("9e1e"),i=n("0d58"),s=n("6821"),r=n("52a7").f;t.exports=function(t){return function(e){var n,l=s(e),o=i(l),c=o.length,u=0,p=[];while(c>u)n=o[u++],a&&!r.call(l,n)||p.push(t?[n,l[n]]:l[n]);return p}}},"76aa":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{ref:"card",scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticStyle:{height:"80px"}},[n("h3",[t._v("报名列表")]),n("Row",{staticStyle:{"margin-top":"30px"}},[n("Col",{attrs:{span:"8"}},[t._v("\n 参与方式:\n "),n("Select",{staticStyle:{width:"10vw"},model:{value:t.search.way,callback:function(e){t.$set(t.search,"way",e)},expression:"search.way"}},t._l(t.search.wayArray,(function(e,a){return n("Option",{key:a,attrs:{value:e.value}},[t._v(" "+t._s(e.label)+"\n ")])})),1)],1),n("Col",{attrs:{span:"8"}},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[t._v("\n 竞赛等级:\n "),n("Select",{staticStyle:{width:"10vw"},model:{value:t.search.level,callback:function(e){t.$set(t.search,"level",e)},expression:"search.level"}},t._l(t.search.levelArray,(function(e,a){return n("Option",{key:a,attrs:{value:e.id}},[t._v(" "+t._s(e.name)+"\n ")])})),1)],1)]),n("Col",{attrs:{span:"8"}},[n("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"flex-end"}},[t._v("\n 审批状态:\n "),n("Select",{staticStyle:{width:"10vw"},model:{value:t.search.approval_state,callback:function(e){t.$set(t.search,"approval_state",e)},expression:"search.approval_state"}},t._l(t.search.approval_stateArray,(function(e,a){return n("Option",{key:a,attrs:{value:e.value}},[t._v("\n "+t._s(e.label)+"\n ")])})),1)],1)])],1)],1)]},proxy:!0},{key:"extra",fn:function(){return[n("Input",{staticStyle:{width:"15vw"},attrs:{placeholder:"请输入竞赛名称..."},model:{value:t.search.name,callback:function(e){t.$set(t.search,"name",e)},expression:"search.name"}}),n("Button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",disabled:t.searchButton},on:{click:t.searchFun}},[t._v("查找")])]},proxy:!0}])},[n("Table",{attrs:{columns:t.columns,data:t.tableData,loading:t.loading},scopedSlots:t._u([{key:"way",fn:function(e){var a=e.row;return[n("Tag",{attrs:{color:["success","primary"][a.way]}},[t._v(t._s(["团队","个人"][a.way]))])]}},{key:"approval_state",fn:function(e){var n=e.row;return[t._v("\n "+t._s(["未审批","审批中","审批通过","审批不通过"][n.approval_state])+"\n ")]}},{key:"action",fn:function(e){var a=e.row;return[n("a",{staticStyle:{"margin-left":"15px"},on:{click:function(e){return t.edit(a)}}},[t._v("详细")]),n("Poptip",{attrs:{confirm:"",transfer:"",title:"你确定删除吗?"},on:{"on-ok":function(e){return t.delCompetition(a)},"on-cancel":t.cancel}},[n("a",{staticStyle:{"margin-left":"15px",color:"red"}},[t._v("删除")])])]}}])},[t._v("\n >\n ")]),n("div",{staticStyle:{height:"60px",display:"flex","align-items":"center"}},[n("Page",{key:t.pageKey,attrs:{total:t.init.total,"show-total":"","show-sizer":"","page-size":t.init.page_size},on:{"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize},model:{value:t.init.page_index,callback:function(e){t.$set(t.init,"page_index",e)},expression:"init.page_index"}})],1)],1),n("Drawer",{attrs:{width:800,title:"详细",closable:!0},model:{value:t.drawer,callback:function(e){t.drawer=e},expression:"drawer"}},[n("div",{staticClass:"tableList"},[n("h1",{staticStyle:{display:"flex","justify-content":"center"}},[t._v("竞赛报名内容详细")]),n("table",{staticClass:"container1",attrs:{border:1}},t._l(t.drawerKeyValueArray,(function(e,a){return n("tr",{key:a,staticClass:"row"},["level"===e[0]?n("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"level"===e[0]?n("td",{staticClass:"colContent"},[t._v(t._s(["","国家级","省一级","省二级"][e[1]]))]):t._e(),"way"===e[0]?n("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"way"===e[0]?n("td",{staticClass:"colContent"},[t._v(t._s(["团队","个人"][e[1]]))]):t._e(),"race_level"===e[0]?n("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"race_level"===e[0]?n("td",{staticClass:"colContent"},[t._v(t._s(["","国家级","省一级","省二级"][e[1]])+"\n ")]):t._e(),"approval_state"===e[0]?n("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"approval_state"===e[0]?n("td",{staticClass:"colContent"},[t._v("\n "+t._s(["未审批","审批中","审批通过","审批不通过"][e[1]])+"\n ")]):t._e(),"projectInfo"!==e[0]&&"trainPlanInfo"!==e[0]&&"level"!==e[0]&&"race_level"!==e[0]&&"way"!==e[0]&&"approval_state"!==e[0]?n("th",{staticClass:"colTitle"},[t._v(t._s(e[2])+"\n ")]):t._e(),"projectInfo"!==e[0]&&"trainPlanInfo"!==e[0]&&"level"!==e[0]&&"race_level"!==e[0]&&"way"!==e[0]&&"approval_state"!==e[0]?n("td",{staticClass:"colContent"},[t._v(t._s(e[1])+"\n ")]):t._e(),"trainPlanInfo"===e[0]?n("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"trainPlanInfo"===e[0]?n("td",{staticClass:"colContent"},t._l(e[1],(function(e,a){return n("a",{key:a,staticClass:"aText",staticStyle:{display:"flex","flex-wrap":"wrap","justify-content":"center"},attrs:{href:e.path}},[t._v("\n "+t._s(e.file_name)+"\n ")])})),0):t._e(),"projectInfo"===e[0]?n("th",{staticClass:"colTitle"},[t._v(t._s(e[2]))]):t._e(),"projectInfo"===e[0]?n("td",{staticClass:"colContent"},t._l(e[1],(function(e,a){return n("a",{key:a,staticClass:"aText",staticStyle:{display:"flex","flex-wrap":"wrap","justify-content":"center"},attrs:{href:e.path}},[t._v("\n "+t._s(e.file_name)+"\n ")])})),0):t._e()])})),0),n("div",{staticStyle:{width:"100%",height:"50vh","overflow-y":"auto"}},t._l(t.competitionsignTeam,(function(e,a){return n("Card",{key:a,staticStyle:{"margin-top":"1vw",width:"100%"},scopedSlots:t._u([{key:"title",fn:function(){return[n("h3",[t._v(t._s(e.teanname)+"(指导教师"+t._s(e.teacher_list.length)+"位;参赛学生"+t._s(e.student_list.length)+"位;)")])]},proxy:!0}],null,!0)},[n("Table",{attrs:{columns:t.columnsTeacher,data:e.teacher_list}}),n("Table",{attrs:{columns:t.columnsStudent,data:e.student_list}})],1)})),1)])]),n("Modal",{attrs:{title:"文件导出"},scopedSlots:t._u([{key:"footer",fn:function(){return[n("Button",{attrs:{type:"text"},on:{click:function(e){t.importModal=!1}}},[t._v("关闭")])]},proxy:!0}]),model:{value:t.importModal,callback:function(e){t.importModal=e},expression:"importModal"}},[t.importLoading?n("Spin",{attrs:{fix:""}}):t._e(),n("div",{staticStyle:{display:"flex","justify-content":"space-around"}},t._l(t.fileObject,(function(e,a){return n("Button",{key:a,attrs:{icon:"md-log-in"},on:{click:function(n){return t.importButton(e[1])}}},[t._v("\n "+t._s(e[2])+"\n ")])})),1)],1)],1)},i=[],s=(n("456d"),n("ac6a"),n("ffc1"),n("96cf"),n("1da1")),r=(n("7f7f"),n("386d"),n("967e")),l=n.n(r),o=n("61be"),c=n("7f6b"),u=n("2ef0"),p=n.n(u),h={name:"list",data:function(){return{keys1:1,columnsStudent:[{title:"参赛学生",minWidth:100,key:"name"},{title:"学号",minWidth:120,key:"card_name"},{title:"身份证号",minWidth:180,key:"sfzh"},{title:"班级",minWidth:150,key:"classname"},{title:"性别",minWidth:80,key:"gender"},{title:"联系电话",minWidth:150,key:"phone"}],columnsTeacher:[{title:"指导教师",minWidth:100,key:"name"},{title:"工号",minWidth:120,key:"card_name"},{title:"身份证号",minWidth:180,key:"sfzh"},{title:"教学院系",minWidth:150,key:"dept"},{title:"性别",minWidth:80,key:"gender"},{title:"联系电话",minWidth:150,key:"phone"}],competitionsignTeam:[],drawerKeyValueArray:[],drawer:!1,grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"赛事名称",key:"competitionname",align:"center",show:!0,minWidth:200},{title:"赛项",key:"competitionsubitem_name",align:"center",show:!0,minWidth:200},{title:"赛事编号",key:"report_code",align:"center",show:!0,minWidth:200},{title:"主办单位",key:"sponsor",align:"center",show:!0,minWidth:150},{title:"经费预算",key:"money",align:"center",show:!0,minWidth:150},{title:"赛事级别",key:"competition_level_name",align:"center",show:!0,minWidth:100},{title:"赛事类别",key:"competition_type_name",align:"center",show:!0,minWidth:100},{title:"竞赛形式(团/个)",slot:"way",align:"center",show:!0,minWidth:200},{title:"计划培训量",key:"class_hour",align:"center",show:!0,minWidth:200},{title:"竞赛开始时间",key:"begin_time",align:"center",show:!0,minWidth:200},{title:"竞赛结束时间",key:"end_time",align:"center",show:!0,minWidth:200},{title:"审批状态",slot:"approval_state",align:"center",show:!0,minWidth:200},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""},search:{way:"",name:"",approval_state:"",level:"",wayCurrentValue:"",nameCurrentValue:"",approval_stateCurrentValue:"",levelCurrentValue:"",approval_stateArray:[{value:0,label:"未审批"},{value:1,label:"审批中"},{value:2,label:"审批通过"},{value:3,label:"审批不通过"}],levelArray:[],wayArray:[{value:0,label:"团队"},{value:1,label:"个人"}]},init:{page_index:1,page_size:10,total:0},pageKey:1,importLoading:!1,importModal:!1,fileObject:[]}},created:function(){},computed:{searchButton:function(){return""===this.search.way&&""===this.search.level&&""===this.search.name&&""===this.search.approval_state}},mounted:function(){this.getCompetitionSignList(),this.GetLevelBySelect()},methods:{GetLevelBySelect:function(){var t=Object(s["a"])(l.a.mark((function t(){var e;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,c["T"]();case 2:e=t.sent,this.search.levelArray=e.response;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),importButton:function(t){window.open(t,"_blank")},importFile:function(){var t=Object(s["a"])(l.a.mark((function t(e){var n,a,i;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("🚀🚀🚀,",e),this.importModal=!0,this.importLoading=!0,t.next=5,c["cc"]({id:e.competitionsignid});case 5:n=t.sent;try{delete n.response.response.file_name,a=Object.entries(n.response.response),i=["PDF导出","Word导出"],a.map((function(t,e){t.push(i[e])})),this.fileObject=a,this.importLoading=!1}catch(s){this.importLoading=!1}case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),delCompetition:function(){var t=Object(s["a"])(l.a.mark((function t(e){var n,a;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={id:e.competitionsignid},t.next=3,c["bc"](n);case 3:return a=t.sent,o["e"](a),t.next=7,this.getCompetitionSignList();case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),handleChangePage:function(t){this.init.page_index=t,this.getCompetitionSignList()},handleChangePageSize:function(t){this.init.page_size=t,this.getCompetitionSignList()},searchFun:function(){var t=Object(s["a"])(l.a.mark((function t(){return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.search.wayCurrentValuethis=this.search.name,this.search.levelCurrentValue=this.search.level,this.search.wayCurrentValue=this.search.way,this.search.approval_stateCurrentValue=this.search.approval_state,this.pageKey++,this.init.page_index=1,t.next=8,this.getCompetitionSignList();case 8:t.sent;case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getCompetitionSignList:function(){var t=Object(s["a"])(l.a.mark((function t(){var e,n;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loading=!0,e={name:this.search.wayCurrentValuethis,level:this.search.levelCurrentValue,way:this.search.wayCurrentValue,approval_state:this.search.approval_stateCurrentValue,page_index:this.init.page_index,page_size:this.init.page_size},t.next=4,c["lb"](e);case 4:n=t.sent,this.tableData=n.response.data,this.init.total=n.response.data_count,this.loading=!1;case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),add:function(){this.$refs.addEdit.add()},edit:function(){var t=Object(s["a"])(l.a.mark((function t(e){var n,a,i,s=this;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.keys1++,t.next=3,c["kb"]({id:e.competitionsignid});case 3:n=t.sent,this.drawer=!0,a=p.a.cloneDeep(e),a.trainPlanInfo=n.response.trainPlanInfo,a.projectInfo=n.response.projectInfo,c["gc"]({signid:a.competitionsignid}).then((function(t){s.competitionsignTeam=t.response})),i=["competitionname","sponsor","way","class_hour","end_time","competitionsubitem_name","report_code","competition_type_name","competition_level_name","begin_time","money"],Object.keys(a).map((function(t){-1===i.indexOf(t)&&delete a[t]})),this.drawerKeyValueArray=Object.entries(a),this.drawerKeyValueArray.map((function(t,e){var n=["赛事编号","赛事名称","赛项名称","主办单位","赛事级别","赛事类别","参赛形式","比赛开始时间","比赛结束时间","经费预算","计划培训课时"];t.push(n[e])}));case 13:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")}}},d=h,f=(n("84da"),n("2877")),_=Object(f["a"])(d,a,i,!1,null,"cdc53b04",null);e["default"]=_.exports},"83a1":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"84da":function(t,e,n){"use strict";n("b8b3")},b8b3:function(t,e,n){},ffc1:function(t,e,n){var a=n("5ca1"),i=n("504c")(!0);a(a.S,"Object",{entries:function(t){return i(t)}})}}]);
\ No newline at end of file
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或