beehole-store-server
Version:
www.bee-hole.com
1 lines • 28.4 kB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-806873ee","chunk-81be0906","chunk-75bd1595","chunk-2d0b8b5f"],{"1b6c":function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return s}));var n=a("5530"),o=a("bf0f");function r(e,t){return function(){return Object(o["b"])(e,Object(n["a"])({},t))}}function s(e,t){return Object(o["b"])(e,Object(n["a"])({},t))}},"309e":function(e,t,a){"use strict";a.r(t);a("d81d"),a("4de4"),a("d3b7"),a("b0c0");var n=a("fcb7"),o=a("2dd7"),r=a("6b01");t["default"]={name:"CreateForm",props:{deptTypeOptions:{type:Array,required:!0},statusOptions:{type:Array,required:!0},deptOptions:{type:Array,required:!0},expandedKeys:{type:Array,required:!0}},components:{AntModal:o["a"],SelectDept:r["a"]},data:function(){var e=function(e,t,a){""===t?a(new Error("部门名不允许为空")):a()};return{loading:!1,parentIdShow:!1,hasChild:!1,selectScope:"all",deptTypeEnableValue:[],formTitle:"",currentRow:void 0,oldParentId:"",spinning:!1,delayTime:200,customStyle:"background: #fff;ssborder-radius: 4px;margin-bottom: 24px;border: 0;overflow: hidden",form:{id:void 0,pid:void 0,name:void 0,deptFullName:void 0,sort:0,type:"dept",leader:void 0,phone:void 0,address:void 0,zipCode:void 0,email:void 0,status:"1"},open:!1,rules:{pid:[{required:!1,message:this.$t("component.gangwei.dept.fater.not.null"),trigger:"blur"}],name:[{required:!0,message:this.$t("component.gangwei.dept.dept_name.not.null"),validator:e,trigger:"change"}],sort:[{required:!0,message:this.$t("component.gangwei.dept.sort.not.null"),trigger:"blur"}],email:[{type:"email",message:this.$t("component.gangwei.dept.email.not.null"),trigger:["blur","change"]}],phone:[{pattern:/^1[3|4|5|6|7|8|9][0-9]\d{8}$/,message:this.$t("component.gangwei.dept.phone.not.null"),trigger:"blur"}]}}},filters:{},created:function(){},computed:{},watch:{},methods:{onDeptTypeChange:function(e){"company"===e.target.value?this.selectScope="nonDept":this.selectScope="all"},onSelectDept:function(e){this.getDeptTypeEnableValue(e.types)},cancel:function(){this.open=!1,this.$emit("close")},reset:function(){void 0!==this.$refs.form&&this.$refs.form.resetFields()},getDeptTypeEnableValue:function(e){var t=this.form.id;if(this.deptTypeEnableValue="org"===e?this.deptTypeOptions.filter((function(e){return"org"!==e.value})).map((function(e){return e.value})):"company"===e?this.deptTypeOptions.filter((function(e){return"org"!==e.value&&"company"!==e.value})).map((function(e){return e.value})):this.deptTypeOptions.filter((function(e){return"dept"===e.value})).map((function(e){return e.value})),null!==t&&""!==t&&"undefined"!==t&&void 0!==t){null===e&&(this.deptTypeEnableValue=this.deptTypeOptions.filter((function(e){return"org"===e.value})).map((function(e){return e.value})));var a=this.form.type,n=this.deptTypeEnableValue.filter((function(e){return e===a}));this.form.type=0===n.length?this.deptTypeEnableValue[0]:a}else this.form.type=this.deptTypeEnableValue[0]},handleAdd:function(e){var t=this;this.parentIdShow=!0,this.oldParentId="",this.deptTypeEnableValue=this.deptTypeOptions.map((function(e){return e.value})),void 0!==e&&(this.currentRow=e,this.oldParentId=e.id,this.form.pid={ids:e.id,names:e.name},this.getDeptTypeEnableValue(e.type)),Object(n["c"])(void 0!==e?e.id:"0").then((function(e){t.form.treeSort=e})),this.$emit("getTreeselect"),this.formTitle=this.$t("component.gangwei.dept.add.dept"),this.open=!0},setNodeData:function(e){this.currentRow.name=e.name,this.currentRow.deptCode=e.deptCode,this.currentRow.leader=e.leader,this.currentRow.phone=e.phone,this.currentRow.email=e.email,this.currentRow.status=e.status,this.currentRow.treeSort=e.treeSort,this.currentRow.createTime=e.createTime,this.currentRow.deptType=e.type},handleUpdate:function(e){var t=this;this.currentRow=e,this.open=!0,this.formTitle=this.$t("component.gangwei.dept.update.dept"),this.hasChild=e.children.length>0,this.spinning=!this.spinning;var a=e.id;Object(n["d"])(a).then((function(e){t.oldParentId=e.pid,t.form=e,"0"!==e.pid?(t.parentIdShow=!0,Object(n["d"])(e.pid).then((function(e){t.getDeptTypeEnableValue(e.type)}))):(t.parentIdShow=!1,t.getDeptTypeEnableValue(null)),"company"===e.deptType&&(t.selectScope="nonDept"),Object(n["d"])(e.pid).then((function(a){t.form.pid={ids:e.pid,names:a.name}})),t.spinning=!t.spinning})),this.$emit("getTreeselect",e)},submitForm:function(){var e=this;this.$refs.form.validate((function(t){if(!t)return!1;var a=JSON.parse(JSON.stringify(e.form));void 0!==e.form.pid&&(a.pid=e.form.pid.ids),void 0!==e.form.id?Object(n["m"])(a).then((function(t){e.$message.success("修改成功",3),e.oldParentId!==e.form.pid.ids?e.$emit("ok"):Object(n["d"])(e.form.id).then((function(t){e.setNodeData(t)})),e.cancel()})):Object(n["a"])(a).then((function(t){e.$message.success("新增成功",3),e.$emit("ok"),e.cancel()}))}))},onLoadData:function(e){return new Promise((function(t){e.dataRef.children?t():Object(n["h"])(e.dataRef.id,1).then((function(a){e.dataRef.children=a,t()}))}))}}}},"40b8":function(e,t,a){"use strict";a.r(t);a("b0c0");var n=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{ref:"search",staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:48}},[t("a-col",{attrs:{md:6,sm:24}},[t("a-form-item",{attrs:{label:e.$t("view.gangwei.dept.dept_name1")}},[t("a-input",{attrs:{placeholder:e.$t("view.gangwei.dept.input.dept_name1"),"allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(t){e.$set(e.queryParam,"name",t)},expression:"queryParam.name"}})],1)],1),t("a-col",[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v(e._s(e.$t("view.gangwei.dept.query.btn"))+" ")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v(e._s(e.$t("view.gangwei.dept.reset.btn"))+" ")],1)],1)])],1)],1)],1)]),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e.showAddModal?t("sys-dept-add-form",{ref:"sysDeptAddForm",attrs:{deptTypeOptions:e.deptTypeOptions,statusOptions:e.statusOptions,deptOptions:e.deptOptions,expandedKeys:e.expandedKeys},on:{getTreeselect:e.getTreeselect,ok:e.getList,close:function(t){e.showAddModal=!1}}}):e._e(),e.showEditModal?t("sys-dept-edit-form",{ref:"sysDeptEditForm",attrs:{deptTypeOptions:e.deptTypeOptions,statusOptions:e.statusOptions,deptOptions:e.deptOptions,expandedKeys:e.expandedKeys},on:{getTreeselect:e.getTreeselect,ok:e.getList,close:function(t){e.showEditModal=!1}}}):e._e(),t("import-excel",{ref:"importExcel",attrs:{title:"导入部门","upload-msg":"是否更新已经存在的部门数据","upload-action":"/system/user/importData"},on:{ok:e.getList,importTemplate:e.importTemplate}}),t("advance-table",{attrs:{loading:e.loading,title:"部门管理",rowKey:"id",expandIconColumnIndex:1,columns:e.columns,"data-source":e.list,indentSize:16,size:"middle",tableKey:"system-dept-SysDeptIndex-table",defaultExpandedRowKeys:e.expandedRowKeys,expandedRowKeys:e.expandedRowKeys,expandIcon:e.expandIcon,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{refresh:e.getList,expand:e.expandNode},scopedSlots:e._u([{key:"name",fn:function(a){var n=a.text,o=a.record;return t("span",{},[t("a-icon",{directives:[{name:"show",rawName:"v-show",value:"org"===o.deptType,expression:"record.deptType === 'org'"}],staticClass:"depIcon",attrs:{component:e.allIcon.companyFillIcon}}),t("a-icon",{directives:[{name:"show",rawName:"v-show",value:"company"===o.deptType,expression:"record.deptType === 'company'"}],staticClass:"depIcon",attrs:{component:e.allIcon.companyIcon}}),t("a-icon",{directives:[{name:"show",rawName:"v-show",value:"dept"===o.deptType,expression:"record.deptType === 'dept'"}],staticClass:"depIcon",attrs:{component:e.allIcon.connectionsIcon}}),n.indexOf(e.queryParam.name)>-1?t("span",[e._v(" "+e._s(n.substr(0,n.indexOf(e.queryParam.name)))+" "),t("span",{staticStyle:{color:"#f50"}},[e._v(e._s(e.queryParam.name))]),e._v(" "+e._s(n.substr(n.indexOf(e.queryParam.name)+e.queryParam.name.length))+" ")]):t("span",[e._v(e._s(n))])],1)}},{key:"status",fn:function(a){var n=a.record;return t("span",{},[t("a-badge",{attrs:{status:"1"===n.status?"processing":"error",text:e.statusFormat(n)}})],1)}},{key:"created_at",fn:function(a){a.text;var n=a.record;return t("span",{},[e._v(" "+e._s(e.parseTime(n.created_at))+" ")])}},{key:"operation",fn:function(a){a.text;var n=a.record;return t("span",{},[t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:edit"],expression:"['system:dept:edit']"}],on:{click:function(t){return e.handleUpdate(n)}}},[e._v(" "+e._s(e.$t("view.gangwei.dept.update.btn"))+" ")]),t("a-divider",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:add"],expression:"['system:dept:add']"}],attrs:{type:"vertical"}}),t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:add"],expression:"['system:dept:add']"}],on:{click:function(t){return e.handleAdd(n)}}},[e._v(" "+e._s(e.$t("view.gangwei.dept.add.son.dept.btn"))+" ")]),0!=n.pid?t("a-divider",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:remove"],expression:"['system:dept:remove']"}],attrs:{type:"vertical"}}):e._e(),0!=n.pid?t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:remove"],expression:"['system:dept:remove']"}],on:{click:function(t){return e.handleDelete(n)}}},[e._v(" "+e._s(e.$t("view.gangwei.dept.delete"))+" ")]):e._e()],1)}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("a-space",{attrs:{align:"center"}},[t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:add"],expression:"['system:dept:add']"}],attrs:{type:"primary"},on:{click:function(t){return e.handleAdd()}}},[t("a-icon",{attrs:{type:"plus"}}),e._v(e._s(e.$t("view.gangwei.dept.new_add"))+" ")],1),e.multiple?e._e():t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:remove"],expression:"['system:dept:remove']"}],attrs:{type:"danger",disabled:e.multiple},on:{click:e.handleDelete}},[t("a-icon",{attrs:{type:"delete"}}),e._v(e._s(e.$t("view.gangwei.dept.delete"))+" ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:import"],expression:"['system:user:import']"}],attrs:{type:""},on:{click:function(t){return e.$refs.importExcel.importExcelHandleOpen()}}},[t("a-icon",{attrs:{type:"import"}}),e._v(e._s(e.$t("view.gangwei.dept.import"))+" ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:dept:export"],expression:"['system:dept:export']"}],on:{click:e.handleExport}},[t("a-icon",{attrs:{type:"download"}}),e._v(e._s(e.$t("view.gangwei.dept.export"))+" ")],1)],1)],1)])],1)],1)},o=[],r=(a("4de4"),a("d3b7"),a("d81d"),a("159b"),a("fcb7")),s=a("a839"),i=a("8f07"),d=a("5d9e"),l=a("c0c3"),p=a("5457"),c=a("04b3"),u=a("c0c7"),m=a("1b6c"),f={name:"Dept",components:{SysDeptAddForm:i["default"],SysDeptEditForm:s["default"],AdvanceTable:d["a"],ImportExcel:p["a"],allIcon:c["a"]},data:function(){return{showAddModal:!1,showEditModal:!1,allIcon:c["a"],list:[],deptOptions:[],statusOptions:[],expandedKeys:[],expandedRowKeys:[],selectedRowKeys:[],selectedRows:[],ids:[],multiple:!0,loading:!1,deptTypeOptions:[],labelCol:{span:6},wrapperCol:{span:18},queryParam:{name:""},columns:[{title:Object(m["a"])("view.gangwei.dept.dept_name1"),dataIndex:"name",width:"250px",scopedSlots:{customRender:"name"}},{title:Object(m["a"])("view.gangwei.dept.responsible.person"),dataIndex:"leader",scopedSlots:{customRender:"leader"}},{title:Object(m["a"])("view.gangwei.dept.phone"),dataIndex:"phone",scopedSlots:{customRender:"phone"}},{title:Object(m["a"])("view.gangwei.dept.email"),dataIndex:"email",ellipsis:!0,scopedSlots:{customRender:"email"}},{title:Object(m["a"])("view.gangwei.dept.status"),dataIndex:"status",width:"120px",scopedSlots:{customRender:"status"},align:"center"},{title:Object(m["a"])("view.gangwei.dept.sort"),dataIndex:"sort",align:"center"},{title:Object(m["a"])("view.gangwei.dept.create_time"),dataIndex:"created_at",ellipsis:!0,scopedSlots:{customRender:"created_at"},align:"center"},{title:Object(m["a"])("view.gangwei.dept.operation"),dataIndex:"operation",width:"240px",scopedSlots:{customRender:"operation"}}]}},filters:{},created:function(){var e=this;this.getList(),this.getDicts("sys_dept_type").then((function(t){e.deptTypeOptions=t})),this.getDicts("sys_normal_disable").then((function(t){e.statusOptions=t}))},computed:{},watch:{},methods:{importTemplate:function(e,t){var a=this;Object(u["k"])().then((function(e){a.download(e.msg)}))},expandNode:function(e,t){var a=this;e?this.expandedRowKeys.push(t.id):this.expandedRowKeys=this.expandedRowKeys.filter((function(e){return e!==t.id})),!e||null!=t.children&&0!==t.children.length||(this.loading=!0,Object(r["f"])(this.queryParam,t.id,1).then((function(e){t.children=e,a.loading=!1})))},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t,this.ids=this.selectedRows.map((function(e){return e.id})),this.multiple=!e.length},getTreeselect:function(e){var t=this;e?Object(r["g"])(e.id).then((function(e){t.deptOptions=e})):Object(r["h"])("",3).then((function(e){t.expandTree(e,3,t.expandedRowKeys),t.deptOptions=e}))},getList:function(){var e=this;this.loading=!0,Object(r["f"])(this.queryParam,"",3).then((function(t){e.loading=!1,e.expandedRowKeys=[],e.expandTree(t,3,e.expandedRowKeys),e.list=t}))},handleQuery:function(){var e=this;""===this.queryParam.name?(this.expandedRowKeys=[],this.getList()):(this.loading=!0,Object(r["k"])(this.queryParam).then((function(t){e.expandedRowKeys=[],null!=t&&0!==t.length?(e.getAllDeptNode(t),e.list=t):e.list=[]})))},statusFormat:function(e){return this.selectDictLabel(this.statusOptions,e.status)},resetQuery:function(){this.queryParam={name:""},this.handleQuery()},handleAdd:function(e){var t=this;this.showAddModal=!0,this.$nextTick((function(){return t.$refs.sysDeptAddForm.handleAdd(e)}))},handleUpdate:function(e){var t=this;this.showEditModal=!0,this.$nextTick((function(){return t.$refs.sysDeptEditForm.handleUpdate(e)}))},handleDelete:function(e){var t=this,a=e.id||this.ids;this.$confirm({title:"确认删除所选中数据?",onOk:function(){return Object(r["b"])(a).then((function(){null!==e?t.removeTreeNode(t.list,e):(t.onSelectChange([],[]),t.getList()),t.$message.success("删除成功",3)}))},onCancel:function(){}})},handleImport:function(){alert("暂不支持")},handleExport:function(){var e=this;this.$confirm({title:"是否确认导出?",content:"此操作将导出当前条件下所有数据而非选中数据",onOk:function(){return Object(l["c"])(e.queryParam).then((function(t){e.download(t.msg),e.$message.success("导出成功",3)}))},onCancel:function(){}})},getAllDeptNode:function(e){var t=this;if(!e||0===e.length)return[];e.forEach((function(e){return t.expandedRowKeys.push(e.id),t.getAllDeptNode(e.children)}))},expandIcon:function(e){var t=this.$createElement;return"y"===e.record.treeLeaf?t("span",{style:"margin-right:22px"}):e.expanded?t("a",{style:"color: 'black',margin-right:0px",on:{click:function(t){e.onExpand(e.record,t)}}},[t("a-icon",{attrs:{type:"caret-down"}})]):t("a",{style:"color: 'black' ,margin-right:0px",on:{click:function(t){e.onExpand(e.record,t)}}},[t("a-icon",{attrs:{type:"caret-right"}})])}}},h=f,g=a("2877"),b=Object(g["a"])(h,n,o,!1,null,null,null);t["default"]=b.exports},5457:function(e,t,a){"use strict";var n=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,visible:e.upload.open},on:{cancel:e.importExcelHandleCancel}},[t("a-spin",{attrs:{tip:"上传中...",spinning:"uploading"==e.upload.uploadStatus}},[t("a-upload-dragger",{attrs:{name:"file",accept:".xlsx, .xls","file-list":e.upload.fileList,multiple:!1,headers:e.upload.headers,action:e.upload.url+"?updateSupport="+e.upload.updateSupport},on:{change:e.importExcelHandleChange}},[t("p",{staticClass:"ant-upload-drag-icon"},[t("a-icon",{attrs:{type:"inbox"}})],1),t("p",{staticClass:"ant-upload-text"},[e._v(" 请将文件拖拽到此处上传 ")]),t("p",{staticClass:"ant-upload-hint"},[e._v(" 支持单个上传,也可以点击后选择文件上传 ")])]),t("a-checkbox",{attrs:{checked:0!=e.upload.updateSupport},on:{change:e.handleCheckedUpdateSupport}},[e._v(" "+e._s(e.uploadMsg)+" ")]),t("a",{on:{click:e.importTemplate}},[e._v("下载模板")])],1)],1)},o=[],r=(a("99af"),a("b0c0"),a("8ded")),s=a.n(r),i=a("9fb0"),d={name:"ImportExcel",props:{title:{type:String,default:"Excel导入"},uploadMsg:{type:String,default:"是否更新已经存在的数据"},uploadAction:{type:String,required:!0}},components:{},data:function(){return{upload:{open:!1,uploadStatus:"",fileList:[],isUploading:!1,updateSupport:0,headers:{Authorization:"Bearer "+s.a.get(i["a"])},url:"/admin"+this.uploadAction}}},filters:{},created:function(){},computed:{},watch:{},methods:{importExcelHandleCancel:function(e){this.upload.open=!1,this.upload.fileList=[],this.$emit("ok")},importTemplate:function(){this.$emit("importTemplate")},importExcelHandleOpen:function(e){this.upload.open=!0},importExcelHandleChange:function(e){var t=e.file.status;this.upload.uploadStatus=t,"done"===t?this.$message.success("".concat(e.file.name,": ").concat(e.file.response.msg)):"error"===t&&this.$message.error("".concat(e.file.name,": ").concat(e.file.response.msg)),this.upload.open=!1,this.upload.fileList=[],this.$emit("ok")},handleCheckedUpdateSupport:function(){this.upload.updateSupport=0===this.upload.updateSupport?1:0}}},l=d,p=a("2877"),c=Object(p["a"])(l,n,o,!1,null,null,null);t["a"]=c.exports},"8f07":function(e,t,a){"use strict";a.r(t);a("b0c0"),a("4e82");var n=function(){var e=this,t=e._self._c;return t("ant-modal",{attrs:{visible:e.open,"modal-title":e.formTitle,"adjust-size":!0,modalHeight:"480",modalWidth:"640"},on:{cancel:e.cancel}},[t("a-form-model",{ref:"form",attrs:{slot:"content",model:e.form,rules:e.rules,layout:"vertical"},slot:"content"},[t("a-row",{staticClass:"form-row",attrs:{gutter:32}},[t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("component.gangwei.dept.father.dept"),prop:"pid"}},[t("select-dept",{attrs:{"select-model":"single","select-scope":e.selectScope},on:{callBack:e.onSelectDept},model:{value:e.form.pid,callback:function(t){e.$set(e.form,"pid",t)},expression:"form.pid"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.gangwei.dept.dept_name1"),prop:"name"}},[t("a-input",{attrs:{placeholder:e.$t("view.gangwei.dept.input.dept_name1")},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.gangwei.dept.sort"),prop:"sort"}},[t("a-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.form.sort,callback:function(t){e.$set(e.form,"sort",t)},expression:"form.sort"}})],1)],1)],1),t("a-collapse",{attrs:{bordered:!1,expandIconPosition:"left"},scopedSlots:e._u([{key:"expandIcon",fn:function(e){return[t("a-icon",{attrs:{type:"caret-right",rotate:e.isActive?90:0}})]}}])},[t("a-collapse-panel",{key:"1",style:e.customStyle,attrs:{header:e.$t("component.gangwei.dept.header")}},[t("a-row",{attrs:{gutter:32}},[t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.gangwei.dept.responsible.person"),prop:"leader"}},[t("a-input",{attrs:{placeholder:e.$t("component.gangwei.dept.input.responsible.person")},model:{value:e.form.leader,callback:function(t){e.$set(e.form,"leader",t)},expression:"form.leader"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.gangwei.dept.phone"),prop:"phone"}},[t("a-input",{attrs:{placeholder:e.$t("component.gangwei.dept.input.phone")},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("component.gangwei.dept.address"),prop:"address"}},[t("a-input",{attrs:{placeholder:e.$t("component.gangwei.dept.input.address")},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.gangwei.dept.email"),prop:"email"}},[t("a-input",{attrs:{placeholder:e.$t("component.gangwei.dept.email.not.null")},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1)],1),t("a-col",{attrs:{lg:24,md:24,sm:24,span:24}},[t("a-form-model-item",{attrs:{label:e.$t("component.gangwei.dept.remark"),prop:"remark"}},[t("a-input",{attrs:{placeholder:e.$t("component.gangwei.dept.input.remark"),type:"textarea","allow-clear":""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)],1)],1)],1),t("template",{slot:"footer"},[t("a-button",{on:{click:e.cancel}},[e._v(" "+e._s(e.$t("component.gangwei.dept.cancle.btn"))+" ")]),t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" "+e._s(e.$t("component.gangwei.dept.save.btn"))+" ")])],1)],2)},o=[],r=a("5530"),s=a("309e"),i=Object(r["a"])({},s["default"]),d=i,l=a("2877"),p=Object(l["a"])(d,n,o,!1,null,null,null);t["default"]=p.exports},a839:function(e,t,a){"use strict";a.r(t);a("b0c0"),a("4e82");var n=function(){var e=this,t=e._self._c;return t("a-drawer",{attrs:{width:"480",title:e.formTitle,"label-col":4,"wrapper-col":14,visible:e.open,"body-style":{height:"calc(100vh - 100px)",overflow:"auto"}},on:{close:e.cancel}},[t("a-form-model",{ref:"form",attrs:{model:e.form,rules:e.rules,layout:"vertical"}},[t("a-spin",{attrs:{spinning:e.spinning,delay:e.delayTime,tip:"Loading..."}},[t("a-row",{staticClass:"form-row",attrs:{gutter:32}},[t("a-col",{attrs:{lg:12,md:12,sm:24}},[e.parentIdShow?t("a-form-model-item",{attrs:{label:e.$t("component.gangwei.dept.father.dept"),prop:"pid"}},[t("select-dept",{attrs:{"select-model":"single","select-scope":e.selectScope},on:{callBack:e.onSelectDept},model:{value:e.form.pid,callback:function(t){e.$set(e.form,"pid",t)},expression:"form.pid"}})],1):e._e()],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.gangwei.dept.dept_name1"),prop:"name"}},[t("a-input",{attrs:{placeholder:e.$t("view.gangwei.dept.input.dept_name1")},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.gangwei.dept.sort"),prop:"sort"}},[t("a-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.form.sort,callback:function(t){e.$set(e.form,"sort",t)},expression:"form.sort"}})],1)],1)],1),t("a-collapse",{attrs:{bordered:!1,expandIconPosition:"left"},scopedSlots:e._u([{key:"expandIcon",fn:function(e){return[t("a-icon",{attrs:{type:"caret-right",rotate:e.isActive?90:0}})]}}])},[t("a-collapse-panel",{key:"1",style:e.customStyle,attrs:{header:e.$t("component.gangwei.dept.header")}},[t("a-row",{attrs:{gutter:32}},[t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.gangwei.dept.responsible.person"),prop:"leader"}},[t("a-input",{attrs:{placeholder:e.$t("component.gangwei.dept.input.responsible.person")},model:{value:e.form.leader,callback:function(t){e.$set(e.form,"leader",t)},expression:"form.leader"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.gangwei.dept.phone"),prop:"phone"}},[t("a-input",{attrs:{placeholder:e.$t("view.gangwei.dept.input.phone")},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("component.gangwei.dept.address"),prop:"address"}},[t("a-input",{attrs:{placeholder:e.$t("component.gangwei.dept.input.address")},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address",t)},expression:"form.address"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.gangwei.dept.email"),prop:"email"}},[t("a-input",{attrs:{placeholder:e.$t("component.gangwei.dept.email.not.null")},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1)],1),t("a-col",{attrs:{lg:12,md:12,sm:24}},[t("a-form-model-item",{attrs:{label:e.$t("view.gangwei.dept.status"),prop:"status"}},[t("a-radio-group",{attrs:{"button-style":"solid"},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOptions,(function(a,n){return t("a-radio-button",{key:n,attrs:{value:a.value}},[e._v(e._s(a.label))])})),1)],1)],1),t("a-col",{attrs:{lg:24,md:24,sm:24,span:24}},[t("a-form-model-item",{attrs:{label:e.$t("component.gangwei.dept.remark"),prop:"remark"}},[t("a-input",{attrs:{placeholder:e.$t("component.gangwei.dept.input.remark"),type:"textarea","allow-clear":""},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)],1)],1)],1),t("div",{staticClass:"bottom-control"},[t("a-space",[t("a-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v(" "+e._s(e.$t("component.gangwei.dept.save.btn"))+" ")]),t("a-button",{on:{click:e.cancel}},[e._v(" "+e._s(e.$t("component.gangwei.dept.cancle.btn"))+" ")])],1)],1)],1)],1)},o=[],r=a("5530"),s=a("309e"),i=Object(r["a"])({},s["default"]),d=i,l=a("2877"),p=Object(l["a"])(d,n,o,!1,null,null,null);t["default"]=p.exports},c0c7:function(e,t,a){"use strict";a.d(t,"l",(function(){return r})),a.d(t,"h",(function(){return s})),a.d(t,"a",(function(){return i})),a.d(t,"o",(function(){return d})),a.d(t,"e",(function(){return l})),a.d(t,"f",(function(){return p})),a.d(t,"m",(function(){return c})),a.d(t,"j",(function(){return u})),a.d(t,"p",(function(){return m})),a.d(t,"q",(function(){return f})),a.d(t,"r",(function(){return h})),a.d(t,"k",(function(){return g})),a.d(t,"d",(function(){return b})),a.d(t,"b",(function(){return v})),a.d(t,"c",(function(){return w})),a.d(t,"i",(function(){return y})),a.d(t,"g",(function(){return x})),a.d(t,"n",(function(){return $}));var n=a("b775"),o=a("028d");function r(e){return Object(n["b"])({url:"/member/list",method:"get",params:e})}function s(e){return Object(n["b"])({url:"/member/view",method:"get",params:{id:Object(o["j"])(e)}})}function i(e){return Object(n["b"])({url:"/member/edit",method:"post",data:e})}function d(e){return Object(n["b"])({url:"/member/edit",method:"post",data:e})}function l(e){return Object(n["b"])({url:"/member/delete",method:"post",params:{id:Object(o["j"])(e)}})}function p(e){return Object(n["b"])({url:"/member/export",method:"get",params:e})}function c(e,t){var a={id:e,password:t};return Object(n["b"])({url:"/member/reset_pwd",method:"post",data:a})}function u(){return Object(n["b"])({url:"/member/profile",method:"get"})}function m(e){return Object(n["b"])({url:"/member/update_profile",method:"post",data:e})}function f(e,t){var a={oldPassword:e,newPassword:t};return Object(n["b"])({url:"/member/update_pwd",method:"post",params:a})}function h(e){return Object(n["b"])({url:"/member/update_avatar",method:"post",data:e})}function g(){return Object(n["b"])({url:"/system/user/importTemplate",method:"get"})}function b(e){return Object(n["b"])({url:"/member/name_unique",method:"get",params:e})}function v(e){return Object(n["b"])({url:"/member/email_unique",method:"get",params:e})}function w(e){return Object(n["b"])({url:"/member/mobile_unique",method:"get",params:e})}function y(e){return Object(n["b"])({url:"/member/getUserInfoByIds",method:"post",data:e})}function x(e){return Object(n["b"])({url:"/role/member_list",method:"get",params:e})}function $(e){return Object(n["b"])({url:"/member/addRoleUser",method:"post",data:e})}}}]);