EMS2.0-Documents/7.部署文档/Linux安装/项目前端文件/IEMS/js/chunk-4e877659.8488e3e2.js.map

1 line
41 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/views/manager/menu.vue?c409","webpack:///src/views/manager/menu.vue","webpack:///./src/views/manager/menu.vue?3f1b","webpack:///./src/views/manager/menu.vue","webpack:///./src/views/manager/AppMenu.vue?4f61","webpack:///src/views/manager/AppMenu.vue","webpack:///./src/views/manager/AppMenu.vue?c707","webpack:///./src/views/manager/AppMenu.vue?cba8","webpack:///./src/views/manager/AppMenu.vue?064f"],"names":["render","_vm","this","_h","$createElement","_c","_self","value","staticClass","attrs","$t","model","callback","$$v","expression","_l","item","key","label","staticRenderFns","name","components","WebMenu","AppMenu","data","options","component","_t","on","$event","handleCreate","_v","_s","directives","rawName","children","hasChildren","handleCurrentChange","scopedSlots","_u","fn","scope","row","permissionType","_e","class","red","alwaysShow","_f","that","noCache","handleUpdate","handleDelete","textMap","dialogStatus","addDialog","staticStyle","ref","rules","form","$set","slot","createData","updateData","permission","filters","showStatusFilter","status","cacheStatusFilter","listLoading","createStatus","permissionPidBox","alwaysShowBox","noCacheBox","permissionTypeBox","update","create","title","required","message","trigger","permissionName","buttonCode","icon","path","titleCh","permissionId","permissionPid","currentRow","created","getList","methods","console","getAppMenuList","$nextTick","$refs","validate","valid","editAppSubmitApi","res","type","duration","resetForm","$notify","addAppSubmitApi","then","catch","$confirm","confirmButtonText","cancelButtonText","delAppSubmitApi","val"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,MAAsB,QAAdF,EAAIM,MAAiBF,EAAG,WAAW,CAACA,EAAG,YAAY,CAACG,YAAY,cAAcC,MAAM,CAAC,YAAcR,EAAIS,GAAG,YAAYC,MAAM,CAACJ,MAAON,EAAS,MAAEW,SAAS,SAAUC,GAAMZ,EAAIM,MAAMM,GAAKC,WAAW,UAAUb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G,KAAKqD,WAAY,EACjBrD,KAAKoD,aAAe,SACpBpD,KAAKyD,KAAK4B,cAAgB,EAC1BrF,KAAK4F,WAAU,WACb,EAAZ,kCAGU5F,KAAKqG,QAAQ,CACX1B,MAAOA,KAAKA,GAAGA,kBACfE,QAASA,KAAKA,GAAGA,iBACjBqB,KAAMA,UACNC,SAAUA,OAKlBvC,WA3FJ,WA2FA,WACU5D,KAAKoE,cAGTpE,KAAK6F,MAAMpC,KAAKqC,UAAS,SAA/B,GACYC,IACF,EAAV,gBACA,IAAc,EAAd,mBACY,EAAZ,qBAEY,EAAZ,6CAEUO,eAAgBA,EAADA,MACzBC,MAAA,YACA,gBACc,EAAd,gBACc,EAAd,SACgB5B,MAAhBA,sBACgBE,QAAhBA,2CACgBqB,KAAhBA,UACgBC,SAAhBA,MAEc,EAAd,gBACc,EAAd,UACc,EAAd,iBAGAK,OAAA,WACY,EAAZ,wBAKItD,aA5HJ,SA4HAX,GAAA,WACMvC,KAAKyG,SAASzG,KAAKQ,GAAG,qBAAsBR,KAAKQ,GAAG,kBAAmB,CACrEkG,kBAAmBA,KAAKA,GAAGA,gBAC3BC,iBAAkBA,KAAKA,GAAGA,gBAC1BT,KAAMA,YACdK,MAAA,WACQK,eAAgBA,EAAMA,IAAIA,cAAcA,MAAKA,SAA9BA,GACK,KAAdX,EAAIhC,SACN,EAAZ,UACY,EAAZ,SACcU,MAAOA,EAArBA,oBACcE,QAASA,EAAvBA,0BACcqB,KAAMA,UACNC,SAAUA,cAMpBhE,oBA/IJ,SA+IA0E,GACMnB,QAAQA,IAAIA,GAEV1F,KAAKsF,WADHuB,GAGgB,QC/dsU,I,wBCQ5VrF,EAAY,eACd,EACA1B,EACAmB,GACA,EACA,KACA,WACA,MAIa,aAAAO,E,2CCnBf,W","file":"js/chunk-4e877659.8488e3e2.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.value === 'web')?_c('web-menu',[_c('el-select',{staticClass:\"filter-item\",attrs:{\"placeholder\":_vm.$t('pSelect')},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1):_c('app-menu',[_c('el-select',{staticClass:\"filter-item\",attrs:{\"placeholder\":_vm.$t('pSelect')},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <web-menu v-if=\"value === 'web'\">\r\n <el-select v-model=\"value\" :placeholder=\"$t('pSelect')\" class=\"filter-item\">\r\n <el-option\r\n v-for=\"item in options\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n ></el-option>\r\n </el-select>\r\n </web-menu>\r\n <app-menu v-else>\r\n <el-select v-model=\"value\" :placeholder=\"$t('pSelect')\" class=\"filter-item\">\r\n <el-option\r\n v-for=\"item in options\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n ></el-option>\r\n </el-select>\r\n </app-menu>\r\n</template>\r\n\r\n<script>\r\nimport WebMenu from './WebMenu'\r\nimport AppMenu from './AppMenu'\r\n\r\nexport default {\r\n name: 'Menu',\r\n components: {\r\n WebMenu,\r\n AppMenu\r\n },\r\n\r\n data() {\r\n return {\r\n options: [\r\n {\r\n value: 'web',\r\n label: 'web菜单管理'\r\n },\r\n {\r\n value: 'app',\r\n label: 'app菜单管理'\r\n }\r\n ],\r\n value: 'web'\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!./menu.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!./menu.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./menu.vue?vue&type=template&id=f3b7dc20&\"\nimport script from \"./menu.vue?vue&type=script&lang=js&\"\nexport * from \"./menu.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","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\"},[_vm._t(\"default\"),_c('div',{staticClass:\"btn-box\"},[_c('span',{staticClass:\"btn-item long\",on:{\"click\":function($event){return _vm.handleCreate(0)}}},[_c('i',{staticClass:\"iconfont icon-a-\"}),_vm._v(_vm._s(_vm.$t('menu.addToplevel')))]),_c('span',{staticClass:\"btn-item long\",on:{\"click\":function($event){return _vm.handleCreate(1)}}},[_c('i',{staticClass:\"iconfont icon-a-\"}),_vm._v(_vm._s(_vm.$t('menu.addChild')))])])],2),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],attrs:{\"default-expand-all\":false,\"data\":_vm.data,\"row-key\":\"permissionId\",\"max-height\":\"680\",\"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\":\"permissionName\",\"align\":\"left\",\"label\":_vm.$t('menu.permissionName')}}),_c('el-table-column',{attrs:{\"label\":_vm.$t('menu.permissionType'),\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [(scope.row.permissionType === 0)?_c('span',[_vm._v(_vm._s(_vm.$t('permissionType.list')))]):_vm._e(),(scope.row.permissionType === 1)?_c('span',[_vm._v(_vm._s(_vm.$t('permissionType.menu')))]):_vm._e(),(scope.row.permissionType === 2)?_c('span',[_vm._v(_vm._s(_vm.$t('permissionType.button')))]):_vm._e(),(scope.row.permissionType === 3)?_c('span',[_vm._v(_vm._s(_vm.$t('permissionType.joggle')))]):_vm._e()]}}])}),_c('el-table-column',{attrs:{\"prop\":\"title\",\"align\":\"left\",\"label\":_vm.$t('menu.permissionNameEn')}}),_c('el-table-column',{attrs:{\"prop\":\"path\",\"align\":\"left\",\"label\":_vm.$t('menu.path')}}),_c('el-table-column',{attrs:{\"prop\":\"component\",\"align\":\"left\",\"label\":_vm.$t('menu.component')}}),_c('el-table-column',{attrs:{\"prop\":\"icon\",\"align\":\"left\",\"label\":_vm.$t('menu.icon'),\"width\":\"120\"}}),_c('el-table-column',{attrs:{\"prop\":\"buttonCode\",\"align\":\"left\",\"label\":_vm.$t('menu.buttonCode')}}),_c('el-table-column',{attrs:{\"prop\":\"\",\"label\":_vm.$t('menu.alwaysShow'),\"align\":\"center\",\"width\":\"100\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{staticClass:\"btn\",class:{ red: scope.row.alwaysShow !== 1 }},[_vm._v(\" \"+_vm._s(_vm._f(\"showStatusFilter\")(scope.row.alwaysShow,_vm.that)))])]}}])}),_c('el-table-column',{attrs:{\"prop\":\"\",\"label\":_vm.$t('menu.noCache'),\"align\":\"center\",\"width\":\"100\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{staticClass:\"btn\",class:{ red: scope.row.noCache !== 1 }},[_vm._v(_vm._s(_vm._f(\"cacheStatusFilter\")(scope.row.noCache,_vm.that)))])]}}])}),_c('el-table-column',{attrs:{\"align\":\"center\",\"width\":\"230\",\"label\":_vm.$t('table.operate')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{staticClass:\"btnCancel\",attrs:{\"title\":_vm.$t('table.operate')},on:{\"click\":function($event){return _vm.handleUpdate(scope)}}},[_c('i',{staticClass:\"iconfont icon-bianji\"}),_vm._v(_vm._s(_vm.$t('table.operate')))]),_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],\"top\":\"10vh\",\"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\",staticStyle:{\"margin-left\":\"30px\"},attrs:{\"rules\":_vm.rules,\"model\":_vm.form,\"inline\":\"\",\"label-width\":\"140px\"}},[(_vm.dialogStatus === 'create')?_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.route')}},[_c('el-select',{attrs:{\"disabled\":\"\",\"placeholder\":_vm.$t('pSelect')},model:{value:(_vm.form.permissionPid),callback:function ($$v) {_vm.$set(_vm.form, \"permissionPid\", $$v)},expression:\"form.permissionPid\"}},_vm._l((_vm.permissionPidBox),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1):_vm._e(),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.alwaysShow')}},[_c('el-select',{attrs:{\"placeholder\":_vm.$t('pSelect')},model:{value:(_vm.form.alwaysShow),callback:function ($$v) {_vm.$set(_vm.form, \"alwaysShow\", $$v)},expression:\"form.alwaysShow\"}},_vm._l((_vm.alwaysShowBox),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.code')}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('menu.code')},model:{value:(_vm.form.buttonCode),callback:function ($$v) {_vm.$set(_vm.form, \"buttonCode\", $$v)},expression:\"form.buttonCode\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.component')}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('menu.component')},model:{value:(_vm.form.component),callback:function ($$v) {_vm.$set(_vm.form, \"component\", $$v)},expression:\"form.component\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.icon')}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('menu.icon')},model:{value:(_vm.form.icon),callback:function ($$v) {_vm.$set(_vm.form, \"icon\", $$v)},expression:\"form.icon\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.noCache')}},[_c('el-select',{attrs:{\"placeholder\":_vm.$t('pSelect')},model:{value:(_vm.form.noCache),callback:function ($$v) {_vm.$set(_vm.form, \"noCache\", $$v)},expression:\"form.noCache\"}},_vm._l((_vm.noCacheBox),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.path')}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('menu.path')},model:{value:(_vm.form.path),callback:function ($$v) {_vm.$set(_vm.form, \"path\", $$v)},expression:\"form.path\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.permissionType')}},[_c('el-select',{attrs:{\"placeholder\":_vm.$t('pSelect')},model:{value:(_vm.form.permissionType),callback:function ($$v) {_vm.$set(_vm.form, \"permissionType\", $$v)},expression:\"form.permissionType\"}},_vm._l((_vm.permissionTypeBox),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.permissionNameEn'),\"prop\":\"title\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('menu.permissionNameEn')},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('menu.permissionName'),\"prop\":\"permissionName\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('menu.permissionName')},model:{value:(_vm.form.permissionName),callback:function ($$v) {_vm.$set(_vm.form, \"permissionName\", $$v)},expression:\"form.permissionName\"}})],1)],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('span',{staticClass:\"btn-item\",on:{\"click\":function($event){_vm.addDialog = false}}},[_vm._v(_vm._s(_vm.$t('btn.cancel')))]),_c('span',{staticClass:\"btn-item\",on:{\"click\":function($event){_vm.dialogStatus === 'create' ? _vm.createData() : _vm.updateData()}}},[_vm._v(_vm._s(_vm.$t('btn.save')))])])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"app-container\">\r\n <div class=\"decorate\"></div>\r\n <div class=\"filter-container\">\r\n <slot></slot>\r\n <div class=\"btn-box\">\r\n <span class=\"btn-item long\" @click=\"handleCreate(0)\"\r\n ><i class=\"iconfont icon-a-\"></i>{{ $t('menu.addToplevel') }}</span\r\n >\r\n <span class=\"btn-item long\" @click=\"handleCreate(1)\"\r\n ><i class=\"iconfont icon-a-\"></i>{{ $t('menu.addChild') }}</span\r\n >\r\n </div>\r\n </div>\r\n\r\n <div class=\"table-container\">\r\n <el-table\r\n v-loading=\"listLoading\"\r\n :default-expand-all=\"false\"\r\n :data=\"data\"\r\n row-key=\"permissionId\"\r\n max-height=\"680\"\r\n header-row-class-name=\"table-header\"\r\n row-class-name=\"table-row\"\r\n highlight-current-row\r\n @current-change=\"handleCurrentChange\"\r\n :tree-props=\"{ children: 'children', hasChildren: 'hasChildren' }\"\r\n >\r\n <el-table-column\r\n prop=\"permissionName\"\r\n align=\"left\"\r\n :label=\"$t('menu.permissionName')\"\r\n />\r\n <el-table-column :label=\"$t('menu.permissionType')\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <span v-if=\"scope.row.permissionType === 0\">{{\r\n $t('permissionType.list')\r\n }}</span>\r\n <span v-if=\"scope.row.permissionType === 1\">{{\r\n $t('permissionType.menu')\r\n }}</span>\r\n <span v-if=\"scope.row.permissionType === 2\">{{\r\n $t('permissionType.button')\r\n }}</span>\r\n <span v-if=\"scope.row.permissionType === 3\">{{\r\n $t('permissionType.joggle')\r\n }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n prop=\"title\"\r\n align=\"left\"\r\n :label=\"$t('menu.permissionNameEn')\"\r\n />\r\n <el-table-column prop=\"path\" align=\"left\" :label=\"$t('menu.path')\" />\r\n <el-table-column\r\n prop=\"component\"\r\n align=\"left\"\r\n :label=\"$t('menu.component')\"\r\n />\r\n <el-table-column\r\n prop=\"icon\"\r\n align=\"left\"\r\n :label=\"$t('menu.icon')\"\r\n width=\"120\"\r\n />\r\n <el-table-column\r\n prop=\"buttonCode\"\r\n align=\"left\"\r\n :label=\"$t('menu.buttonCode')\"\r\n />\r\n <el-table-column\r\n prop\r\n :label=\"$t('menu.alwaysShow')\"\r\n align=\"center\"\r\n width=\"100\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span class=\"btn\" :class=\"{ red: scope.row.alwaysShow !== 1 }\">\r\n {{ scope.row.alwaysShow | showStatusFilter(that) }}</span\r\n >\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n prop\r\n :label=\"$t('menu.noCache')\"\r\n align=\"center\"\r\n width=\"100\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span class=\"btn\" :class=\"{ red: scope.row.noCache !== 1 }\">{{\r\n scope.row.noCache | cacheStatusFilter(that)\r\n }}</span>\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n align=\"center\"\r\n width=\"230\"\r\n :label=\"$t('table.operate')\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"handleUpdate(scope)\"\r\n :title=\"$t('table.operate')\"\r\n ><i class=\"iconfont icon-bianji\" />{{ $t('table.operate') }}</span\r\n >\r\n <span\r\n class=\"btnCancel delete\"\r\n @click=\"handleDelete(scope)\"\r\n :title=\"$t('table.delete')\"\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 </div>\r\n <el-dialog\r\n :close-on-click-modal=\"false\"\r\n :title=\"textMap[dialogStatus]\"\r\n top=\"10vh\"\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 :model=\"form\"\r\n inline\r\n label-width=\"140px\"\r\n style=\"margin-left: 30px\"\r\n >\r\n <el-form-item\r\n v-if=\"dialogStatus === 'create'\"\r\n :label=\"$t('menu.route')\"\r\n >\r\n <el-select\r\n v-model=\"form.permissionPid\"\r\n disabled\r\n :placeholder=\"$t('pSelect')\"\r\n >\r\n <el-option\r\n v-for=\"item in permissionPidBox\"\r\n :key=\"item.value\"\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('menu.alwaysShow')\">\r\n <el-select v-model=\"form.alwaysShow\" :placeholder=\"$t('pSelect')\">\r\n <el-option\r\n v-for=\"item in alwaysShowBox\"\r\n :key=\"item.value\"\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('menu.code')\">\r\n <el-input\r\n v-model=\"form.buttonCode\"\r\n :placeholder=\"$t('pEnter') + $t('menu.code')\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('menu.component')\">\r\n <el-input\r\n v-model=\"form.component\"\r\n :placeholder=\"$t('pEnter') + $t('menu.component')\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('menu.icon')\">\r\n <el-input\r\n v-model=\"form.icon\"\r\n :placeholder=\"$t('pEnter') + $t('menu.icon')\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('menu.noCache')\">\r\n <el-select v-model=\"form.noCache\" :placeholder=\"$t('pSelect')\">\r\n <el-option\r\n v-for=\"item in noCacheBox\"\r\n :key=\"item.value\"\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('menu.path')\">\r\n <el-input\r\n v-model=\"form.path\"\r\n :placeholder=\"$t('pEnter') + $t('menu.path')\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('menu.permissionType')\">\r\n <el-select\r\n v-model=\"form.permissionType\"\r\n :placeholder=\"$t('pSelect')\"\r\n >\r\n <el-option\r\n v-for=\"item in permissionTypeBox\"\r\n :key=\"item.value\"\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('menu.permissionNameEn')\" prop=\"title\">\r\n <el-input\r\n v-model=\"form.title\"\r\n :placeholder=\"$t('pEnter') + $t('menu.permissionNameEn')\"\r\n />\r\n </el-form-item>\r\n <el-form-item\r\n :label=\"$t('menu.permissionName')\"\r\n prop=\"permissionName\"\r\n >\r\n <el-input\r\n v-model=\"form.permissionName\"\r\n :placeholder=\"$t('pEnter') + $t('menu.permissionName')\"\r\n />\r\n </el-form-item>\r\n </el-form>\r\n </el-scrollbar>\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <span class=\"btn-item\" @click=\"addDialog = false\">{{\r\n $t('btn.cancel')\r\n }}</span>\r\n <span\r\n class=\"btn-item\"\r\n @click=\"dialogStatus === 'create' ? createData() : updateData()\"\r\n >{{ $t('btn.save') }}</span\r\n >\r\n </span>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport {\r\n getAppMenuList,\r\n editAppSubmitApi,\r\n addAppSubmitApi,\r\n delAppSubmitApi\r\n} from '@/api/menu'\r\nimport permission from '@/directive/permission/index.js' // 权限判断指令\r\n\r\nexport default {\r\n // name: 'ComplexTable',\r\n directives: { permission },\r\n filters: {\r\n showStatusFilter(status, that) {\r\n if (status === 0) {\r\n return that.$t('type.no')\r\n } else {\r\n return that.$t('type.yes')\r\n }\r\n },\r\n cacheStatusFilter(status, that) {\r\n if (status === 0) {\r\n return that.$t('type.noCache')\r\n } else {\r\n return that.$t('type.cache')\r\n }\r\n }\r\n },\r\n data() {\r\n return {\r\n that: this,\r\n listLoading: false,\r\n createStatus: false,\r\n permissionPidBox: [\r\n { value: 1, label: this.$t('type.fu') },\r\n { value: 0, label: this.$t('type.zi') }\r\n ],\r\n alwaysShowBox: [\r\n { value: 1, label: this.$t('type.yes') },\r\n { value: 0, label: this.$t('type.no') }\r\n ],\r\n noCacheBox: [\r\n { value: 1, label: this.$t('type.cache') },\r\n { value: 0, label: this.$t('type.noCache') }\r\n ],\r\n permissionTypeBox: [\r\n { value: 0, label: this.$t('permissionType.list') },\r\n { value: 1, label: this.$t('permissionType.menu') },\r\n { value: 2, label: this.$t('permissionType.button') },\r\n { value: 3, label: this.$t('permissionType.joggle') }\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 rules: {\r\n title: [\r\n {\r\n required: true,\r\n message: this.$t('pEnter') + this.$t('menu.nameKey'),\r\n trigger: 'blur'\r\n }\r\n ],\r\n permissionName: [\r\n {\r\n required: true,\r\n message: this.$t('pEnter') + this.$t('menu.permissionName'),\r\n trigger: 'blur'\r\n }\r\n ]\r\n },\r\n form: {\r\n alwaysShow: '',\r\n buttonCode: '',\r\n component: '',\r\n icon: '',\r\n noCache: '',\r\n path: '',\r\n permissionType: '',\r\n title: '',\r\n titleCh: '',\r\n permissionId: '',\r\n permissionName: '',\r\n permissionPid: ''\r\n },\r\n addDialog: false,\r\n currentRow: null,\r\n data: []\r\n }\r\n },\r\n created() {\r\n this.getList()\r\n },\r\n methods: {\r\n getList() {\r\n this.listLoading = true\r\n console.log('????')\r\n getAppMenuList().then((response) => {\r\n this.listLoading = false\r\n this.data = response.data\r\n console.log(response)\r\n })\r\n },\r\n handleUpdate(scope) {\r\n // this.form = Object.assign({}, scope.row) // 复制对象\r\n this.form = {\r\n alwaysShow: scope.row.alwaysShow,\r\n buttonCode: scope.row.buttonCode,\r\n component: scope.row.component,\r\n icon: scope.row.icon,\r\n noCache: scope.row.noCache,\r\n path: scope.row.path,\r\n permissionType: scope.row.permissionType,\r\n title: scope.row.title,\r\n titleCh: scope.row.titleCh,\r\n permissionId: scope.row.permissionId,\r\n permissionName: scope.row.permissionName,\r\n permissionPid: scope.row.permissionPid\r\n }\r\n this.dialogStatus = 'update'\r\n this.addDialog = true\r\n this.$nextTick(() => {\r\n this.$refs['form'].clearValidate()\r\n })\r\n },\r\n updateData() {\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n editAppSubmitApi(this.form).then((res) => {\r\n if (res.status == 200) {\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\r\n this.getList()\r\n this.addDialog = false\r\n }\r\n })\r\n }\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 this.form.alwaysShow = 0\r\n this.form.noCache = 1\r\n this.form.permissionType = 0\r\n this.form.permissionPid = 0\r\n },\r\n handleCreate(type) {\r\n if (type === 0) {\r\n // 新增顶级\r\n this.resetForm()\r\n this.addDialog = true\r\n this.dialogStatus = 'create'\r\n this.form.permissionPid = 1\r\n this.$nextTick(() => {\r\n this.$refs['form'].clearValidate()\r\n })\r\n } else {\r\n // 新增子级\r\n if (this.currentRow) {\r\n this.resetForm()\r\n this.addDialog = true\r\n this.dialogStatus = 'create'\r\n this.form.permissionPid = 0\r\n this.$nextTick(() => {\r\n this.$refs['form'].clearValidate()\r\n })\r\n } else {\r\n this.$notify({\r\n title: this.$t('title.pointOut'),\r\n message: this.$t('title.oneData'),\r\n type: 'warning',\r\n duration: 3000\r\n })\r\n }\r\n }\r\n },\r\n createData() {\r\n if (this.createStatus) {\r\n return\r\n }\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n this.createStatus = true\r\n if (this.form.permissionPid === 1) {\r\n this.form.permissionPid = 0\r\n } else {\r\n this.form.permissionPid = this.currentRow.permissionId\r\n }\r\n addAppSubmitApi(this.form)\r\n .then((res) => {\r\n if (res.status == 200) {\r\n this.createStatus = false\r\n this.$notify({\r\n title: this.$t('title.success'),\r\n message: this.$t('table.create') + this.$t('title.success'),\r\n type: 'success',\r\n duration: 3000\r\n })\r\n this.currentRow = null\r\n this.getList()\r\n this.addDialog = false\r\n }\r\n })\r\n .catch(() => {\r\n this.createStatus = false\r\n })\r\n }\r\n })\r\n },\r\n handleDelete(scope) {\r\n this.$confirm(this.$t('title.delPointOut'), this.$t('title.pointOut'), {\r\n confirmButtonText: this.$t('title.delete'),\r\n cancelButtonText: this.$t('title.cancel'),\r\n type: 'warning'\r\n }).then(() => {\r\n delAppSubmitApi(scope.row.permissionId).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 handleCurrentChange(val) {\r\n console.log(val)\r\n if (val) {\r\n this.currentRow = val\r\n } else {\r\n this.currentRow = null\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n<style scoped>\r\n.selectSvg {\r\n margin-right: 6px;\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!./AppMenu.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!./AppMenu.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AppMenu.vue?vue&type=template&id=f7da74f0&scoped=true&\"\nimport script from \"./AppMenu.vue?vue&type=script&lang=js&\"\nexport * from \"./AppMenu.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AppMenu.vue?vue&type=style&index=0&id=f7da74f0&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 \"f7da74f0\",\n null\n \n)\n\nexport default component.exports","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!./AppMenu.vue?vue&type=style&index=0&id=f7da74f0&scoped=true&lang=css&\""],"sourceRoot":""}