1 line
77 KiB
Plaintext
1 line
77 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/views/manager/user.vue?888d","webpack:///src/views/manager/user.vue","webpack:///./src/views/manager/user.vue?4fc7","webpack:///./src/views/manager/user.vue","webpack:///./src/api/department.js","webpack:///./src/components/Pagination/index.vue?31f0","webpack:///./src/components/Pagination/index.vue?8e6f","webpack:///src/components/Pagination/index.vue","webpack:///./src/components/Pagination/index.vue?6c75","webpack:///./src/components/Pagination/index.vue?0d87","webpack:///./src/directive/permission/permission.js","webpack:///./src/directive/permission/index.js","webpack:///./src/api/area.js","webpack:///./src/api/roleManage.js","webpack:///./src/api/user.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","$t","deptIdList","checkStrictly","emitPath","props","on","handleFilter","model","value","listQuery","callback","$$v","$set","expression","nativeOn","$event","type","indexOf","_k","keyCode","key","apply","arguments","_v","_s","clearListQuery","handleCreate","deleteList","directives","name","rawName","ref","list","scopedSlots","_u","fn","scope","row","userType","_e","handleUpdate","handleDelete","total","curPage","pageSize","getList","textMap","dialogStatus","addDialog","staticStyle","rules","form","userId","pswDisabled","pswPlaceholder","slot","pswAgain","_l","item","index","enabled","areaIdList","handleRole","roleId","roleName","userTypeName","label","createData","updateData","staticRenderFns","components","Pagination","permission","data","validateUserName","validateNickName","validatePswFun","length","validatePsw","validatePswAgainFun","validatePswAgain","validatePhone","validateroleId","createStatus","changeDevice","roleDialog","departmentDialog","resourceList","resourceChecked","currentRowUserId","currentRowRoleId","update","create","deptId","nickName","password","phone","remark","userName","permissionLevel","required","validator","trigger","areaId","message","deptName","userTypeList","permissionList","roleList","listLoading","downloadLoading","computed","mapGetters","created","$store","getters","getDepartmentList","getDeptList","methods","validatenull","children","getAreaIdList","res","subList","obj","getAreaSubByAreaId","getdeptIdList","subBeanList","getDeptSubByDeptId","checkedChange","e","onlyOne","$refs","tree","setCheckedKeys","getUserList","validateSubmit","validate","valid","console","addSubmitApi","then","title","duration","catch","editSubmitApi","status","logout","window","dispatch","location","resetForm","$nextTick","callBack","$confirm","confirmButtonText","cancelButtonText","delSubmitUserApi","table","selection","$notify","handleDownload","_this","filterVal","excel","header","filename","formatJson","jsonData","map","v","j","getRoleList","filterRole","roleData","roleCode","handleCurrentRoleChange","val","component","request","url","method","params","formData","qs","stringify","delSubmitApi","headers","_b","background","currentPage","layout","pageSizes","handleSizeChange","handleCurrentChange","$attrs","page","default","limit","hidden","get","set","$emit","inserted","el","binding","roles","store","butPermission","log","Array","Error","permissionRoles","hasPermission","some","role","includes","state","user","permissionFlag","newnode","document","createElement","style","cursor","display","pointerEvents","parentNode","insertBefore","removeChild","appendChild","install","Vue","directive","use","getAreaTreeList","removeArea","saveArea","updateArea","delSubmitRoleApi","dataForm","delData","Roleids","getRolePermissionTree","resource","setResourceSubmitApi","getAppRolePermissionTree","setAppResourceSubmitApi","getUserByUserName","userIds"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,MAAM,CAACE,YAAY,aAAaF,EAAG,MAAM,CAACE,YAAY,oBAAoB,CAACF,EAAG,cAAc,CAACE,YAAY,cAAcC,MAAM,CAAC,mBAAkB,EAAM,YAAcP,EAAIQ,GAAG,oBAAoB,QAAUR,EAAIS,WAAW,MAAQ,CAAEC,eAAe,EAAMC,UAAU,EAAOC,MAAO,IAAK,UAAY,IAAIC,GAAG,CAAC,OAASb,EAAIc,cAAcC,MAAM,CAACC,MAAOhB,EAAIiB,UAAgB,OAAEC,SAAS,SAAUC,GAAMnB,EAAIoB,KAAKpB,EAAIiB,UAAW,SAAUE,IAAME,WAAW,sBAAsBjB,EAAG,WAAW,CAACE,YAAY,cAAcC,MAAM,CAAC,YAAcP,EAAIQ,GAAG,kBAAkBc,SAAS,CAAC,MAAQ,SAASC,GAAQ,OAAIA,EAAOC,K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IAAK,mDACLC,OAAQ,OACR5G,W,kCCtGJ,0LASO,SAAS8D,EAAY9D,GAC1B,OAAO0G,eAAQ,CACbC,IAAK,gCACLC,OAAQ,MACRC,OAAQ7G,IAKL,SAAS+K,EAAkB/K,GAChC,OAAO0G,eAAQ,CACbC,IAAK,sCACLC,OAAQ,MACRC,OAAQ7G,IAKL,SAASmE,EAAanE,GAC3B,OAAO0G,eAAQ,CACbQ,QAAS,CACP,eAAgB,oBAElBP,IAAK,gCACLC,OAAQ,OACR5G,SAKG,SAASwE,EAAcxE,GAC5B,OAAO0G,eAAQ,CACbQ,QAAS,CACP,eAAgB,oBAElBP,IAAK,kCACLC,OAAQ,OACR5G,SAKG,SAASoF,EAAiBpF,GAC/B,IAAMwK,EAAU,CACdQ,QAAShL,GAEX,OAAO0G,eAAQ,CACbC,IAAK,kCACLC,OAAQ,MACRC,OAAQ2D","file":"js/chunk-66208b2c.8b119ccf.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('div',{staticClass:\"decorate\"}),_c('div',{staticClass:\"filter-container\"},[_c('el-cascader',{staticClass:\"filter-item\",attrs:{\"show-all-levels\":false,\"placeholder\":_vm.$t('listQuery.deptId'),\"options\":_vm.deptIdList,\"props\":{ checkStrictly: true, emitPath: false, props: {} },\"clearable\":\"\"},on:{\"change\":_vm.handleFilter},model:{value:(_vm.listQuery.deptId),callback:function ($$v) {_vm.$set(_vm.listQuery, \"deptId\", $$v)},expression:\"listQuery.deptId\"}}),_c('el-input',{staticClass:\"filter-item\",attrs:{\"placeholder\":_vm.$t('user.userName')},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleFilter.apply(null, arguments)}},model:{value:(_vm.listQuery.userName),callback:function ($$v) {_vm.$set(_vm.listQuery, \"userName\", $$v)},expression:\"listQuery.userName\"}}),_c('el-input',{staticClass:\"filter-item\",attrs:{\"placeholder\":_vm.$t('user.nickName')},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleFilter.apply(null, arguments)}},model:{value:(_vm.listQuery.nickName),callback:function ($$v) {_vm.$set(_vm.listQuery, \"nickName\", $$v)},expression:\"listQuery.nickName\"}}),_c('el-input',{staticClass:\"filter-item\",attrs:{\"placeholder\":_vm.$t('user.phone')},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleFilter.apply(null, arguments)}},model:{value:(_vm.listQuery.phone),callback:function ($$v) {_vm.$set(_vm.listQuery, \"phone\", $$v)},expression:\"listQuery.phone\"}}),_c('span',{staticClass:\"btn-item\",on:{\"click\":_vm.handleFilter}},[_c('i',{staticClass:\"iconfont icon-sousuo\"}),_vm._v(_vm._s(_vm.$t(\"btn.search\")))]),_c('span',{staticClass:\"btn-item\",on:{\"click\":_vm.clearListQuery}},[_c('i',{staticClass:\"el-icon-refresh-left\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"btn.resetting\")))]),_c('div',{staticClass:\"control-container\"},[_c('span',{staticClass:\"btn-item\",on:{\"click\":function($event){return _vm.handleCreate()}}},[_c('i',{staticClass:\"iconfont icon-a-\"}),_vm._v(_vm._s(_vm.$t(\"btn.add\")))]),_c('span',{staticClass:\"btn-item delete\",on:{\"click\":_vm.deleteList}},[_c('i',{staticClass:\"iconfont icon-shanchu\"}),_vm._v(_vm._s(_vm.$t(\"btn.delete\")))])])],1),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],ref:\"table\",attrs:{\"data\":_vm.list,\"fit\":\"\",\"max-height\":\"580\",\"highlight-current-row\":\"\",\"header-row-class-name\":\"table-header\",\"row-class-name\":\"table-row\"}},[_c('el-table-column',{attrs:{\"type\":\"selection\",\"width\":\"55\",\"align\":\"center\"}}),_c('el-table-column',{attrs:{\"property\":\"userName\",\"align\":\"left\",\"label\":_vm.$t('user.userName')}}),_c('el-table-column',{attrs:{\"property\":\"nickName\",\"align\":\"left\",\"label\":_vm.$t('user.nickName')}}),_c('el-table-column',{attrs:{\"property\":\"phone\",\"align\":\"left\",\"label\":_vm.$t('user.phone')}}),_c('el-table-column',{attrs:{\"property\":\"roleName\",\"align\":\"left\",\"label\":_vm.$t('user.roleName')}}),_c('el-table-column',{attrs:{\"property\":\"userType\",\"align\":\"left\",\"label\":_vm.$t('user.userType')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.userType == 0)?_c('span',[_vm._v(_vm._s(_vm.$t(\"user.admin\")))]):(scope.row.userType == 1)?_c('span',[_vm._v(_vm._s(_vm.$t(\"user.superAdmin\")))]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"property\":\"remark\",\"align\":\"left\",\"label\":_vm.$t('user.remark')}}),_c('el-table-column',{attrs:{\"label\":_vm.$t('table.operate'),\"width\":\"220\",\"align\":\"left\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{staticClass:\"btnCancel\",attrs:{\"title\":_vm.$t('table.update')},on:{\"click\":function($event){return _vm.handleUpdate(scope)}}},[_c('i',{staticClass:\"iconfont icon-bianji\"}),_vm._v(_vm._s(_vm.$t(\"table.update\")))]),_c('span',{staticClass:\"btnCancel delete\",attrs:{\"title\":_vm.$t('table.delete')},on:{\"click\":function($event){return _vm.handleDelete(scope)}}},[_c('i',{staticClass:\"iconfont icon-a--\"}),_vm._v(_vm._s(_vm.$t(\"table.delete\")))])]}}])})],1),_c('pagination',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.total > 0),expression:\"total > 0\"}],attrs:{\"total\":_vm.total,\"page\":_vm.listQuery.curPage,\"limit\":_vm.listQuery.pageSize},on:{\"update:page\":function($event){return _vm.$set(_vm.listQuery, \"curPage\", $event)},\"update:limit\":function($event){return _vm.$set(_vm.listQuery, \"pageSize\", $event)},\"pagination\":_vm.getList}})],1),_c('el-dialog',{attrs:{\"close-on-click-modal\":false,\"title\":_vm.textMap[_vm.dialogStatus],\"visible\":_vm.addDialog},on:{\"update:visible\":function($event){_vm.addDialog=$event}}},[_c('el-scrollbar',{staticStyle:{\"height\":\"100%\"},attrs:{\"vertical\":true}},[_c('el-form',{ref:\"form\",attrs:{\"rules\":_vm.rules,\"status-icon\":\"\",\"model\":_vm.form,\"inline\":\"\",\"label-width\":\"130px\"}},[_c('el-form-item',{attrs:{\"label\":_vm.$t('user.userName'),\"prop\":\"userName\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('user.userName'),\"maxlength\":\"20\"},model:{value:(_vm.form.userName),callback:function ($$v) {_vm.$set(_vm.form, \"userName\", $$v)},expression:\"form.userName\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('user.nickName'),\"prop\":\"nickName\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('user.nickName'),\"maxlength\":\"20\"},model:{value:(_vm.form.nickName),callback:function ($$v) {_vm.$set(_vm.form, \"nickName\", $$v)},expression:\"form.nickName\"}})],1),(\n _vm.dialogStatus === 'update' &&\n (_vm.userId == 1 || _vm.form.userId == _vm.userId)\n )?_c('el-form-item',{attrs:{\"label\":_vm.$t('user.password'),\"prop\":\"password\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"minlength\":\"6\",\"maxlength\":\"8\",\"disabled\":_vm.pswDisabled,\"placeholder\":_vm.pswPlaceholder},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}},[_c('el-button',{staticClass:\"choseBtn\",attrs:{\"slot\":\"append\",\"type\":\"primary\",\"icon\":\"el-icon-edit-outline\"},on:{\"click\":function($event){_vm.pswDisabled = !_vm.pswDisabled}},slot:\"append\"},[_vm._v(_vm._s(_vm.$t(\"table.change\")))])],1)],1):_vm._e(),(_vm.dialogStatus === 'create')?_c('el-form-item',{attrs:{\"label\":_vm.$t('user.password'),\"prop\":\"password\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"minlength\":\"6\",\"maxlength\":\"8\",\"placeholder\":_vm.$t('validate.pswLimit')},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}})],1):_vm._e(),(_vm.dialogStatus === 'update')?_c('el-form-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.pswDisabled),expression:\"!pswDisabled\"}],attrs:{\"label\":_vm.$t('user.pswAgain'),\"prop\":\"pswAgain\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"minlength\":\"6\",\"maxlength\":\"8\",\"placeholder\":_vm.$t('validate.pswConfirm')},model:{value:(_vm.pswAgain),callback:function ($$v) {_vm.pswAgain=$$v},expression:\"pswAgain\"}})],1):_c('el-form-item',{attrs:{\"label\":_vm.$t('user.pswAgain'),\"prop\":\"pswAgain\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"minlength\":\"6\",\"maxlength\":\"8\",\"placeholder\":_vm.$t('validate.pswConfirm')},model:{value:(_vm.pswAgain),callback:function ($$v) {_vm.pswAgain=$$v},expression:\"pswAgain\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('user.phone'),\"prop\":\"phone\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('user.phone')},model:{value:(_vm.form.phone),callback:function ($$v) {_vm.$set(_vm.form, \"phone\", $$v)},expression:\"form.phone\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('user.enabled')}},[_c('el-select',{attrs:{\"clearable\":\"\"},model:{value:(_vm.form.enabled),callback:function ($$v) {_vm.$set(_vm.form, \"enabled\", $$v)},expression:\"form.enabled\"}},_vm._l((_vm.enabled),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.type,\"value\":item.enabled}})}),1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('listQuery.areaId'),\"prop\":\"deptId\"}},[_c('el-cascader',{staticClass:\"filter-item\",attrs:{\"show-all-levels\":false,\"placeholder\":_vm.$t('listQuery.areaId'),\"options\":_vm.areaIdList,\"props\":{ checkStrictly: true, emitPath: false, props: {} },\"clearable\":\"\",\"prop\":\"deptId\"},on:{\"change\":_vm.handleRole},model:{value:(_vm.form.areaId),callback:function ($$v) {_vm.$set(_vm.form, \"areaId\", $$v)},expression:\"form.areaId\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('listQuery.deptId'),\"prop\":\"deptId\"}},[_c('el-cascader',{staticClass:\"filter-item\",attrs:{\"show-all-levels\":false,\"placeholder\":_vm.$t('listQuery.deptId'),\"options\":_vm.deptIdList,\"props\":{ checkStrictly: true, emitPath: false, props: {} },\"clearable\":\"\",\"prop\":\"deptId\"},on:{\"change\":_vm.handleRole},model:{value:(_vm.form.deptId),callback:function ($$v) {_vm.$set(_vm.form, \"deptId\", $$v)},expression:\"form.deptId\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('user.roleName'),\"prop\":\"roleId\"}},[_c('el-select',{attrs:{\"clearable\":\"\"},model:{value:(_vm.form.roleId),callback:function ($$v) {_vm.$set(_vm.form, \"roleId\", $$v)},expression:\"form.roleId\"}},_vm._l((_vm.roleList),function(item){return _c('el-option',{key:item.roleId,attrs:{\"label\":item.roleName,\"value\":item.roleId}})}),1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('user.userType'),\"prop\":\"userType\"}},[_c('el-select',{attrs:{\"clearable\":\"\"},model:{value:(_vm.form.userType),callback:function ($$v) {_vm.$set(_vm.form, \"userType\", $$v)},expression:\"form.userType\"}},_vm._l((_vm.userTypeList),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.userTypeName,\"value\":item.userType}})}),1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('user.permissionLevel'),\"prop\":\"permissionLevel\"}},[_c('el-select',{attrs:{\"clearable\":\"\"},model:{value:(_vm.form.permissionLevel),callback:function ($$v) {_vm.$set(_vm.form, \"permissionLevel\", $$v)},expression:\"form.permissionLevel\"}},_vm._l((_vm.permissionList),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('user.remark')}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":_vm.$t('pEnter') + _vm.$t('user.remark'),\"maxlength\":\"100\"},model:{value:(_vm.form.remark),callback:function ($$v) {_vm.$set(_vm.form, \"remark\", $$v)},expression:\"form.remark\"}})],1)],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('span',{staticClass:\"btn-item long\",on:{\"click\":function($event){_vm.addDialog = false}}},[_vm._v(_vm._s(_vm.$t(\"btn.cancel\")))]),_c('span',{staticClass:\"btn-item long\",on:{\"click\":function($event){_vm.dialogStatus === 'create' ? _vm.createData() : _vm.updateData()}}},[_vm._v(_vm._s(_vm.$t(\"btn.define\")))])])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!-- 用户管理页 -->\r\n<template>\r\n <div class=\"app-container\">\r\n <div class=\"decorate\"></div>\r\n <div class=\"filter-container\">\r\n <el-cascader\r\n :show-all-levels=\"false\"\r\n v-model=\"listQuery.deptId\"\r\n :placeholder=\"$t('listQuery.deptId')\"\r\n class=\"filter-item\"\r\n :options=\"deptIdList\"\r\n :props=\"{ checkStrictly: true, emitPath: false, props: {} }\"\r\n clearable\r\n @change=\"handleFilter\"\r\n />\r\n\r\n <el-input\r\n v-model=\"listQuery.userName\"\r\n :placeholder=\"$t('user.userName')\"\r\n class=\"filter-item\"\r\n @keyup.enter.native=\"handleFilter\"\r\n />\r\n\r\n <el-input\r\n v-model=\"listQuery.nickName\"\r\n :placeholder=\"$t('user.nickName')\"\r\n class=\"filter-item\"\r\n @keyup.enter.native=\"handleFilter\"\r\n />\r\n <el-input\r\n v-model=\"listQuery.phone\"\r\n :placeholder=\"$t('user.phone')\"\r\n class=\"filter-item\"\r\n @keyup.enter.native=\"handleFilter\"\r\n />\r\n <span class=\"btn-item\" @click=\"handleFilter\"\r\n ><i class=\"iconfont icon-sousuo\" />{{ $t(\"btn.search\") }}</span\r\n >\r\n <span class=\"btn-item\" @click=\"clearListQuery\">\r\n <i class=\"el-icon-refresh-left\"></i>\r\n {{ $t(\"btn.resetting\") }}</span\r\n >\r\n <div class=\"control-container\">\r\n <span class=\"btn-item\" @click=\"handleCreate()\"\r\n ><i class=\"iconfont icon-a-\" />{{ $t(\"btn.add\") }}</span\r\n >\r\n <!-- <span\r\n class=\"btn-item\"\r\n :loading=\"downloadLoading\"\r\n @click=\"handleDownload\"\r\n >{{ $t('btn.leadingOut') }}</span\r\n > -->\r\n <span class=\"btn-item delete\" @click=\"deleteList\"\r\n ><i class=\"iconfont icon-shanchu\" />{{ $t(\"btn.delete\") }}</span\r\n >\r\n </div>\r\n </div>\r\n <div class=\"table-container\">\r\n <el-table\r\n v-loading=\"listLoading\"\r\n :data=\"list\"\r\n ref=\"table\"\r\n fit\r\n max-height=\"580\"\r\n highlight-current-row\r\n header-row-class-name=\"table-header\"\r\n row-class-name=\"table-row\"\r\n >\r\n <el-table-column type=\"selection\" width=\"55\" align=\"center\" />\r\n\r\n <el-table-column\r\n property=\"userName\"\r\n align=\"left\"\r\n :label=\"$t('user.userName')\"\r\n />\r\n <el-table-column\r\n property=\"nickName\"\r\n align=\"left\"\r\n :label=\"$t('user.nickName')\"\r\n />\r\n <el-table-column\r\n property=\"phone\"\r\n align=\"left\"\r\n :label=\"$t('user.phone')\"\r\n />\r\n <!-- <el-table-column property=\"deptName\" align=\"left\" label=\"所在区域\" /> -->\r\n <el-table-column\r\n property=\"roleName\"\r\n align=\"left\"\r\n :label=\"$t('user.roleName')\"\r\n />\r\n <el-table-column\r\n property=\"userType\"\r\n align=\"left\"\r\n :label=\"$t('user.userType')\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span v-if=\"scope.row.userType == 0\">{{ $t(\"user.admin\") }}</span>\r\n <span v-else-if=\"scope.row.userType == 1\">{{\r\n $t(\"user.superAdmin\")\r\n }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n property=\"remark\"\r\n align=\"left\"\r\n :label=\"$t('user.remark')\"\r\n />\r\n <el-table-column :label=\"$t('table.operate')\" width=\"220\" align=\"left\">\r\n <template slot-scope=\"scope\">\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"handleUpdate(scope)\"\r\n :title=\"$t('table.update')\"\r\n >\r\n <i class=\"iconfont icon-bianji\" />{{ $t(\"table.update\") }}</span\r\n >\r\n <span\r\n class=\"btnCancel delete\"\r\n @click=\"handleDelete(scope)\"\r\n :title=\"$t('table.delete')\"\r\n >\r\n <i class=\"iconfont icon-a--\" />{{ $t(\"table.delete\") }}</span\r\n >\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <pagination\r\n v-show=\"total > 0\"\r\n :total=\"total\"\r\n :page.sync=\"listQuery.curPage\"\r\n :limit.sync=\"listQuery.pageSize\"\r\n @pagination=\"getList\"\r\n />\r\n </div>\r\n\r\n <el-dialog\r\n :close-on-click-modal=\"false\"\r\n :title=\"textMap[dialogStatus]\"\r\n :visible.sync=\"addDialog\"\r\n >\r\n <el-scrollbar style=\"height: 100%\" :vertical=\"true\">\r\n <el-form\r\n ref=\"form\"\r\n :rules=\"rules\"\r\n status-icon\r\n :model=\"form\"\r\n inline\r\n label-width=\"130px\"\r\n >\r\n <el-form-item :label=\"$t('user.userName')\" prop=\"userName\">\r\n <el-input\r\n v-model=\"form.userName\"\r\n :placeholder=\"$t('pEnter') + $t('user.userName')\"\r\n maxlength=\"20\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('user.nickName')\" prop=\"nickName\">\r\n <el-input\r\n v-model=\"form.nickName\"\r\n :placeholder=\"$t('pEnter') + $t('user.nickName')\"\r\n maxlength=\"20\"\r\n />\r\n </el-form-item>\r\n <el-form-item\r\n v-if=\"\r\n dialogStatus === 'update' &&\r\n (userId == 1 || form.userId == userId)\r\n \"\r\n :label=\"$t('user.password')\"\r\n prop=\"password\"\r\n >\r\n <el-input\r\n v-model=\"form.password\"\r\n type=\"password\"\r\n minlength=\"6\"\r\n maxlength=\"8\"\r\n :disabled=\"pswDisabled\"\r\n :placeholder=\"pswPlaceholder\"\r\n >\r\n <el-button\r\n slot=\"append\"\r\n type=\"primary\"\r\n class=\"choseBtn\"\r\n icon=\"el-icon-edit-outline\"\r\n @click=\"pswDisabled = !pswDisabled\"\r\n >{{ $t(\"table.change\") }}</el-button\r\n >\r\n </el-input>\r\n </el-form-item>\r\n <el-form-item\r\n v-if=\"dialogStatus === 'create'\"\r\n :label=\"$t('user.password')\"\r\n prop=\"password\"\r\n >\r\n <el-input\r\n v-model=\"form.password\"\r\n type=\"password\"\r\n minlength=\"6\"\r\n maxlength=\"8\"\r\n :placeholder=\"$t('validate.pswLimit')\"\r\n />\r\n </el-form-item>\r\n\r\n <el-form-item\r\n v-if=\"dialogStatus === 'update'\"\r\n v-show=\"!pswDisabled\"\r\n :label=\"$t('user.pswAgain')\"\r\n prop=\"pswAgain\"\r\n >\r\n <el-input\r\n v-model=\"pswAgain\"\r\n type=\"password\"\r\n minlength=\"6\"\r\n maxlength=\"8\"\r\n :placeholder=\"$t('validate.pswConfirm')\"\r\n />\r\n </el-form-item>\r\n <el-form-item v-else :label=\"$t('user.pswAgain')\" prop=\"pswAgain\">\r\n <el-input\r\n v-model=\"pswAgain\"\r\n type=\"password\"\r\n minlength=\"6\"\r\n maxlength=\"8\"\r\n :placeholder=\"$t('validate.pswConfirm')\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('user.phone')\" prop=\"phone\">\r\n <el-input\r\n v-model=\"form.phone\"\r\n :placeholder=\"$t('pEnter') + $t('user.phone')\"\r\n />\r\n </el-form-item>\r\n\r\n <el-form-item :label=\"$t('user.enabled')\">\r\n <el-select v-model=\"form.enabled\" clearable>\r\n <el-option\r\n v-for=\"(item, index) in enabled\"\r\n :key=\"index\"\r\n :label=\"item.type\"\r\n :value=\"item.enabled\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item :label=\"$t('listQuery.areaId')\" prop=\"deptId\">\r\n <el-cascader\r\n :show-all-levels=\"false\"\r\n v-model=\"form.areaId\"\r\n :placeholder=\"$t('listQuery.areaId')\"\r\n class=\"filter-item\"\r\n :options=\"areaIdList\"\r\n :props=\"{ checkStrictly: true, emitPath: false, props: {} }\"\r\n clearable\r\n @change=\"handleRole\"\r\n prop=\"deptId\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('listQuery.deptId')\" prop=\"deptId\">\r\n <el-cascader\r\n :show-all-levels=\"false\"\r\n v-model=\"form.deptId\"\r\n :placeholder=\"$t('listQuery.deptId')\"\r\n class=\"filter-item\"\r\n :options=\"deptIdList\"\r\n :props=\"{ checkStrictly: true, emitPath: false, props: {} }\"\r\n clearable\r\n @change=\"handleRole\"\r\n prop=\"deptId\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('user.roleName')\" prop=\"roleId\">\r\n <el-select v-model=\"form.roleId\" clearable>\r\n <el-option\r\n v-for=\"item in roleList\"\r\n :key=\"item.roleId\"\r\n :label=\"item.roleName\"\r\n :value=\"item.roleId\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item :label=\"$t('user.userType')\" prop=\"userType\">\r\n <el-select v-model=\"form.userType\" clearable>\r\n <el-option\r\n v-for=\"(item, index) in userTypeList\"\r\n :key=\"index\"\r\n :label=\"item.userTypeName\"\r\n :value=\"item.userType\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item\r\n :label=\"$t('user.permissionLevel')\"\r\n prop=\"permissionLevel\"\r\n >\r\n <el-select v-model=\"form.permissionLevel\" clearable>\r\n <el-option\r\n v-for=\"(item, index) in permissionList\"\r\n :key=\"index\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item :label=\"$t('user.remark')\">\r\n <el-input\r\n v-model=\"form.remark\"\r\n type=\"textarea\"\r\n :placeholder=\"$t('pEnter') + $t('user.remark')\"\r\n maxlength=\"100\"\r\n />\r\n </el-form-item>\r\n </el-form>\r\n </el-scrollbar>\r\n\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <span class=\"btn-item long\" @click=\"addDialog = false\">{{\r\n $t(\"btn.cancel\")\r\n }}</span>\r\n <span\r\n class=\"btn-item long\"\r\n @click=\"dialogStatus === 'create' ? createData() : updateData()\"\r\n >{{ $t(\"btn.define\") }}</span\r\n >\r\n </span>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { mapGetters } from \"vuex\"\r\nimport {\r\n getUserList,\r\n addSubmitApi,\r\n editSubmitApi,\r\n delSubmitUserApi\r\n} from \"@/api/user\"\r\nimport { getAreaSubByAreaId } from \"@/api/area\"\r\nimport { getDeptSubByDeptId } from \"@/api/department\"\r\nimport { getRoleList } from \"@/api/roleManage\"\r\nimport Pagination from \"@/components/Pagination\"\r\n// import DeviceSave from \"./deviceSave.vue\"\r\n\r\nimport permission from \"@/directive/permission/index.js\" // 权限判断指令\r\n\r\nexport default {\r\n components: { Pagination },\r\n directives: { permission },\r\n data() {\r\n var validateUserName = (rule, value, callback) => {\r\n if (value === \"\") {\r\n callback(new Error(this.$t(\"pEnter\") + this.$t(\"user.userName\")))\r\n } else {\r\n callback()\r\n }\r\n }\r\n var validateNickName = (rule, value, callback) => {\r\n if (value === \"\") {\r\n callback(new Error(this.$t(\"pEnter\") + this.$t(\"user.nickName\")))\r\n } else {\r\n callback()\r\n }\r\n }\r\n var validatePswFun = (rule, value, callback) => {\r\n if (value === \"\" || value.length < 6 || value.length > 8) {\r\n callback(new Error(this.$t(\"validate.pswLimit\")))\r\n } else {\r\n if (this.pswAgain !== null) {\r\n this.$refs.form.validateField(\"pswAgain\")\r\n }\r\n callback()\r\n }\r\n }\r\n var validatePsw = (rule, value, callback) => {\r\n if (this.dialogStatus === \"create\") {\r\n validatePswFun(rule, value, callback)\r\n } else {\r\n if (!this.pswDisabled) {\r\n validatePswFun(rule, value, callback)\r\n } else {\r\n this.form.password = \"\"\r\n callback()\r\n }\r\n }\r\n }\r\n var validatePswAgainFun = (rule, value, callback) => {\r\n if (this.pswAgain === null) {\r\n callback(new Error(this.$t(\"validate.pswConfirm\")))\r\n } else if (this.pswAgain !== this.form.password) {\r\n callback(new Error(this.$t(\"validate.pswError\")))\r\n } else {\r\n callback()\r\n }\r\n }\r\n var validatePswAgain = (rule, value, callback) => {\r\n if (this.dialogStatus === \"create\") {\r\n validatePswAgainFun(rule, value, callback)\r\n } else {\r\n if (!this.p) {\r\n validatePswAgainFun(rule, value, callback)\r\n } else {\r\n callback()\r\n }\r\n }\r\n }\r\n var validatePhone = (rule, value, callback) => {\r\n if (value === \"\") {\r\n callback(new Error(this.$t(\"validate.phone\")))\r\n } else if (!/^[0-9-]+$/.test(value)) {\r\n callback(new Error(this.$t(\"validate.phoneFormat\")))\r\n } else {\r\n callback()\r\n }\r\n }\r\n var validateroleId = (rule, value, callback) => {\r\n if (this.roleList.length == 0) {\r\n callback(new Error(this.$t(\"user.createRole\")))\r\n } else if (value == \"\") {\r\n callback(new Error(this.$t(\"pSelect\") + this.$t(\"user.roleName\")))\r\n } else {\r\n callback()\r\n }\r\n }\r\n return {\r\n pswPlaceholder: \"******\",\r\n createStatus: false,\r\n pswDisabled: true,\r\n changeDevice: false,\r\n pswAgain: null,\r\n roleDialog: false,\r\n departmentDialog: false,\r\n resourceList: null,\r\n resourceChecked: [],\r\n currentRowUserId: null,\r\n currentRowRoleId: null,\r\n addDialog: false,\r\n enabled: [\r\n { enabled: 1, type: this.$t(\"type.yes\") },\r\n { enabled: 0, type: this.$t(\"type.no\") }\r\n ],\r\n textMap: {\r\n update: this.$t(\"table.update\"),\r\n create: this.$t(\"table.create\")\r\n },\r\n dialogStatus: \"\",\r\n form: {\r\n deptId: 0,\r\n enabled: 0,\r\n nickName: \"\",\r\n password: \"\",\r\n phone: \"\",\r\n remark: \"\",\r\n roleId: 0,\r\n userId: 1,\r\n userName: \"\",\r\n userType: 0,\r\n permissionLevel: 0\r\n },\r\n userId: localStorage.getItem(\"user_id\"),\r\n rules: {\r\n userName: [\r\n { required: true, validator: validateUserName, trigger: \"blur\" }\r\n ],\r\n nickName: [\r\n { required: true, validator: validateNickName, trigger: \"blur\" }\r\n ],\r\n password: [{ required: true, validator: validatePsw, trigger: \"blur\" }],\r\n pswAgain: [\r\n { required: true, validator: validatePswAgain, trigger: \"blur\" }\r\n ],\r\n phone: [{ required: true, validator: validatePhone, trigger: \"blur\" }],\r\n areaId: [\r\n {\r\n required: true,\r\n message: this.$t(\"pSelect\") + this.$t(\"user.areaId\"),\r\n trigger: \"change\"\r\n }\r\n ],\r\n userType: [\r\n {\r\n required: true,\r\n message: this.$t(\"pSelect\") + this.$t(\"user.userType\"),\r\n trigger: \"change\"\r\n }\r\n ],\r\n roleId: [\r\n { required: true, validator: validateroleId, trigger: \"change\" }\r\n ],\r\n deptId: [\r\n {\r\n required: true,\r\n message: this.$t(\"pSelect\") + this.$t(\"listQuery.deptId\"),\r\n trigger: \"change\"\r\n }\r\n ],\r\n permissionLevel: [\r\n {\r\n required: true,\r\n message: this.$t(\"pSelect\") + this.$t(\"user.permissionLevel\"),\r\n trigger: \"change\"\r\n }\r\n ]\r\n },\r\n\r\n total: 0,\r\n listQuery: {\r\n userName: null,\r\n nickName: null,\r\n deptName: null,\r\n areaId: null,\r\n phone: null,\r\n roleName: null,\r\n curPage: 1,\r\n pageSize: 10\r\n },\r\n userTypeList: [\r\n { userType: 0, userTypeName: this.$t(\"user.admin\") },\r\n { userType: 1, userTypeName: this.$t(\"user.superAdmin\") }\r\n ],\r\n permissionList: [\r\n { value: 1, label: this.$t(\"type.read\") },\r\n { value: 2, label: this.$t(\"type.write\") },\r\n { value: 3, label: this.$t(\"type.dispose\") }\r\n ],\r\n roleList: null,\r\n list: null,\r\n deptIdList: [],\r\n areaIdList: [],\r\n listLoading: true,\r\n downloadLoading: false,\r\n deptId: null\r\n }\r\n },\r\n computed: {\r\n ...mapGetters([\"userName\"])\r\n },\r\n created() {\r\n this.deptId = this.$store.getters.deptId\r\n this.getList()\r\n this.getDepartmentList()\r\n this.getDeptList()\r\n this.handleRole()\r\n },\r\n methods: {\r\n validatenull(children) {\r\n if (children && children.length > 0) {\r\n return false\r\n } else {\r\n return true\r\n }\r\n },\r\n getAreaIdList(data) {\r\n if (!data.length) {\r\n data = [data]\r\n }\r\n const list = data.map((res) => {\r\n const obj = {}\r\n if (res.subList) {\r\n obj.children = this.getAreaIdList(res.subList)\r\n obj.label = res.areaName\r\n obj.value = res.areaId\r\n return obj\r\n } else {\r\n obj.label = res.areaName\r\n obj.value = res.areaId\r\n return obj\r\n }\r\n })\r\n return list\r\n },\r\n getDeptList() {\r\n // 获取区域列表\r\n getAreaSubByAreaId().then((res) => {\r\n this.areaIdList = res.data && this.getAreaIdList(res.data)\r\n })\r\n },\r\n // 数组遍历\r\n getdeptIdList(data) {\r\n if (!data.length) {\r\n data = [data]\r\n }\r\n const list = data.map((res) => {\r\n const obj = {}\r\n if (res.subBeanList) {\r\n obj.children = this.getdeptIdList(res.subBeanList)\r\n obj.label = res.nodeBean.deptName\r\n obj.value = res.nodeBean.deptId\r\n return obj\r\n } else {\r\n obj.label = res.nodeBean.deptName\r\n obj.value = res.nodeBean.deptId\r\n return obj\r\n }\r\n })\r\n return list\r\n },\r\n // 清空搜索选项,重置表格\r\n clearListQuery() {\r\n this.listQuery.userName = null\r\n this.listQuery.deptId = null\r\n this.listQuery.phone = null\r\n this.listQuery.nickName = null\r\n this.listQuery.curPage = 1\r\n this.listQuery.pageSize = 10\r\n this.getList()\r\n },\r\n getDepartmentList() {\r\n // 获取区域列表\r\n getDeptSubByDeptId().then((res) => {\r\n this.deptIdList = res.data && this.getdeptIdList(res.data)\r\n })\r\n },\r\n checkedChange(e) {\r\n const onlyOne = this.$refs.tree.getCheckedKeys()\r\n if (onlyOne.length > 1) {\r\n onlyOne.shift()\r\n this.$refs.tree.setCheckedKeys(e.deptId)\r\n }\r\n },\r\n getList() {\r\n this.listLoading = true\r\n getUserList(this.listQuery).then((res) => {\r\n this.listLoading = false\r\n this.list = res.data.list\r\n this.total = res.data.totalRow\r\n })\r\n },\r\n validateSubmit() {\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n this.addSubmit()\r\n } else {\r\n console.log(\"error submit!!\")\r\n return false\r\n }\r\n })\r\n },\r\n createData() {\r\n if (this.createStatus) {\r\n return\r\n }\r\n // 新增\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n this.createStatus = true\r\n addSubmitApi(this.form)\r\n .then((res) => {\r\n if (res.status == 200) {\r\n this.addDialog = false\r\n this.createStatus = false\r\n this.$notify({\r\n title: this.$t(\"title.success\"),\r\n message: this.$t(\"title.addSuccess\"),\r\n type: \"success\",\r\n duration: 3000\r\n })\r\n this.getList()\r\n }\r\n })\r\n .catch(() => {\r\n this.createStatus = false\r\n })\r\n }\r\n })\r\n },\r\n updateData() {\r\n // 编辑\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n editSubmitApi(this.form).then((res) => {\r\n if (res.status == 200) {\r\n this.addDialog = false\r\n this.$notify({\r\n title: this.$t(\"title.success\"),\r\n message: this.$t(\"title.updateSuccess\"),\r\n type: \"success\",\r\n duration: 3000\r\n })\r\n if (\r\n !this.pswDisabled &&\r\n this.form.userId == localStorage.getItem(\"user_id\")\r\n ) {\r\n this.logout()\r\n }\r\n this.getList()\r\n }\r\n })\r\n }\r\n })\r\n },\r\n logout() {\r\n window.localStorage.removeItem(\"sitename\")\r\n this.$store.dispatch(\"LogOut\").then(() => {\r\n location.reload() // In order to re-instantiate the vue-router object to avoid bugs\r\n })\r\n },\r\n resetForm() {\r\n // 重置表单\r\n for (var key in this.form) {\r\n this.form[key] = null\r\n }\r\n },\r\n handleCreate() {\r\n this.resetForm()\r\n this.addDialog = true\r\n this.pswAgain = null\r\n this.dialogStatus = \"create\"\r\n this.$nextTick(() => {\r\n // 清除表单验证\r\n this.$refs[\"form\"].clearValidate()\r\n })\r\n this.handleRole()\r\n },\r\n handleUpdate(scope) {\r\n this.pswDisabled = true\r\n this.pswAgain = \"\"\r\n this.form = {\r\n userName: scope.row.userName,\r\n password: \"\",\r\n enabled: scope.row.enabled,\r\n phone: scope.row.phone,\r\n remark: scope.row.remark,\r\n userId: scope.row.userId,\r\n deptId: scope.row.deptId,\r\n areaId: scope.row.areaId,\r\n roleId: scope.row.roleId,\r\n nickName: scope.row.nickName,\r\n userType: scope.row.userType,\r\n permissionLevel: scope.row.permissionLevel\r\n }\r\n this.dialogStatus = \"update\"\r\n console.log(this.form.userId == 1, this.form.userId == this.userId)\r\n this.addDialog = true\r\n this.$nextTick(() => {\r\n this.$refs[\"form\"].clearValidate()\r\n })\r\n this.handleRole()\r\n },\r\n callBack() {\r\n this.changeDevice = false\r\n },\r\n // 删除\r\n handleDelete(scope) {\r\n this.$confirm(\r\n this.$t(\"title.delPointOutUser\"),\r\n this.$t(\"title.pointOut\"),\r\n {\r\n confirmButtonText: this.$t(\"title.delete\"),\r\n cancelButtonText: this.$t(\"title.cancel\"),\r\n type: \"warning\"\r\n }\r\n ).then(() => {\r\n delSubmitUserApi(scope.row.userId).then((res) => {\r\n if (res.status == 200) {\r\n this.getList()\r\n this.$notify({\r\n title: this.$t(\"title.success\"),\r\n message: this.$t(\"title.deleteSuccess\"),\r\n type: \"success\",\r\n duration: 3000\r\n })\r\n }\r\n })\r\n })\r\n },\r\n // 批量删除\r\n deleteList() {\r\n if (!this.$refs.table.selection.length) {\r\n this.$notify({\r\n title: this.$t(\"title.fail\"),\r\n message: this.$t(\"pSelect\") + this.$t(\"user.user\"),\r\n type: \"warning\",\r\n duration: 3000\r\n })\r\n return\r\n }\r\n this.$confirm(\r\n this.$t(\"title.delPointOutUser\"),\r\n this.$t(\"title.pointOut\"),\r\n {\r\n confirmButtonText: this.$t(\"title.delete\"),\r\n cancelButtonText: this.$t(\"title.cancel\"),\r\n type: \"warning\"\r\n }\r\n ).then(() => {\r\n const list = this.$refs.table.selection.map((e) => e.userId)\r\n const str = list.join(\",\")\r\n delSubmitUserApi(str).then((res) => {\r\n if (res.status == 200) {\r\n this.getList()\r\n this.$notify({\r\n title: this.$t(\"title.success\"),\r\n message: this.$t(\"title.deleteSuccess\"),\r\n type: \"success\",\r\n duration: 3000\r\n })\r\n }\r\n })\r\n })\r\n },\r\n // 搜索\r\n handleFilter() {\r\n this.listQuery.curPage = 1\r\n this.getList()\r\n },\r\n // 导出excel\r\n handleDownload() {\r\n this.downloadLoading = true\r\n const _this = this\r\n getUserList().then((res) => {\r\n import(\"@/vendor/Export2Excel\").then((excel) => {\r\n const tHeader = [\r\n _this.$t(\"user.userName\"),\r\n _this.$t(\"user.nickName\"),\r\n _this.$t(\"user.phone\"),\r\n _this.$t(\"user.userType\"),\r\n _this.$t(\"user.roleId\"),\r\n _this.$t(\"user.remark\")\r\n ]\r\n const filterVal = [\r\n \"userName\",\r\n \"nickName\",\r\n \"phone\",\r\n \"userType\",\r\n \"roleName\",\r\n \"remark\"\r\n ]\r\n const data = this.formatJson(\r\n filterVal,\r\n res.data.list.map((e) => {\r\n if (e.userType == 0) {\r\n e.userType = this.$t(\"user.admin\")\r\n } else {\r\n e.userType = this.$t(\"user.superAdmin\")\r\n }\r\n return e\r\n })\r\n )\r\n console.log(data)\r\n excel.export_json_to_excel({\r\n header: tHeader,\r\n data,\r\n filename: \"智汇管家用户信息\"\r\n })\r\n this.downloadLoading = false\r\n })\r\n })\r\n },\r\n formatJson(filterVal, jsonData) {\r\n return jsonData.map((v) =>\r\n filterVal.map((j) => {\r\n return v[j]\r\n })\r\n )\r\n },\r\n\r\n handleRole() {\r\n var deptId = this.form.deptId\r\n if (deptId == null || deptId == \"\") {\r\n deptId = this.deptId\r\n }\r\n getRoleList({ deptId: deptId }).then((res) => {\r\n if (this.deptId == this.form.deptId && this.deptId != 0) {\r\n // 与用户同一个区域\r\n this.roleList = this.filterRole(res.data.list)\r\n } else {\r\n this.roleList = res.data.list\r\n }\r\n console.log(this.roleList)\r\n })\r\n },\r\n filterRole(roleData) {\r\n // 过滤角色列表\r\n const roleList = []\r\n roleData.forEach((e) => {\r\n if (e.roleCode !== \"super\") {\r\n roleList.push(e)\r\n }\r\n })\r\n return roleList\r\n },\r\n handleCurrentRoleChange(val) {\r\n if (val) {\r\n this.currentRowRoleId = val.roleId\r\n } else {\r\n this.currentRowRoleId = null\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./user.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./user.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./user.vue?vue&type=template&id=0b41ff0f&\"\nimport script from \"./user.vue?vue&type=script&lang=js&\"\nexport * from \"./user.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import request from '@/utils/request'\r\nimport qs from 'qs'\r\n/*\r\n 系统管理-区域管理 权限操作api\r\n*/\r\n\r\n// 查询区域列表树\r\nexport function getAreaTreeList(data) {\r\n return request({\r\n url: 'user-service/area/getAreaTreeList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n\r\n// 查询所有区域树\r\nexport function getDepartmentList(data) {\r\n return request({\r\n url: 'user-service/dept/getDeptTreeList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 查询本级节点ID-直系子级节点\r\nexport function getDeptSubByDeptId(data) {\r\n return request({\r\n url: 'user-service/dept/getDeptSubByDeptId',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 查询区域列表\r\nexport function getDeptTreeByDeptId(data) {\r\n return request({\r\n url: 'user-service/dept/getDeptTreeByDeptId',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n// 修改\r\nexport function editSubmitApi(formData) {\r\n const data = qs.stringify(formData)\r\n return request({\r\n url: 'user-service/dept/updateDept',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 新增\r\nexport function addSubmitApi(formData) {\r\n const data = qs.stringify(formData)\r\n return request({\r\n url: 'user-service/dept/saveDept',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 删除\r\nexport function delSubmitApi(formData) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'user-service/dept/removeDept',\r\n method: 'get',\r\n\r\n params: formData\r\n })\r\n}\r\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=4dfad654&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',_vm._b({attrs:{\"background\":_vm.background,\"current-page\":_vm.currentPage,\"page-size\":_vm.pageSize,\"layout\":_vm.layout,\"page-sizes\":_vm.pageSizes,\"total\":_vm.total},on:{\"update:currentPage\":function($event){_vm.currentPage=$event},\"update:current-page\":function($event){_vm.currentPage=$event},\"update:pageSize\":function($event){_vm.pageSize=$event},\"update:page-size\":function($event){_vm.pageSize=$event},\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}},'el-pagination',_vm.$attrs,false))],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"pagination-container\">\r\n <el-pagination\r\n :background=\"background\"\r\n :current-page.sync=\"currentPage\"\r\n :page-size.sync=\"pageSize\"\r\n :layout=\"layout\"\r\n :page-sizes=\"pageSizes\"\r\n :total=\"total\"\r\n v-bind=\"$attrs\"\r\n @size-change=\"handleSizeChange\"\r\n @current-change=\"handleCurrentChange\"\r\n />\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'Pagination',\r\n props: {\r\n total: {\r\n required: true,\r\n type: Number\r\n },\r\n page: {\r\n type: Number,\r\n default: 0\r\n },\r\n limit: {\r\n type: Number,\r\n default: 20\r\n },\r\n pageSizes: {\r\n type: Array,\r\n default() {\r\n return [5, 10, 20, 30, 70]\r\n }\r\n },\r\n layout: {\r\n type: String,\r\n default: 'total, sizes, prev, pager, next, jumper'\r\n },\r\n background: {\r\n type: Boolean,\r\n default: true\r\n },\r\n hidden: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n computed: {\r\n currentPage: {\r\n get() {\r\n return this.page\r\n },\r\n set(val) {\r\n this.$emit('update:page', val)\r\n }\r\n },\r\n pageSize: {\r\n get() {\r\n return this.limit\r\n },\r\n set(val) {\r\n this.$emit('update:limit', val)\r\n }\r\n }\r\n },\r\n methods: {\r\n handleSizeChange(val) {\r\n this.$emit('pagination', { page: this.currentPage, limit: val })\r\n },\r\n handleCurrentChange(val) {\r\n this.$emit('pagination', { page: val, limit: this.pageSize })\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.pagination-container {\r\n background: none;\r\n position: relative;\r\n margin-top: 30px;\r\n}\r\n.el-pagination {\r\n text-align: center;\r\n}\r\n.pagination-container.hidden {\r\n display: none;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=4dfad654&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=4dfad654&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4dfad654\",\n null\n \n)\n\nexport default component.exports","import store from \"@/store\";\r\n\r\nexport default {\r\n inserted(el, binding) {\r\n const { value } = binding;\r\n // const roles = store.getters && store.getters.roles\r\n const roles = store.getters && store.getters.butPermission;\r\n console.log(roles, 'roles');\r\n if (value && value instanceof Array && value.length > 0) {\r\n const permissionRoles = value;\r\n const hasPermission = roles.some(role => {\r\n return permissionRoles.includes(role);\r\n });\r\n console.log(hasPermission, 'hasPermission');\r\n if (!hasPermission) {\r\n // el.parentNode && el.parentNode.removeChild(el) \r\n\r\n store.state.user.permissionFlag[permissionRoles] = true;\r\n\r\n\r\n console.log(store.state.user.permissionFlag[permissionRoles], 'permissionRoles');\r\n const newnode = document.createElement(\"div\");\r\n newnode.style.cursor = 'not-allowed'\r\n newnode.style.display = 'inline-block'\r\n el.style.pointerEvents = \"none\"\r\n el.parentNode.insertBefore(newnode, el)\r\n el.parentNode && el.parentNode.removeChild(el)\r\n newnode.appendChild(el);\r\n console.log(el, 'permissionRoles');\r\n } else {\r\n store.state.user.permissionFlag[permissionRoles] = false;\r\n }\r\n } else {\r\n throw new Error(`need roles! Like v-permission=\"['admin','editor']\"`);\r\n }\r\n }\r\n};","import permission from \"./permission\";\n\nconst install = function(Vue) {\n Vue.directive(\"permission\", permission);\n};\n\nif (window.Vue) {\n window[\"permission\"] = permission;\n Vue.use(install); // eslint-disable-line\n}\n\npermission.install = install;\nexport default permission;\n","import request from '@/utils/request'\r\n/*\r\n 系统管理-区域管理 权限操作api\r\n*/\r\n\r\n// 查询区域列表树\r\nexport function getAreaTreeList(data) {\r\n return request({\r\n url: 'user-service/area/getAreaTreeList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n\r\n// 查询本级节点-直系子级节点\r\nexport function getAreaSubByAreaId(data) {\r\n return request({\r\n url: 'user-service/area/getAreaSubByAreaId',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 删除区域\r\nexport function removeArea(data) {\r\n return request({\r\n url: 'user-service/area/removeArea',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 新增\r\nexport function saveArea(data) {\r\n return request({\r\n url: 'user-service/area/saveArea',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 修改\r\nexport function updateArea(data) {\r\n return request({\r\n url: 'user-service/area/updateArea',\r\n method: 'post',\r\n data\r\n })\r\n}","import request from '@/utils/request'\nimport qs from 'qs'\n\n/*\n 系统管理-角色管理 权限操作api\n*/\n\n\n// 查询所有角色列表\nexport function getRoleList(data) {\n return request({\n url: 'user-service/role/getRoleList',\n method: 'get',\n params: data\n })\n}\n\n// 新增角色\nexport function addSubmitApi(data) {\n return request({\n headers: {\n 'Content-Type': 'application/json'\n },\n url: 'user-service/role/saveRole',\n method: 'post',\n data\n })\n}\n\n// 修改角色\nexport function editSubmitApi(data) {\n return request({\n headers: {\n 'Content-Type': 'application/json'\n },\n url: 'user-service/role/updateRole',\n method: 'post',\n data\n })\n}\n\n// 删除角色\nexport function delSubmitRoleApi(dataForm) {\n const delData = {\n Roleids: dataForm\n }\n return request({\n headers: {\n 'Content-Type': 'application/json'\n },\n url: 'user-service/role/removeRole',\n method: 'get',\n params: delData\n })\n}\n\n// 获取设置web角色权限的菜单信息和权限信息\nexport function getRolePermissionTree(data) {\n const resource = {\n roleId: data\n }\n return request({\n headers: {\n 'Content-Type': 'application/json'\n },\n url: 'user-service/permission/getWebRolePermissionInfoByRoleId',\n method: 'get',\n params: resource\n })\n}\n\n// 设置web角色权限\nexport function setResourceSubmitApi(dataForm) {\n const data = qs.stringify(dataForm)\n return request({\n url: 'user-service/permission/saveWebRolePermission',\n method: 'post',\n data\n })\n}\n\n// 获取设置app角色权限的菜单信息和权限信息\nexport function getAppRolePermissionTree(data) {\n const resource = {\n roleId: data\n }\n return request({\n headers: {\n 'Content-Type': 'application/json'\n },\n url: 'user-service/appPermission/getAppRolePermissionInfoByRoleId',\n method: 'get',\n params: resource\n })\n}\n\n// 设置app角色权限\nexport function setAppResourceSubmitApi(dataForm) {\n const data = qs.stringify(dataForm)\n return request({\n url: 'user-service/appPermission/saveAppRolePermission',\n method: 'post',\n data\n })\n}\n","import request from '@/utils/request'\r\n// import qs from \"qs\";\r\n\r\n/*\r\n 系统管理-用户管理 权限操作api\r\n*/\r\n\r\n\r\n// 查询用户列表\r\nexport function getUserList(data) {\r\n return request({\r\n url: 'user-service/user/getUserList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 根据userName查询用户信息\r\nexport function getUserByUserName(data) {\r\n return request({\r\n url: 'user-service/user/getUserByUserName',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 新增\r\nexport function addSubmitApi(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'user-service/user/saveSysuser',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 修改\r\nexport function editSubmitApi(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'user-service/user/updateSysuser',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 删除\r\nexport function delSubmitUserApi(data) {\r\n const delData = {\r\n userIds: data\r\n }\r\n return request({\r\n url: 'user-service/user/removeSysuser',\r\n method: 'get',\r\n params: delData\r\n })\r\n}\r\n\r\n\r\n// 获取用户操作记录\r\nexport function getOperationRecord(params) {\r\n\r\n return request({\r\n url: 'user-service/log/getLogList',\r\n method: 'get',\r\n params\r\n })\r\n}\r\n\r\n\r\n"],"sourceRoot":""} |