{"version":3,"sources":["webpack:///./src/views/manager/area.vue?7a29","webpack:///src/views/manager/area.vue","webpack:///./src/views/manager/area.vue?e98a","webpack:///./src/views/manager/area.vue","webpack:///./src/directive/permission/permission.js","webpack:///./src/directive/permission/index.js","webpack:///./src/api/area.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","deptIdList","$t","checkStrictly","emitPath","props","on","handleFilter","model","value","listQuery","callback","$$v","$set","expression","nativeOn","$event","type","indexOf","_k","keyCode","key","apply","arguments","_v","_s","clearListQuery","directives","name","rawName","handleCreate","data","children","hasChildren","handleCurrentChange","scopedSlots","_u","fn","scope","row","level","_e","handleUpdate","handleDelete","textMap","dialogStatus","addDialog","staticStyle","ref","rules","form","_l","item","label","disabled","currentRow","cityCode","slot","createData","updateData","staticRenderFns","computed","userName","$store","state","user","permission","listLoading","createStatus","deptPidBox","deptType","update","create","areaName","required","message","trigger","areaCode","center","parentName","areaId","areaPid","total","created","getList","getDeptList","methods","getAreaIdList","length","res","subList","obj","list","getAreaTreeList","filterDeptList","console","e","route","editDeptList","getAreaSubByAreaId","_parent","$nextTick","$refs","validate","valid","updateArea","title","duration","resetForm","deptPid","forEach","$notify","saveArea","then","catch","$confirm","confirmButtonText","cancelButtonText","removeArea","deptIds","val","getChange","expanded","component","inserted","el","binding","roles","store","getters","butPermission","log","Array","Error","permissionRoles","hasPermission","some","role","includes","permissionFlag","newnode","document","createElement","style","cursor","display","pointerEvents","parentNode","insertBefore","removeChild","appendChild","install","Vue","directive","window","use","request","url","method","params"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,4BAA4B,CAACF,EAAG,MAAM,CAACE,YAAY,aAAaF,EAAG,MAAM,CAACE,YAAY,oBAAoB,CAACF,EAAG,cAAc,CAACE,YAAY,cAAcC,MAAM,CAAC,mBAAkB,E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mBpE,GAC/B,OAAO6H,eAAQ,CACXC,IAAK,uCACLC,OAAQ,MACRC,OAAQhI,IAKT,SAASuF,EAAWvF,GACvB,OAAO6H,eAAQ,CACXC,IAAK,+BACLC,OAAQ,MACRC,OAAQhI,IAKT,SAASiF,EAASjF,GACrB,OAAO6H,eAAQ,CACXC,IAAK,6BACLC,OAAQ,OACR/H,SAKD,SAAS0E,EAAW1E,GACvB,OAAO6H,eAAQ,CACXC,IAAK,+BACLC,OAAQ,OACR/H","file":"js/chunk-6aaba449.89d82ba0.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container department\"},[_c('div',{staticClass:\"decorate\"}),_c('div',{staticClass:\"filter-container\"},[_c('el-cascader',{staticClass:\"filter-item\",attrs:{\"show-all-levels\":false,\"options\":_vm.deptIdList,\"placeholder\":_vm.$t('listQuery.areaId'),\"props\":{ checkStrictly: true, emitPath: false, props: {} },\"clearable\":\"\"},on:{\"change\":_vm.handleFilter},model:{value:(_vm.listQuery.areaPid),callback:function ($$v) {_vm.$set(_vm.listQuery, \"areaPid\", $$v)},expression:\"listQuery.areaPid\"}}),_c('el-input',{staticClass:\"filter-item\",attrs:{\"placeholder\":_vm.$t('area.deptName')},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.areaName),callback:function ($$v) {_vm.$set(_vm.listQuery, \"areaName\", $$v)},expression:\"listQuery.areaName\"}}),_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',{directives:[{name:\"permission\",rawName:\"v-permission\",value:(['area_add_top']),expression:\"['area_add_top']\"}],staticClass:\"btn-item\",on:{\"click\":function($event){return _vm.handleCreate(0)}}},[_vm._v(_vm._s(_vm.$t(\"menu.addToplevel\")))]),_c('span',{directives:[{name:\"permission\",rawName:\"v-permission\",value:(['area_add_child']),expression:\"['area_add_child']\"}],staticClass:\"btn-item\",on:{\"click\":function($event){return _vm.handleCreate(1)}}},[_vm._v(_vm._s(_vm.$t(\"menu.addChild\")))])])],1),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],attrs:{\"data\":_vm.data,\"row-key\":\"id\",\"max-height\":\"580\",\"default-expand-all\":\"\",\"header-row-class-name\":\"table-header\",\"row-class-name\":\"table-row\",\"highlight-current-row\":\"\",\"tree-props\":{ children: 'children', hasChildren: 'hasChildren' }},on:{\"current-change\":_vm.handleCurrentChange}},[_c('el-table-column',{attrs:{\"prop\":\"areaName\",\"align\":\"left\",\"label\":_vm.$t('area.deptName')}}),_c('el-table-column',{attrs:{\"prop\":\"areaCode\",\"align\":\"left\",\"label\":_vm.$t('area.deptCode')}}),_c('el-table-column',{attrs:{\"label\":_vm.$t('area.deptType'),\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.level === 1)?_c('span',[_vm._v(_vm._s(_vm.$t(\"area.province\")))]):_vm._e(),(scope.row.level === 2)?_c('span',[_vm._v(_vm._s(_vm.$t(\"area.city\")))]):_vm._e(),(scope.row.level === 3)?_c('span',[_vm._v(_vm._s(_vm.$t(\"area.district\")))]):_vm._e(),(scope.row.level === 4)?_c('span',[_vm._v(_vm._s(_vm.$t(\"area.street\")))]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"center\",\"align\":\"left\",\"label\":_vm.$t('area.center')}}),_c('el-table-column',{attrs:{\"label\":_vm.$t('table.operate'),\"width\":\"240\",\"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)],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,\"model\":_vm.form,\"inline\":\"\",\"label-width\":\"130px\"}},[_c('el-form-item',{attrs:{\"label\":_vm.$t('area.deptName'),\"prop\":\"areaName\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('area.deptName'),\"maxlength\":\"20\"},model:{value:(_vm.form.areaName),callback:function ($$v) {_vm.$set(_vm.form, \"areaName\", $$v)},expression:\"form.areaName\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('area.deptCode'),\"prop\":\"areaCode\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('area.deptCode')},model:{value:(_vm.form.areaCode),callback:function ($$v) {_vm.$set(_vm.form, \"areaCode\", $$v)},expression:\"form.areaCode\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('area.deptType'),\"prop\":\"level\"}},[_c('el-select',{attrs:{\"placeholder\":_vm.$t('pSelect'),\"disabled\":_vm.dialogStatus === 'update'},model:{value:(_vm.form.level),callback:function ($$v) {_vm.$set(_vm.form, \"level\", $$v)},expression:\"form.level\"}},_vm._l((_vm.deptType),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value,\"disabled\":item.disabled}})}),1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('area.cityCode'),\"prop\":\"cityCode\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('area.cityCode'),\"disabled\":_vm.currentRow && _vm.currentRow.cityCode},model:{value:(_vm.form.cityCode),callback:function ($$v) {_vm.$set(_vm.form, \"cityCode\", $$v)},expression:\"form.cityCode\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('area.center'),\"prop\":\"center\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('area.center')},model:{value:(_vm.form.center),callback:function ($$v) {_vm.$set(_vm.form, \"center\", $$v)},expression:\"form.center\"}})],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\r\n\r\n\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!./area.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!./area.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./area.vue?vue&type=template&id=20d7774d&\"\nimport script from \"./area.vue?vue&type=script&lang=js&\"\nexport * from \"./area.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 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}"],"sourceRoot":""}