\n \n \n \n \n {{cate.name}}\n \n \n \n \n \n {{resource.name}}\n \n \n \n
\n \n 保存\n 清空\n
\n\n \n\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/views/ums/role/allocResource.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',{staticClass:\"form-container\",attrs:{\"shadow\":\"never\"}},[_vm._l((_vm.allResourceCate),function(cate,index){return _c('div',{key:'cate'+cate.id,class:index===0?'top-line':null},[_c('el-row',{staticClass:\"table-layout\",staticStyle:{\"background\":\"#F2F6FC\"}},[_c('el-checkbox',{attrs:{\"indeterminate\":_vm.isIndeterminate(cate.id)},on:{\"change\":function($event){_vm.handleCheckAllChange(cate)}},model:{value:(cate.checked),callback:function ($$v) {_vm.$set(cate, \"checked\", $$v)},expression:\"cate.checked\"}},[_vm._v(\"\\n \"+_vm._s(cate.name)+\"\\n \")])],1),_vm._v(\" \"),_c('el-row',{staticClass:\"table-layout\"},_vm._l((_vm.getResourceByCate(cate.id)),function(resource){return _c('el-col',{key:resource.id,staticStyle:{\"padding\":\"4px 0\"},attrs:{\"span\":8}},[_c('el-checkbox',{on:{\"change\":function($event){_vm.handleCheckChange(resource)}},model:{value:(resource.checked),callback:function ($$v) {_vm.$set(resource, \"checked\", $$v)},expression:\"resource.checked\"}},[_vm._v(\"\\n \"+_vm._s(resource.name)+\"\\n \")])],1)}))],1)}),_vm._v(\" \"),_c('div',{staticStyle:{\"margin-top\":\"20px\"},attrs:{\"align\":\"center\"}},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.handleSave()}}},[_vm._v(\"保存\")]),_vm._v(\" \"),_c('el-button',{on:{\"click\":function($event){_vm.handleClear()}}},[_vm._v(\"清空\")])],1)],2)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-6764bba2\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/ums/role/allocResource.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6764bba2\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./allocResource.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./allocResource.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./allocResource.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6764bba2\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./allocResource.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-6764bba2\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/ums/role/allocResource.vue\n// module id = null\n// module chunks = ","import request from '@/utils/request'\n\nexport function fetchList(params) {\n return request({\n url: '/resource/list',\n method: 'get',\n params: params\n })\n}\n\nexport function createResource(data) {\n return request({\n url: '/resource/create',\n method: 'post',\n data: data\n })\n}\n\nexport function updateResource(id, data) {\n return request({\n url: '/resource/update/' + id,\n method: 'post',\n data: data\n })\n}\n\nexport function deleteResource(id) {\n return request({\n url: '/resource/delete/' + id,\n method: 'post'\n })\n}\n\nexport function fetchAllResourceList() {\n return request({\n url: '/resource/listAll',\n method: 'get'\n })\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/resource.js"],"sourceRoot":""}