{"version":3,"sources":["webpack:///./src/components/rightTab/index.vue","webpack:///src/components/rightTab/index.vue","webpack:///./src/components/rightTab/index.vue?dcf6","webpack:///./src/components/rightTab/index.vue?add3","webpack:///./src/components/rightTab/index.vue?ea09"],"names":["render","_vm","this","_c","_self","directives","name","rawName","value","show","expression","staticClass","style","left","top","attrs","on","$event","operation","_v","staticRenderFns","props","Number","menuId","String","data","menu","mounted","window","onclick","res","methods","mapActions","code","$router","go","closeAll","push","$config","HOME_PAGE","path","closeLeft","id","closeRight","closeOther","openDia","component"],"mappings":"kJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOP,EAAIQ,KAAMC,WAAW,UAAU,CAACP,EAAG,KAAK,CAACQ,YAAY,cAAcC,MAAO,CAAEC,KAAMZ,EAAIY,KAAO,KAAMC,IAAKb,EAAIa,IAAM,OAAS,CAACX,EAAG,KAAK,CAACA,EAAG,YAAY,CAACY,MAAM,CAAC,KAAO,OAAO,KAAO,QAAQC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOhB,EAAIiB,UAAU,QAAQ,CAACjB,EAAIkB,GAAG,WAAW,GAAGhB,EAAG,KAAK,CAACA,EAAG,YAAY,CAACY,MAAM,CAAC,KAAO,OAAO,KAAO,QAAQC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOhB,EAAIiB,UAAU,QAAQ,CAACjB,EAAIkB,GAAG,WAAW,GAAGhB,EAAG,KAAK,CAACA,EAAG,YAAY,CAACY,MAAM,CAAC,KAAO,OAAO,KAAO,QAAQC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOhB,EAAIiB,UAAU,QAAQ,CAACjB,EAAIkB,GAAG,WAAW,GAAGhB,EAAG,KAAK,CAACA,EAAG,YAAY,CAACY,MAAM,CAAC,KAAO,OAAO,KAAO,QAAQC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOhB,EAAIiB,UAAU,QAAQ,CAACjB,EAAIkB,GAAG,WAAW,GAAGhB,EAAG,KAAK,CAACA,EAAG,YAAY,CAACY,MAAM,CAAC,KAAO,OAAO,KAAO,QAAQC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOhB,EAAIiB,UAAU,QAAQ,CAACjB,EAAIkB,GAAG,WAAW,QAEp7BC,EAAkB,G,wBCuBtB,GACAd,KAAA,QACAe,MAAA,CACAR,KAAAS,OACAR,IAAAQ,OAEAC,OAAAC,QAEAC,OACA,OAEAhB,MAAA,EAEAiB,KAAA,OAGAC,UACAC,OAAAC,QAAAC,IACA,KAAArB,MAAA,IAIAsB,QAAA,IACAC,eAAA,oDAGAd,UAAAe,GACA,OAAAA,GACA,QACA,KAAAC,QAAAC,GAAA,GACA,MACA,QACA,KAAAC,WAEA,KAAAF,QAAAG,KAAA,KAAAC,QAAAC,UAAAC,MACA,MACA,QACA,KAAAC,UAAA,KAAAf,KAAAgB,IACA,MACA,QACA,KAAAC,WAAA,KAAAjB,KAAAgB,IACA,MACA,QACA,KAAAE,WAAA,KAAAlB,KAAAgB,IACA,QAQAG,QAAAnB,GACA,KAAAjB,MAAA,EACA,KAAAiB,UC/E6V,I,wBCQzVoB,EAAY,eACd,EACA9C,EACAoB,GACA,EACA,KACA,WACA,MAIa,aAAA0B,E,2CCnBf","file":"js/chunk-497b0802.340aa6393652ec197857.js?t=1793758232700","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.show),expression:\"show\"}]},[_c('ul',{staticClass:\"contextmenu\",style:({ left: _vm.left + 'px', top: _vm.top + 'px' })},[_c('li',[_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.operation('1')}}},[_vm._v(\"重新加载\")])],1),_c('li',[_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.operation('2')}}},[_vm._v(\"关闭所有\")])],1),_c('li',[_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.operation('3')}}},[_vm._v(\"关闭左边\")])],1),_c('li',[_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.operation('4')}}},[_vm._v(\"关闭右边\")])],1),_c('li',[_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.operation('5')}}},[_vm._v(\"关闭其他\")])],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <!--右键tab页组件-->\n  <div v-show=\"show\">\n    <ul :style=\"{ left: left + 'px', top: top + 'px' }\" class=\"contextmenu\">\n      <li>\n        <el-button type=\"text\" size=\"mini\" @click=\"operation('1')\">重新加载</el-button>\n      </li>\n      <li>\n        <el-button type=\"text\" size=\"mini\" @click=\"operation('2')\">关闭所有</el-button>\n      </li>\n      <li>\n        <el-button type=\"text\" size=\"mini\" @click=\"operation('3')\">关闭左边</el-button>\n      </li>\n      <li>\n        <el-button type=\"text\" size=\"mini\" @click=\"operation('4')\">关闭右边</el-button>\n      </li>\n      <li>\n        <el-button type=\"text\" size=\"mini\" @click=\"operation('5')\">关闭其他</el-button>\n      </li>\n    </ul>\n  </div>\n</template>\n\n<script>\n  import { mapActions } from 'vuex';\n  export default {\n    name: 'index',\n    props: {\n      left: Number,\n      top: Number,\n      //当前选中的菜单\n      menuId: String\n    },\n    data() {\n      return {\n        //显示标识\n        show: false,\n        //当前选中的菜单\n        menu: null\n      };\n    },\n    mounted() {\n      window.onclick = res => {\n        this.show = false;\n      };\n    },\n\n    methods: {\n      ...mapActions(['closeAll', 'closeLeft', 'closeRight', 'closeOther']),\n\n      //操作\n      operation(code) {\n        switch (code) {\n          case '1': //重新加载\n            this.$router.go(0);\n            break;\n          case '2': //关闭所有\n            this.closeAll();\n            //切换到sy\n            this.$router.push(this.$config.HOME_PAGE.path);\n            break;\n          case '3': //关闭左边\n            this.closeLeft(this.menu.id);\n            break;\n          case '4': //关闭右边\n            this.closeRight(this.menu.id);\n            break;\n          case '5': //关闭其他\n            this.closeOther(this.menu.id);\n            break;\n        }\n      },\n\n      /**\n       * 打开当前弹框\n       * @param menu\n       */\n      openDia(menu) {\n        this.show = true;\n        this.menu = menu;\n      }\n    }\n  };\n</script>\n\n<style scoped>\n  .contextmenu {\n    width: 100px;\n    margin: 0;\n    border: 1px solid #ccc;\n    background: #fff;\n    z-index: 3000;\n    position: absolute;\n    list-style-type: none;\n    padding: 5px 0;\n    border-radius: 4px;\n    font-size: 14px;\n    color: #333;\n    box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.2);\n  }\n\n  .contextmenu li {\n    margin: 0;\n    padding: 0px 22px;\n  }\n\n  .contextmenu li:hover {\n    background: #f2f2f2;\n    cursor: pointer;\n  }\n\n  .contextmenu li button {\n    color: #2c3e50;\n  }\n</style>\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=518c5b9b&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=518c5b9b&prod&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  \"518c5b9b\",\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!./index.vue?vue&type=style&index=0&id=518c5b9b&prod&scoped=true&lang=css\""],"sourceRoot":""}