| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-408b2903","chunk-5bdcfcfd","chunk-7b5fc4d4","chunk-3a9760c6","chunk-51064f04","chunk-6d00e2d2","chunk-53506534","chunk-393448c0","chunk-056fed51","chunk-78635843","chunk-0daf3173","chunk-34e8d56f","chunk-acd50396","chunk-b49f2bd4","chunk-41c7eb68","chunk-b59e8114","chunk-382a35ec","chunk-f08b52e0","chunk-12f85398","chunk-738e857a","chunk-7a4159e1","chunk-6a9515a1","chunk-3092dec8","chunk-2d2375be","chunk-c0d89e5e","chunk-579b75c8","chunk-32933cb4","chunk-7afcadd8","chunk-b2714028","chunk-b1f92292","chunk-2d0a3cda","chunk-2d0e66a4","chunk-2d0d34b7","chunk-2d222944","chunk-2d0b2d09","chunk-2d22d835","chunk-2d0d6067","chunk-2d0c7b00","chunk-2d2217b6","chunk-2d238097","chunk-2d21af1a","chunk-2d216635","chunk-2d0b6ad7","chunk-2d0d0801","chunk-2d0d5f6f","chunk-2d0b2240","chunk-2d2221d7","chunk-2d0deb7e","chunk-2d0e618f","chunk-2d213387","chunk-2d0cbec4","chunk-2d237895","chunk-77302f1d","chunk-2d0bd1f7","chunk-2d0c17c1","chunk-2d22c35e","chunk-2d21a7c5","chunk-2d0aeb73","chunk-2d2218e1","chunk-2d21a075","chunk-2d0c4a95","chunk-2d0d6ae6","chunk-2d0cef4e","chunk-2d0a4f32","chunk-2d0aecc7","chunk-2d0a4bed","chunk-2d0dacc7","chunk-2d0bfe94","chunk-2d0c93d7","chunk-2d0df2b5"],{"015d":function(e,t,r){"use strict";r("3f54")},"0273":function(e,t,r){"use strict";r("e658")},"0477":function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return a})),r.d(t,"GetList",(function(){return i})),r.d(t,"AddObj",(function(){return o})),r.d(t,"UpdateObj",(function(){return s})),r.d(t,"DelObj",(function(){return c})),r.d(t,"exportData",(function(){return l}));var n=r("22ce"),a="/api/myapp/hdd/";function i(e){return Object(n["c"])({url:a,method:"get",params:e})}function o(e){return Object(n["c"])({url:a,method:"post",data:e})}function s(e){return Object(n["c"])({url:a+e.id+"/",method:"put",data:e})}function c(e){return Object(n["c"])({url:a+e+"/",method:"delete",data:{id:e}})}function l(e){return Object(n["a"])({url:a+"export/",params:e,method:"post"})}},"0725":function(e,t,r){},"086e":function(e,t,r){e.exports=r.p+"img/we.91ba5945.svg"},"091a":function(e,t,r){},"092e":function(e,t,r){e.exports=r.p+"img/we.2ee17284.png"},"0af2":function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return a})),r.d(t,"GetList",(function(){return i})),r.d(t,"createObj",(function(){return o})),r.d(t,"UpdateObj",(function(){return s})),r.d(t,"DelObj",(function(){return c})),r.d(t,"GetMenuData",(function(){return l}));var n=r("22ce"),a="/api/system/role/";function i(e){return Object(n["c"])({url:a,method:"get",params:e}).then((function(e){return e.data.data}))}function o(e){return Object(n["c"])({url:a,method:"post",data:e})}function s(e){return Object(n["c"])({url:a+e.id+"/",method:"put",data:e})}function c(e){return Object(n["c"])({url:a+e+"/",method:"delete",data:{id:e}})}function l(e){return Object(n["c"])({url:"/api/system/role/"+e.id+"/roleId_get_menu/",method:"get",params:{}}).then((function(e){return e.data.data}))}},"0c074":function(e,t,r){"use strict";r.r(t);r("b0c0");var n=function(){var e=this,t=e._self._c;return t("d2-container",{staticClass:"page"},[t("div",{staticStyle:{"margin-bottom":"10px"}},[t("el-card",{staticClass:"box-card"},[t("div",[e._v(" 美好的一天,从使用 dvadmin2 开始!您可以基于此系统进行持续开发,以做出符合自己系统。所有前端后台代码封装过后十分精简易上手, 出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。 ")])])],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-card",[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("作者有话说")]),t("a",{staticStyle:{float:"right",padding:"3px 0",color:"#409eff"},attrs:{href:"https://www.django-vue-admin.com/about/",target:"_blank"}},[e._v(" 关于我们 ")])]),t("div",[t("div",[t("el-tag",[e._v("李强")]),t("p",{staticStyle:{"text-indent":"2em"}},[e._v(" Ladies and gentlemen!我一直想做一款后台管理系统,看了很多优秀的开源项目,发现只有Java、Go,但是发现没有合适Python的。于是利用空闲休息时间开始自己写一 套后台系统。如此有了dvAdmin1.x版本的管理系统。 ")])],1),t("div",[t("el-tag",[e._v("猿小天")]),t("p",{staticStyle:{"text-indent":"2em"}},[e._v(" hello,大家好!我是猿小天~我一直相信Python会是未来的主流语言,所以坚信“人生苦短,我用Python”。在一次偶然的机会,看到dvadmin1.x版本,并认识了"),t("b",[e._v("李强")]),e._v(",我们都坚信Django在WEB开发领域会大发异彩;于是一拍即合,开始着手打造dvadmin2版本。 ")])],1)])])],1),t("el-col",{attrs:{span:12}},[t("div",[t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("友情链接")]),t("a",{staticStyle:{float:"right",padding:"3px 0",color:"#409eff"},attrs:{href:"https://bbs.django-vue-admin.com/",target:"_blank"}},[e._v(" 更多 ")])]),t("el-row",e._l(e.linkList,(function(r,n){return t("el-col",{key:n,staticClass:"yxt-linklist",attrs:{span:8}},[t("h4",[t("a",{staticStyle:{color:"#409eff"},attrs:{href:r.href,target:"_blank"}},[e._v(" "+e._s(r.name))])]),t("div",[e._v(" "+e._s(r.content)+" ")])])})),1)],1)],1)])],1),t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:12}},[t("div",[e._v("这里放项目的更新情况,最新动态")])])],1)],1)},a=[],i={data:function(){return{linkList:[{name:"D2Admin",href:"https://d2.pub/zh/doc/d2-admin/",content:"D2Admin是一个完全 开源免费 的企业中后台产品前端集成方案,使用最新的前端技术栈,助力管理系统快速开发。"},{name:"d2-crud-plus",href:"http://d2-crud-plus.docmirror.cn/d2-crud-plus/guide/",content:"d2-crud-plus 是基于 d2-admin 的 d2-crud 的扩展,旨在简化 d2-crud 配置,快速开发crud功能"},{name:"D2Admin",content:"D2Admin是一个完全 开源免费 的企业中后台产品前端集成方案,使用最新的前端技术栈,助力管理系统快速开发。"},{name:"D2Admin",content:"D2Admin是一个完全 开源免费 的企业中后台产品前端集成方案,使用最新的前端技术栈,助力管理系统快速开发。"},{name:"D2Admin",content:"D2Admin是一个完全 开源免费 的企业中后台产品前端集成方案,使用最新的前端技术栈,助力管理系统快速开发。"},{name:"D2Admin",content:"D2Admin是一个完全 开源免费 的企业中后台产品前端集成方案,使用最新的前端技术栈,助力管理系统快速开发。"}]}}},o=i,s=(r("b44e"),r("2877")),c=Object(s["a"])(o,n,a,!1,null,"01fb3945",null);t["default"]=c.exports},"0c31":function(e,t,r){e.exports=r.p+"img/qq.89eb5e1a.svg"},1236:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("template",{slot:"header"},[e._v("出入库列表")]),t("d2-crud-x",e._g(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.exportLoading,expression:"exportLoading"}],ref:"d2Crud"},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v("新增 ")]),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"Export",expression:"'Export'"}],staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"warning"},on:{click:e.onExport}},[t("i",{staticClass:"el-icon-download"}),e._v("导出 ")]),t("span",{staticStyle:{"margin-left":"10px"}},[t("importExcel",{directives:[{name:"permission",rawName:"v-permission",value:"Import",expression:"'Import'"}],attrs:{importApi:"api/myapp/stock/import/"}},[e._v("导入 ")])],1),t("crud-toolbar",e._g(e._b({},"crud-toolbar",e._crudToolbarProps,!1),e._crudToolbarListeners))],1)])],2)},a=[],i=r("5530"),o=(r("d3b7"),r("3e62")),s=r("1fbf"),c=r("993a"),l=r("22ce"),d={data:function(){return{exportLoading:!1}},name:"stock",mixins:[s["d2CrudPlus"].crud],activated:function(){s["d2CrudPlus"].util.dict.clear()},methods:{addRow:function(){s["d2CrudPlus"].util.dict.clear(),this.getD2Crud().showDialog({mode:"add"})},resolveSearchParams:function(e){var t=Object(i["a"])({ordering:this.ordering},e);return Array.isArray(t.arrival_date)&&2===t.arrival_date.length&&(t.arrival_date_start=t.arrival_date[0],t.arrival_date_end=t.arrival_date[1]),delete t.arrival_date,Array.isArray(t.shipping_date)&&2===t.shipping_date.length&&(t.shipping_date_start=t.shipping_date[0],t.shipping_date_end=t.shipping_date[1]),delete t.shipping_date,t},getCrudOptions:function(){return Object(o["crudOptions"])(this)},pageRequest:function(e){return Object(c["GetList"])(this.resolveSearchParams(e))},addRequest:function(e){return Object(c["AddObj"])(e)},updateRequest:function(e){return Object(c["UpdateObj"])(e)},delRequest:function(e){return Object(c["DelObj"])(e.id)},onExport:function(){var e=this;this.$confirm("是否确认导出所有数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.getSearch().getForm();e.exportLoading=!0;var r="/api/myapp/stock/export/";Object(l["a"])({url:r,params:e.resolveSearchParams(t),method:"post"}).finally((function(){e.exportLoading=!1}))})).catch((function(){e.exportLoading=!1}))}}},u=d,p=r("2877"),m=Object(p["a"])(u,n,a,!1,null,null,null);t["default"]=m.exports},"1d95":function(e,t,r){"use strict";r.r(t);r("b0c0");var n=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticStyle:{margin:"10px"}},[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"Save",expression:"'Save'"}],attrs:{type:"primary",size:"mini"},on:{click:e.submitPermisson}},[e._v("保存 ")])],1),t("el-container",{staticStyle:{height:"80vh",border:"1px solid #eee"}},[t("el-aside",{staticStyle:{border:"1px solid #eee",padding:"20px"},attrs:{width:"300px"}},[t("div",{staticStyle:{margin:"10px"}},[t("div",{staticStyle:{"margin-bottom":"20px"}},[t("div",{staticClass:"yxt-flex-align-center"},[t("div",{staticClass:"yxt-divider"}),t("span",[e._v("数据授权")]),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.dataAuthorizationTips,placement:"right"}},[t("el-icon",{staticClass:"el-icon-question"})],1)],1)]),t("div",[t("el-select",{directives:[{name:"show",rawName:"v-show",value:e.roleObj.name,expression:"roleObj.name"}],on:{change:e.dataScopeSelectChange},model:{value:e.roleObj.data_range,callback:function(t){e.$set(e.roleObj,"data_range",t)},expression:"roleObj.data_range"}},e._l(e.dataScopeOptions,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:4===e.roleObj.data_range,expression:"roleObj.data_range === 4"}],staticClass:"dept-tree"},[t("el-tree",{ref:"dept",attrs:{data:e.deptOptions,"show-checkbox":"","default-expand-all":"","default-checked-keys":e.deptCheckedKeys,"node-key":"id","check-strictly":!0,props:{label:"name"}}})],1)])]),t("el-main",[t("div",{staticStyle:{margin:"10px"}},[t("div",[t("div",{staticStyle:{"margin-bottom":"20px"}},[t("div",{staticClass:"yxt-flex-align-center"},[t("div",{staticClass:"yxt-divider"}),t("span",[e._v("菜单授权")]),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.menuAuthorizationTips,placement:"right"}},[t("el-icon",{staticClass:"el-icon-question"})],1)],1)]),t("el-tree",{ref:"menuTree",staticClass:"flow-tree",attrs:{data:e.menuOptions,"node-key":"id","default-expand-all":"","show-checkbox":"","expand-on-click-node":!1,"default-checked-keys":e.menuCheckedKeys,"check-on-click-node":!1,"empty-text":"请先选择角色","check-strictly":!1},on:{"check-change":e.handleCheckClick},scopedSlots:e._u([{key:"default",fn:function(r){var n=r.node,a=r.data;return t("span",{staticClass:"custom-tree-node"},[t("div",{staticClass:"yxt-flex-between"},[t("div",{style:{width:18*(4-n.level)+100+"px"}},[e._v(e._s(a.name))]),t("div",e._l(a.menuPermission,(function(r,n){return t("el-checkbox",{key:n,model:{value:r.checked,callback:function(t){e.$set(r,"checked",t)},expression:"item.checked"}},[e._v(e._s(r.name))])})),1)])])}}])})],1)]),t("el-backtop",{attrs:{target:".el-main"}})],1)],1)],1)},a=[],i=r("b85c"),o=(r("4de4"),r("d81d"),r("14d9"),r("e9f5"),r("910d"),r("7d54"),r("ab43"),r("d3b7"),r("159b"),r("0af2")),s=r("9668"),c=r("c695"),l=r.n(c),d={name:"rolePermission",props:{roleObj:{type:Object,default:function(){return{name:null,data_range:null}}}},data:function(){return{filterText:"",data:[],menuOptions:[],permissionData:[],menuCheckedKeys:[],deptOptions:[],deptCheckedKeys:[],dataScopeOptions:[{value:0,label:"仅本人数据权限"},{value:1,label:"本部门及以下数据权限"},{value:2,label:"本部门数据权限"},{value:3,label:"全部数据权限"},{value:4,label:"自定数据权限"}],dataAuthorizationTips:"授权用户可操作的数据范围",menuAuthorizationTips:"授权用户在菜单中可操作的范围"}},watch:{filterText:function(e){this.$refs.tree.filter(e)}},methods:{filterNode:function(e,t){return!e||-1!==t.label.indexOf(e)},getCrudOptions:function(){return crudOptions(this)},pageRequest:function(e){var t=this;return o["GetList"](e).then((function(e){e.map((function(e,t){e.node_id=t})),t.data=e,t.$nextTick().then((function(){t.initNode()}))}))},initNode:function(){this.getDeptData(),this.getMenuData(this.roleObj),this.menuCheckedKeys=this.roleObj.menu,this.deptCheckedKeys=this.roleObj.dept},addRequest:function(e){return o["createObj"](e)},updateRequest:function(e){return o["UpdateObj"](e)},delRequest:function(e){return o["DelObj"](e.id)},getDeptData:function(){var e=this;s["GetList"]({status:1}).then((function(t){e.deptOptions=t.data.data}))},getMenuData:function(e){var t=this;o["GetMenuData"](e).then((function(r){r.forEach((function(r){r.menuPermission.forEach((function(r){e.permission.indexOf(r.id)>-1?t.$set(r,"checked",!0):t.$set(r,"checked",!1)}))})),t.menuOptions=l.a.toArrayTree(r,{parentKey:"parent",strict:!0})}))},getMenuAllCheckedKeys:function(){var e=this.$refs.menuTree.getCheckedKeys(),t=this.$refs.menuTree.getHalfCheckedKeys();return e.unshift.apply(e,t),e},getDeptAllCheckedKeys:function(){var e=this.$refs.dept.getCheckedKeys(),t=this.$refs.dept.getHalfCheckedKeys();return e.unshift.apply(e,t),e},submitPermisson:function(){var e=this;this.roleObj.menu=this.getMenuAllCheckedKeys(),this.roleObj.dept=this.getDeptAllCheckedKeys();var t=l.a.toTreeArray(this.menuOptions),r=[];return t.forEach((function(e){var t=e.menuPermission.filter((function(e){return e.checked}));if(t.length>0){var n,a=Object(i["a"])(t);try{for(a.s();!(n=a.n()).done;){var o=n.value;r.push(o.id)}}catch(s){a.e(s)}finally{a.f()}}})),this.roleObj.permission=r,this.updateRequest(this.roleObj).then((function(t){e.$message.success("更新成功")}))},dataScopeSelectChange:function(e){},handleCheckClick:function(e,t){var r,n=e.menuPermission,a=e.children,o=e.parent,s=Object(i["a"])(n);try{for(s.s();!(r=s.n()).done;){var c=r.value;this.$set(c,"checked",t)}}catch(p){s.e(p)}finally{s.f()}if(a&&o){var l,d=Object(i["a"])(a);try{for(d.s();!(l=d.n()).done;){var u=l.value;this.$refs.menuTree.setChecked(u.id,t)}}catch(p){d.e(p)}finally{d.f()}}}},created:function(){this.pageRequest()}},u=d,p=(r("7dcd"),r("2877")),m=Object(p["a"])(u,n,a,!1,null,null,null);t["default"]=m.exports},"1dd2":function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return n}));r("99af"),r("b0c0"),r("d3b7"),r("25f0");var n=function(e){return{pageOptions:{compact:!0},options:{rowId:"id",height:"100%",border:!1},rowHandle:{width:140,view:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Retrieve")}},edit:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Delete")}}},viewOptions:{componentType:"form"},formOptions:{appendToBody:!0,defaultSpan:24,width:"35%"},columns:[{title:"名称",key:"label",search:{disabled:!1,component:{props:{clearable:!0}}},type:"input",form:{rules:[{required:!0,message:"名称必填项"}],component:{props:{clearable:!0},placeholder:"请输入名称"},itemProps:{class:{yxtInput:!0}}}},{title:"数据值类型",type:"select",key:"type",search:{disabled:!0,component:{props:{clearable:!0}}},show:!1,dict:{data:[{label:"text",value:0},{label:"number",value:1},{label:"date",value:2},{label:"datetime",value:3},{label:"time",value:4},{label:"file",value:5},{label:"boolean",value:6},{label:"images",value:7}]},form:{rules:[{required:!0,message:"数据值类型必填项"}],value:0,component:{props:{clearable:!0},placeholder:"请选择数据值类型"},itemProps:{class:{yxtInput:!0}},valueChange:function(t,r,n,a){a.getColumn,a.mode,a.component;var i=a.immediate,o=(a.getComponent,e.getEditFormTemplate("value"));i||(n.value=void 0),0===r?o.component.name="el-input":1===r?o.component.name="el-input-number":2===r?(o.component.name="el-date-picker",o.component.props={type:"date",valueFormat:"yyyy-MM-dd"}):3===r?(o.component.name="el-date-picker",o.component.props={type:"datetime",valueFormat:"yyyy-MM-dd HH:mm:ss"}):4===r?(o.component.name="el-time-picker",o.component.props={pickerOptions:{arrowControl:!0},valueFormat:"HH:mm:ss"}):5===r?(o.component.name="d2p-file-uploader",o.component.props={elProps:{listType:"text"}}):6===r?(o.component.name="dict-switch",o.component.value=!0,o.component.props={dict:{data:[{label:"是",value:"true"},{label:"否",value:"false"}]}}):7===r&&(o.component.name="d2p-cropper-uploader",o.component.props={accept:".png,.jpeg,.jpg,.ico,.bmp,.gif",cropper:{viewMode:1}})},valueChangeImmediate:!0}},{title:"数据值",key:"value",search:{disabled:!0,component:{props:{clearable:!0}}},view:{component:{props:{height:100,width:100}}},valueResolve:function(e,t){var r=e[t.key],n=e.type;5===n||7===n?null!=r&&(r.length>=0?e[t.key]=r instanceof Array?r.toString():r:e[t.key]=null):e[t.key]=r},valueBuilder:function(e,t){var r=e[t.key],n=e.type;5===n||7===n?null!=r&&r&&(e[t.key]=r.split(",")):e[t.key]=r},type:"input",form:{rules:[{required:!0,message:"数据值必填项"}],component:{props:{clearable:!0},placeholder:"请输入数据值"},itemProps:{class:{yxtInput:!0}}}},{title:"状态",key:"status",width:80,search:{disabled:!1},type:"radio",dict:{data:e.dictionary("button_status_bool")},form:{value:!0,rules:[{required:!0,message:"状态必填项"}],component:{},itemProps:{class:{yxtInput:!0}}}},{title:"排序",key:"sort",width:70,type:"number",form:{value:1,component:{},rules:[{required:!0,message:"排序必填项"}],itemProps:{class:{yxtInput:!0}}}},{title:"标签颜色",key:"color",width:90,search:{disabled:!0},type:"select",dict:{data:[{label:"success",value:"success",color:"success"},{label:"primary",value:"primary",color:"primary"},{label:"info",value:"info",color:"info"},{label:"danger",value:"danger",color:"danger"},{label:"warning",value:"warning",color:"warning"}]},form:{component:{props:{clearable:!0}},itemProps:{class:{yxtInput:!0}}}}].concat(e.commonEndColumns({update_datetime:{showForm:!1,showTable:!1},create_datetime:{showForm:!1,showTable:!1}}))}}},"1f34":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("d2-crud-x",e._g(e._b({ref:"d2Crud",on:{resetPassword:e.resetPassword}},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button-group",[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"Create",expression:"'Create'"}],attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v(" 新增 ")]),t("el-button",{attrs:{size:"small",type:"danger"},on:{click:e.batchDelete}},[t("i",{staticClass:"el-icon-delete"}),e._v(" 批量删除 ")]),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"Export",expression:"'Export'"}],attrs:{size:"small",type:"warning"},on:{click:e.onExport}},[t("i",{staticClass:"el-icon-download"}),e._v(" 导出 ")]),t("importExcel",{directives:[{name:"permission",rawName:"v-permission",value:"Import",expression:"'Import'"}],attrs:{importApi:"api/system/user/import/"}},[e._v("导入 ")])],1),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1),t("span",{staticClass:"prefix",attrs:{slot:"PaginationPrefixSlot"},slot:"PaginationPrefixSlot"},[t("el-button",{staticClass:"square",attrs:{size:"mini",title:"批量删除",icon:"el-icon-delete",disabled:!e.multipleSelection||0==e.multipleSelection.length},on:{click:e.batchDelete}})],1)]),t("el-dialog",{attrs:{title:"密码重置",visible:e.dialogFormVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[t("el-form",{ref:"resetPwdForm",attrs:{model:e.resetPwdForm,rules:e.passwordRules}},[t("el-form-item",{attrs:{label:"密码",prop:"pwd"}},[t("el-input",{attrs:{type:"password","show-password":"",clearable:"",autocomplete:"off"},model:{value:e.resetPwdForm.pwd,callback:function(t){e.$set(e.resetPwdForm,"pwd",t)},expression:"resetPwdForm.pwd"}})],1),t("el-form-item",{attrs:{label:"再次输入密码",prop:"pwd2"}},[t("el-input",{attrs:{type:"password","show-password":"",clearable:"",autocomplete:"off"},model:{value:e.resetPwdForm.pwd2,callback:function(t){e.$set(e.resetPwdForm,"pwd2",t)},expression:"resetPwdForm.pwd2"}})],1)],1),t("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),t("el-button",{attrs:{type:"primary"},on:{click:e.resetPwdSubmit}},[e._v("重 置")])],1)],1)],1)},a=[],i=r("5530"),o=(r("d9e2"),r("4d63"),r("c607"),r("ac1f"),r("2c3e"),r("00b4"),r("25f0"),r("cb9e")),s=r("ba88"),c=r("1fbf"),l={name:"user",mixins:[c["d2CrudPlus"].crud],data:function(){var e=this,t=function(t,r,n){var a=new RegExp("(?=.*[0-9])(?=.*[a-zA-Z]).{8,30}");""===r?n(new Error("请输入密码")):a.test(r)?(""!==e.resetPwdForm.pwd2&&e.$refs.resetPwdForm.validateField("pwd2"),n()):n(new Error("您的密码复杂度太低(密码中必须包含字母、数字)"))},r=function(t,r,n){""===r?n(new Error("请再次输入密码")):r!==e.resetPwdForm.pwd?n(new Error("两次输入密码不一致!")):n()};return{dialogFormVisible:!1,resetPwdForm:{id:null,pwd:null,pwd2:null},passwordRules:{pwd:[{required:!0,message:"必填项"},{validator:t,trigger:"blur"}],pwd2:[{required:!0,message:"必填项"},{validator:r,trigger:"blur"}]}}},methods:{getCrudOptions:function(){return this.crud.searchOptions.form.user_type=0,Object(s["crudOptions"])(this)},pageRequest:function(e){return o["GetList"](e)},addRequest:function(e){return o["AddObj"](e)},updateRequest:function(e){return o["UpdateObj"](e)},delRequest:function(e){return o["DelObj"](e.id)},batchDelRequest:function(e){return o["BatchDel"](e)},onExport:function(){var e=this;this.$confirm("是否确认导出所有数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.getSearch().getForm();return o["exportData"](Object(i["a"])({},t))}))},resetPassword:function(e){var t=e.row;this.dialogFormVisible=!0,this.resetPwdForm.id=t.id},resetPwdSubmit:function(){var e=this;e.$refs.resetPwdForm.validate((function(t){if(t){var r={id:e.resetPwdForm.id,newPassword:e.$md5(e.resetPwdForm.pwd),newPassword2:e.$md5(e.resetPwdForm.pwd2)};o["ResetPwd"](r).then((function(t){e.dialogFormVisible=!1,e.resetPwdForm={id:null,pwd:null,pwd2:null},e.$message.success("修改成功")}))}else e.$message.error("表单校验失败,请检查")}))}}},d=l,u=(r("25f9"),r("2877")),p=Object(u["a"])(d,n,a,!1,null,null,null);t["default"]=p.exports},"239b":function(e,t,r){"use strict";r.r(t),t["default"]={crud:" columns: [\n {\n title: '日期', //字段名称\n key: 'date', //字段key\n type: 'date', //字段类型,添加、修改、查询将自动生成相应表单组件\n },\n {\n title: '状态',\n key: 'status',\n type: 'select', //选择框,默认单选\n dict: { url: '/dicts/OpenStatusEnum' }//远程数据字典\n },\n {\n title: '地区',\n key: 'province',\n type: 'select', //选择框\n form: { //表单组件自定义配置,此处配置选择框为多选\n component: { //支持任何v-model组件\n props: { filterable: true, multiple: true, clearable: true }\n }\n },\n dict: {\n data: [ //本地数据字典\n { value: 'sz', label: '深圳' },\n { value: 'gz', label: '广州' },\n { value: 'wh', label: '武汉' },\n { value: 'sh', label: '上海' }\n ]\n }\n }\n ]\n "}},2475:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("d2-crud-x",e._g(e._b({ref:"d2Crud",attrs:{"crud.options.tableType":"vxe-table"}},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1)])],1)},a=[],i=r("7190"),o=r("524a"),s=r("1fbf"),c={name:"areas",mixins:[s["d2CrudPlus"].crud],data:function(){return{}},methods:{getCrudOptions:function(){return Object(o["crudOptions"])(this)},pageRequest:function(e){return i["GetList"](e)}}},l=c,d=(r("76d1"),r("2877")),u=Object(d["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"24ba":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",[t("d2-crud-x",e._g(e._b({ref:"d2Crud"},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button-group",[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v(" 新增")])],1),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1)])],1)},a=[],i=r("c1f7"),o=r("1dd2"),s=r("1fbf"),c={name:"subDictionary",mixins:[s["d2CrudPlus"].crud],props:{dictionaryRow:{type:Object,required:!0}},watch:{dictionaryRow:function(){this.doRefresh({from:"load"})}},data:function(){return{}},methods:{getCrudOptions:function(){return Object(o["crudOptions"])(this)},pageRequest:function(e){return e.is_value=!0,e.parent=this.dictionaryRow.id,i["GetList"](e)},addRequest:function(e){return s["d2CrudPlus"].util.dict.clear(),e.is_value=!0,e.parent=this.dictionaryRow.id,i["createObj"](e)},updateRequest:function(e){return s["d2CrudPlus"].util.dict.clear(),e.is_value=!0,e.parent=this.dictionaryRow.id,i["UpdateObj"](e)},delRequest:function(e){return i["DelObj"](e.id)},doAfterRowChange:function(e){this.doRefresh({from:"afterRowChange"}),this.$store.dispatch("d2admin/dictionary/load")}}},l=c,d=(r("d88e"),r("2877")),u=Object(d["a"])(l,n,a,!1,null,"48f5e825",null);t["default"]=u.exports},"25f9":function(e,t,r){"use strict";r("0725")},"265d":function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return a})),r.d(t,"GetList",(function(){return i})),r.d(t,"AddObj",(function(){return o})),r.d(t,"UpdateObj",(function(){return s})),r.d(t,"DelObj",(function(){return c})),r.d(t,"exportData",(function(){return l}));var n=r("22ce"),a="/api/people/provider/";function i(e){return Object(n["c"])({url:a,method:"get",params:e})}function o(e){return Object(n["c"])({url:a,method:"post",data:e})}function s(e){return Object(n["c"])({url:a+e.id+"/",method:"put",data:e})}function c(e){return Object(n["c"])({url:a+e+"/",method:"delete",data:{id:e}})}function l(e){return Object(n["a"])({url:a+"export/",params:e,method:"post"})}},"2b3d":function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return a})),r.d(t,"GetList",(function(){return i})),r.d(t,"GetSelfReceive",(function(){return o})),r.d(t,"GetObj",(function(){return s})),r.d(t,"AddObj",(function(){return c})),r.d(t,"UpdateObj",(function(){return l})),r.d(t,"DelObj",(function(){return d}));var n=r("22ce"),a="/api/system/message_center/";function i(e){return Object(n["c"])({url:a,method:"get",params:e})}function o(e){return Object(n["c"])({url:a+"get_self_receive/",method:"get",params:e})}function s(e){return Object(n["c"])({url:a+e.id+"/",method:"get",params:{}})}function c(e){return Object(n["c"])({url:a,method:"post",data:e})}function l(e){return Object(n["c"])({url:a+e.id+"/",method:"put",data:e})}function d(e){return Object(n["c"])({url:a+e+"/",method:"delete",data:{id:e}})}},"2c1f":function(e,t,r){},"2c45":function(e,t,r){},"2dea":function(e,t,r){"use strict";r("2c1f")},"310e":function(e,t,r){"use strict";r("880c")},3547:function(e,t,r){"use strict";r.r(t);r("b0c0");var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"w3l-signinform",style:{background:"url("+(e.loginBackground||r("57fe"))+") no-repeat center",backgroundSize:"100% 100%"}},[t("div",{staticClass:"wrapper"},[t("div",{staticClass:"w3l-form-info"},[t("img",{staticClass:"page-login--logo",attrs:{src:e.siteLogo,width:"300"}}),t("div",{staticClass:"w3_info"},[t("h2",{staticStyle:{"text-align":"center"}},[e._v(e._s(e.siteName||e.processTitle))]),t("el-card",{staticClass:"card",attrs:{shadow:"always"}},[t("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:"账号密码登录",name:"first",stretch:""}},[t("span",{attrs:{slot:"label"},slot:"label"},[t("span",{staticStyle:{margin:"30px"}},[e._v("账号密码登录")])]),t("br"),t("el-form",{ref:"loginForm",attrs:{"label-position":"top",rules:e.rules,model:e.formLogin,size:"default"}},[t("el-form-item",{attrs:{prop:"username"}},[t("el-input",{attrs:{type:"text","prefix-icon":"el-icon-user-solid",placeholder:"用户名"},model:{value:e.formLogin.username,callback:function(t){e.$set(e.formLogin,"username",t)},expression:"formLogin.username"}})],1),t("el-form-item",{attrs:{prop:"password"}},[t("el-input",{attrs:{type:"password","prefix-icon":"el-icon-s-promotion","show-password":"",placeholder:"密码"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submit.apply(null,arguments)}},model:{value:e.formLogin.password,callback:function(t){e.$set(e.formLogin,"password",t)},expression:"formLogin.password"}})],1),e.captchaState?t("el-form-item",{attrs:{prop:"captcha",rules:{required:!0,message:"请输入验证码",trigger:"blur"}}},[t("el-input",{attrs:{type:"text",placeholder:"验证码"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submit.apply(null,arguments)}},model:{value:e.formLogin.captcha,callback:function(t){e.$set(e.formLogin,"captcha",t)},expression:"formLogin.captcha"}},[t("template",{slot:"append"},[t("img",{staticClass:"login-code",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix",height:"33px",width:"145px",src:e.image_base},on:{click:e.getCaptcha},slot:"suffix"})])],2)],1):e._e()],1),t("button",{staticClass:"btn btn-primary btn-block",on:{click:e.submit}},[e._v(" 登录 ")])],1)],1)],1),t("div",{staticClass:"footer"},[t("p",{staticClass:"page-login--content-footer-locales"},e._l(e.$languages,(function(r){return t("a",{key:r.value,staticStyle:{cursor:"pointer"},on:{click:function(t){return e.onChangeLocale(r.value)}}},[e._v(" "+e._s(r.label)+" ")])})),0),t("p",[e._v("Copyright © "+e._s(e.copyright))]),t("p",[t("a",{attrs:{href:"https://beian.miit.gov.cn",target:"_blank"}},[e._v(e._s(e.keepRecord))]),e._v(" | "),t("a",{attrs:{href:e.helpUrl||"#",target:"_blank"}},[e._v("帮助")]),e._v(" | "),t("a",{attrs:{href:e.privacyUrl||"#",target:"_blank"}},[e._v("隐私")]),e._v(" | "),t("a",{attrs:{href:e.clauseUrl||"#",target:"_blank"}},[e._v("条款")])])])],1)])]),t("el-dialog",{attrs:{title:"快速选择用户",visible:e.selectUsersDialogVisible,width:"400px","append-to-body":""},on:{"update:visible":function(t){e.selectUsersDialogVisible=t}}},[t("el-row",{staticStyle:{margin:"-20px 0px -10px 0px"},attrs:{gutter:10}},e._l(e.users,(function(r,n){return t("el-col",{key:n,attrs:{span:8}},[t("div",{staticClass:"page-login--quick-user",on:{click:function(t){return e.handleUserBtnClick(r)}}},[t("d2-icon",{attrs:{name:"user-circle-o"}}),t("span",[e._v(e._s(r.name))])],1)])})),1)],1)],1)},a=[],i=r("86c0"),o={extends:i["default"],name:"page",data:function(){return{activeName:"first"}},created:function(){},mounted:function(){},methods:{}},s=o,c=(r("7210"),r("2877")),l=Object(c["a"])(s,n,a,!1,null,"724a3a54",null);t["default"]=l.exports},"3c7f":function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return i})),r.d(t,"GetList",(function(){return o})),r.d(t,"createObj",(function(){return s})),r.d(t,"UpdateObj",(function(){return c})),r.d(t,"DelObj",(function(){return l}));var n=r("5530"),a=r("22ce"),i="/api/system/api_white_list/";function o(e){return Object(a["c"])({url:i,method:"get",params:e})}function s(e,t){var r=Object(n["a"])(Object(n["a"])({},e),{},{menu:t});return Object(a["c"])({url:i,method:"post",data:r})}function c(e){return Object(a["c"])({url:i+e.id+"/",method:"put",data:e})}function l(e){return Object(a["c"])({url:i+e+"/",method:"delete",data:{id:e}})}},"3e62":function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return s}));var n=r("5530"),a=(r("d9e2"),r("d81d"),r("e9f5"),r("ab43"),r("d3b7"),r("47f4")),i=r("22ce"),o=[],s=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!0,rowId:"id",height:"100%",highlightCurrentRow:!0,events:{"sort-change":function(t){var r=t.field,a=t.order,i="desc"===a?"-":"",o=i+r,s=e.getSearch().getForm(),c=Object(n["a"])({ordering:o},s);e.doSearch(c)}}},rowHandle:{fixed:"right",align:"center",width:"170px",view:{thin:!0,text:""},edit:{thin:!0,text:""},remove:{thin:!0,text:""}},indexRow:{title:"序号",align:"center",resizable:!0,fixed:"left",width:90},viewOptions:{componentType:"form"},formOptions:{defaultSpan:24,width:"35%"},columns:[{title:"ID",key:"id",show:!1,disabled:!0,width:70,form:{disabled:!0}},{title:"SN码",key:"sn",fixed:"left",resizable:!0,minWidth:130,align:"center",search:{width:160,component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"SN码必填"}],component:{props:{clearable:!0},placeholder:"请输入SN码"},itemProps:{class:{yxtInput:!0}}}},{title:"供应商名称",key:"supplier_name",resizable:!0,align:"center",minWidth:150,search:{disabled:!1,width:180,component:{name:"dict-select",props:{clearable:!0,filterable:!0,placeholder:"请选择供应商",dict:{url:"/api/people/provider/name_list/",label:"label",value:"value",cache:!1,getData:function(e,t){return Object(i["c"])({url:e}).then((function(e){return(e.data||[]).map((function(e){return{value:e,label:e}}))}))}}}}},type:"select",component:{props:{type:"text"}},dict:{url:"/api/people/provider/name_list/",label:"label",value:"value",getData:function(e,t){return Object(i["c"])({url:e}).then((function(e){return(e.data||[]).map((function(e){return{value:e,label:e}}))}))}},form:{rules:[{required:!0,message:"请选择供应商名称"},{max:30,message:"最长30个字"}],component:{props:{clearable:!0,filterable:!0},placeholder:"请选择供应商名称"},itemProps:{class:{yxtInput:!0}}}},{title:"到货时间",key:"arrival_date",sortable:!0,align:"center",minWidth:170,resizable:!0,type:"datetime",search:{disabled:!1,width:385,component:{name:"el-date-picker",props:{type:"datetimerange","range-separator":"至","start-placeholder":"开始","end-placeholder":"结束",valueFormat:"yyyy-MM-dd HH:mm:ss"}}},form:{rules:[{required:!0,message:"请选择到货时间"}],component:{props:{clearable:!0,format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"},placeholder:"请选择到货时间"},itemProps:{class:{yxtInput:!0}}}},{title:"客户名称",key:"customer_name",resizable:!0,align:"center",minWidth:150,search:{disabled:!1,width:180,component:{name:"dict-select",props:{clearable:!0,filterable:!0,placeholder:"请选择客户",dict:{url:"/api/people/client/name_list/",label:"label",value:"value",cache:!1,getData:function(e,t){return Object(i["c"])({url:e}).then((function(e){return(e.data||[]).map((function(e){return{value:e,label:e}}))}))}}}}},type:"select",component:{props:{type:"text"}},dict:{url:"/api/people/client/name_list/",label:"label",value:"value",getData:function(e,t){return Object(i["c"])({url:e}).then((function(e){return(e.data||[]).map((function(e){return{value:e,label:e}}))}))}},form:{rules:[{max:30,message:"最长30个字"},{validator:function(t,r,n){var a=e.getEditForm();0!==a.status||r?n():n(new Error("出库时客户名称必填"))},trigger:"change"}],component:{props:{clearable:!0,filterable:!0},placeholder:"请选择客户名称"},itemProps:{class:{yxtInput:!0}}}},{title:"出货时间",key:"shipping_date",sortable:!0,align:"center",minWidth:170,resizable:!0,type:"datetime",search:{disabled:!1,width:385,component:{name:"el-date-picker",props:{type:"datetimerange","range-separator":"至","start-placeholder":"开始","end-placeholder":"结束",valueFormat:"yyyy-MM-dd HH:mm:ss"}}},form:{rules:[{validator:function(t,r,n){var a=e.getEditForm();0!==a.status||r?r&&a.arrival_date&&new Date(r)<=new Date(a.arrival_date)?n(new Error("出货时间必须大于到货时间")):n():n(new Error("出库时出货时间必填"))},trigger:"change"}],component:{props:{clearable:!0,format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"},placeholder:"请选择出货时间"},itemProps:{class:{yxtInput:!0}}}},{title:"更新时间",key:"daterange",sortable:!0,type:"daterange",show:!1,search:{disabled:!1,width:390},form:{disabled:!0,component:{props:{"time-arrow-control":!1,"picker-options":{shortcuts:o},format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"}}},valueBuilder:function(e,t){a["a"].hasEmpty(e.daterangeStart,e.daterangeEnd)||(e.daterange=[new Date(e.daterangeStart),new Date(e.daterangeEnd)])},valueResolve:function(e,t){null!=e.daterange&&e.daterange.length>1?(e.start_time=e.daterange[0],e.stop_time=e.daterange[1]):(e.start_time=null,e.stop_time=null)}},{title:"状态",key:"status",align:"center",minWidth:100,resizable:!0,search:{disabled:!1},type:"select",dict:{data:[{value:1,label:"入库"},{value:0,label:"出库"}]},form:{value:1,rules:[{required:!0,message:"请选择状态"}],component:{props:{clearable:!0}},itemProps:{class:{yxtInput:!0}}}},{title:"备注",key:"remark",align:"center",minWidth:180,resizable:!0,showOverflowTooltip:!0,type:"input",form:{rules:[{max:50,message:"最长50个字"}],component:{props:{clearable:!0},placeholder:"请输入备注"},itemProps:{class:{yxtInput:!0}}}},{title:"更新时间",key:"update_datetime",minWidth:170,align:"center",show:!0,type:"datetime",sortable:!0,form:{disabled:!0}},{title:"创建时间",key:"create_datetime",align:"center",minWidth:170,search:{disabled:!0},show:!0,type:"datetime",sortable:!0,form:{disabled:!0}}]}}},"3f54":function(e,t,r){},4013:function(e,t,r){e.exports=r.p+"img/gif.2ae7c530.webp"},"43a9":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("d2-crud-x",e._g(e._b({ref:"d2Crud",attrs:{"crud.options.tableType":"vxe-table"}},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1)])],1)},a=[],i=r("67f0"),o=r("7110"),s=r("1fbf"),c={name:"file",mixins:[s["d2CrudPlus"].crud],data:function(){return{}},methods:{getCrudOptions:function(){return Object(o["crudOptions"])(this)},pageRequest:function(e){return i["GetList"](e)},addRequest:function(e){return console.log("api",i),i["AddObj"](e)},updateRequest:function(e){return console.log("----",e),i["UpdateObj"](e)},delRequest:function(e){return i["DelObj"](e.id)}}},l=c,d=(r("015d"),r("2877")),u=Object(d["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"45f0":function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return a}));var n=r("22ce"),a=function(e){return{indexRow:{title:"序号",align:"center"},options:{height:"100%"},viewOptions:{},columns:[{title:"id",key:"id",width:100,form:{disabled:!0}},{title:"标题",key:"title",search:{disabled:!1},width:400,form:{rules:[{required:!0,message:"必填项"}],component:{span:24,placeholder:"请输入标题"}}},{title:"目标类型",key:"target_type",type:"radio",dict:{data:[{value:0,label:"按用户"},{value:1,label:"按角色"},{value:2,label:"按部门"}]},form:{rules:[{required:!0,message:"必选项",trigger:["blur","change"]}]}},{title:"目标用户",key:"target_user",search:{disabled:!0},minWidth:130,type:"table-selector",dict:{cache:!1,url:"/api/system/user/",value:"id",label:"name",getData:function(e,t,r){r.form;var a=r.component;return Object(n["c"])({url:e,params:{page:1,limit:10}}).then((function(e){return a._elProps.page=e.data.page,a._elProps.limit=e.data.limit,a._elProps.total=e.data.total,e.data.data}))}},form:{rules:[{required:!0,message:"必填项"}],itemProps:{class:{yxtInput:!0}},component:{span:24,show:function(e){return 0===e.form.target_type},pagination:!0,props:{multiple:!0},elProps:{columns:[{field:"name",title:"用户名称"},{field:"phone",title:"用户电话"}]}}},component:{name:"manyToMany",valueBinding:"user_info",children:"name"}},{title:"目标角色",key:"target_role",search:{disabled:!0},minWidth:130,type:"table-selector",dict:{cache:!1,url:"/api/system/role/",value:"id",label:"name",getData:function(e,t,r){r.form;var a=r.component;return Object(n["c"])({url:e,params:{page:1,limit:10}}).then((function(e){return a._elProps.page=e.data.page,a._elProps.limit=e.data.limit,a._elProps.total=e.data.total,e.data.data}))}},form:{rules:[{required:!0,message:"必填项"}],itemProps:{class:{yxtInput:!0}},component:{span:24,show:function(e){return 1===e.form.target_type},pagination:!0,props:{multiple:!0},elProps:{columns:[{field:"name",title:"角色名称"},{field:"key",title:"权限标识"}]}}},component:{name:"manyToMany",valueBinding:"role_info",children:"name"}},{title:"目标部门",key:"target_dept",search:{disabled:!0},minWidth:130,type:"table-selector",dict:{cache:!1,url:"/api/system/dept/",isTree:!0,value:"id",label:"name",children:"children",getData:function(e,t,r){r.form,r.component;return Object(n["c"])({url:e,params:{page:1,limit:999}}).then((function(e){return e.data.data}))}},form:{rules:[{required:!0,message:"必填项"}],itemProps:{class:{yxtInput:!0}},component:{span:24,show:function(e){return 2===e.form.target_type},props:{multiple:!0,elProps:{treeConfig:{transform:!0,rowField:"id",parentField:"parent",expandAll:!0},columns:[{field:"name",title:"部门名称",treeNode:!0},{field:"status_label",title:"状态"},{field:"parent_name",title:"父级部门"}]}}}},component:{name:"manyToMany",valueBinding:"dept_info",children:"name"}},{title:"内容",key:"content",width:300,type:"editor-quill",form:{rules:[{required:!0,message:"必填项"}],component:{disabled:function(){return e.getEditForm().disable},props:{uploader:{type:"form"}},events:{"text-change":function(e){console.log("text-change:",e)}}}}}]}}},"47f4":function(e,t,r){"use strict";function n(e){return null==e||""===e}function a(...e){for(const t of e)if(null!=t&&""!==t)return!1;return!1}function i(...e){for(const t of e)if(null==t||""===t)return!0;return!1}const o={isEmpty:n,isAllEmpty:a,hasEmpty:i};t["a"]=o},"4c76":function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return i})),r.d(t,"GetList",(function(){return o})),r.d(t,"createObj",(function(){return s})),r.d(t,"UpdateObj",(function(){return c})),r.d(t,"DelObj",(function(){return l}));var n=r("5530"),a=r("22ce"),i="/api/system/menu/";function o(e){return e.limit=999,Object(a["c"])({url:i,method:"get",params:Object(n["a"])(Object(n["a"])({},e),{},{limit:999})}).then((function(e){return e}))}function s(e){return Object(a["c"])({url:i,method:"post",data:e})}function c(e){return Object(a["c"])({url:i+e.id+"/",method:"put",data:e})}function l(e){return Object(a["c"])({url:i+e+"/",method:"delete",data:{id:e}})}},"4da7":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("d2-crud-x",e._g(e._b({ref:"d2Crud",attrs:{"crud.options.tableType":"vxe-table"}},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1)])],1)},a=[],i=r("96fb"),o=r("ac6e"),s=r("1fbf"),c={name:"operationLog",mixins:[s["d2CrudPlus"].crud],data:function(){return{}},methods:{getCrudOptions:function(){return Object(o["crudOptions"])(this)},pageRequest:function(e){return i["GetList"](e)},addRequest:function(e){return i["AddObj"](e)},updateRequest:function(e){return i["UpdateObj"](e)},delRequest:function(e){return i["DelObj"](e.id)}}},l=c,d=(r("8ec7"),r("2877")),u=Object(d["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"524a":function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return a}));r("99af"),r("d81d"),r("e9f5"),r("ab43"),r("d3b7");var n=r("22ce"),a=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!1,height:"100%",rowId:"code",highlightCurrentRow:!0,treeConfig:{lazy:!0,children:"children",hasChild:"hasChildren",loadMethod:function(e){var t=e.row;return Object(n["c"])({url:"/api/system/area/",method:"get",params:{pcode:t.code,limit:999}}).then((function(e){return e.data.data.map((function(e){e.hasChildren=0!==e.pcode_count})),t.hasChildren=!1,e.data.data}))},iconLoaded:"el-icon-loading"}},rowHandle:{show:!1,width:140,view:{thin:!0,text:"",show:!1,disabled:function(){return!e.hasPermissions("Retrieve")}},edit:{thin:!0,text:"",show:!1,disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"",show:!1,disabled:function(){return!e.hasPermissions("Delete")}}},viewOptions:{componentType:"form"},formOptions:{defaultSpan:24,width:"30%"},indexRow:{title:"序号",align:"center",width:100},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1},form:{disabled:!0,component:{placeholder:"请输入关键词"}},view:{disabled:!0}},{title:"ID",key:"id",width:90,disabled:!0,form:{disabled:!0}},{title:"父级地区",key:"pcode",show:!1,search:{disabled:!1},type:"area-selector",form:{component:{showAllLevels:!1,props:{elProps:{clearable:!0,showAllLevels:!1,props:{checkStrictly:!0,emitPath:!1,clearable:!0}}}}}},{title:"名称",key:"name",search:{disabled:!1},treeNode:!0,width:160,type:"input",form:{rules:[{required:!0,message:"名称必填项"}],component:{placeholder:"请输入名称"},itemProps:{class:{yxtInput:!0}}}},{title:"地区编码",key:"code",search:{disabled:!1},type:"input",form:{rules:[{required:!0,message:"地区编码必填项"}],component:{placeholder:"请输入地区编码"},itemProps:{class:{yxtInput:!0}}}},{title:"拼音",key:"pinyin",search:{disabled:!0},type:"input",form:{rules:[{required:!0,message:"拼音必填项"}],itemProps:{class:{yxtInput:!0}},component:{placeholder:"请输入拼音"}}},{title:"地区层级",key:"level",search:{disabled:!0},type:"input",form:{disabled:!1,rules:[{required:!0,message:"拼音必填项"}],itemProps:{class:{yxtInput:!0}},component:{placeholder:"请输入拼音"}}},{title:"首字母",key:"initials",form:{rules:[{required:!0,message:"首字母必填项"}],itemProps:{class:{yxtInput:!0}},component:{placeholder:"请输入首字母"}}},{title:"是否启用",key:"enable",search:{disabled:!1},width:90,type:"radio",dict:{data:e.dictionary("button_status_bool")},form:{value:!0,itemProps:{class:{yxtInput:!0}}}}].concat(e.commonEndColumns())}}},5265:function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return s}));r("d9e2"),r("99af"),r("ac1f"),r("00b4");var n=r("22ce"),a=r("4c76"),i=r("c695"),o=r.n(i),s=function(e){var t=function(t,r,n){var a=e.getEditForm().is_link,i=/^\/.*?/;i=a?/^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+/g:/^\/.*?/,i.test(r)?n():n(new Error("请正确的地址"))};return{pagination:!1,pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!0,rowId:"id",height:"100%",highlightCurrentRow:!1,treeConfig:{transform:!0,rowField:"id",parentField:"parent",expandAll:!0}},rowHandle:{view:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Retrieve")}},edit:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Delete")}},width:230,fixed:"right",custom:[{show:function(e,t){return!(!t.web_path||t.is_link)},disabled:function(){return!e.hasPermissions("Update")},text:" 菜单按钮",type:"warning",size:"small",emit:"createPermission"}]},indexRow:{title:"序号",align:"center",width:80},viewOptions:{componentType:"form"},formOptions:{defaultSpan:12},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1,component:{props:{clearable:!0},placeholder:"请输入关键词"}},form:{disabled:!0,component:{props:{clearable:!0}}},view:{disabled:!0}},{title:"ID",key:"id",show:!1,width:60,form:{component:{show:!1}}},{title:"父级菜单",key:"parent",show:!1,search:{disabled:!0},type:"cascader",dict:{url:a["urlPrefix"],cache:!1,isTree:!0,value:"id",label:"name",children:"children",getData:function(e,t,r){r.form,r.component;return Object(n["c"])({url:e,params:{limit:999,status:1,is_catalog:1}}).then((function(e){var t=e.data.data,r=o.a.toArrayTree(t,{parentKey:"parent",strict:!0});return[{id:null,name:"根节点",children:r}]}))}},form:{component:{props:{elProps:{clearable:!0,showAllLevels:!1,props:{checkStrictly:!0,emitPath:!1,clearable:!0}}}}}},{title:"菜单名称",key:"name",sortable:!0,treeNode:!0,search:{disabled:!1,component:{props:{clearable:!0}}},minWidth:180,type:"input",form:{rules:[{required:!0,message:"菜单名称必填项"}],component:{props:{clearable:!0},placeholder:"请输入菜单名称"},itemProps:{class:{yxtInput:!0}}}},{title:"图标",key:"icon",width:60,type:"icon-selector",form:{component:{placeholder:"请输入图标"}}},{title:"排序",key:"sort",width:60,type:"number",form:{value:1,component:{placeholder:"请输入排序"}}},{title:"是否目录",key:"is_catalog",width:100,type:"dict-switch",search:{disabled:!0},dict:{data:e.dictionary("button_whether_bool")},form:{value:!1,component:{placeholder:"请选择是否目录"},valueChange:function(e,t,r,n){n.getColumn,n.mode,n.component,n.immediate,n.getComponent;t||(r.web_path=void 0,r.component=void 0,r.component_name=void 0,r.cache=!1,r.is_link=!1)}}},{title:"外链接",key:"is_link",width:70,type:"radio",dict:{data:e.dictionary("button_whether_bool")},form:{value:!1,component:{show:function(e){var t=e.form;return!t.is_catalog},placeholder:"请选择是否外链接"},valueChange:function(e,t,r,n){var a=n.getColumn;n.mode,n.component,n.immediate,n.getComponent,this.$createElement;r.web_path=void 0,r.component=void 0,r.component_name=void 0,t?(a("web_path").title="外链接地址",a("web_path").component.placeholder="请输入外链接地址",a("web_path").helper={render:function(e){return e("el-alert",{attrs:{title:"外链接地址,请以https|http|ftp|rtsp|mms开头",type:"warning"}})}}):(a("web_path").title="路由地址",a("web_path").component.placeholder="请输入路由地址",a("web_path").helper={render:function(e){return e("el-alert",{attrs:{title:"浏览器中url的地址,请以/开头",type:"warning"}})}})}}},{title:"路由地址",key:"web_path",width:150,show:!1,form:{rules:[{required:!0,message:"请输入正确的路由地址"},{validator:t,trigger:"change"}],component:{show:function(e){var t=e.form;return!t.is_catalog},props:{clearable:!0},placeholder:"请输入路由地址"},helper:{render:function(e){return e("el-alert",{attrs:{title:"浏览器中url的地址,请以/开头",type:"warning"}})}}}},{title:"组件地址",key:"component",type:"select",show:!1,dict:{cache:!1,data:e.searchFiles()},form:{rules:[{required:!0,message:"请选择组件地址"}],component:{show:function(e){var t=e.form;return!t.is_catalog&&!t.is_link},props:{clearable:!0,filterable:!0},placeholder:"请输入组件地址"},helper:{render:function(e){return e("el-alert",{attrs:{title:"src/views下的文件夹地址",type:"warning"}})}}}},{title:"组件名称",key:"component_name",width:170,form:{rules:[{required:!0,message:"请输入组件名称"}],component:{show:function(e){var t=e.form;return!t.is_catalog&&!t.is_link},props:{clearable:!0},placeholder:"请输入组件名称"},helper:{render:function(e){return e("el-alert",{attrs:{title:"xx.vue文件中的name",type:"warning"}})}}}},{title:"拥有权限",key:"menuPermission",type:"select",width:300,form:{disabled:!0,component:{elProps:{filterable:!0,multiple:!0,clearable:!0}}}},{title:"缓存",key:"cache",search:{disabled:!1},width:60,type:"radio",dict:{data:e.dictionary("button_whether_bool")},form:{value:!1,component:{show:function(e){var t=e.form;return!t.is_catalog},placeholder:"请选择是否缓存"},helper:{render:function(e){return e("el-alert",{attrs:{title:"是否开启页面缓存,需要组件名称和xx.vue页面的name一致",type:"warning"}})}}}},{title:"侧边可见",key:"visible",search:{disabled:!1},width:75,type:"radio",dict:{data:e.dictionary("button_whether_bool")},form:{value:!0,component:{placeholder:"请选择侧边可见"},rules:[{required:!0,message:"侧边可见必填项"}],helper:{render:function(e){return e("el-alert",{attrs:{title:"是否显示在侧边菜单中",type:"warning"}})}}}},{title:"状态",key:"status",sortable:!0,search:{disabled:!1},width:70,type:"radio",dict:{data:e.dictionary("button_status_bool")},form:{value:!0,component:{placeholder:"请选择状态"},rules:[{required:!0,message:"状态必填项"}]}}].concat(e.commonEndColumns({update_datetime:{showTable:!1}}))}}},5595:function(e,t,r){},"57fe":function(e,t,r){e.exports=r.p+"img/bg.33d3aae9.jpg"},"5bc7":function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return a})),r.d(t,"GetList",(function(){return i})),r.d(t,"AddObj",(function(){return o})),r.d(t,"UpdateObj",(function(){return s})),r.d(t,"DelObj",(function(){return c})),r.d(t,"exportData",(function(){return l}));var n=r("22ce"),a="/api/people/client/";function i(e){return Object(n["c"])({url:a,method:"get",params:e})}function o(e){return Object(n["c"])({url:a,method:"post",data:e})}function s(e){return Object(n["c"])({url:a+e.id+"/",method:"put",data:e})}function c(e){return Object(n["c"])({url:a+e+"/",method:"delete",data:{id:e}})}function l(e){return Object(n["a"])({url:a+"export/",params:e,method:"post"})}},"5cfa":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("d2-crud-x",e._g(e._b({ref:"d2Crud"},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button-group",[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"Create",expression:"'Create'"}],attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v(" 新增")])],1),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1)])],1)},a=[],i=(r("14d9"),r("b0c0"),r("9668")),o=r("cb12"),s=r("1fbf"),c={name:"dept",mixins:[s["d2CrudPlus"].crud],data:function(){return{}},methods:{getCrudOptions:function(){return Object(o["crudOptions"])(this)},pageRequest:function(e){return e.lazy=!0,i["GetList"](e)},addRequest:function(e){return s["d2CrudPlus"].util.dict.clear(),i["createObj"](e)},updateRequest:function(e){return s["d2CrudPlus"].util.dict.clear(),i["UpdateObj"](e)},delRequest:function(e){return i["DelObj"](e.id)},createPermission:function(e){this.$router.push({name:"menuButton",params:{id:e.row.id},query:{name:e.row.name}})}}},l=c,d=(r("0273"),r("2877")),u=Object(d["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"617a":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"d2-page-cover"},[t("p",{staticClass:"d2-page-cover__title",on:{click:function(t){return e.$open("https://github.com/greper/d2-crud-plus")}}},[t("d2-icon-svg",{staticClass:"logo",attrs:{name:"d2-admin"}}),e._v(" d2-crud-plus "+e._s(e.$version))],1),t("p",{staticClass:"d2-page-cover__sub-title"},[e._v("d2-crud加强版,简化d2-crud配置,定义字段类型,快速开发crud功能")]),e._m(0),t("p",{staticClass:"d2-page-cover__build-time"},[e._v("FINAL BUILD TIME "+e._s(e.$buildTime))]),e._t("footer"),e._m(1)],2)},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"exampleBox"},[t("div",{staticClass:"right"},[t("img",{attrs:{src:r("4013")}})])])},function(){var e=this,t=e._self._c;return t("div",{},[t("div",{staticClass:"toStar"},[e._v("喜欢就去star一下吧 "),t("i",{staticClass:"fa fa-hand-o-right"})]),t("a",{attrs:{target:"blank",href:"https://github.com/greper/d2-crud-plus"}},[t("img",{staticStyle:{position:"absolute",top:"0",right:"0",border:"0","vertical-align":"top",width:"150px"},attrs:{src:r("6cae"),alt:"Fork me on GitHub"}})])])}],i=r("239b"),o={data:function(){return{helper:i["default"]}}},s=o,c=(r("d857"),r("2877")),l=Object(c["a"])(s,n,a,!1,null,"67328225",null);t["default"]=l.exports},6251:function(e,t,r){e.exports=r.p+"img/d2-help-button@2x.f2b91bcb.png"},6761:function(e,t,r){"use strict";r.r(t);r("b0c0");var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("template",{slot:"header"},[t("div",[e._v(" 来自菜单 "),t("el-tag",[e._v(" "+e._s(e.$route.query.name))])],1)]),t("d2-crud-x",e._g(e._b({ref:"d2Crud"},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button-group",[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v(" 新增 ")])],1),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1)])],2)},a=[],i=r("5530"),o=r("fc13"),s=r("dce7d"),c=r("1fbf"),l={name:"menuButton",mixins:[c["d2CrudPlus"].crud],data:function(){return{}},methods:{getCrudOptions:function(){return Object(s["crudOptions"])(this)},pageRequest:function(e){var t=this.$route.query.id;return o["GetList"](Object(i["a"])(Object(i["a"])({},e),{},{menu:t}))},addRequest:function(e){var t=this.$route.query.id;return o["createObj"](e,t)},updateRequest:function(e){return o["UpdateObj"](e)},delRequest:function(e){return o["DelObj"](e.id)}}},d=l,u=(r("6fed"),r("2877")),p=Object(u["a"])(d,n,a,!1,null,null,null);t["default"]=p.exports},"67f0":function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return a})),r.d(t,"GetList",(function(){return i})),r.d(t,"AddObj",(function(){return o})),r.d(t,"UpdateObj",(function(){return s})),r.d(t,"DelObj",(function(){return c}));var n=r("22ce"),a="/api/system/file/";function i(e){return Object(n["c"])({url:a,method:"get",params:e})}function o(e){return Object(n["c"])({url:a,method:"post",data:e})}function s(e){return Object(n["c"])({url:a+e.id+"/",method:"put",data:e})}function c(e){return Object(n["c"])({url:a+e+"/",method:"delete",data:{id:e}})}},"6cae":function(e,t,r){e.exports=r.p+"img/darkblue@2x.6dc8e790.png"},"6fa4":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("d2-crud-x",e._g(e._b({ref:"d2Crud",scopedSlots:e._u([{key:"createBtnFormSlot",fn:function(r){return[t("el-button",{attrs:{disabled:"view"===r.mode,icon:"el-icon-plus",type:"primary",circle:""},on:{click:e.onLinkBtn}})]}}])},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button-group",[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v(" 新增")])],1),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1)])],1)},a=[],i=r("5530"),o=(r("14d9"),r("3c7f")),s=r("741d"),c=r("1fbf"),l={name:"whiteList",mixins:[c["d2CrudPlus"].crud],data:function(){return{}},methods:{getCrudOptions:function(){return Object(s["crudOptions"])(this)},pageRequest:function(e){var t=this.$route.params.id;return o["GetList"](Object(i["a"])(Object(i["a"])({},e),{},{menu:t}))},addRequest:function(e){var t=this.$route.params.id;return o["createObj"](e,t)},updateRequest:function(e){return o["UpdateObj"](e)},delRequest:function(e){return o["DelObj"](e.id)},onLinkBtn:function(){this.$router.push({path:"/button"})}}},d=l,u=(r("e367"),r("2877")),p=Object(u["a"])(d,n,a,!1,null,null,null);t["default"]=p.exports},"6fed":function(e,t,r){"use strict";r("cda3")},7099:function(e,t,r){"use strict";r("8833")},"70eb":function(e,t,r){"use strict";r.r(t);r("b0c0");var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("d2-crud-x",e._g(e._b({ref:"d2Crud",on:{createPermission:e.createPermission}},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button-group",[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"Create",expression:"'Create'"}],attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v(" 新增")])],1),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1)]),t("div",[t("el-drawer",{attrs:{title:"角色授权",visible:e.rolePermissionShow,direction:"rtl",size:"70%"},on:{"update:visible":function(t){e.rolePermissionShow=t}}},[t("template",{slot:"title"},[t("div",[e._v(" 当前角色"),t("el-tag",[e._v(e._s(e.roleObj?e.roleObj.name:"无"))])],1)]),t("div",[e.rolePermissionShow?t("rolePermission",{attrs:{"role-obj":e.roleObj}}):e._e()],1)],2)],1)],1)},a=[],i=r("f1eb"),o=r("bc5c"),s=r("1fbf"),c=r("1d95"),l={name:"role",mixins:[s["d2CrudPlus"].crud],components:{rolePermission:c["default"]},data:function(){return{rolePermissionShow:!1,roleObj:void 0}},methods:{getCrudOptions:function(){return Object(o["crudOptions"])(this)},pageRequest:function(e){return i["GetList"](e)},addRequest:function(e){return i["createObj"](e)},updateRequest:function(e){return i["UpdateObj"](e)},delRequest:function(e){return i["DelObj"](e.id)},createPermission:function(e){console.log(e),this.roleObj=e.row,this.rolePermissionShow=!0}}},d=l,u=(r("b9b9"),r("2877")),p=Object(u["a"])(d,n,a,!1,null,null,null);t["default"]=p.exports},7110:function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return n}));var n=function(e){return{pageOptions:{compact:!0},options:{height:"100%"},rowHandle:{width:110,view:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Retrieve")}},edit:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Delete")}}},viewOptions:{componentType:"form"},formOptions:{defaultSpan:12},indexRow:{title:"序号",align:"center",width:100},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1},form:{disabled:!0,component:{placeholder:"请输入关键词"}},view:{disabled:!0}},{title:"ID",key:"id",width:90,disabled:!0,form:{disabled:!0}},{title:"文件名称",key:"name",search:{disabled:!1},width:160,type:"input",form:{component:{placeholder:"请输入文件名称"}}},{title:"文件地址",key:"url",type:"file-uploader",search:{disabled:!0},width:220},{title:"文件MD5",key:"md5sum",width:200,search:{disabled:!0},form:{disabled:!1}},{title:"备注",key:"description",show:!1,search:{disabled:!0},type:"textarea",form:{component:{placeholder:"请输入内容",showWordLimit:!0,maxlength:"200",props:{type:"textarea"}}}},{title:"创建人",show:!1,width:100,key:"modifier_name",form:{disabled:!0}},{title:"更新时间",key:"update_datetime",width:160,type:"datetime",form:{disabled:!0}},{title:"创建时间",key:"create_datetime",width:160,type:"datetime",form:{disabled:!0}}]}}},7190:function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return i})),r.d(t,"GetList",(function(){return o})),r.d(t,"AddObj",(function(){return s})),r.d(t,"UpdateObj",(function(){return c})),r.d(t,"DelObj",(function(){return l}));var n=r("5530"),a=(r("d81d"),r("e9f5"),r("ab43"),r("d3b7"),r("22ce")),i="/api/system/area/";function o(e){return void 0!==e.pcode&&null!==e.pcode&&0!==e.pcode.length||(e.level=1),Object(a["c"])({url:i,method:"get",params:Object(n["a"])(Object(n["a"])({},e),{},{limit:100})}).then((function(e){return e.data.data.map((function(e){e.hasChildren=0!==e.pcode_count})),e}))}function s(e){return Object(a["c"])({url:i,method:"post",data:e})}function c(e){return Object(a["c"])({url:i+e.id+"/",method:"put",data:e})}function l(e){return Object(a["c"])({url:i+e+"/",method:"delete",data:{id:e}})}},7210:function(e,t,r){"use strict";r("091a")},"729f":function(e,t,r){},"741d":function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return a}));r("14d9"),r("b64b");var n=r("22ce"),a=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!1,width:"100%",height:"100%"},rowHandle:{width:180,edit:{thin:!0,text:"编辑"},remove:{thin:!0,text:"删除"}},indexRow:{title:"序号",align:"center",width:100},viewOptions:{disabled:!0,componentType:"form"},formOptions:{defaultSpan:24},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1},form:{disabled:!0,component:{placeholder:"请输入关键词"}},view:{disabled:!0}},{title:"ID",key:"id",show:!1,width:90,form:{disabled:!0}},{title:"请求方式",key:"method",sortable:!0,search:{disabled:!1},type:"select",dict:{data:[{label:"GET",value:0},{label:"POST",value:1},{label:"PUT",value:2},{label:"DELETE",value:3}]},form:{rules:[{required:!0,message:"必填项"}],component:{span:12},itemProps:{class:{yxtInput:!0}}}},{title:"接口地址",key:"url",sortable:!0,search:{disabled:!0},type:"select",dict:{url:"/swagger.json",label:"label",value:"value",getData:function(e,t){return Object(n["c"])({url:e}).then((function(e){for(var t=Object.keys(e.paths),r=[],n=0,a=t;n<a.length;n++){var i=a[n],o={};o.label=i,o.value=i,r.push(o)}return r}))}},form:{rules:[{required:!0,message:"必填项"}],component:{span:24,props:{elProps:{allowCreate:!0,filterable:!0,clearable:!0}}},itemProps:{class:{yxtInput:!0}},helper:{render:function(e){return e("el-alert",{attrs:{title:"请正确填写,以免请求时被拦截。匹配单例使用正则,例如:/api/xx/.*?/",type:"warning"}})}}}},{title:"数据权限认证",key:"enable_datasource",search:{disabled:!1},width:150,type:"radio",dict:{data:e.dictionary("button_status_bool")},form:{value:!0,component:{span:12}}},{title:"备注",key:"description",search:{disabled:!0},type:"textarea",form:{component:{placeholder:"请输入内容",showWordLimit:!0,maxlength:"200",props:{type:"textarea"}}}}]}}},"76d1":function(e,t,r){"use strict";r("c59a")},"76fd":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("d2-crud-x",e._g(e._b({ref:"d2Crud",on:{dictionaryConfigure:e.dictionaryConfigure}},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button-group",[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v(" 新增")])],1),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1)]),t("el-drawer",{attrs:{visible:e.drawer,size:700},on:{"update:visible":function(t){e.drawer=t}}},[t("div",{attrs:{slot:"title"},slot:"title"},[t("span",[e._v("字典列表")]),t("el-tag",{staticStyle:{"margin-left":"10px"},attrs:{size:"small"}},[e._v(e._s(e.dictionaryRow.label))])],1),t("sub-dictionary",{staticStyle:{"margin-top":"80px","margin-left":"10px"},attrs:{dictionaryRow:e.dictionaryRow}})],1)],1)},a=[],i=r("fe57"),o=r("be56"),s=r("1fbf"),c=r("24ba"),l={name:"dictionary",components:{SubDictionary:c["default"]},mixins:[s["d2CrudPlus"].crud],data:function(){return{drawer:!1,dictionaryRow:{}}},methods:{getCrudOptions:function(){return Object(o["crudOptions"])(this)},pageRequest:function(e){return e.is_value=!1,i["GetList"](e)},addRequest:function(e){return s["d2CrudPlus"].util.dict.clear(),i["createObj"](e)},updateRequest:function(e){return s["d2CrudPlus"].util.dict.clear(),i["UpdateObj"](e)},delRequest:function(e){return i["DelObj"](e.id)},dictionaryConfigure:function(e){this.drawer=!0,this.dictionaryRow=e.row},doAfterRowChange:function(e){this.doRefresh({from:"afterRowChange"}),this.$store.dispatch("d2admin/dictionary/load")}}},d=l,u=(r("edcd"),r("2877")),p=Object(u["a"])(d,n,a,!1,null,null,null);t["default"]=p.exports},"78ed":function(e,t,r){"use strict";r("a5da")},"7ae8":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"d2-badge"},[t("p",{attrs:{align:"center"}},[t("a",[t("img",{attrs:{src:"https://img.shields.io/github/forks/greper/d2-crud-plus.svg"}})]),t("a",[t("img",{attrs:{src:"https://img.shields.io/github/stars/greper/d2-crud-plus.svg"}})]),t("a",[t("img",{attrs:{src:"https://img.shields.io/github/issues/greper/d2-crud-plus.svg"}})]),t("a",[t("img",{attrs:{src:"https://img.shields.io/github/issues-closed/greper/d2-crud-plus.svg"}})]),t("a",[t("img",{attrs:{src:"https://img.shields.io/github/issues-pr/greper/d2-crud-plus.svg"}})]),t("a",[t("img",{attrs:{src:"https://img.shields.io/github/issues-pr-closed/greper/d2-crud-plus.svg"}})])]),t("p",{attrs:{align:"center"}},[t("a",[t("img",{attrs:{src:"https://img.shields.io/github/last-commit/greper/d2-crud-plus.svg"}})]),t("a",[t("img",{attrs:{src:"https://img.shields.io/badge/code_style-standard-brightgreen.svg"}})])])])}],i=(r("ce5e"),r("2877")),o={},s=Object(i["a"])(o,n,a,!1,null,"24b2f546",null);t["default"]=s.exports},"7bb3":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("d2-crud-x",e._g(e._b({ref:"d2Crud",on:{"form-component-ready":e.handleFormComponentReady}},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v(" 新增")]),t("el-tabs",{on:{"tab-click":e.onTabClick},model:{value:e.tabActivted,callback:function(t){e.tabActivted=t},expression:"tabActivted"}},[t("el-tab-pane",{attrs:{label:"我的发布",name:"send"}}),t("el-tab-pane",{attrs:{label:"我的接收",name:"receive"}})],1),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1)])],1)},a=[],i=r("5530"),o=r("2b3d"),s=r("45f0"),c=r("1fbf"),l={name:"messageCenter",components:{},mixins:[c["d2CrudPlus"].crud],data:function(){return{tabActivted:"send"}},created:function(){this.crud.options.fetchDetail=this.fetchDetail},computed:{},methods:{getCrudOptions:function(){return Object(s["crudOptions"])(this)},pageRequest:function(e){return"receive"===this.tabActivted?Object(o["GetSelfReceive"])(Object(i["a"])({},e)):Object(o["GetList"])(e)},infoRequest:function(e){return Object(o["GetObj"])(e)},addRequest:function(e){var t=this;return Object(o["AddObj"])(e).then((function(e){var r={message_id:e.data.id,contentType:"TEXT",content:"您有新的消息,请到消息中心查看~"};t.$websocket.webSocketSend(r)}))},updateRequest:function(e){return Object(o["UpdateObj"])(e)},delRequest:function(e){return Object(o["DelObj"])(e.id)},fetchDetail:function(e,t){return null==e?{}:Object(o["GetObj"])(t).then((function(e){return e.data}))},handleFormComponentReady:function(e,t,r){},onTabClick:function(e){this.doRefresh()}}},d=l,u=r("2877"),p=Object(u["a"])(d,n,a,!1,null,null,null);t["default"]=p.exports},"7dcd":function(e,t,r){"use strict";r("5595")},"86c0":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-login"})},a=[],i=r("5530"),o=(r("ac1f"),r("5319"),r("5880")),s=r("1353"),c=r("da52"),l={mixins:[s["a"]],beforeCreate:function(){this.$store.dispatch("d2admin/settings/init")},data:function(){return{processTitle:"ANSJER-硬盘管理系统",backgroundImage:"url("+this.loginBackground+")",formLogin:{username:"",password:"",captcha:""},rules:{username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},captchaKey:null,image_base:null,selectUsersDialogVisible:!1,users:[{name:"超管",username:"superadmin",password:"admin123456"},{name:"管理员",username:"admin",password:"admin123456"}]}},computed:Object(i["a"])({},Object(o["mapState"])("d2admin",{siteLogo:function(e){return e.settings.data["login.site_logo"]||r("8986")},keepRecord:function(e){return e.settings.data["login.keep_record"]},siteName:function(e){return e.settings.data["login.site_name"]},copyright:function(e){return e.settings.data["login.copyright"]},loginBackground:function(e){return e.settings.data["login.login_background"]||r("57fe")},helpUrl:function(e){return e.settings.data["login.help_url"]},privacyUrl:function(e){return e.settings.data["login.privacy_url"]},clauseUrl:function(e){return e.settings.data["login.clause_url"]},captchaState:function(e){return void 0===e.settings.data["base.captcha_state"]||e.settings.data["base.captcha_state"]}})),mounted:function(){},beforeDestroy:function(){},methods:Object(i["a"])(Object(i["a"])({},Object(o["mapActions"])("d2admin/account",["login"])),{},{getCaptcha:function(){var e=this;(void 0===this.captchaState||this.captchaState)&&c["getCaptcha"]().then((function(t){e.formLogin.captcha=null,e.captchaKey=t.data.key,e.image_base=t.data.image_base}))},submit:function(){var e=this,t=this;this.$refs.loginForm.validate((function(r){r?e.login({username:t.formLogin.username,password:t.$md5(t.formLogin.password),captcha:t.formLogin.captcha,captchaKey:t.captchaKey}).then((function(){e.$router.replace(e.$route.query.redirect||"/")})).catch((function(){e.getCaptcha()})):e.$message.error("表单校验失败,请检查")}))},handleUserBtnClick:function(e){this.formLogin.username=e.username,this.formLogin.password=e.password,this.selectUsersDialogVisible=!1,this.captchaState||this.submit()}}),created:function(){this.$store.dispatch("d2admin/db/databaseClear"),this.getCaptcha()}},d=l,u=(r("310e"),r("2877")),p=Object(u["a"])(d,n,a,!1,null,"e811ddf8",null);t["default"]=p.exports},"879b":function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return n}));var n=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!0,rowId:"id",height:"100%",highlightCurrentRow:!1},rowHandle:{fixed:"right",view:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Retrieve")}},width:70,edit:{thin:!0,text:"",show:!1,disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"删除",show:!1,disabled:function(){return!e.hasPermissions("Delete")}}},viewOptions:{componentType:"form"},formOptions:{disabled:!0,defaultSpan:12},indexRow:{title:"序号",align:"center",width:70},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1},form:{show:!1,component:{placeholder:"请输入关键词"}}},{title:"ID",key:"id",width:90,disabled:!0,form:{disabled:!0}},{title:"登录用户名",key:"username",search:{disabled:!1},width:140,type:"input",form:{disabled:!0,component:{placeholder:"请输入登录用户名"}}},{title:"登录ip",key:"ip",search:{disabled:!1},width:130,type:"input",form:{disabled:!0,component:{placeholder:"请输入登录ip"}}},{title:"运营商",key:"isp",search:{disabled:!0},disabled:!0,width:180,type:"input",form:{component:{placeholder:"请输入运营商"}}},{title:"大州",key:"continent",width:80,type:"input",form:{disabled:!0,component:{placeholder:"请输入大州"}},component:{props:{color:"auto"}}},{title:"国家",key:"country",width:80,type:"input",form:{component:{placeholder:"请输入国家"}},component:{props:{color:"auto"}}},{title:"省份",key:"province",width:80,type:"input",form:{component:{placeholder:"请输入省份"}},component:{props:{color:"auto"}}},{title:"城市",key:"city",width:80,type:"input",form:{component:{placeholder:"请输入城市"}},component:{props:{color:"auto"}}},{title:"县区",key:"district",width:80,type:"input",form:{component:{placeholder:"请输入县区"}},component:{props:{color:"auto"}}},{title:"区域代码",key:"area_code",width:100,type:"input",form:{component:{placeholder:"请输入区域代码"}},component:{props:{color:"auto"}}},{title:"英文全称",key:"country_english",width:120,type:"input",form:{component:{placeholder:"请输入英文全称"}},component:{props:{color:"auto"}}},{title:"简称",key:"country_code",width:100,type:"input",form:{component:{placeholder:"请输入简称"}},component:{props:{color:"auto"}}},{title:"经度",key:"longitude",width:80,type:"input",disabled:!0,form:{component:{placeholder:"请输入经度"}},component:{props:{color:"auto"}}},{title:"纬度",key:"latitude",width:80,type:"input",disabled:!0,form:{component:{placeholder:"请输入纬度"}},component:{props:{color:"auto"}}},{title:"登录类型",key:"login_type",width:100,type:"select",search:{disabled:!1},dict:{data:[{label:"普通登录",value:1}]},form:{component:{placeholder:"请选择登录类型"}},component:{props:{color:"auto"}}},{title:"操作系统",key:"os",width:180,type:"input",form:{component:{placeholder:"请输入操作系统"}}},{title:"浏览器名",key:"browser",width:180,type:"input",form:{component:{placeholder:"请输入浏览器名"}}},{title:"agent信息",key:"agent",disabled:!0,width:180,type:"input",form:{component:{placeholder:"请输入agent信息"}}},{fixed:"right",title:"登录时间",key:"create_datetime",width:160,type:"datetime"}]}}},"880c":function(e,t,r){},8833:function(e,t,r){},8986:function(e,t,r){e.exports=r.p+"img/dvadmin.9c88a65d.png"},"8ec7":function(e,t,r){"use strict";r("d391")},9612:function(e,t,r){},"96fb":function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return a})),r.d(t,"GetList",(function(){return i})),r.d(t,"AddObj",(function(){return o})),r.d(t,"UpdateObj",(function(){return s})),r.d(t,"DelObj",(function(){return c}));var n=r("22ce"),a="/api/system/operation_log/";function i(e){return Object(n["c"])({url:a,method:"get",params:e})}function o(e){return Object(n["c"])({url:a,method:"post",data:e})}function s(e){return Object(n["c"])({url:a+e.id+"/",method:"put",data:e})}function c(e){return Object(n["c"])({url:a+e+"/",method:"delete",data:{id:e}})}},"993a":function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return a})),r.d(t,"GetList",(function(){return i})),r.d(t,"AddObj",(function(){return o})),r.d(t,"UpdateObj",(function(){return s})),r.d(t,"DelObj",(function(){return c})),r.d(t,"exportData",(function(){return l}));var n=r("22ce"),a="/api/myapp/stock/";function i(e){return Object(n["c"])({url:a,method:"get",params:e})}function o(e){return Object(n["c"])({url:a,method:"post",data:e})}function s(e){return Object(n["c"])({url:a+e.id+"/",method:"put",data:e})}function c(e){return Object(n["c"])({url:a+e+"/",method:"delete",data:{id:e}})}function l(e){return Object(n["a"])({url:a+"export/",params:e,method:"post"})}},a5da:function(e,t,r){},a7e8:function(e,t,r){},ac6e:function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return n}));var n=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!0,rowId:"id",height:"100%",highlightCurrentRow:!1},rowHandle:{fixed:"right",view:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Retrieve")}},width:70,edit:{thin:!0,text:"",show:!1,disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"删除",show:!1,disabled:function(){return!e.hasPermissions("Delete")}}},viewOptions:{componentType:"form"},formOptions:{disabled:!0,defaultSpan:12},indexRow:{title:"序号",align:"center",width:70},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1},form:{show:!1,component:{placeholder:"请输入关键词"}}},{title:"ID",key:"id",width:90,disabled:!0,form:{disabled:!0}},{title:"请求模块",key:"request_modular",search:{disabled:!1},width:140,type:"input",form:{disabled:!0,component:{placeholder:"请输入请求模块"}}},{title:"请求地址",key:"request_path",search:{disabled:!1},width:220,type:"input",form:{disabled:!0,component:{placeholder:"请输入请求地址"}}},{title:"请求参数",key:"request_body",search:{disabled:!0},disabled:!0,type:"textarea",form:{disabled:!0,component:{props:{type:"textarea"},autosize:{minRows:2,maxRows:8},placeholder:"请输入关键词"}}},{title:"请求方法",key:"request_method",width:80,type:"input",search:{disabled:!1},form:{disabled:!0,component:{placeholder:"请输入请求方法"}},component:{props:{color:"auto"}}},{title:"操作说明",key:"request_msg",disabled:!0,form:{component:{span:12}}},{title:"IP地址",key:"request_ip",search:{disabled:!1},width:130,type:"input",form:{disabled:!0,component:{placeholder:"请输入IP地址"}},component:{props:{color:"auto"}}},{title:"请求浏览器",key:"request_browser",width:180,type:"input",form:{disabled:!0},component:{props:{color:"auto"}}},{title:"响应码",key:"response_code",search:{disabled:!0},width:80,type:"input",form:{disabled:!0},component:{props:{color:"auto"}}},{title:"操作系统",key:"request_os",disabled:!0,search:{disabled:!0},type:"input",form:{disabled:!0},component:{props:{color:"auto"}}},{title:"返回信息",key:"json_result",search:{disabled:!0},minWidth:240,type:"input",form:{disabled:!0},component:{props:{color:"auto"}}},{title:"操作人",width:100,key:"creator_name",form:{disabled:!0}},{title:"更新时间",key:"update_datetime",width:160,show:!1,type:"datetime",form:{disabled:!0}},{fixed:"right",title:"操作时间",key:"create_datetime",width:160,type:"datetime",form:{disabled:!0}}]}}},b44e:function(e,t,r){"use strict";r("d79b")},b5b1:function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return o}));var n=r("5530"),a=r("47f4"),i=[],o=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!0,rowId:"id",height:"100%",highlightCurrentRow:!0,events:{"sort-change":function(t){var r=t.field,a=t.order,i="desc"===a?"-":"",o=i+r,s=e.getSearch().getForm(),c=Object(n["a"])({ordering:o},s);e.doSearch(c)}}},rowHandle:{fixed:"right",align:"center",width:"170px",view:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Retrieve")}},edit:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Delete")}}},indexRow:{title:"序号",align:"center",resizable:!0,fixed:"left",width:90},viewOptions:{componentType:"form"},formOptions:{defaultSpan:24,width:"35%"},columns:[{title:"ID",key:"id",show:!1,disabled:!0,width:70,form:{disabled:!0}},{title:"序列号",key:"sn",fixed:"left",resizable:!0,width:"auto",align:"center",search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"序列号必填"}],component:{props:{clearable:!0},placeholder:"请输入序列号"},itemProps:{class:{yxtInput:!0}}}},{title:"产品型号",key:"product_model",resizable:!0,align:"center",width:"auto",search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"产品型号必填"}],component:{props:{clearable:!0},placeholder:"请输入产品型号"},itemProps:{class:{yxtInput:!0}}}},{title:"板号",key:"board_no",resizable:!0,align:"center",width:"auto",search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"板号必填"}],component:{props:{clearable:!0},placeholder:"请输入板号"},itemProps:{class:{yxtInput:!0}}}},{title:"箱号",key:"case_no",align:"center",resizable:!0,width:"auto",search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"箱号必填"}],component:{props:{clearable:!0},placeholder:"请输入箱号"},itemProps:{class:{yxtInput:!0}}}},{title:"进货发票号",key:"purchase_invoice_no",width:"auto",align:"center",resizable:!0,type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"进货发票号必填"}],component:{props:{clearable:!0},placeholder:"请输入进货发票号"},itemProps:{class:{yxtInput:!0}}}},{title:"进货日期",key:"purchase_date",sortable:!0,align:"center",width:"auto",resizable:!0,type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"进货日期必填"}],component:{props:{clearable:!0},placeholder:"请输入进货日期"},itemProps:{class:{yxtInput:!0}}}},{title:"出货单号",key:"shipping_no",align:"center",width:"auto",resizable:!0,search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"出货单号必填"}],component:{props:{clearable:!0},placeholder:"请输入出货单号"},itemProps:{class:{yxtInput:!0}}}},{title:"数量",key:"num",sortable:!0,align:"center",resizable:!0,width:"auto",type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"数量必填"}],component:{props:{clearable:!0},placeholder:"请输入数量"},itemProps:{class:{yxtInput:!0}}}},{title:"仓位",key:"freight_space",align:"center",width:"auto",resizable:!0,search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"仓位必填"}],component:{props:{clearable:!0},placeholder:"请输入仓位"},itemProps:{class:{yxtInput:!0}}}},{title:"扫描类型",key:"scan_type",align:"center",width:"auto",resizable:!0,search:{component:{props:{clearable:!0}}},type:"input",form:{editDisabled:!0,rules:[{required:!0,message:"扫描类型必填"}],component:{props:{clearable:!0},placeholder:"请输入扫描类型"},itemProps:{class:{yxtInput:!0}}}},{title:"状态",key:"status",align:"center",width:"auto",resizable:!0,search:{disabled:!1},type:"select",dict:{data:e.dictionary("hdd_status")},form:{show:!1,value:0,component:{span:12},itemProps:{class:{yxtInput:!0}}}},{title:"更新时间",key:"daterange",sortable:!0,type:"daterange",show:!1,search:{disabled:!1,width:380},form:{disabled:!0,component:{props:{"time-arrow-control":!1,"picker-options":{shortcuts:i},format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"}}},valueBuilder:function(e,t){a["a"].hasEmpty(e.daterangeStart,e.daterangeEnd)||(e.daterange=[new Date(e.daterangeStart),new Date(e.daterangeEnd)])},valueResolve:function(e,t){null!=e.daterange&&e.daterange.length>1?(e.start_time=e.daterange[0],e.stop_time=e.daterange[1]):(e.start_time=null,e.stop_time=null)}},{title:"备注",key:"remark",align:"center",width:"200px",resizable:!0,showOverflowTooltip:!0,type:"input",form:{editDisabled:!0,component:{props:{clearable:!0},placeholder:"请输入备注"},itemProps:{class:{yxtInput:!0}}}},{title:"更新时间",key:"update_datetime",width:"auto",align:"center",show:!0,type:"datetime",sortable:!0,form:{disabled:!0}},{title:"创建时间",key:"create_datetime",align:"center",width:"auto",search:{disabled:!0,width:360,component:{name:"el-date-picker",props:{type:"daterange","range-separator":"至","start-placeholder":"开始","end-placeholder":"结束",valueFormat:"yyyy-MM-dd"}}},show:!0,type:"datetime",sortable:!0,form:{disabled:!0}}]}}},b9b9:function(e,t,r){"use strict";r("fd61")},ba88:function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return o}));r("99af");var n=r("22ce"),a=r("9668"),i=r("c276"),o=function(e){return i["a"].filterParams(e,["dept_name","role_info{name}"]),{pageOptions:{compact:!0},options:{height:"100%",tableType:"vxe-table",rowKey:!0,rowId:"id"},selectionRow:{align:"center",width:46},rowHandle:{width:240,fixed:"right",view:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Retrieve")}},edit:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Delete")}},custom:[{thin:!0,text:"密码重置",size:"small",type:"warning",icon:"el-icon-refresh-left",show:function(){return e.hasPermissions("ResetPassword")},emit:"resetPassword"}]},viewOptions:{componentType:"form"},formOptions:{defaultSpan:12},indexRow:{title:"序号",align:"center",width:60},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1},form:{disabled:!0,component:{placeholder:"请输入关键词"}},view:{disabled:!0}},{title:"ID",key:"id",disabled:!0,form:{disabled:!0}},{title:"账号",key:"username",search:{disabled:!1},minWidth:100,type:"input",form:{rules:[{required:!0,message:"账号必填项"}],component:{placeholder:"请输入账号"},itemProps:{class:{yxtInput:!0}}}},{title:"密码",key:"password",minWidth:90,type:"input",form:{rules:[{required:!0,message:"密码必填项"}],component:{span:12,showPassword:!0,placeholder:"请输入密码"},value:e.systemConfig("base.default_password"),editDisabled:!0,itemProps:{class:{yxtInput:!0}}},disabled:!0,valueResolve:function(t,r){t.password&&(t.password=e.$md5(t.password))}},{title:"姓名",key:"name",minWidth:90,search:{disabled:!1},type:"input",form:{rules:[{required:!0,message:"姓名必填项"}],component:{span:12,placeholder:"请输入姓名"},itemProps:{class:{yxtInput:!0}}}},{title:"部门",key:"dept",search:{disabled:!0},minWidth:140,type:"tree-selector",dict:{cache:!1,isTree:!0,url:a["urlPrefix"],value:"id",label:"name"},form:{rules:[{required:!0,message:"必填项"}],itemProps:{class:{yxtInput:!0}},component:{span:12,pagination:!0,props:{multiple:!1}}},component:{name:"foreignKey",valueBinding:"dept_name"}},{title:"手机号码",key:"mobile",search:{disabled:!0},minWidth:110,type:"input",form:{rules:[{max:20,message:"请输入正确的手机号码",trigger:"blur"},{pattern:/^1[3-9]\d{9}$/,message:"请输入正确的手机号码"}],itemProps:{class:{yxtInput:!0}},component:{placeholder:"请输入手机号码"}}},{title:"邮箱",key:"email",minWidth:180,form:{rules:[{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}],component:{placeholder:"请输入邮箱"}}},{title:"性别",key:"gender",type:"radio",width:70,dict:{data:e.dictionary("gender")},form:{value:1,component:{span:12}},component:{props:{color:"auto"}}},{title:"用户类型",key:"user_type",search:{disabled:!1},width:145,type:"select",dict:{data:e.dictionary("user_type")},form:{show:!1,value:0,component:{span:12}}},{title:"状态",key:"is_active",search:{disabled:!1},width:70,type:"radio",dict:{data:e.dictionary("button_status_bool")},form:{value:!0,component:{span:12}}},{title:"头像",key:"avatar",type:"avatar-cropper",width:60,align:"left",form:{component:{props:{elProps:{multiple:!1,limit:1},sizeLimit:512e3},span:24},helper:"限制文件大小不能超过500k"}},{title:"角色",key:"role",search:{disabled:!0},minWidth:130,type:"table-selector",dict:{cache:!1,url:"/api/system/role/",value:"id",label:"name",getData:function(e,t,r){r.form;var a=r.component;return Object(n["c"])({url:e,params:{page:1,limit:10}}).then((function(e){return a._elProps.page=e.data.page,a._elProps.limit=e.data.limit,a._elProps.total=e.data.total,e.data.data}))}},form:{rules:[{required:!0,message:"必填项"}],itemProps:{class:{yxtInput:!0}},component:{span:12,pagination:!0,props:{multiple:!0},elProps:{columns:[{field:"name",title:"角色名称"},{field:"key",title:"权限标识"}]}}},component:{name:"manyToMany",valueBinding:"role_info",children:"name"}}].concat(e.commonEndColumns({create_datetime:{showTable:!1},update_datetime:{showTable:!1}}))}}},bc5c:function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return n}));r("99af");var n=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!0,rowId:"id",height:"100%",highlightCurrentRow:!1},rowHandle:{view:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Retrieve")}},width:230,edit:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Delete")}},custom:[{show:function(e,t){return!0},disabled:function(){return!e.hasPermissions("Update")},text:"权限管理",type:"warning",size:"small",emit:"createPermission"}]},indexRow:{title:"序号",align:"center",width:100},viewOptions:{componentType:"form"},formOptions:{defaultSpan:24,width:"35%"},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1},form:{disabled:!0,component:{props:{clearable:!0},placeholder:"请输入关键词"}},view:{disabled:!0}},{title:"ID",key:"id",show:!1,width:90,form:{disabled:!0}},{title:"角色名称",key:"name",sortable:!0,search:{disabled:!1,component:{props:{clearable:!0}}},type:"input",form:{rules:[{required:!0,message:"角色名称必填项"}],component:{props:{clearable:!0},placeholder:"请输入角色名称"},itemProps:{class:{yxtInput:!0}}}},{title:"权限标识",key:"key",sortable:!0,form:{rules:[{required:!0,message:"权限标识必填项"}],component:{props:{clearable:!0},placeholder:"请输入标识字符"},itemProps:{class:{yxtInput:!0}}}},{title:"排序",key:"sort",sortable:!0,width:80,type:"number",form:{value:1,component:{placeholder:"请输入排序"}}},{title:"是否管理员",key:"admin",sortable:!0,type:"radio",dict:{data:e.dictionary("button_whether_bool")},form:{value:!1,component:{placeholder:"请选择是否管理员"}}},{title:"状态",key:"status",sortable:!0,search:{disabled:!1},type:"radio",dict:{data:e.dictionary("button_status_bool")},form:{value:!0,component:{placeholder:"请选择状态"}},component:{props:{color:"auto"}}}].concat(e.commonEndColumns())}}},bd42:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",[t("el-button",{attrs:{type:"primary",plain:"",round:""},on:{click:function(t){e.dialogVisible=!0}}},[t("d2-icon",{staticClass:"d2-mr-5",attrs:{name:"question-circle-o"}}),e._v(" 需要帮助吗 ")],1),t("el-dialog",{attrs:{title:"帮助",width:"600px",visible:e.dialogVisible,"append-to-body":!0},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticStyle:{"margin-top":"-25px"}},[t("h2",{staticClass:"d2-mt-0"},[e._v(" 这里有一些参考资料 ")]),t("el-button-group",[t("el-button",{on:{click:function(t){return e.$open("https://d2.pub/zh/doc/d2-admin")}}},[t("d2-icon",{staticClass:"d2-mr-5",attrs:{name:"book"}}),e._v(" 文档 ")],1),t("el-button",{on:{click:function(t){return e.$open("https://github.com/d2-projects/d2-admin/issues?q=is%3Aissue+is%3Aclosed")}}},[t("d2-icon",{staticClass:"d2-mr-5",attrs:{name:"question"}}),e._v(" 历史提问 ")],1),t("el-button",{on:{click:function(t){return e.$open("https://github.com/d2-projects/d2-admin/issues/new/choose")}}},[t("d2-icon",{staticClass:"d2-mr-5",attrs:{name:"plus"}}),e._v(" 提交问题 ")],1)],1),t("h2",[e._v("询问其它使用者或作者")]),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("img",{staticStyle:{width:"100%"},attrs:{src:r("0c31")}}),t("div",{staticClass:"d2-help--qr-info"},[e._v(" 请使用手机 QQ 扫面上方二维码"),t("br"),e._v(" 1群 806395827 (满) | 2群 592981556 ")])]),t("el-col",{attrs:{span:12}},[t("img",{staticStyle:{width:"100%"},attrs:{src:r("086e")}}),t("div",{staticClass:"d2-help--qr-info"},[e._v(" 请使用手机微信扫面上方二维码"),t("br"),e._v(" 添加作者微信好友,邀请加入微信群 ")])])],1)],1)])],1)},a=[],i={data:function(){return{dialogVisible:!1}}},o=i,s=(r("78ed"),r("2877")),c=Object(s["a"])(o,n,a,!1,null,"d321a350",null);t["default"]=c.exports},be56:function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return n}));r("99af");var n=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!0,rowId:"id",height:"100%",highlightCurrentRow:!1,treeConfig:{children:"children",hasChild:"hasChildren",expandAll:!0}},rowHandle:{width:230,view:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Retrieve")}},edit:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Delete")}},custom:[{text:" 字典配置",type:"success",size:"small",emit:"dictionaryConfigure"}]},indexRow:{title:"序号",align:"center",width:80},viewOptions:{componentType:"form"},formOptions:{defaultSpan:24,width:"35%"},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1},form:{disabled:!0,component:{props:{clearable:!0},placeholder:"请输入关键词"}},view:{disabled:!0}},{title:"ID",key:"id",show:!1,disabled:!0,width:90,form:{disabled:!0}},{title:"字典名称",key:"label",search:{disabled:!1,component:{props:{clearable:!0}}},type:"input",form:{rules:[{required:!0,message:"字典名称必填项"}],component:{props:{clearable:!0},placeholder:"请输入字典名称"},itemProps:{class:{yxtInput:!0}}}},{title:"字典编号",key:"value",search:{disabled:!0,component:{props:{clearable:!0}}},type:"input",form:{rules:[{required:!0,message:"字典编号必填项"}],component:{props:{clearable:!0},placeholder:"请输入字典编号"},itemProps:{class:{yxtInput:!0}},helper:{render:function(e){return e("el-alert",{attrs:{title:"使用方法:vm.dictionary('字典编号')",type:"warning"}})}}}},{title:"状态",key:"status",width:90,search:{disabled:!1},type:"radio",dict:{data:e.dictionary("button_status_bool")},component:{props:{options:[]}},form:{rules:[{required:!0,message:"状态必填项"}],value:!0,component:{placeholder:"请选择状态"},itemProps:{class:{yxtInput:!0}}}},{title:"排序",key:"sort",width:90,type:"number",form:{value:1,component:{},itemProps:{class:{yxtInput:!0}}}}].concat(e.commonEndColumns({description:{showForm:!0,showTable:!0}}))}}},c1f7:function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return o})),r.d(t,"GetList",(function(){return s})),r.d(t,"createObj",(function(){return c})),r.d(t,"UpdateObj",(function(){return l})),r.d(t,"DelObj",(function(){return d}));var n=r("22ce"),a=r("c695"),i=r.n(a),o="/api/system/dictionary/";function s(e){return Object(n["c"])({url:o,method:"get",params:e}).then((function(e){return e.data.data=i.a.toArrayTree(e.data.data,{parentKey:"parent"}),e}))}function c(e){return Object(n["c"])({url:o,method:"post",data:e})}function l(e){return Object(n["c"])({url:o+e.id+"/",method:"put",data:e})}function d(e){return Object(n["c"])({url:o+e+"/",method:"delete",data:{id:e}})}},c321:function(e,t,r){var n={"./dashboard/workbench/index.vue":"f85a","./myapp/hdd/index.vue":"efc2","./myapp/stock/index.vue":"1236","./people/client/index.vue":"dbe8","./people/provider/index.vue":"cc23","./system/areas/index.vue":"2475","./system/config/components/addContent.vue":"8664","./system/config/components/addTabs.vue":"1e59","./system/config/components/components/associationTable.vue":"f4b9","./system/config/components/formContent.vue":"8dba","./system/config/index.vue":"cdb7","./system/dept/index.vue":"5cfa","./system/dictionary/index.vue":"76fd","./system/dictionary/subDictionary/index.vue":"24ba","./system/error/404/index.vue":"e29a","./system/fileList/index.vue":"43a9","./system/index/components/d2-badge/index.vue":"7ae8","./system/index/components/d2-help-btn/index.vue":"c8a3","./system/index/components/d2-help/index.vue":"bd42","./system/index/components/d2-page-cover/index.vue":"617a","./system/index/page.vue":"0c074","./system/log/frontendLog/index.vue":"fb7c","./system/log/loginLog/index.vue":"ec39","./system/log/operationLog/index.vue":"4da7","./system/login/base.vue":"86c0","./system/login/page.vue":"3547","./system/menu/index.vue":"f794","./system/menuButton/index.vue":"6761","./system/messageCenter/index.vue":"7bb3","./system/role/index.vue":"70eb","./system/rolePermission/index.vue":"1d95","./system/user/index.vue":"1f34","./system/whiteList/index.vue":"6fa4"};function a(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=i,e.exports=a,a.id="c321"},c59a:function(e,t,r){},c8a3:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("div",[t("img",{staticStyle:{width:"138px"},attrs:{src:r("6251")},on:{click:function(t){e.dialogVisible=!0}}}),t("el-dialog",{attrs:{title:"帮助",width:"800px",visible:e.dialogVisible,"append-to-body":!0},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticStyle:{"margin-top":"-25px","margin-bottom":"-25px"}},[t("el-button-group",{staticClass:"d2-mb"},[t("el-button",{on:{click:function(t){return e.$open("https://github.com/greper/d2-crud-plus")}}},[t("d2-icon",{staticClass:"d2-mr-5",attrs:{name:"github"}}),e._v(" 主页 ")],1),t("el-button",{on:{click:function(t){return e.$open("http://qiniu.veryreader.com/D2CrudPlusExample/index.html")}}},[t("d2-icon",{staticClass:"d2-mr-5",attrs:{name:"book"}}),e._v(" 示例 ")],1),t("el-button",{on:{click:function(t){return e.$open("https://greper.github.io/d2-crud-plus/")}}},[t("d2-icon",{staticClass:"d2-mr-5",attrs:{name:"book"}}),e._v(" 文档(Git) ")],1),t("el-button",{on:{click:function(t){return e.$open("http://greper.gitee.io/d2-crud-plus/")}}},[t("d2-icon",{staticClass:"d2-mr-5",attrs:{name:"book"}}),e._v(" 文档(码云) ")],1),t("el-button",{on:{click:function(t){return e.$open("https://fairyever.com/d2-admin/doc/zh/")}}},[t("d2-icon",{staticClass:"d2-mr-5",attrs:{name:"book"}}),e._v(" d2-admin 文档 ")],1),t("el-button",{on:{click:function(t){return e.$open("https://fairyever.com/d2-admin/doc/zh/ecosystem-d2-crud/")}}},[t("d2-icon",{staticClass:"d2-mr-5",attrs:{name:"book"}}),e._v(" d2-crud 文档 ")],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:8}},[t("el-alert",{staticClass:"d2-mb",attrs:{closable:!1,type:"info",title:"微信加作者好友寻求帮助"}}),t("img",{staticStyle:{width:"100%"},attrs:{src:r("092e")}})],1)],1)],1)])],1)},a=[],i={data:function(){return{dialogVisible:!1}}},o=i,s=r("2877"),c=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=c.exports},cb12:function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return a}));r("99af"),r("d3b7");var n=r("9668"),a=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",stripe:!1,rowKey:!0,rowId:"id",height:"100%",highlightCurrentRow:!1,defaultExpandAll:!0,treeConfig:{lazy:!0,hasChild:"has_children",loadMethod:function(e){var t=e.row;return n["GetList"]({parent:t.id,lazy:!0}).then((function(e){return e.data.data}))},iconLoaded:"el-icon-loading"}},rowHandle:{width:140,view:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Retrieve")}},edit:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Update")}},remove:{thin:!0,text:"",disabled:function(){return!e.hasPermissions("Delete")}}},indexRow:{title:"序号",align:"center",width:100},viewOptions:{componentType:"form"},formOptions:{defaultSpan:12},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1},form:{disabled:!0,component:{props:{clearable:!0},placeholder:"请输入关键词"}},view:{disabled:!0}},{title:"ID",key:"id",show:!1,disabled:!0,width:90,form:{disabled:!0}},{show:!1,title:"上级部门",key:"parent",type:"tree-selector",dict:{isTree:!0,label:"name",value:"id",cache:!1,getData:function(e,t,r){r.form,r.component;return n["DeptLazy"]().then((function(e){return e.data}))},getNodes:function(t,r){return new Promise((function(t,r){var n=e.getEditRow();t(null!==n.parent?[{name:n.parent_name,id:n.parent}]:[])}))}},form:{helper:"默认留空为根节点",component:{span:12,props:{multiple:!1,elProps:{lazy:!0,hasChild:"has_children",load:function(e,t){n["DeptLazy"]({parent:e.data.id}).then((function(e){t(e.data)}))}}}}}},{title:"部门名称",key:"name",sortable:!0,treeNode:!0,search:{disabled:!1,component:{props:{clearable:!0}}},width:180,type:"input",form:{rules:[{required:!0,message:"部门名称必填项"}],component:{span:12,props:{clearable:!0},placeholder:"请输入部门名称"},itemProps:{class:{yxtInput:!0}}}},{title:"负责人",key:"owner",sortable:!0,form:{component:{span:12,props:{clearable:!0},placeholder:"请输入负责人"}}},{title:"联系电话",key:"phone",sortable:!0,form:{component:{span:12,props:{clearable:!0},placeholder:"请输入联系电话"}}},{title:"邮箱",key:"email",sortable:!0,form:{component:{span:12,props:{clearable:!0},placeholder:"请输入邮箱"},rules:[{type:"email",message:"请输入正确的邮箱地址",trigger:["blur","change"]}]}},{title:"排序",key:"sort",sortable:!0,width:80,type:"number",form:{value:1,component:{span:12,placeholder:"请选择序号"}}},{title:"状态",key:"status",sortable:!0,search:{disabled:!1},width:90,type:"radio",dict:{data:e.dictionary("button_status_bool")},form:{value:!0,component:{span:12,placeholder:"请选择状态"}}}].concat(e.commonEndColumns())}}},cb9e:function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return i})),r.d(t,"GetList",(function(){return o})),r.d(t,"AddObj",(function(){return s})),r.d(t,"UpdateObj",(function(){return c})),r.d(t,"DelObj",(function(){return l})),r.d(t,"BatchDel",(function(){return d})),r.d(t,"ResetPwd",(function(){return u})),r.d(t,"exportData",(function(){return p}));var n=r("5530"),a=r("22ce"),i="/api/system/user/";function o(e){return Object(a["c"])({url:i,method:"get",params:Object(n["a"])({},e)})}function s(e){return Object(a["c"])({url:i,method:"post",data:e})}function c(e){return Object(a["c"])({url:i+e.id+"/",method:"put",data:e})}function l(e){return Object(a["c"])({url:i+e+"/",method:"delete",data:{soft_delete:!0}})}function d(e){return Object(a["c"])({url:i+"multiple_delete/",method:"delete",data:{keys:e}})}function u(e){return Object(a["c"])({url:i+e.id+"/reset_password/",method:"put",data:e})}function p(e){return Object(a["a"])({url:i+"export/",params:e,method:"post"})}},cc23:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("template",{slot:"header"},[e._v("供应商管理")]),t("d2-crud-x",e._g(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.exportLoading,expression:"exportLoading"}],ref:"d2Crud"},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v("新增 ")]),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"Export",expression:"'Export'"}],staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"warning"},on:{click:e.onExport}},[t("i",{staticClass:"el-icon-download"}),e._v("导出 ")]),t("span",{staticStyle:{"margin-left":"10px"}},[t("importExcel",{directives:[{name:"permission",rawName:"v-permission",value:"Import",expression:"'Import'"}],attrs:{importApi:"api/people/provider/import/"}},[e._v("导入 ")])],1),t("crud-toolbar",e._g(e._b({},"crud-toolbar",e._crudToolbarProps,!1),e._crudToolbarListeners))],1)])],2)},a=[],i=(r("d3b7"),r("f88e")),o=r("1fbf"),s=r("265d"),c=r("22ce"),l={data:function(){return{exportLoading:!1}},name:"provider",mixins:[o["d2CrudPlus"].crud],methods:{getCrudOptions:function(){return Object(i["crudOptions"])(this)},pageRequest:function(e){return Object(s["GetList"])(e)},addRequest:function(e){return Object(s["AddObj"])(e)},updateRequest:function(e){return Object(s["UpdateObj"])(e)},delRequest:function(e){return Object(s["DelObj"])(e.id)},onExport:function(){var e=this;this.$confirm("是否确认导出所有数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.getSearch().getForm();e.exportLoading=!0;var r="/api/people/provider/export/";Object(c["a"])({url:r,params:t,method:"post"}).finally((function(){e.exportLoading=!1}))})).catch((function(){e.exportLoading=!1}))}}},d=l,u=r("2877"),p=Object(u["a"])(d,n,a,!1,null,null,null);t["default"]=p.exports},ccde:function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return a})),r.d(t,"GetList",(function(){return i}));var n=r("22ce"),a="/api/system/login_log/";function i(e){return Object(n["c"])({url:a,method:"get",params:e})}},cda3:function(e,t,r){},ce5e:function(e,t,r){"use strict";r("f1f1")},cee1:function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return a}));var n=r("5530"),a=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!0,rowId:"id",height:"100%",highlightCurrentRow:!0,events:{"sort-change":function(t){var r=t.field,a=t.order,i="desc"===a?"-":"",o=i+r,s=e.getSearch().getForm(),c=Object(n["a"])({ordering:o},s);e.doSearch(c)}}},rowHandle:{fixed:"right",align:"center",width:"170px",view:{thin:!0,text:""},edit:{thin:!0,text:""},remove:{thin:!0,text:""}},indexRow:{title:"序号",align:"center",resizable:!0,fixed:"left",width:90},viewOptions:{componentType:"form"},formOptions:{defaultSpan:24,width:"35%"},columns:[{title:"ID",key:"id",show:!1,disabled:!0,width:70,form:{disabled:!0}},{title:"客户名称",key:"name",fixed:"left",resizable:!0,minWidth:150,align:"center",search:{width:180,component:{props:{clearable:!0}}},type:"input",form:{rules:[{required:!0,message:"客户名称必填"},{max:30,message:"最长30个字"}],component:{props:{clearable:!0},placeholder:"请输入客户名称"},itemProps:{class:{yxtInput:!0}}}},{title:"联系方式",key:"contact",resizable:!0,align:"center",minWidth:150,search:{width:180,component:{props:{clearable:!0}}},type:"input",form:{rules:[{max:30,message:"最长30个字"}],component:{props:{clearable:!0},placeholder:"请输入联系方式"},itemProps:{class:{yxtInput:!0}}}},{title:"联系地址",key:"address",resizable:!0,align:"center",minWidth:200,showOverflowTooltip:!0,search:{width:180,component:{props:{clearable:!0}}},type:"input",form:{rules:[{max:100,message:"最长100个字"}],component:{props:{clearable:!0},placeholder:"请输入联系地址"},itemProps:{class:{yxtInput:!0}}}},{title:"更新时间",key:"update_datetime",minWidth:170,align:"center",show:!0,type:"datetime",sortable:!0,form:{disabled:!0}},{title:"创建时间",key:"create_datetime",align:"center",minWidth:170,search:{disabled:!0},show:!0,type:"datetime",sortable:!0,form:{disabled:!0}}]}}},d391:function(e,t,r){},d79b:function(e,t,r){},d857:function(e,t,r){"use strict";r("9612")},d88e:function(e,t,r){"use strict";r("2c45")},dbe8:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("template",{slot:"header"},[e._v("客户管理")]),t("d2-crud-x",e._g(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.exportLoading,expression:"exportLoading"}],ref:"d2Crud"},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v("新增 ")]),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"Export",expression:"'Export'"}],staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"warning"},on:{click:e.onExport}},[t("i",{staticClass:"el-icon-download"}),e._v("导出 ")]),t("span",{staticStyle:{"margin-left":"10px"}},[t("importExcel",{directives:[{name:"permission",rawName:"v-permission",value:"Import",expression:"'Import'"}],attrs:{importApi:"api/people/client/import/"}},[e._v("导入 ")])],1),t("crud-toolbar",e._g(e._b({},"crud-toolbar",e._crudToolbarProps,!1),e._crudToolbarListeners))],1)])],2)},a=[],i=(r("d3b7"),r("cee1")),o=r("1fbf"),s=r("5bc7"),c=r("22ce"),l={data:function(){return{exportLoading:!1}},name:"client",mixins:[o["d2CrudPlus"].crud],methods:{getCrudOptions:function(){return Object(i["crudOptions"])(this)},pageRequest:function(e){return Object(s["GetList"])(e)},addRequest:function(e){return Object(s["AddObj"])(e)},updateRequest:function(e){return Object(s["UpdateObj"])(e)},delRequest:function(e){return Object(s["DelObj"])(e.id)},onExport:function(){var e=this;this.$confirm("是否确认导出所有数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.getSearch().getForm();e.exportLoading=!0;var r="/api/people/client/export/";Object(c["a"])({url:r,params:t,method:"post"}).finally((function(){e.exportLoading=!1}))})).catch((function(){e.exportLoading=!1}))}}},d=l,u=r("2877"),p=Object(u["a"])(d,n,a,!1,null,null,null);t["default"]=p.exports},dce7d:function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return a}));r("7db0"),r("14d9"),r("b0c0"),r("e9f5"),r("f665"),r("b64b"),r("d3b7");var n=r("22ce"),a=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!1,width:"100%",height:"100%"},rowHandle:{width:180,edit:{thin:!0,text:"编辑"},remove:{thin:!0,text:"删除"}},indexRow:{title:"序号",align:"center",width:100},viewOptions:{disabled:!0,componentType:"form"},formOptions:{defaultSpan:24},columns:[{title:"关键词",key:"search",show:!1,disabled:!0,search:{disabled:!1,component:{props:{clearable:!0},placeholder:"请输入关键词"}},form:{disabled:!0},view:{disabled:!0}},{title:"ID",key:"id",show:!1,width:90,form:{disabled:!0}},{title:"权限名称",key:"name",sortable:!0,width:150,search:{disabled:!1},type:"select",dict:{data:e.dictionary("system_button")},form:{rules:[{required:!0,message:"必填项"}],component:{span:12,props:{clearable:!0,elProps:{allowCreate:!0,filterable:!0,clearable:!0}}},itemProps:{class:{yxtInput:!0}},valueChange:function(e,t,r,n){n.getColumn,n.mode;var a=n.component;n.immediate,n.getComponent;if(null!=t){var i=a.dictOptions.find((function(e){return e.value===t}));i&&i.value&&(r.name=i.label,r.value=i.value)}},helper:{render:function(e){return e("el-alert",{attrs:{title:"可手动输入不在列表中的新值",type:"warning",description:"比较常用的建议放在字典管理中"}})}}}},{title:"权限值",key:"value",sortable:!0,width:200,search:{disabled:!1},type:"input",form:{rules:[{required:!0,message:"必填项"}],component:{span:12,placeholder:"请输入权限值",props:{elProps:{clearable:!0}}},itemProps:{class:{yxtInput:!0}},helper:{render:function(e){return e("el-alert",{attrs:{title:"用于前端按钮权限的判断展示",type:"warning",description:"使用方法:vm.hasPermissions(权限值)"}})}}}},{title:"请求方式",key:"method",sortable:!0,width:150,search:{disabled:!1},type:"select",dict:{data:[{label:"GET",value:0},{label:"POST",value:1},{label:"PUT",value:2},{label:"DELETE",value:3}]},form:{rules:[{required:!0,message:"必填项"}],component:{span:12},itemProps:{class:{yxtInput:!0}}}},{title:"接口地址",key:"api",sortable:!0,search:{disabled:!0},type:"select",dict:{url:"/swagger.json",label:"label",value:"value",getData:function(e,t){return Object(n["c"])({url:e}).then((function(e){for(var t=Object.keys(e.paths),r=[],n=0,a=t;n<a.length;n++){var i=a[n],o={};o.label=i,o.value=i,r.push(o)}return r}))}},form:{rules:[{required:!0,message:"必填项"}],component:{span:24,props:{elProps:{allowCreate:!0,filterable:!0,clearable:!0}}},itemProps:{class:{yxtInput:!0}},helper:{render:function(e){return e("el-alert",{attrs:{title:"请正确填写,以免请求时被拦截。匹配单例使用正则,例如:/api/xx/.*?/",type:"warning"}})}}}}]}}},e29a:function(e,t,r){"use strict";r.r(t);r("ac1f"),r("5319");var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page"},[t("p",{staticClass:"page_title"},[e._v("404 page not found")]),t("el-button",{staticClass:"d2-mt",on:{click:function(t){return e.$router.replace({path:"/"})}}},[e._v(" 返回控制台 ")])],1)},a=[],i=(r("2dea"),r("2877")),o={},s=Object(i["a"])(o,n,a,!1,null,"5e7364cc",null);t["default"]=s.exports},e367:function(e,t,r){"use strict";r("a7e8")},e658:function(e,t,r){},ec39:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("d2-crud-x",e._g(e._b({ref:"d2Crud",attrs:{"crud.options.tableType":"vxe-table"}},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1)])],1)},a=[],i=r("ccde"),o=r("879b"),s=r("1fbf"),c={name:"loginLog",mixins:[s["d2CrudPlus"].crud],data:function(){return{}},methods:{getCrudOptions:function(){return Object(o["crudOptions"])(this)},pageRequest:function(e){return i["GetList"](e)}}},l=c,d=r("2877"),u=Object(d["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},edcd:function(e,t,r){"use strict";r("729f")},efc2:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("template",{slot:"header"},[e._v("库存列表")]),t("d2-crud-x",e._g(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.exportLoading,expression:"exportLoading"}],ref:"d2Crud"},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v("新增 ")]),t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"Export",expression:"'Export'"}],staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"warning"},on:{click:e.onExport}},[t("i",{staticClass:"el-icon-download"}),e._v("导出 ")]),t("span",{staticStyle:{"margin-left":"10px"}},[t("importExcel",{directives:[{name:"permission",rawName:"v-permission",value:"Import",expression:"'Import'"}],attrs:{importApi:"api/myapp/hdd/import/"}},[e._v("导入 ")])],1),t("crud-toolbar",e._g(e._b({},"crud-toolbar",e._crudToolbarProps,!1),e._crudToolbarListeners))],1)])],2)},a=[],i=r("5530"),o=(r("d3b7"),r("b5b1")),s=r("1fbf"),c=r("0477"),l=r("22ce"),d={data:function(){return{exportLoading:!1}},name:"hdd",mixins:[s["d2CrudPlus"].crud],methods:{getCrudOptions:function(){return Object(o["crudOptions"])(this)},pageRequest:function(e){var t=Object(i["a"])({ordering:this.ordering},e);return Object(c["GetList"])(t)},addRequest:function(e){return Object(c["AddObj"])(e)},updateRequest:function(e){return Object(c["UpdateObj"])(e)},delRequest:function(e){return Object(c["DelObj"])(e.id)},onExport:function(){var e=this;this.$confirm("是否确认导出所有数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.getSearch().getForm();e.exportLoading=!0;var r="/api/myapp/hdd/export/";Object(l["a"])({url:r,params:Object(i["a"])({ordering:e.ordering},t),method:"post"}).finally((function(){e.exportLoading=!1}))})).catch((function(){e.exportLoading=!1}))}}},u=d,p=r("2877"),m=Object(p["a"])(u,n,a,!1,null,null,null);t["default"]=m.exports},f1eb:function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return i})),r.d(t,"GetList",(function(){return o})),r.d(t,"GetObj",(function(){return s})),r.d(t,"createObj",(function(){return c})),r.d(t,"UpdateObj",(function(){return l})),r.d(t,"DelObj",(function(){return d}));var n=r("5530"),a=r("22ce"),i="/api/system/role/";function o(e){return Object(a["c"])({url:i,method:"get",params:Object(n["a"])({},e)})}function s(e){return Object(a["c"])({url:i+e.id+"/",method:"get"})}function c(e){return Object(a["c"])({url:i,method:"post",data:e})}function l(e){return Object(a["c"])({url:i+e.id+"/",method:"put",data:e})}function d(e){return Object(a["c"])({url:i+e+"/",method:"delete",data:{id:e}})}},f1f1:function(e,t,r){},f794:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",{class:{"page-compact":e.crud.pageOptions.compact}},[t("d2-crud-x",e._g(e._b({ref:"d2Crud",on:{createPermission:e.createPermission}},"d2-crud-x",e._crudProps,!1),e._crudListeners),[t("div",{attrs:{slot:"header"},slot:"header"},[t("crud-search",{ref:"search",attrs:{options:e.crud.searchOptions},on:{submit:e.handleSearch}}),t("el-button-group",[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"Create",expression:"'Create'"}],attrs:{size:"small",type:"primary"},on:{click:e.addRow}},[t("i",{staticClass:"el-icon-plus"}),e._v(" 新增")])],1),t("crud-toolbar",{attrs:{search:e.crud.searchOptions.show,compact:e.crud.pageOptions.compact,columns:e.crud.columns},on:{"update:search":function(t){return e.$set(e.crud.searchOptions,"show",t)},"update:compact":function(t){return e.$set(e.crud.pageOptions,"compact",t)},refresh:function(t){return e.doRefresh()},"columns-filter-changed":e.handleColumnsFilterChanged}})],1)])],1)},a=[],i=(r("14d9"),r("b0c0"),r("e9f5"),r("7d54"),r("d3b7"),r("ac1f"),r("5319"),r("159b"),r("ddb0"),r("4c76")),o=r("5265"),s=r("1fbf"),c={name:"menus",mixins:[s["d2CrudPlus"].crud],data:function(){return{}},methods:{getCrudOptions:function(){return Object(o["crudOptions"])(this)},pageRequest:function(e){return i["GetList"](e)},addRequest:function(e){return i["createObj"](e)},updateRequest:function(e){return i["UpdateObj"](e)},delRequest:function(e){return i["DelObj"](e.id)},createPermission:function(e){this.$router.push({name:"menuButton",query:{id:e.row.id,name:e.row.name}})},searchFiles:function(){var e=r("c321"),t=[];return e.keys().forEach((function(e){t.push({label:e.replace(/(\.\/|\.vue)/g,""),value:e.replace(/(\.\/|\.vue)/g,"")})})),t}}},l=c,d=(r("7099"),r("2877")),u=Object(d["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},f88e:function(e,t,r){"use strict";r.r(t),r.d(t,"crudOptions",(function(){return a}));var n=r("5530"),a=function(e){return{pageOptions:{compact:!0},options:{tableType:"vxe-table",rowKey:!0,rowId:"id",height:"100%",highlightCurrentRow:!0,events:{"sort-change":function(t){var r=t.field,a=t.order,i="desc"===a?"-":"",o=i+r,s=e.getSearch().getForm(),c=Object(n["a"])({ordering:o},s);e.doSearch(c)}}},rowHandle:{fixed:"right",align:"center",width:"170px",view:{thin:!0,text:""},edit:{thin:!0,text:""},remove:{thin:!0,text:""}},indexRow:{title:"序号",align:"center",resizable:!0,fixed:"left",width:90},viewOptions:{componentType:"form"},formOptions:{defaultSpan:24,width:"35%"},columns:[{title:"ID",key:"id",show:!1,disabled:!0,width:70,form:{disabled:!0}},{title:"供应商名称",key:"name",fixed:"left",resizable:!0,minWidth:150,align:"center",search:{width:180,component:{props:{clearable:!0}}},type:"input",form:{rules:[{required:!0,message:"供应商名称必填"},{max:30,message:"最长30个字"}],component:{props:{clearable:!0},placeholder:"请输入供应商名称"},itemProps:{class:{yxtInput:!0}}}},{title:"联系方式",key:"contact",resizable:!0,align:"center",minWidth:150,search:{width:180,component:{props:{clearable:!0}}},type:"input",form:{rules:[{max:30,message:"最长30个字"}],component:{props:{clearable:!0},placeholder:"请输入联系方式"},itemProps:{class:{yxtInput:!0}}}},{title:"联系地址",key:"address",resizable:!0,align:"center",minWidth:200,showOverflowTooltip:!0,search:{width:180,component:{props:{clearable:!0}}},type:"input",form:{rules:[{max:100,message:"最长100个字"}],component:{props:{clearable:!0},placeholder:"请输入联系地址"},itemProps:{class:{yxtInput:!0}}}},{title:"更新时间",key:"update_datetime",minWidth:170,align:"center",show:!0,type:"datetime",sortable:!0,form:{disabled:!0}},{title:"创建时间",key:"create_datetime",align:"center",minWidth:170,search:{disabled:!0},show:!0,type:"datetime",sortable:!0,form:{disabled:!0}}]}}},fb7c:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e._self._c;return t("d2-container",[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.log,size:"mini","empty-text":"暂无日志信息",stripe:""}},[t("el-table-column",{attrs:{prop:"time",label:"Time",width:"140"}}),t("el-table-column",{attrs:{prop:"message",label:"Message"}}),t("el-table-column",{attrs:{label:"Url",align:"center","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e.get(t.row,"meta.url"))+" ")]}}])}),t("el-table-column",{attrs:{label:"Tag",align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(r){return[e.get(r.row,"meta.instance.$vnode.componentOptions.tag")?t("el-tag",{attrs:{type:"info",size:"mini"}},[e._v(" <"+e._s(e.get(r.row,"meta.instance.$vnode.componentOptions.tag"))+"> ")]):e._e()]}}])}),t("el-table-column",{attrs:{fixed:"right",align:"center",label:"More",width:"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleShowMore(r.row)}}},[t("d2-icon",{attrs:{name:"eye"}})],1)]}}])})],1),t("el-button",{attrs:{slot:"footer",type:"primary",size:"mini",loading:e.uploading},on:{click:e.handleUpload},slot:"footer"},[t("d2-icon",{attrs:{name:"cloud-upload"}}),e._v(" Upload "+e._s(e.log.length)+" log data ")],1)],1)},a=[],i=r("5530"),o=r("5880"),s=r("60bb"),c={data:function(){return{uploading:!1}},computed:Object(i["a"])({},Object(o["mapState"])("d2admin/log",["log"])),methods:{get:s["get"],handleShowMore:function(e){this.$notify({type:"info",title:"日志详情",message:"完整的日志内容已经打印到控制台"}),this.$log.capsule("D2Admin","handleShowMore","primary"),console.group(e.message),console.log("time: ",e.time),console.log("type: ",e.type),console.log(e.meta),console.groupEnd()},handleUpload:function(){var e=this;this.uploading=!0,this.$notify({type:"info",title:"日志上传",message:"开始上传".concat(this.log.length,"条日志")}),setTimeout((function(){e.uploading=!1,e.$notify({type:"success",title:"日志上传",message:"上传成功"})}),3e3)}}},l=c,d=r("2877"),u=Object(d["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},fc13:function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return i})),r.d(t,"GetList",(function(){return o})),r.d(t,"createObj",(function(){return s})),r.d(t,"UpdateObj",(function(){return c})),r.d(t,"DelObj",(function(){return l}));var n=r("5530"),a=r("22ce"),i="/api/system/menu_button/";function o(e){return Object(a["c"])({url:i,method:"get",params:e})}function s(e,t){var r=Object(n["a"])(Object(n["a"])({},e),{},{menu:t});return Object(a["c"])({url:i,method:"post",data:r})}function c(e){return Object(a["c"])({url:i+e.id+"/",method:"put",data:e})}function l(e){return Object(a["c"])({url:i+e+"/",method:"delete",data:{id:e}})}},fd61:function(e,t,r){},fe57:function(e,t,r){"use strict";r.r(t),r.d(t,"urlPrefix",(function(){return o})),r.d(t,"GetList",(function(){return s})),r.d(t,"createObj",(function(){return c})),r.d(t,"UpdateObj",(function(){return l})),r.d(t,"DelObj",(function(){return d}));var n=r("22ce"),a=r("c695"),i=r.n(a),o="/api/system/dictionary/";function s(e){return Object(n["c"])({url:o,method:"get",params:e}).then((function(e){return e.data.data=i.a.toArrayTree(e.data.data,{parentKey:"parent"}),e}))}function c(e){return Object(n["c"])({url:o,method:"post",data:e})}function l(e){return Object(n["c"])({url:o+e.id+"/",method:"put",data:e})}function d(e){return Object(n["c"])({url:o+e+"/",method:"delete",data:{id:e}})}}}]);
|