1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56faa0a9"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,n,o){return e/=o/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function a(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,n){var i=a(),s=e-i,l=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=l;var a=Math.easeInOutQuad(u,i,s,t);r(a),u<t?o(e):n&&"function"===typeof n&&n()};c()}},"274f":function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[e._m(0),e._v(" "),n("div",{staticClass:"m-core"},[n("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[n("el-form-item",{attrs:{prop:"organId"}},[n("el-select",{staticClass:"multiple",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 n("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],1)],1),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"分部"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"课程时长(分钟)"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"课程单价(元)"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.resetFee(t.row)}}},[e._v("修改")])],1)]}}])})],1),e._v(" "),n("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),e.dialogVisible?n("el-dialog",{attrs:{title:"修改课程单价",visible:e.dialogVisible,width:"400px","append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("el-form",{attrs:{model:e.form,"label-width":"120px","label-position":"right"}},[n("el-form-item",{attrs:{label:"分部:"}},[e._v(e._s(e.form.organName))]),e._v(" "),n("el-form-item",{attrs:{label:"课程时长(分钟):"}},[e._v(e._s(e.form.courseTime))]),e._v(" "),n("el-form-item",{attrs:{label:"课程单价(元):",prop:"courseFee",rules:[{required:!0,message:"请输入课程单价",trigger:"blur"},{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,message:"请输入正确的金额",trigger:"blur"}]}},[n("el-input",{model:{value:e.form.courseFee,callback:function(t){e.$set(e.form,"courseFee",t)},expression:"form.courseFee"}})],1)],1),e._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.submitReset}},[e._v("确认修改")])],1)],1):e._e()],1)},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("\n 网管课价格设置\n ")])}],a=(n("386d"),n("bc3a"),n("5f87"),n("333d")),i=(n("3908"),{components:{pagination:a["a"]},data:function(){return{searchForm:{organId:null},form:{organName:"武汉",courseTime:"25",courseFee:"180"},tableList:[{}],organList:[],activeRow:null,dialogVisible:!1,rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){this.$store.dispatch("setBranchs"),this.init()},methods:{init:function(){},getList:function(){},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},resetFee:function(e){this.activeRow=e,this.dialogVisible=!0},submitReset:function(){}}}),s=i,l=n("2877"),u=Object(l["a"])(s,o,r,!1,null,"5bcdbcf1",null);t["default"]=u.exports}}]);
|