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