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