1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7212fea1"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,n,a){return t/=a/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,n){var i=o(),u=t-i,l=20,c=0;e="undefined"===typeof e?500:e;var s=function t(){c+=l;var o=Math.easeInOutQuad(c,i,u,e);r(o),c<e?a(t):n&&"function"===typeof n&&n()};s()}},"333d":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[n("el-pagination",t._b({attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},r=[],o=(n("c5f6"),n("09f4")),i={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(o["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(o["a"])(0,800)}}},u=i,l=(n("c0b9"),n("2877")),c=Object(l["a"])(u,a,r,!1,null,"31cb099a",null);e["a"]=c.exports},"8c1f":function(t,e,n){},"99b4":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"y",(function(){return s})),n.d(e,"w",(function(){return d})),n.d(e,"D",(function(){return f})),n.d(e,"C",(function(){return m})),n.d(e,"E",(function(){return p})),n.d(e,"x",(function(){return g})),n.d(e,"h",(function(){return b})),n.d(e,"j",(function(){return h})),n.d(e,"n",(function(){return y})),n.d(e,"i",(function(){return v})),n.d(e,"A",(function(){return O})),n.d(e,"l",(function(){return j})),n.d(e,"B",(function(){return w})),n.d(e,"z",(function(){return _})),n.d(e,"d",(function(){return k})),n.d(e,"f",(function(){return S})),n.d(e,"e",(function(){return I})),n.d(e,"g",(function(){return $})),n.d(e,"o",(function(){return T})),n.d(e,"p",(function(){return L})),n.d(e,"r",(function(){return q})),n.d(e,"q",(function(){return z})),n.d(e,"m",(function(){return C})),n.d(e,"u",(function(){return N})),n.d(e,"s",(function(){return x})),n.d(e,"v",(function(){return B})),n.d(e,"t",(function(){return P})),n.d(e,"k",(function(){return E}));var a=n("b775"),r=n("4328"),o=n.n(r),i="/api-web";function u(t){return Object(a["a"])({url:i+"/cooperationOrgan/add",method:"post",data:o.a.stringify(t)})}function l(t){return Object(a["a"])({url:i+"/cooperationOrgan/update",method:"put",data:o.a.stringify(t)})}function c(t){return Object(a["a"])({url:i+"/cooperationOrgan/del/".concat(t),method:"post"})}function s(t){return Object(a["a"])({url:i+"/cooperationOrgan/queryPage",method:"get",params:t})}function d(t){return Object(a["a"])({url:i+"/cooperationOrgan/queryByOrganId",method:"get",params:t})}function f(t){return Object(a["a"])({url:i+"/school/queryPage",method:"get",params:t})}function m(t){return Object(a["a"])({url:i+"/school/add",method:"post",data:o.a.stringify(t)})}function p(t){return Object(a["a"])({url:i+"/school/update",method:"post",data:o.a.stringify(t)})}function g(t){return Object(a["a"])({url:i+"/employee/queryEmployByOrganId",method:"get",params:t})}function b(t){return Object(a["a"])({url:i+"/employee/add",method:"post",data:t})}function h(t){return Object(a["a"])({url:i+"/employee/update",method:"post",data:t})}function y(t){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function v(t){return Object(a["a"])({url:i+"/employee/employeeOperate",method:"post",data:o.a.stringify(t)})}function O(t){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function j(t){return Object(a["a"])({url:"/api-auth/role/".concat(t.id),method:"get"})}function w(t){return Object(a["a"])({url:"/api-auth/role/update",method:"post",data:t})}function _(t){return Object(a["a"])({url:"/api-auth/role/add",method:"post",data:t})}function k(t){return Object(a["a"])({url:i+"/courseScheduleRewards/queryPage",method:"get",params:t})}function S(t){return Object(a["a"])({url:i+"/courseScheduleRewards/query",method:"get",params:t})}function I(t){return Object(a["a"])({url:i+"/courseScheduleRewards/add",method:"post",data:o.a.stringify(t)})}function $(t){return Object(a["a"])({url:i+"/courseScheduleRewards/update",method:"post",data:o.a.stringify(t)})}function T(t){return Object(a["a"])({url:i+"/hotWordLabelManage/queryPage",method:"get",params:t})}function L(t){return Object(a["a"])({url:i+"/hotWordLabelManage/add",method:"post",data:o.a.stringify(t)})}function q(t){return Object(a["a"])({url:i+"/hotWordLabelManage/update",method:"post",data:o.a.stringify(t)})}function z(t){return Object(a["a"])({url:i+"/hotWordLabelManage/del/".concat(t),method:"post"})}function C(t){return Object(a["a"])({url:i+"/school/queryByOrganId",method:"get",params:t})}function N(t){return Object(a["a"])({url:i+"/paymentConfig/queryPage",method:"get",params:t})}function x(t){return Object(a["a"])({url:i+"/paymentConfig/add",method:"post",data:o.a.stringify(t)})}function B(t){return Object(a["a"])({url:i+"/paymentConfig/update",method:"post",data:o.a.stringify(t)})}function P(t){return Object(a["a"])({url:i+"/paymentConfig/del/"+t.id,method:"post"})}function E(t){return Object(a["a"])({url:i+"/teacher/findTeacherByOrganId",method:"get",params:t})}},c0b9:function(t,e,n){"use strict";var a=n("de4e"),r=n.n(a);r.a},cf0f:function(t,e,n){"use strict";var a=n("8c1f"),r=n.n(a);r.a},de4e:function(t,e,n){},e85c:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("div",{directives:[{name:"permission",rawName:"v-permission",value:"cooperationOrgan/add",expression:"'cooperationOrgan/add'"}],staticClass:"newBand",on:{click:function(e){return t.openTeaching("create")}}},[t._v("新建")]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"id",label:"单位编号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"name",label:"单位名称"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"linkman",label:"联系人"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"job",label:"职位"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"mobileNo",label:"手机号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"cooperationOrgan/update",expression:"'cooperationOrgan/update'"}],attrs:{type:"text"},on:{click:function(n){return t.openTeaching("update",e.row)}}},[t._v("修改")]),t._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"cooperationOrgan/del",expression:"'cooperationOrgan/del'"}],attrs:{type:"text"},on:{click:function(n){return t.onDelete(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)]),t._v(" "),n("el-dialog",{attrs:{title:t.formTitle[t.formActionTitle],visible:t.teachingStatus,width:"500px"},on:{"update:visible":function(e){t.teachingStatus=e},close:function(e){return t.onFormClose("ruleForm")}}},[n("el-form",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules}},[n("el-form-item",{attrs:{label:"单位名称",prop:"name","label-width":t.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name","string"===typeof e?e.trim():e)},expression:"form.name"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"所属分部",prop:"organId","label-width":t.formLabelWidth}},[n("el-select",{attrs:{filterable:"",clearable:""},model:{value:t.form.organId,callback:function(e){t.$set(t.form,"organId","string"===typeof e?e.trim():e)},expression:"form.organId"}},t._l(t.userBranchList,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"联系人",prop:"linkman","label-width":t.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.linkman,callback:function(e){t.$set(t.form,"linkman","string"===typeof e?e.trim():e)},expression:"form.linkman"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"职位",prop:"job","label-width":t.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.job,callback:function(e){t.$set(t.form,"job","string"===typeof e?e.trim():e)},expression:"form.job"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"手机号",prop:"mobileNo","label-width":t.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.mobileNo,callback:function(e){t.$set(t.form,"mobileNo","string"===typeof e?e.trim():e)},expression:"form.mobileNo"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.teachingStatus=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onTeachingSubmit("ruleForm")}}},[t._v("确 定")])],1)],1)],1)},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("合作单位\n ")])}],o=(n("7f7f"),n("ac6a"),n("333d")),i=n("99b4"),u=n("1cc7"),l=(n("4360"),n("61f7")),c=function(t,e,n){e?Object(l["b"])(e)?n():n(new Error("请输入正确的11位手机号码")):n(new Error("请输入电话号码"))},s={name:"branchManager",components:{pagination:o["a"]},data:function(){return{searchForm:{status:""},searchLsit:[],tableList:[],userBranchList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},teachingStatus:!1,formActionTitle:"create",formTitle:{create:"添加合作单位",update:"修改合作单位"},formLabelWidth:"100px",form:{id:null,name:null,linkman:null,job:null,mobileNo:null,organId:null},rules:{name:[{required:!0,message:"请输入教学点名称",trigger:"blur"}],linkman:[{required:!0,message:"请输入联系人",trigger:"blur"}],job:[{required:!0,message:"请输入职位",trigger:"blur"}],mobileNo:[{required:!0,validator:c,trigger:"blur"},,{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}],organId:[{required:!0,message:"请选择所属分部",trigger:"change"}]}}},mounted:function(){var t=this;this.getList(),Object(u["J"])().then((function(e){200==e.code&&e.data.forEach((function(e){t.userBranchList.push({label:e.name,value:e.id})}))}))},methods:{onDelete:function(t){var e=this;this.$confirm("您确定删除合作单位?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(i["b"])(t.id).then((function(t){200==t.code?(e.$message.success("删除成功"),e.teachingStatus=!1,e.getList()):e.$message.error(t.msg)}))})).catch((function(){}))},onTeachingSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;"create"==e.formActionTitle?(e.form.id&&delete e.form.id,Object(i["a"])(e.form).then((function(t){200==t.code?(e.$message.success("修改成功"),e.teachingStatus=!1,e.getList()):e.$message.error(t.msg)}))):"update"==e.formActionTitle&&Object(i["c"])(e.form).then((function(t){200==t.code?(e.$message.success("修改成功"),e.teachingStatus=!1,e.getList()):e.$message.error(t.msg)}))}))},getList:function(){var t=this;Object(i["y"])({rows:this.pageInfo.limit,page:this.pageInfo.page}).then((function(e){200==e.code&&e.data&&(t.tableList=e.data.rows,t.pageInfo.total=e.data.total)}))},openTeaching:function(t,e){this.teachingStatus=!0,this.formActionTitle=t,"update"==t&&(this.form={id:e.id,name:e.name,linkman:e.linkman,job:e.job,mobileNo:e.mobileNo?e.mobileNo:null,ownershipType:e.ownershipType,organId:e.organId})},onFormClose:function(t){this.form={id:null,name:null,linkman:null,job:null,mobileNo:null,organId:null},this.$refs[t].resetFields()}}},d=s,f=(n("cf0f"),n("2877")),m=Object(f["a"])(d,a,r,!1,null,"0416a23e",null);e["default"]=m.exports}}]);
|