chunk-4c292f42.e3d5b022.js 36 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4c292f42","chunk-ad5eb7c4","chunk-947a1ac8","chunk-726d76c0"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(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,a){var s=o(),l=e-s,i=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=i;var o=Math.easeInOutQuad(c,s,l,t);n(o),c<t?r(e):a&&"function"===typeof a&&a()};u()}},"0cbd":function(e,t,a){"use strict";a("3a70")},1127:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("tab-router",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[e.permissionList.loginRules?a("el-tab-pane",{attrs:{label:"登录限制",lazy:"",name:"6"}},[6==e.activeIndex?a("loginRules"):e._e()],1):e._e(),e._v(" "),e.permissionList.groupMarkPrice?a("el-tab-pane",{attrs:{label:"云教练定价",lazy:"",name:"3"}},[3==e.activeIndex?a("groupMarkPrice"):e._e()],1):e._e(),e._v(" "),e.permissionList.overallManager?a("el-tab-pane",{attrs:{label:"平台参数",lazy:"",name:"2"}},[2==e.activeIndex?a("overallManager"):e._e()],1):e._e(),e._v(" "),e.permissionList.overallManagerTwo?a("el-tab-pane",{attrs:{label:"收费分润配置",lazy:"",name:"7"}},[7==e.activeIndex?a("overallManagerTwo"):e._e()],1):e._e()],1)],1)])},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 平台参数设置\n ")])}],o=(a("7f7f"),a("a810")),s=a("48d0"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[a("el-form",{ref:"form",attrs:{inline:!0,model:e.form}},[a("el-alert",{staticStyle:{margin:"10px 0"},attrs:{title:"机构云教练定价范围设置",closable:!1,type:"info"}}),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"minMonthFee",label:"月度云教练机构定价范围最低:",rules:[{required:!1,pattern:/^[0-9][0-9]*$/,message:"请输入正确的价格"}]}},[a("el-input",{attrs:{placeholder:"请输入金额"},model:{value:e.form.minMonthFee,callback:function(t){e.$set(e.form,"minMonthFee",t)},expression:"form.minMonthFee"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"最高",prop:"maxMonthFee",rules:[{required:!1,pattern:/^[0-9][0-9]*$/,message:"请输入正确的价格"},{validator:e.validateMonthMax,trigger:"blur"}]}},[a("el-input",{attrs:{placeholder:"请输入金额"},model:{value:e.form.maxMonthFee,callback:function(t){e.$set(e.form,"maxMonthFee",t)},expression:"form.maxMonthFee"}},[a("template",{slot:"append"},[e._v("元")])],2)],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"minQuarterlyFee",label:"季度云教练机构定价范围最低:",rules:[{required:!1,pattern:/^[0-9][0-9]*$/,message:"请输入正确的价格"}]}},[a("el-input",{attrs:{placeholder:"请输入金额"},model:{value:e.form.minQuarterlyFee,callback:function(t){e.$set(e.form,"minQuarterlyFee",t)},expression:"form.minQuarterlyFee"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"最高",prop:"maxQuarterlyFee",rules:[{required:!1,pattern:/^[0-9][0-9]*$/,message:"请输入正确的价格"},{validator:e.validateQuarterlyMax,trigger:"blur"}]}},[a("el-input",{attrs:{placeholder:"请输入金额"},model:{value:e.form["maxQuarterlyFee"],callback:function(t){e.$set(e.form,"maxQuarterlyFee",t)},expression:"form['maxQuarterlyFee']"}},[a("template",{slot:"append"},[e._v("元")])],2)],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"minHalfYearFee",label:"半年云教练机构定价范围最低:",rules:[{required:!1,pattern:/^[0-9][0-9]*$/,message:"请输入正确的价格"}]}},[a("el-input",{attrs:{placeholder:"请输入金额"},model:{value:e.form["minHalfYearFee"],callback:function(t){e.$set(e.form,"minHalfYearFee",t)},expression:"form['minHalfYearFee']"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),a("el-form-item",{attrs:{prop:"maxHalfYearFee",label:"最高",rules:[{required:!1,pattern:/^[0-9][0-9]*$/,message:"请输入正确的价格"},{validator:e.validateHalfYearMax,trigger:"blur"}]}},[a("el-input",{attrs:{placeholder:"请输入金额"},model:{value:e.form["maxHalfYearFee"],callback:function(t){e.$set(e.form,"maxHalfYearFee",t)},expression:"form['maxHalfYearFee']"}},[a("template",{slot:"append"},[e._v("元")])],2)],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"minYearFee",label:"年度云教练机构定价范围最低:",rules:[{required:!1,pattern:/^[0-9][0-9]*$/,message:"请输入正确的价格"}]}},[a("el-input",{attrs:{placeholder:"请输入金额"},model:{value:e.form["minYearFee"],callback:function(t){e.$set(e.form,"minYearFee",t)},expression:"form['minYearFee']"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),a("el-form-item",{attrs:{prop:"maxYearFee",label:"最高",rules:[{required:!1,pattern:/^[0-9][0-9]*$/,message:"请输入正确的价格"},{validator:e.validateYearMax,trigger:"blur"}]}},[a("el-input",{attrs:{placeholder:"请输入金额"},model:{value:e.form["maxYearFee"],callback:function(t){e.$set(e.form,"maxYearFee",t)},expression:"form['maxYearFee']"}},[a("template",{slot:"append"},[e._v("元")])],2)],1)],1)],1),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysConfig/batchUpdate/groupMarkPrice",expression:"'sysConfig/batchUpdate/groupMarkPrice'"}],staticClass:"saveBtn",attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1)},i=[],c=(a("c5f6"),a("ac6a"),a("c80c")),u=(a("96cf"),a("3b8d")),m=a("a6e9"),p={data:function(){return{id:null,form:{minMonthFee:null,maxMonthFee:null,minQuarterlyFee:null,maxQuarterlyFee:null,minHalfYearFee:null,maxHalfYearFee:null,minYearFee:null,maxYearFee:null},questionList:[],rulesVisiable:!1}},mounted:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.getRules();case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getRules:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t,a,r=this;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["a"])({group:"DEFAULT"});case 3:t=e.sent,a="cloud_price_range",t.data.forEach((function(e){if(e.paramName==a){var t=e.paranValue?JSON.parse(e.paranValue):null;t&&(r.id=e.id,r.form=t),console.log(t)}})),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t=this;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.form.validate(function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(a){var r;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=13;break}return r=[{id:t.id,paranValue:JSON.stringify(t.form)}],e.prev=2,e.next=5,Object(m["b"])(r);case 5:e.sent,t.$message.success("保存成功"),t.getRules(),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](2),console.log(e.t0);case 13:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),validateMonthMax:function(e,t,a){var r=Number(t),n=Number(this.form.minMonthFee);return!n||r>=n?a():a(new Error("输入值不得小于月度最低金额"))},validateQuarterlyMax:function(e,t,a){var r=Number(t),n=Number(this.form.minQuarterlyFee);return!n||r>=n?a():a(new Error("输入值不得小于季度最低金额"))},validateHalfYearMax:function(e,t,a){var r=Number(t),n=Number(this.form.minHalfYearFee);return!n||r>=n?a():a(new Error("输入值不得小于半年最低金额"))},validateYearMax:function(e,t,a){var r=Number(t),n=Number(this.form.minYearFee);return!n||r>=n?a():a(new Error("输入值不得小于年度最低金额"))}}},f=p,d=(a("9458"),a("2877")),v=Object(d["a"])(f,l,i,!1,null,"d56717c2",null),b=v.exports,h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[a("el-form",{ref:"form",attrs:{inline:!0,model:e.form}},[a("el-alert",{staticStyle:{margin:"10px 0"},attrs:{title:"收费分润设置",closable:!1,type:"info"}}),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"68"}},[e._v("\n 默认收款渠道:\n "),a("el-select",{attrs:{placeholder:"请选择渠道"},model:{value:e.form["68"],callback:function(t){e.$set(e.form,"68",t)},expression:"form['68']"}},[a("el-option",{attrs:{label:"汇付",value:"ADAPAY"}}),e._v(" "),a("el-option",{attrs:{label:"易宝",value:"YEEPAY"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"268",rules:[{required:!0,message:"请选择支付方式",trigger:"change"}]}},[e._v("\n 支付方式:\n "),a("el-select",{attrs:{placeholder:"请选择渠道",multiple:"",clearable:""},model:{value:e.form["268"],callback:function(t){e.$set(e.form,"268",t)},expression:"form['268']"}},[a("el-option",{attrs:{label:"微信",value:"wx"}}),e._v(" "),a("el-option",{attrs:{label:"支付宝",value:"alipay"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"69"}},[e._v("\n 是否用收费配置:\n "),a("el-select",{attrs:{placeholder:"请选择渠道"},model:{value:e.form["69"],callback:function(t){e.$set(e.form,"69",t)},expression:"form['69']"}},[a("el-option",{attrs:{label:"使用",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"不使用",value:"0"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"90"}},[e._v("\n 延迟分账开始执行时间:\n "),a("el-date-picker",{staticClass:"marginLR5",attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择始执行时间"},model:{value:e.form["90"],callback:function(t){e.$set(e.form,"90",t)},expression:"form['90']"}})],1)],1)],1),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysConfig/batchUpdate/overallManagerTwo",expression:"'sysConfig/batchUpdate/overallManagerTwo'"}],staticClass:"saveBtn",attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1)},g=[],y=(a("6762"),a("2fdb"),a("333d")),_={components:{pagination:y["a"]},name:"overallManagerTwo",data:function(){return{configList:[],input:[],form:{268:[]}}},mounted:function(){this.__init()},methods:{__init:function(){var e=this;Object(m["a"])({group:"DEFAULT"}).then((function(t){200==t.code&&t.data.length>0&&t.data.forEach((function(t){[68,69,90,268].includes(t.id)&&(268===t.id?e.$set(e.form,t.id,t.paranValue?JSON.parse(t.paranValue):[]):e.$set(e.form,t.id,t.paranValue))}))}))},save:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t=this;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.form.validate(function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(a){var r,n;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=14;break}for(n in r=[],t.form)268==n?r.push({id:n,paranValue:JSON.stringify(t.form[n])}):r.push({id:n,paranValue:t.form[n]});return e.prev=3,e.next=6,Object(m["b"])(r);case 6:e.sent,t.$message.success("保存成功"),t.__init(),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](3),console.log(e.t0);case 14:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},x=_,w=(a("434c"),Object(d["a"])(x,h,g,!1,null,"2eb04600",null)),k=w.exports,O=a("24d7"),$=a("c457"),j=a("ec8a"),F={components:{overallManager:s["default"],overallManagerTwo:k,holidaySetting:O["default"],loginRules:o["a"],groupMarkPrice:b,earlyWarning:$["default"]},name:"globalConfig",data:function(){return{activeIndex:"6",permissionList:{overallManager:Object(j["a"])("/globalConfig/overallManager"),overallManagerTwo:Object(j["a"])("/globalConfig/overallManagerTwo"),loginRules:Object(j["a"])("/globalConfig/loginRules"),groupMarkPrice:Object(j["a"])("/globalConfig/groupMarkPrice")}}},methods:{handleClick:function(e){this.activeIndex=e.name}}},M=F,C=(a("f5a6"),Object(d["a"])(M,r,n,!1,null,"01062596",null));t["default"]=C.exports},"24d7":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("h2",[e._v("节假日设置")]),e._v(" "),a("div",{staticClass:"m-core"},[e.dataStatus?a("calendar",{staticClass:"calendarComponent",attrs:{"first-day-of-week":1,multiple:"","select-date":e.dateList,width:"800px"}}):e._e(),e._v(" "),e.dataStatus?a("div",{staticStyle:{width:"800px",margin:"10px auto","text-align":"center"}},[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysConfig/update/holidaySetting",expression:"'sysConfig/update/holidaySetting'"}],attrs:{type:"primary"},on:{click:e.onSave}},[e._v("保  存")])],1):e._e()],1)])},n=[],o=a("333d"),s=(a("a6e9"),a("a7ba")),l=a("43b1"),i=a.n(l),c={components:{pagination:o["a"],Calendar:i.a},name:"holidaySetting",data:function(){return{configList:[],dateList:[],dataStatus:!1}},mounted:function(){this.__init()},methods:{__init:function(){var e=this;Object(s["a"])({group:"holiday"}).then((function(t){if(200==t.code&&t.data.length>0){var a=t.data[0];e.configList=a,e.dateList=a.paranValue?JSON.parse(a.paranValue):[],e.dataStatus=!0}}))},onSave:function(){var e=this,t=this.configList,a=[{id:t.id,paranValue:JSON.stringify(this.dateList),paramName:t.paramName}];Object(s["c"])(a).then((function(t){200==t.code?e.$message.success("保存成功"):e.$message.error(t.msg)}))}}},u=c,m=(a("5174"),a("2877")),p=Object(m["a"])(u,r,n,!1,null,"15397596",null);t["default"]=p.exports},"28da":function(e,t,a){"use strict";a("f0f4")},"2c95":function(e,t,a){},"3a70":function(e,t,a){},"434c":function(e,t,a){"use strict";a("2c95")},"441d":function(e,t,a){},"48d0":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[a("div",[a("el-form",{ref:"form",attrs:{inline:!0,model:e.form}},[a("el-alert",{staticStyle:{margin:"10px 0"},attrs:{title:"平台参数设置",closable:!1,type:"info"}}),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"10",rules:[{required:!1,pattern:/^[1-9][0-9]*$/,message:"请输入正确的天数"}]}},[e._v("\n 缴费状态提前:\n "),a("el-input",{attrs:{placeholder:"请输入天数"},model:{value:e.form["10"],callback:function(t){e.$set(e.form,"10",t)},expression:"form['10']"}},[a("template",{slot:"append"},[e._v("天")])],2),e._v("\n 刷新\n ")],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"18"}},[e._v("\n 用户默认头像地址:\n "),a("el-input",{staticClass:"marginLR5",staticStyle:{width:"180px"},attrs:{placeholder:"请输入链接地址"},model:{value:e.form["18"],callback:function(t){e.$set(e.form,"18",t)},expression:"form['18']"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"19"}},[e._v("\n 学员报名链接地址:\n "),a("el-input",{staticClass:"marginLR5",staticStyle:{width:"180px"},attrs:{placeholder:"请输入链接地址"},model:{value:e.form["19"],callback:function(t){e.$set(e.form,"19",t)},expression:"form['19']"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"19"}},[e._v("\n 平台客服电话:\n "),a("el-input",{staticClass:"marginLR5",staticStyle:{width:"180px"},attrs:{placeholder:"请输入电话"},model:{value:e.form["19"],callback:function(t){e.$set(e.form,"19",t)},expression:"form['19']"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"23",rules:[{required:!1,pattern:/^[1-9][0-9]*$/,message:"请输入正确的分钟数"}]}},[e._v("\n 乐团课结算参考总时长:\n "),a("el-input",{attrs:{placeholder:"请输入分钟数"},model:{value:e.form["23"],callback:function(t){e.$set(e.form,"23",t)},expression:"form['23']"}},[a("template",{slot:"append"},[e._v("分钟")])],2)],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"24",rules:[{required:!1,pattern:/^[1-9][0-9]*$/,message:"请输入正确的分钟数"}]}},[e._v("\n 乐团课结算单课时参考时长:\n "),a("el-input",{attrs:{placeholder:"请输入分钟数"},model:{value:e.form["24"],callback:function(t){e.$set(e.form,"24",t)},expression:"form['24']"}},[a("template",{slot:"append"},[e._v("分钟")])],2)],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"25",rules:[{required:!1,pattern:/^[1-9][0-9]*$/,message:"请输入正确的天数"}]}},[e._v("\n 退款周期:\n "),a("el-input",{attrs:{placeholder:"请输入天数"},model:{value:e.form["25"],callback:function(t){e.$set(e.form,"25",t)},expression:"form['25']"}},[a("template",{slot:"append"},[e._v("天")])],2)],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"32"}},[e._v("\n 接口URL地址:\n "),a("el-input",{staticClass:"marginLR5",staticStyle:{width:"180px"},attrs:{placeholder:"请输入地址"},model:{value:e.form["32"],callback:function(t){e.$set(e.form,"32",t)},expression:"form['32']"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"52"}},[e._v("\n 教师请假数据:\n "),a("el-input",{staticClass:"marginLR5",staticStyle:{width:"180px"},attrs:{placeholder:"请输入数据"},model:{value:e.form["52"],callback:function(t){e.$set(e.form,"52",t)},expression:"form['52']"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"53"}},[e._v("\n 老师陪练报告提交URL:\n "),a("el-input",{staticClass:"marginLR5",staticStyle:{width:"180px"},attrs:{placeholder:"请输入URL"},model:{value:e.form["53"],callback:function(t){e.$set(e.form,"53",t)},expression:"form['53']"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"54"}},[e._v("\n 报告提交URL:\n "),a("el-input",{staticClass:"marginLR5",staticStyle:{width:"180px"},attrs:{placeholder:"请输入URL"},model:{value:e.form["54"],callback:function(t){e.$set(e.form,"54",t)},expression:"form['54']"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"58"}},[e._v("\n 付费陪练课活动截止时间:\n "),a("el-date-picker",{staticClass:"marginLR5",attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择截止时间"},model:{value:e.form["58"],callback:function(t){e.$set(e.form,"58",t)},expression:"form['58']"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"63"}},[e._v("\n 付费网管课促销活动开始时间:\n "),a("el-date-picker",{staticClass:"marginLR5",attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择截止时间"},model:{value:e.form["63"],callback:function(t){e.$set(e.form,"63",t)},expression:"form['63']"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"62"}},[e._v("\n 教师端baseURL:\n "),a("el-input",{staticClass:"marginLR5",staticStyle:{width:"180px"},attrs:{placeholder:"请输入URL"},model:{value:e.form["62"],callback:function(t){e.$set(e.form,"62",t)},expression:"form['62']"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"64"}},[e._v("\n 教务端baseURL:\n "),a("el-input",{staticClass:"marginLR5",staticStyle:{width:"180px"},attrs:{placeholder:"请输入URL"},model:{value:e.form["64"],callback:function(t){e.$set(e.form,"64",t)},expression:"form['64']"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"66"}},[e._v("\n 免费网管课可预约截止时间:\n "),a("el-date-picker",{staticClass:"marginLR5",attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"选择截止时间"},model:{value:e.form["66"],callback:function(t){e.$set(e.form,"66",t)},expression:"form['66']"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"89"}},[e._v("\n 学员端\n "),a("el-time-picker",{staticClass:"marginLR5",attrs:{format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"00:00:00 - 23:59:59"},placeholder:"请选择时间"},model:{value:e.form["89"],callback:function(t){e.$set(e.form,"89",t)},expression:"form['89']"}})],1),e._v(" "),a("el-form-item",[e._v("\n 之后的推送延迟到第二天\n "),a("el-time-picker",{staticClass:"marginLR5",attrs:{format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"00:00:00 - 23:59:59"},placeholder:"请选择时间"},model:{value:e.form["205"],callback:function(t){e.$set(e.form,"205",t)},expression:"form['205']"}}),e._v("\n 发送\n ")],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"103"}},[e._v("\n 乐团满意度调查问卷编号\n "),a("el-input",{staticClass:"marginLR5",staticStyle:{width:"180px"},attrs:{placeholder:"请输入问卷编号"},model:{value:e.form["103"],callback:function(t){e.$set(e.form,"103",t)},expression:"form['103']"}})],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"74",rules:[{required:!1,pattern:/^[1-9][0-9]*$/,message:"请输入正确的天数"}]}},[e._v("\n 乐团缴费开启后\n "),a("el-input",{attrs:{placeholder:"请输入天数"},model:{value:e.form["74"],callback:function(t){e.$set(e.form,"74",t)},expression:"form['74']"}},[a("template",{slot:"append"},[e._v("天")])],2),e._v("\n 向乐团主管发送缴费明细短信\n ")],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"240",rules:[{required:!0,message:"请输入正确的金额",trigger:"blur",pattern:/^(\+)?\d+(\.\d+)?$/}]}},[e._v("\n 机构云教室账户余额小于\n "),a("el-input",{attrs:{placeholder:"请输入金额"},model:{value:e.form["240"],callback:function(t){e.$set(e.form,"240",t)},expression:"form['240']"}},[a("template",{slot:"append"},[e._v("元")])],2),e._v("\n 时发送短信和邮件提醒\n ")],1)],1)],1)],1),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysConfig/batchUpdate/overallManager",expression:"'sysConfig/batchUpdate/overallManager'"}],staticClass:"saveBtn",attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1)},n=[],o=a("c80c"),s=(a("96cf"),a("3b8d")),l=(a("ac6a"),a("333d")),i=a("a6e9"),c={components:{pagination:l["a"]},name:"overallManagerTwo",data:function(){return{configList:[],input:[],form:{}}},mounted:function(){this.__init()},methods:{__init:function(){var e=this;Object(i["a"])({group:"DEFAULT"}).then((function(t){200==t.code&&t.data.length>0&&t.data.forEach((function(t){e.$set(e.form,t.id,t.paranValue)}))}))},save:function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(){var t=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.form.validate(function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(a){var r,n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=14;break}for(n in r=[],t.form)r.push({id:n,paranValue:t.form[n]});return e.prev=3,e.next=6,Object(i["b"])(r);case 6:e.sent,t.$message.success("保存成功"),t.__init(),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](3),console.log(e.t0);case 14:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},u=c,m=(a("28da"),a("2877")),p=Object(m["a"])(u,r,n,!1,null,"da717268",null);t["default"]=p.exports},5174:function(e,t,a){"use strict";a("64b7")},"64b7":function(e,t,a){},9458:function(e,t,a){"use strict";a("441d")},a6e9:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"b",(function(){return s}));var r=a("b775"),n=(a("4328"),"/api-web");function o(e){return Object(r["a"])({url:n+"/sysConfig/list",method:"get",params:e})}function s(e){return Object(r["a"])({url:n+"/sysConfig/batchUpdate",method:"post",data:e,headers:{"Content-Type":"application/json"}})}},a7ba:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return s}));var r=a("829b"),n=function(e){return Object(r["a"])({url:"/api-web/sysTenantConfig/queryAll",params:e,method:"get"})},o=function(e){return Object(r["a"])({url:"/api-web/questionnaireTopic/queryPage",params:e,method:"get"})},s=function(e){return Object(r["a"])({url:"/api-web/sysTenantConfig/batchUpSet",data:e,method:"post",requestType:"json"})}},a810:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[a("el-form",{ref:"form",attrs:{inline:!0,model:e.form}},[a("el-alert",{staticStyle:{margin:"10px 0"},attrs:{title:"账号登录设置",closable:!1,type:"info"}}),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"190",rules:[{required:!1,pattern:/^[1-9][0-9]*$/,message:"请输入正确的账号数量"}]}},[e._v("\n 教务端每台设备可登录:\n "),a("el-input",{attrs:{placeholder:"请输入账号数量"},model:{value:e.form["190"],callback:function(t){e.$set(e.form,"190",t)},expression:"form['190']"}},[a("template",{slot:"append"},[e._v("个")])],2),e._v("\n 员工\n ")],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"191",rules:[{required:!1,pattern:/^[1-9][0-9]*$/,message:"请输入正确的账号数量"}]}},[e._v("\n 老师端每台设备可登录:\n "),a("el-input",{attrs:{placeholder:"请输入账号数量"},model:{value:e.form["191"],callback:function(t){e.$set(e.form,"191",t)},expression:"form['191']"}},[a("template",{slot:"append"},[e._v("个")])],2),e._v("\n 老师\n ")],1)],1),e._v(" "),a("el-row",[a("el-form-item",{attrs:{prop:"192",rules:[{required:!1,pattern:/^[1-9][0-9]*$/,message:"请输入正确的设备数量"}]}},[e._v("\n 学生端每个账号可登录:\n "),a("el-input",{attrs:{placeholder:"请输入设备数量"},model:{value:e.form["192"],callback:function(t){e.$set(e.form,"192",t)},expression:"form['192']"}},[a("template",{slot:"append"},[e._v("台")])],2),e._v("\n 设备\n ")],1)],1)],1),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysConfig/batchUpdate_loginRules",expression:"'sysConfig/batchUpdate_loginRules'"}],staticClass:"saveBtn",attrs:{type:"primary"},on:{click:e.save}},[e._v("保存")])],1)},n=[],o=(a("ac6a"),a("c80c")),s=(a("96cf"),a("3b8d")),l=(a("a7ba"),a("a6e9")),i={data:function(){return{form:{},questionList:[],rulesVisiable:!1}},mounted:function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.getRules();case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getRules:function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(){var t,a=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l["a"])({group:"LOGIN"});case 3:t=e.sent,t.data.forEach((function(e){a.$set(a.form,e.id,e.paranValue)})),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(){var t=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.form.validate(function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(a){var r,n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=14;break}for(n in r=[],t.form)r.push({id:n,paranValue:t.form[n]});return e.prev=3,e.next=6,Object(l["b"])(r);case 6:e.sent,t.$message.success("保存成功"),t.getRules(),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](3),console.log(e.t0);case 14:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},c=i,u=(a("d09e"),a("2877")),m=Object(u["a"])(c,r,n,!1,null,"498ec2fa",null);t["a"]=m.exports},b043:function(e,t,a){},c457:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("h2",[e._v("预警课酬设置")]),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{"update:model":function(t){e.searchForm=t}}},[a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{attrs:{placeholder:"请选择分部",clearable:"",filterable:""},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){return a("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")])],1)],1),e._v(" "),a("auth",{staticStyle:{"margin-bottom":"20px"},attrs:{auths:"sysConfig/update/insert"}},[a("el-button",{attrs:{icon:"el-icon-plus",type:"primary"},on:{click:function(t){return e.openTypes("create")}}},[e._v("添加")])],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"branchName",label:"分部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"money",label:"预警课酬"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyFormat")(t.row.money))+"元\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("auth",{attrs:{auths:"sysConfig/update/update"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.openTypes("update",t.row)}}},[e._v("修改")])],1),e._v(" "),a("auth",{attrs:{auths:"sysConfig/update/del"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onTypesDel(t.row)}}},[e._v("删除")])],1)]}}])})],1)],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.formTitle[e.formActionTitle],visible:e.typeStatus,width:"600px"},on:{"update:visible":function(t){e.typeStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"预警课酬(元)",prop:"money","label-width":e.formLabelWidth}},[a("el-input",{attrs:{type:"number",placeholder:"请输入预警课酬",autocomplete:"off"},on:{input:function(t){return e.checkNumber(e.form.money)}},model:{value:e.form.money,callback:function(t){e.$set(e.form,"money","string"===typeof t?t.trim():t)},expression:"form.money"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"适用分部",prop:"branchId","label-width":e.formLabelWidth}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择适用分部"},model:{value:e.form.branchId,callback:function(t){e.$set(e.form,"branchId",t)},expression:"form.branchId"}},e._l(e.selects.branchs,(function(e){return a("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.typeStatus=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onTypesSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)},n=[],o=(a("7f7f"),a("386d"),a("ac6a"),a("4917"),a("c80c")),s=(a("96cf"),a("3b8d")),l=a("a6e9"),i=a("a7ba"),c={name:"earlyWarning",data:function(){return{searchForm:{organId:null},tableList:[],tempTableList:[],formActionTitle:"create",formTitle:{create:"添加预警课酬设置",update:"修改预警课酬设置"},typeStatus:!1,formLabelWidth:"120px",form:{id:null,money:null,branchId:null},formRow:null,rules:{money:[{required:!0,message:"请输入预警课酬",trigger:"blur"}],branchId:[{required:!0,message:"请选择适用分部",trigger:"blur"}]}}},mounted:function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setBranchs");case 2:this.getList();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{checkNumber:function(e){this.form.money=e.match(/^\d*(\.?\d{0,2})/g)[0]||null},onTypesSubmit:function(e){var t=this;this.$refs[e].validate(function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(a){var r,n,s,l,c;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=15;break}if(r=t.form,n=!1,s=null,l={},t.tempTableList.forEach((function(e){"update"==t.formActionTitle?e.branchId==r.branchId&&t.formRow.branchId!=r.branchId&&(n=!0,s=e.branchName):e.branchId==r.branchId&&(n=!0,s=e.branchName),l[e.branchId]=e.money})),!n){e.next=9;break}return t.$message.error("[".concat(s,"]分部已设置预警课酬")),e.abrupt("return");case 9:return l[r.branchId]=r.money,c=[{id:r.id,paranValue:JSON.stringify(l),paramName:"warning_min_course_salary"}],e.next=13,Object(i["c"])(c).then((function(e){var a="create"==t.formActionTitle?"添加":"修改";t.messageTips(a,e)}));case 13:e.next=16;break;case 15:return e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},search:function(){var e=this.searchForm.organId,t=[];this.tempTableList.forEach((function(a){a.branchId!=e&&e||t.push(a)})),this.tableList=t},onTypesDel:function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(t){var a,r,n=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a={},this.tempTableList.forEach((function(e){t.branchId!=e.branchId&&(a[e.branchId]=e.money)})),r={id:this.form.id,paranValue:JSON.stringify(a),paramName:"warning_min_course_salary"},this.$confirm("是否删除预警课酬","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(s["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(l["b"])(r).then((function(e){n.messageTips("删除",e)}));case 2:case"end":return e.stop()}}),e)})))).catch((function(){}));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),messageTips:function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(t,a){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(200!=a.code){e.next=9;break}return this.$message.success(t+"成功"),this.typeStatus=!1,e.next=5,this.getList();case 5:return e.next=7,this.search();case 7:e.next=10;break;case 9:this.$message.error(a.msg);case 10:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),getList:function(){var e=Object(s["a"])(Object(o["a"])().mark((function e(){var t=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["a"])({group:"WARN_COURSE_SALARY"}).then((function(e){var a=e.data[0];200==e.code&&function(){var e=a.paranValue?JSON.parse(a.paranValue):{};t.form.id=a.id;var r=t.selects.branchs,n=[],o=function(t){var a=[];r.forEach((function(r){t==r.id&&(a=r.name,n.push({branchId:t,branchName:a,money:e[t]}))}))};for(var s in e)o(s);t.tableList=n,t.tempTableList=n}()}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),openTypes:function(e,t){var a=this;this.typeStatus=!0,this.formActionTitle=e,"update"==e&&(this.formRow=t,this.$nextTick((function(){a.form.money=t.money,a.form.branchId=parseInt(t.branchId)})))},onFormClose:function(e){this.$refs[e].resetFields()}}},u=c,m=(a("0cbd"),a("2877")),p=Object(m["a"])(u,r,n,!1,null,"a6ff43e2",null);t["default"]=p.exports},c97d:function(e,t,a){},d09e:function(e,t,a){"use strict";a("b043")},f0f4:function(e,t,a){},f5a6:function(e,t,a){"use strict";a("c97d")}}]);