1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ffc892c"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var n=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 s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,a){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);r(s),l<t?n(e):a&&"function"===typeof a&&a()};u()}},"35c5":function(e,t,a){},"46d3":function(e,t,a){"use strict";a.r(t);var n=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("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",{attrs:{prop:"search"}},[a("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(" "),a("el-form-item",{attrs:{prop:"menuId"}},[a("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(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],1)],1),e._v(" "),a("auth",{attrs:{auths:"sysManual/add"}},[a("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.addManual}},[e._v("添加")])],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"menuName",label:"菜单名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"手册名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"updateTime",label:"修改时间"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"operatorName",label:"修改人"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("auth",{attrs:{auths:"sysManual/update"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetManual(t.row)}}},[e._v("修改")])],1),e._v(" "),a("auth",{attrs:{auths:"sysManual/remove"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.deteleManual(t.row)}}},[e._v("删除")])],1)],1)]}}])})],1),e._v(" "),a("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?a("el-dialog",{attrs:{title:"create"==e.operationStatus?"新增操作手册":"修改操作手册",width:"800px",visible:e.operationVisible},on:{"update:visible":function(t){e.operationVisible=t}}},[a("setForm",{ref:"setForm",attrs:{silderList:e.silderList,form:e.form},on:{getList:e.getList,close:function(t){e.operationVisible=!1}}}),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.operationVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitOperation}},[e._v("确 定")])],1)],1):e._e()],1)},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 操作手册管理\n ")])}],s=a("15fd"),o=a("5530"),i=a("ade3"),c=(a("55dd"),a("7f7f"),a("c7eb")),l=(a("386d"),a("96cf"),a("1da1")),u=(a("bc3a"),a("5f87"),a("333d")),p=(a("3908"),a("1a62")),d=a("a784"),m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"form",attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"所属菜单",prop:"menuId",rules:[{required:!0,message:"请选择菜单"}]}},[a("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(" "),a("el-form-item",{attrs:{label:"手册名称",prop:"name",rules:[{required:!0,message:"请输入手册名称"}]}},[a("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(" "),a("el-form-item",{attrs:{label:"操作流程",prop:"opFlow",rules:[{required:!0,message:"请编辑操作流程"}]}},[a("Editor",{ref:"opFlow",staticClass:"Editor",attrs:{form:e.form.opFlow,id:"Editor1",alias:"Editor1",keyWord:"opFlow"},on:{onEditorChange:e.onEditorChange}})],1),e._v(" "),a("el-form-item",{attrs:{label:"功能规则",prop:"funRule",rules:[{required:!0,message:"请编辑操作流程"}]}},[a("Editor",{ref:"funRule",staticClass:"Editor",attrs:{id:"Editor2",form:e.form.funRule,alias:"Editor2",keyWord:"funRule"},on:{onEditorChange:e.onEditorChange1}})],1)],1)],1)},f=[],h=function(){return Promise.all([a.e("chunk-commons"),a.e("chunk-2ba620ed"),a.e("chunk-2d0d6f6b")]).then(a.bind(null,"095c"))},b={components:{Editor:h},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)}}},v=b,g=(a("4bf6a"),a("2877")),y=Object(g["a"])(v,m,f,!1,null,"e7f6be36",null),w=y.exports,k=["menuId"],_={components:{pagination:u["a"],setForm:w},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(p["c"])({hid:0}).then((function(t){200==t.code&&(e.silderList=e.setTableData(t.data))})),this.getList()},getList:function(){var e=Object(l["a"])(Object(c["a"])().mark((function e(){var t;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["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 a in e){var n;if(1!=e[a].type){var r={};n={id:e[a].id,name:e[a].name,type:e[a].type,path:e[a].path,permission:e[a].permission,icon:e[a].icon,parentId:e[a].parentId,component:e[a].component,sort:e[a].sort,hid:e[a].hid},Object(i["a"])(n,"icon",e[a].icon),Object(i["a"])(n,"type",e[a].type),Object(i["a"])(n,"keepAlive",e[a].keepAlive),Object(i["a"])(n,"parentPermission",e[a].parentPermission),Object(i["a"])(n,"memo",e[a].memo),r=n;var s=!1;if(e[a].sysMenus&&e[a].sysMenus.length>0){for(var o in e[a].sysMenus)if(0==e[a].sysMenus[o].type){s=!0;break}s&&(r.children=this.setTableData(e[a].sysMenus))}t.push(r)}}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(l["a"])(Object(c["a"])().mark((function a(){return Object(c["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,Object(d["b"])({id:e.id});case 3:a.sent,t.$message.success("删除成功"),t.getList(),a.next=11;break;case 8:a.prev=8,a.t0=a["catch"](0),console.log(a.t0);case 11:case"end":return a.stop()}}),a,null,[[0,8]])}))))},addManual:function(){this.operationStatus="create",this.form={funRule:"",menuId:"",name:"",opFlow:""},this.operationVisible=!0},submitOperation:function(){var e=Object(l["a"])(Object(c["a"])().mark((function e(){var t,a,n;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=this.form,a=t.menuId,n=Object(s["a"])(t,k),"create"!=this.operationStatus){e.next=11;break}return e.next=5,Object(d["a"])(Object(o["a"])(Object(o["a"])({},n),{},{menuId:a[a.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(d["e"])(Object(o["a"])(Object(o["a"])({},n),{},{menuId:Array.isArray(a)?a[a.length-1]:a}));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}()}},O=_,x=(a("fe05"),Object(g["a"])(O,n,r,!1,null,null,null));t["default"]=x.exports},"4bf6a":function(e,t,a){"use strict";a("35c5")},ed9b:function(e,t,a){},fe05:function(e,t,a){"use strict";a("ed9b")}}]);
|