1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-674ccdeb","chunk-2d0d6f6b"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,r,n){return e/=n/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,r){var s=o(),i=e-s,c=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=c;var o=Math.easeInOutQuad(l,s,i,t);a(o),l<t?n(e):r&&"function"===typeof r&&r()};u()}},"18db":function(e,t,r){"use strict";r("f462")},"2a7f":function(e,t,r){},"33ac":function(e,t,r){"use strict";r("5b5f")},"5b5f":function(e,t,r){},7590:function(e,t,r){"use strict";var n=r("d225"),a=r("b0b4"),o=r("2a88"),s=r("6bb5"),i=r("4e2b"),c=r("c603"),l=r("953d"),u=l["Quill"].import("blots/block/embed"),p=l["Quill"].import("formats/link"),f=["height","width","src","poster"],m=function(e){Object(i["a"])(r,e);var t=Object(c["a"])(r);function r(){return Object(n["a"])(this,r),t.apply(this,arguments)}return Object(a["a"])(r,[{key:"format",value:function(e,t){f.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):Object(o["a"])(Object(s["a"])(r.prototype),"format",this).call(this,e,t)}},{key:"html",value:function(){var e=this.value(),t=e.video;return'<a href="'.concat(t,'">').concat(t,"</a>")}}],[{key:"create",value:function(e){var t=Object(o["a"])(Object(s["a"])(r),"create",this).call(this,e.url);return t.setAttribute("controls","controls"),t.setAttribute("type","video/mp4"),t.setAttribute("preload","auto"),t.setAttribute("autopaly","false"),t.setAttribute("src",this.sanitize(e.url)),t.setAttribute("poster",this.sanitize(e.poster)),t}},{key:"formats",value:function(e){return f.reduce((function(t,r){return e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t}),{})}},{key:"sanitize",value:function(e){return p.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),r}(u);m.blotName="video",m.className="ql-video",m.tagName="video",t["a"]=m},"7e78a":function(e,t,r){},"9acb":function(e,t,r){"use strict";r.d(t,"m",(function(){return c})),r.d(t,"n",(function(){return l})),r.d(t,"h",(function(){return u})),r.d(t,"g",(function(){return p})),r.d(t,"i",(function(){return f})),r.d(t,"j",(function(){return m})),r.d(t,"k",(function(){return d})),r.d(t,"c",(function(){return b})),r.d(t,"e",(function(){return v})),r.d(t,"f",(function(){return h})),r.d(t,"d",(function(){return g})),r.d(t,"b",(function(){return w})),r.d(t,"a",(function(){return _})),r.d(t,"q",(function(){return y})),r.d(t,"l",(function(){return O})),r.d(t,"o",(function(){return k})),r.d(t,"r",(function(){return x})),r.d(t,"p",(function(){return j}));var n=r("829b"),a=r("b775"),o=r("4328"),s=r.n(o),i="/api-web";function c(e){return Object(a["a"])({url:i+"/degree/queryPage",method:"get",params:e})}function l(e){return Object(a["a"])({url:i+"/degree/refund",method:"post",data:s.a.stringify(e)})}var u=function(e){return Object(n["a"])({url:"/api-web/degreeNews/page",data:e,method:"post"})},p=function(e){return Object(n["a"])({url:"/api-web/degreeNews/enable",data:e,requestType:"form",method:"post"})},f=function(e){return Object(n["a"])({url:"/api-web/degreeNews/remove",data:e,requestType:"form",method:"post"})},m=function(e){return Object(n["a"])({url:"/api-web/degreeNews/save",data:e,method:"post"})},d=function(e){return Object(n["a"])({url:"/api-web/degreeNews/update",data:e,method:"post"})},b=function(e){return Object(n["a"])({url:"/api-web/degreeLevelFee/page",data:e,method:"post"})},v=function(e){return Object(n["a"])({url:"/api-web/degreeLevelFee/save",data:e,method:"post"})},h=function(e){return Object(n["a"])({url:"/api-web/degreeLevelFee/update",data:e,method:"post"})},g=function(e){return Object(n["a"])({url:"/api-web/degreeLevelFee/remove",data:e,requestType:"form",method:"post"})},w={1:"一级",2:"二级",3:"三级",4:"四级",5:"五级",6:"六级",7:"七级",8:"八级",9:"九级",10:"十级"},_=[{value:1,text:"一级"},{value:2,text:"二级"},{value:3,text:"三级"},{value:4,text:"四级"},{value:5,text:"五级"},{value:6,text:"六级"},{value:7,text:"七级"},{value:8,text:"八级"},{value:9,text:"九级"},{value:10,text:"十级"}],y=[{value:1,text:"一级"},{value:2,text:"二级"},{value:3,text:"三级"},{value:4,text:"四级"}],O=function(e){return Object(n["a"])({url:"/api-web/degree/page",data:e,method:"post"})},k=function(e){return Object(n["a"])({url:"/api-web/degree/save",data:e,method:"post"})},x=function(e){return Object(n["a"])({url:"/api-web/degree/update",data:e,method:"post"})},j=function(e){return Object(n["a"])({url:"/api-web/degree/statistic",params:e,method:"get"})}},c52b:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("tab-router",{attrs:{type:"card"},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[e.permission("/auditList/music")?r("el-tab-pane",{attrs:{label:"考生风采",name:"1"}},["1"===e.activeIndex?r("studentRule"):e._e()],1):e._e(),e._v(" "),e.permission("cloudCoachPaymentProgram/queryPage/home")?r("el-tab-pane",{attrs:{label:"考级简章",name:"2"}},["2"===e.activeIndex?r("levelRegulations"):e._e()],1):e._e(),e._v(" "),e.permission("cloudCoachPaymentProgram/queryPage/home")?r("el-tab-pane",{attrs:{label:"考级须知",name:"3"}},["3"===e.activeIndex?r("levelNotice"):e._e()],1):e._e()],1)],1)])},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("\n 考级信息设置\n ")])}],o=r("ec8a"),s=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm,saveKey:"level-student-rule"},on:{submit:e.onSearch,reset:e.onReSet}},[r("el-form-item",{attrs:{prop:"keyword"}},[r("el-input",{attrs:{clearable:"",placeholder:"风采标题"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.keyword,callback:function(t){e.$set(e.searchForm,"keyword","string"===typeof t?t.trim():t)},expression:"searchForm.keyword"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"status"}},[r("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择状态"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status","string"===typeof t?t.trim():t)},expression:"searchForm.status"}},[r("el-option",{attrs:{value:!0,label:"启用"}}),e._v(" "),r("el-option",{attrs:{value:!1,label:"停用"}})],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"degreeNews/save",expression:"'degreeNews/save'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(t){return e.onOperation()}}},[e._v("\n 新增风采\n ")]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{width:"90px",prop:"id",label:"编号"}}),e._v(" "),r("el-table-column",{attrs:{prop:"name",label:"标题",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("overflow-text",{attrs:{text:e.row.title}})]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"name",label:"分部",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("overflow-text",{attrs:{text:e.row.organNames}})]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"name",label:"状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.status?"启用":"停用")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$helpers.permission("degreeNews/enable")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onChangeStatus(t.row)}}},[e._v(e._s(1==t.row.status?"停用":"启用"))]):e._e(),e._v(" "),1!=t.row.status?[e.$helpers.permission("degreeNews/update")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onOperation("update",t.row)}}},[e._v("修改")]):e._e(),e._v(" "),e.$helpers.permission("degreeNews/remove")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onRemove(t.row)}}},[e._v("删除")]):e._e()]:e._e()]}}])})],1),e._v(" "),r("pagination",{attrs:{sync:"",saveKey:"level-student-rule",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1),e._v(" "),r("informationOperation",{ref:"informationOperation",on:{getList:e.getList}})],1)},i=[],c=r("c80c"),l=r("db72"),u=r("a8db"),p=(r("96cf"),r("3b8d")),f=r("333d"),m=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{width:"820px",title:e.dialogTitle,visible:e.operationVisible,"before-close":e.onClose,"append-to-body":""},on:{"update:visible":function(t){e.operationVisible=t}}},[r("el-form",{ref:"elForm",staticClass:"elForm",attrs:{"label-position":"top",model:e.forms,inline:!1,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"标题",rules:[{required:!0,message:"请输入标题"}],prop:"title"}},[r("el-input",{attrs:{type:"text",maxlength:"20",placeholder:"请输入标题"},model:{value:e.forms.title,callback:function(t){e.$set(e.forms,"title",t)},expression:"forms.title"}})],1),e._v(" "),"EXAMINEE_STYLE"===e.forms.type?r("el-form-item",{attrs:{label:"可见分部",rules:[{required:!0,message:"请选择可见分部"}],prop:"organIds"}},[r("select-all",{staticClass:"organSelect",staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"请选择可见分部",multiple:"",clearable:""},model:{value:e.forms.organIds,callback:function(t){e.$set(e.forms,"organIds","string"===typeof t?t.trim():t)},expression:"forms.organIds"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),"EXAMINEE_STYLE"===e.forms.type?r("el-form-item",{attrs:{label:"封面",rules:[{required:!0,message:"请输入封面"}],prop:"coverImage"}},[r("image-cropper",{attrs:{options:e.cropperOptions,imgSize:2,showSize:"",imageUrl:e.forms.coverImage},on:{"crop-upload-success":e.cropSuccess}})],1):e._e(),e._v(" "),"EXAMINEE_STYLE"===e.forms.type||"GRADING_NOTICE"===e.forms.type?r("el-form-item",{attrs:{label:"跳转链接",rules:[{required:!0,message:"请输入跳转链接"}],prop:"hrefTarget"}},[r("el-radio-group",{model:{value:e.forms.hrefTarget,callback:function(t){e.$set(e.forms,"hrefTarget",t)},expression:"forms.hrefTarget"}},[r("el-radio",{attrs:{label:"_bank"}},[e._v("外部链接")]),e._v(" "),r("el-radio",{attrs:{label:"_slef"}},[e._v("内容跳转")])],1)],1):e._e(),e._v(" "),"_bank"===e.forms.hrefTarget?r("el-form-item",{attrs:{label:"链接地址",rules:[{required:!0,message:"请输入链接地址"}],prop:"linkUrl"}},[r("el-input",{attrs:{placeholder:"请输入链接地址"},model:{value:e.forms.linkUrl,callback:function(t){e.$set(e.forms,"linkUrl","string"===typeof t?t.trim():t)},expression:"forms.linkUrl"}})],1):e._e(),e._v(" "),"_slef"===e.forms.hrefTarget?r("el-form-item",{attrs:{label:"内容",rules:[{required:!0,message:"请输入内容"}],prop:"content"}},[r("ueditorWrap",{attrs:{modalValue:e.forms.content,id:"content",bucket_name:"news-info"},on:{"update:modalValue":function(t){return e.$set(e.forms,"content",t)},"update:modal-value":function(t){return e.$set(e.forms,"content",t)}}})],1):e._e()],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.operationVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("确 定")])],1)],1)},d=[],b=(r("c5f6"),r("28a5"),r("896b")),v=r("095c"),h=r("9acb"),g=["organIds"],w={name:"informationOperation",components:{Editor:v["default"],ImageCropper:b["a"]},data:function(){return{operationVisible:!1,dialogType:"create",dialogTitle:"",cropperOptions:{autoCrop:!0,autoCropWidth:284,autoCropHeight:160,fixedBox:!0,previewsCircle:!1,full:!0,title:"上传封面"},row:{},forms:{type:"EXAMINEE_STYLE",title:"",content:"",hrefTarget:"_bank",linkUrl:"",organIds:[],coverImage:"",status:!1}}},mounted:function(){this.$store.dispatch("setBranchs")},methods:{cropSuccess:function(e){this.forms.coverImage=e.data.url},onClose:function(){this.$refs.elForm&&this.$refs.elForm.resetFields(),this.operationVisible=!1},onSubmit:function(){var e=this;this.$refs.elForm.validate(function(){var t=Object(p["a"])(Object(c["a"])().mark((function t(r){var n,a,o;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return");case 2:if(t.prev=2,n=e.forms,a=n.organIds,o=Object(u["a"])(n,g),"create"!==e.dialogType){t.next=10;break}return t.next=7,Object(h["j"])(Object(l["a"])(Object(l["a"])({},o),{},{organIds:a.join(",")}));case 7:e.$message.success("新增成功"),t.next=13;break;case 10:return t.next=12,Object(h["k"])(Object(l["a"])(Object(l["a"])({},o),{},{organIds:a.join(",")}));case 12:e.$message.success("修改成功");case 13:e.$emit("getList"),e.onClose(),e.operationVisible=!1,t.next=20;break;case 18:t.prev=18,t.t0=t["catch"](2);case 20:case"end":return t.stop()}}),t,null,[[2,18]])})));return function(e){return t.apply(this,arguments)}}())},openDialog:function(e,t,r){var n=this;this.operationVisible=!0,this.$nextTick((function(){"rule"===t?(n.dialogTitle="update"===e?"修改风采":"新增风采",n.forms.type="EXAMINEE_STYLE"):"regulations"===t?(n.dialogTitle="update"===e?"修改简章":"新增简章",n.forms.type="GRADE_EXAMINATION_BRIEF",n.forms.hrefTarget="_slef"):"notice"===t&&(n.dialogTitle="update"===e?"修改帮助":"新增帮助",n.forms.type="GRADING_NOTICE"),"update"===e&&(n.forms.title=r.title,n.forms.content=r.content,n.forms.coverImage=r.coverImage,n.status=r.status,n.forms.hrefTarget=r.hrefTarget,n.forms.linkUrl=r.linkUrl,n.forms.id=r.id,n.forms.organIds=r.organIds?r.organIds.split(",").map((function(e){return Number(e)})):[]),n.dialogType=e}))}}},_=w,y=(r("18db"),r("2877")),O=Object(y["a"])(_,m,d,!1,null,"077bbd08",null),k=O.exports,x=["orderDate"],j={components:{pagination:f["a"],informationOperation:k},name:"student-rule",data:function(){return{searchForm:{keyword:"",organId:null,status:null},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.$store.dispatch("setBranchs"),this.getList()},methods:{onSearch:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.onSearch()},getList:function(){var e=Object(p["a"])(Object(c["a"])().mark((function e(){var t,r,n,a,o;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,t.orderDate,r=Object(u["a"])(t,x),n=Object(l["a"])(Object(l["a"])({},r),{},{type:"EXAMINEE_STYLE",page:this.pageInfo.page,rows:this.pageInfo.limit}),e.next=5,Object(h["h"])(n);case 5:a=e.sent,o=a.data,this.tableList=o.rows||[],this.pageInfo.total=o.total,e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](0);case 13:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(){return e.apply(this,arguments)}return t}(),onChangeStatus:function(){var e=Object(p["a"])(Object(c["a"])().mark((function e(t){var r,n=this;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=1==t.status?"停用":"启用",this.$confirm("确定是否".concat(r,"?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(p["a"])(Object(c["a"])().mark((function e(){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(h["g"])({newsId:t.id}).then((function(e){200==e.code?(n.$message.success(r+"成功"),n.getList()):n.$message.error(e.msg)}));case 3:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])}))));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),onRemove:function(){var e=Object(p["a"])(Object(c["a"])().mark((function e(t){var r=this;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$confirm("确定是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(p["a"])(Object(c["a"])().mark((function e(){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(h["i"])({id:t.id}).then((function(e){200==e.code?(r.$message.success("删除成功"),r.getList()):r.$message.error(e.msg)}));case 3:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])}))));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),onOperation:function(e,t){var r=e||"create";this.$refs.informationOperation.openDialog(r,"rule",t)}}},I=j,$=(r("e183"),Object(y["a"])(I,s,i,!1,null,"cc9793e4",null)),F=$.exports,E=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm,saveKey:"level-student-rule"},on:{submit:e.onSearch,reset:e.onReSet}},[r("el-form-item",{attrs:{prop:"keyword"}},[r("el-input",{attrs:{clearable:"",placeholder:"简章标题"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.keyword,callback:function(t){e.$set(e.searchForm,"keyword","string"===typeof t?t.trim():t)},expression:"searchForm.keyword"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"status"}},[r("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择状态"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status","string"===typeof t?t.trim():t)},expression:"searchForm.status"}},[r("el-option",{attrs:{value:!0,label:"启用"}}),e._v(" "),r("el-option",{attrs:{value:!1,label:"停用"}})],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"degreeNews/save",expression:"'degreeNews/save'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(t){return e.onOperation()}}},[e._v("\n 新增简章\n ")]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{width:"90px",prop:"id",label:"编号"}}),e._v(" "),r("el-table-column",{attrs:{prop:"name",label:"简章标题",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("overflow-text",{attrs:{text:e.row.title}})]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"operatorName",label:"发布人",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"updateTime",label:"发布时间",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"name",label:"状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.status?"启用":"停用")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$helpers.permission("degreeNews/enable")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onChangeStatus(t.row)}}},[e._v(e._s(1==t.row.status?"停用":"启用"))]):e._e(),e._v(" "),1!=t.row.status?[e.$helpers.permission("degreeNews/update")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onOperation("update",t.row)}}},[e._v("修改")]):e._e(),e._v(" "),e.$helpers.permission("degreeNews/remove")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onRemove(t.row)}}},[e._v("删除")]):e._e()]:e._e()]}}])})],1),e._v(" "),r("pagination",{attrs:{sync:"",saveKey:"level-student-rule",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1),e._v(" "),r("informationOperation",{ref:"informationOperation",on:{getList:e.getList}})],1)},T=[],N=["orderDate"],S={components:{pagination:f["a"],informationOperation:k},name:"student-rule",data:function(){return{searchForm:{keyword:"",status:null},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{onSearch:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.onSearch()},getList:function(){var e=Object(p["a"])(Object(c["a"])().mark((function e(){var t,r,n,a,o;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,t.orderDate,r=Object(u["a"])(t,N),n=Object(l["a"])(Object(l["a"])({},r),{},{type:"GRADE_EXAMINATION_BRIEF",page:this.pageInfo.page,rows:this.pageInfo.limit}),e.next=5,Object(h["h"])(n);case 5:a=e.sent,o=a.data,this.tableList=o.rows||[],this.pageInfo.total=o.total,e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](0);case 13:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(){return e.apply(this,arguments)}return t}(),onChangeStatus:function(){var e=Object(p["a"])(Object(c["a"])().mark((function e(t){var r,n=this;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=1==t.status?"停用":"启用",this.$confirm("确定是否".concat(r,"?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(p["a"])(Object(c["a"])().mark((function e(){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(h["g"])({newsId:t.id}).then((function(e){200==e.code?(n.$message.success(r+"成功"),n.getList()):n.$message.error(e.msg)}));case 3:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])}))));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),onRemove:function(){var e=Object(p["a"])(Object(c["a"])().mark((function e(t){var r=this;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$confirm("确定是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(p["a"])(Object(c["a"])().mark((function e(){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(h["i"])({id:t.id}).then((function(e){200==e.code?(r.$message.success("删除成功"),r.getList()):r.$message.error(e.msg)}));case 3:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])}))));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),onOperation:function(e,t){var r=e||"create";this.$refs.informationOperation.openDialog(r,"regulations",t)}}},L=S,C=(r("33ac"),Object(y["a"])(L,E,T,!1,null,"a207370e",null)),A=C.exports,R=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm,saveKey:"level-student-rule"},on:{submit:e.onSearch,reset:e.onReSet}},[r("el-form-item",{attrs:{prop:"keyword"}},[r("el-input",{attrs:{clearable:"",placeholder:"请输入帮助标题"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.keyword,callback:function(t){e.$set(e.searchForm,"keyword","string"===typeof t?t.trim():t)},expression:"searchForm.keyword"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"status"}},[r("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择状态"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status","string"===typeof t?t.trim():t)},expression:"searchForm.status"}},[r("el-option",{attrs:{value:!0,label:"启用"}}),e._v(" "),r("el-option",{attrs:{value:!1,label:"停用"}})],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"degreeNews/save",expression:"'degreeNews/save'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(t){return e.onOperation()}}},[e._v("\n 新增帮助\n ")]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{width:"90px",prop:"id",label:"编号"}}),e._v(" "),r("el-table-column",{attrs:{prop:"name",label:"帮助标题",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("overflow-text",{attrs:{text:e.row.title}})]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"operatorName",label:"发布人",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"updateTime",label:"发布时间",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{prop:"name",label:"状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.status?"启用":"停用")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$helpers.permission("degreeNews/enable")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onChangeStatus(t.row)}}},[e._v(e._s(1==t.row.status?"停用":"启用"))]):e._e(),e._v(" "),1!=t.row.status?[e.$helpers.permission("degreeNews/update")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onOperation("update",t.row)}}},[e._v("修改")]):e._e(),e._v(" "),e.$helpers.permission("degreeNews/remove")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.onRemove(t.row)}}},[e._v("删除")]):e._e()]:e._e()]}}])})],1),e._v(" "),r("pagination",{attrs:{sync:"",saveKey:"level-student-rule",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1),e._v(" "),r("informationOperation",{ref:"informationOperation",on:{getList:e.getList}})],1)},q=[],D=["orderDate"],B={components:{pagination:f["a"],informationOperation:k},name:"student-rule",data:function(){return{searchForm:{keyword:"",status:null},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{onSearch:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.onSearch()},getList:function(){var e=Object(p["a"])(Object(c["a"])().mark((function e(){var t,r,n,a,o;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,t.orderDate,r=Object(u["a"])(t,D),n=Object(l["a"])(Object(l["a"])({},r),{},{type:"GRADING_NOTICE",page:this.pageInfo.page,rows:this.pageInfo.limit}),e.next=5,Object(h["h"])(n);case 5:a=e.sent,o=a.data,this.tableList=o.rows||[],this.pageInfo.total=o.total,e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](0);case 13:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(){return e.apply(this,arguments)}return t}(),onChangeStatus:function(){var e=Object(p["a"])(Object(c["a"])().mark((function e(t){var r,n=this;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=1==t.status?"停用":"启用",this.$confirm("确定是否".concat(r,"?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(p["a"])(Object(c["a"])().mark((function e(){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(h["g"])({newsId:t.id}).then((function(e){200==e.code?(n.$message.success(r+"成功"),n.getList()):n.$message.error(e.msg)}));case 3:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])}))));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),onRemove:function(){var e=Object(p["a"])(Object(c["a"])().mark((function e(t){var r=this;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$confirm("确定是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(p["a"])(Object(c["a"])().mark((function e(){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(h["i"])({id:t.id}).then((function(e){200==e.code?(r.$message.success("删除成功"),r.getList()):r.$message.error(e.msg)}));case 3:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])}))));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),onOperation:function(e,t){var r=e||"create";this.$refs.informationOperation.openDialog(r,"notice",t)}}},z=B,M=(r("dd76"),Object(y["a"])(z,R,q,!1,null,"2c1a356c",null)),V=M.exports,G={name:"levelInformationSetting",components:{studentRule:F,levelRegulations:A,levelNotice:V},data:function(){return{activeIndex:null}},methods:{permission:o["a"]}},U=G,X=Object(y["a"])(U,n,a,!1,null,"6172d99c",null);t["default"]=X.exports},dd76:function(e,t,r){"use strict";r("2a7f")},e183:function(e,t,r){"use strict";r("7e78a")},f462:function(e,t,r){}}]);
|