chunk-39cead56.e04d18a3.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39cead56"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,n){var o=s(),i=e-o,c=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=c;var s=Math.easeInOutQuad(l,o,i,t);a(s),l<t?r(e):n&&"function"===typeof n&&n()};u()}},"35c5":function(e,t,n){},"46d3":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[e._m(0),e._v(" "),n("div",{staticClass:"m-core"},[n("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[n("el-form-item",{attrs:{prop:"search"}},[n("el-input",{attrs:{clearable:"",placeholder:"请输入手册名称"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"menuId"}},[n("el-cascader",{ref:"myCascader",staticClass:"myCascader",staticStyle:{width:"100%"},attrs:{"popper-class":"myCascader","show-all-levels":!1,clearable:"",options:e.silderList,props:e.optionProps,placeholder:"请选择菜单"},on:{change:e.changeCategor},model:{value:e.searchForm.menuId,callback:function(t){e.$set(e.searchForm,"menuId",t)},expression:"searchForm.menuId"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],1)],1),e._v(" "),n("auth",{attrs:{auths:"sysManual/add"}},[n("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.addManual}},[e._v("添加")])],1),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"menuName",label:"菜单名"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"name",label:"手册名称"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"updateTime",label:"修改时间"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"operatorName",label:"修改人"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[n("auth",{attrs:{auths:"sysManual/update"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.resetManual(t.row)}}},[e._v("修改")])],1),e._v(" "),n("auth",{attrs:{auths:"sysManual/remove"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.deteleManual(t.row)}}},[e._v("删除")])],1)],1)]}}])})],1),e._v(" "),n("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),e.operationVisible?n("el-dialog",{attrs:{title:"create"==e.operationStatus?"新增操作手册":"修改操作手册",width:"800px",visible:e.operationVisible},on:{"update:visible":function(t){e.operationVisible=t}}},[n("setForm",{ref:"setForm",attrs:{silderList:e.silderList,form:e.form},on:{getList:e.getList,close:function(t){e.operationVisible=!1}}}),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.operationVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.submitOperation}},[e._v("确 定")])],1)],1):e._e()],1)},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("\n 操作手册管理\n ")])}],s=n("15fd"),o=n("5530"),i=n("ade3"),c=(n("55dd"),n("7f7f"),n("386d"),n("96cf"),n("1da1")),l=(n("bc3a"),n("5f87"),n("333d")),u=(n("3908"),n("1a62")),m=n("a784"),p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form",{ref:"form",attrs:{model:e.form}},[n("el-form-item",{attrs:{label:"所属菜单",prop:"menuId",rules:[{required:!0,message:"请选择菜单"}]}},[n("el-cascader",{ref:"myCascader",staticClass:"myCascader",staticStyle:{width:"400px"},attrs:{"popper-class":"myCascader","show-all-levels":!1,clearable:"",options:e.silderList,props:e.optionProps,placeholder:"请选择菜单"},on:{change:e.changeCategor},model:{value:e.form.menuId,callback:function(t){e.$set(e.form,"menuId",t)},expression:"form.menuId"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"手册名称",prop:"name",rules:[{required:!0,message:"请输入手册名称"}]}},[n("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入手册名称"},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:"opFlow",rules:[{required:!0,message:"请编辑操作流程"}]}},[n("Editor",{ref:"opFlow",staticClass:"Editor",attrs:{form:e.form.opFlow,id:"Editor1",alias:"Editor1",keyWord:"opFlow"},on:{onEditorChange:e.onEditorChange}})],1),e._v(" "),n("el-form-item",{attrs:{label:"功能规则",prop:"funRule",rules:[{required:!0,message:"请编辑操作流程"}]}},[n("Editor",{ref:"funRule",staticClass:"Editor",attrs:{id:"Editor2",form:e.form.funRule,alias:"Editor2",keyWord:"funRule"},on:{onEditorChange:e.onEditorChange1}})],1)],1)],1)},d=[],f=function(){return Promise.all([n.e("chunk-commons"),n.e("chunk-745079e1"),n.e("chunk-2d0d6f6b")]).then(n.bind(null,"095c"))},h={components:{Editor:f},props:["silderList","form"],data:function(){return{optionProps:{value:"id",label:"name",children:"children",checkStrictly:!0,expandTrigger:"hover"}}},mounted:function(){},methods:{changeCategor:function(e){this.$refs.myCascader.dropDownVisible=!1},onEditorChange:function(e){this.$set(this.form,"opFlow",e)},onEditorChange1:function(e){this.$set(this.form,"funRule",e)}}},b=h,v=(n("4bf6"),n("2877")),g=Object(v["a"])(b,p,d,!1,null,"e7f6be36",null),y=g.exports,w={components:{pagination:l["a"],setForm:y},data:function(){return{searchForm:{menuId:[],search:""},operationStatus:"create",form:{funRule:"",menuId:"",name:"",opFlow:""},tableList:[],organList:[],silderList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},optionProps:{value:"id",label:"name",children:"children",checkStrictly:!0,expandTrigger:"hover"},operationVisible:!1}},created:function(){},mounted:function(){this.init()},methods:{init:function(){var e=this;Object(u["c"])({hid:0}).then((function(t){200==t.code&&(e.silderList=e.setTableData(t.data))})),this.getList()},getList:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["c"])({menuId:this.searchForm.menuId[this.searchForm.menuId.length-1],search:this.searchForm.search,page:this.rules.page,rows:this.rules.limit});case 3:t=e.sent,this.tableList=t.data.rows,this.rules.total=t.data.total,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,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){var e=this;this.$nextTick((function(){e.search()}))},setTableData:function(e){var t=[];for(var n in e){var r;if(1!=e[n].type){var a={};r={id:e[n].id,name:e[n].name,type:e[n].type,path:e[n].path,permission:e[n].permission,icon:e[n].icon,parentId:e[n].parentId,component:e[n].component,sort:e[n].sort,hid:e[n].hid},Object(i["a"])(r,"icon",e[n].icon),Object(i["a"])(r,"type",e[n].type),Object(i["a"])(r,"keepAlive",e[n].keepAlive),Object(i["a"])(r,"parentPermission",e[n].parentPermission),Object(i["a"])(r,"memo",e[n].memo),a=r;var s=!1;if(e[n].sysMenus&&e[n].sysMenus.length>0){for(var o in e[n].sysMenus)if(0==e[n].sysMenus[o].type){s=!0;break}s&&(a.children=this.setTableData(e[n].sysMenus))}t.push(a)}}return t},changeCategor:function(e){this.$refs.myCascader.dropDownVisible=!1},resetManual:function(e){this.form=Object(o["a"])({},e),this.operationStatus="reset",this.operationVisible=!0},deteleManual:function(e){var t=this;this.$confirm("您确定删除".concat(e.name),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(c["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Object(m["b"])({id:e.id});case 3:n.sent,t.$message.success("删除成功"),t.getList(),n.next=11;break;case 8:n.prev=8,n.t0=n["catch"](0),console.log(n.t0);case 11:case"end":return n.stop()}}),n,null,[[0,8]])}))))},addManual:function(){this.operationStatus="create",this.form={funRule:"",menuId:"",name:"",opFlow:""},this.operationVisible=!0},submitOperation:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=this.form,n=t.menuId,r=Object(s["a"])(t,["menuId"]),"create"!=this.operationStatus){e.next=11;break}return e.next=5,Object(m["a"])(Object(o["a"])(Object(o["a"])({},r),{},{menuId:n[n.length-1]}));case 5:e.sent,this.$message.success("添加成功"),this.operationVisible=!1,this.getList(),e.next=17;break;case 11:return e.next=13,Object(m["e"])(Object(o["a"])(Object(o["a"])({},r),{},{menuId:Array.isArray(n)?n[n.length-1]:n}));case 13:e.sent,this.$message.success("修改成功"),this.operationVisible=!1,this.getList();case 17:e.next=22;break;case 19:e.prev=19,e.t0=e["catch"](0),console.log(e.t0);case 22:case"end":return e.stop()}}),e,this,[[0,19]])})));function t(){return e.apply(this,arguments)}return t}()}},k=w,_=(n("fe05"),Object(v["a"])(k,r,a,!1,null,null,null));t["default"]=_.exports},"4bf6":function(e,t,n){"use strict";n("35c5")},ed9b:function(e,t,n){},fe05:function(e,t,n){"use strict";n("ed9b")}}]);