{"version":3,"sources":["webpack:///./src/views/apps/vet-med/landing/help.vue","webpack:///src/views/apps/vet-med/landing/help.vue","webpack:///./src/views/apps/vet-med/landing/help.vue?4fc6","webpack:///./src/views/apps/vet-med/landing/help.vue?4ead","webpack:///./src/views/apps/vet-med/landing/help.vue?8ff7"],"names":["render","_vm","this","_c","_self","staticClass","_m","attrs","_v","staticStyle","key","allKey","_l","help_category","c","i","class","show","help_category_active","id","active","on","$event","loadCategory","_s","title","tasks_cur","t","ti","taskCur","loadTask","task","domProps","taskDescEn","taskDesc","staticRenderFns","_","require","components","vueCustomScrollbar","data","params","cid","iod","tasks_all","mounted","$route","loadTasks","methods","_objectSpread","mapActions","initNewsCategory","_this","request","api","method","url","parentId","store","$store","then","res","handleLoading","isLoading","types","length","_cid","parseInt","_this2","ot","skip","size","projectId","model","isPublic","orderBy","tasks","force","_this3","filter","x","locTypeId","$nextTick","undefined","_id","_this4","$router","push","name","component"],"mappings":"gJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,SAAS,CAACE,YAAY,4CAA4C,CAACJ,EAAIK,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,IAAI,CAACE,YAAY,cAAcE,MAAM,CAAC,KAAO,4BAA4B,OAAS,WAAW,CAACJ,EAAG,UAAU,CAACI,MAAM,CAAC,KAAO,YAAYJ,EAAG,OAAO,CAACF,EAAIO,GAAG,sBAAsB,OAAOL,EAAG,uBAAuB,CAACE,YAAY,2CAA2CI,YAAY,CAAC,OAAS,sBAAsB,MAAQ,OAAOF,MAAM,CAAC,GAAK,gBAAgB,CAACJ,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,IAAI,CAACI,MAAM,CAAC,KAAO,GAAG,GAAK,iBAAiB,CAACJ,EAAG,UAAU,CAACI,MAAM,CAAC,KAAO,WAAW,GAAGJ,EAAG,KAAK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ACAuC,MAAA,KAAAC,SACAC,MAAA,SAAAC,GACA,GAAAA,IACAwB,EAAAxD,QAAAgC,EAAArB,KAAAT,aCpN0X,I,wBCQtX0D,EAAY,eACd,EACAzF,EACAmC,GACA,EACA,KACA,KACA,MAIa,aAAAsD,E,2CCnBf,W","file":"js/chunk-f0e58e12.40b3cd23.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('header',{staticClass:\"navbar navbar-header navbar-header-fixed\"},[_vm._m(0),_c('div',{staticClass:\"navbar-right\"},[_c('a',{staticClass:\"btn btn-buy\",attrs:{\"href\":\"http://vetdrug.mn/#/login\",\"target\":\"_blank\"}},[_c('feather',{attrs:{\"type\":\"log-in\"}}),_c('span',[_vm._v(\"СиÑтемд нÑвтрÑÑ…\")])],1)])]),_c('vue-custom-scrollbar',{staticClass:\"sidebar sidebar-fixed sidebar-components\",staticStyle:{\"height\":\"calc(100vh - 109px)\",\"width\":\"20%\"},attrs:{\"id\":\"sidebarMenu\"}},[_c('div',{staticClass:\"sidebar-header\"},[_c('a',{attrs:{\"href\":\"\",\"id\":\"mainMenuOpen\"}},[_c('feather',{attrs:{\"type\":\"menu\"}})],1),_c('h5',[_vm._v(\"Components\")]),_c('a',{attrs:{\"href\":\"\",\"id\":\"sidebarMenuClose\"}},[_c('feather',{attrs:{\"type\":\"x\"}})],1)]),_c('div',{staticClass:\"sidebar-body\"},[_c('ul',{key:_vm.allKey,staticClass:\"sidebar-nav\"},[_c('li',{staticClass:\"nav-label mg-b-15\"},[_vm._v(\"ҮндÑÑн цÑÑ\")]),_vm._l((_vm.help_category),function(c,i){return _c('li',{key:i,staticClass:\"nav-item\",class:{ show: _vm.help_category_active == c.id }},[_c('a',{staticClass:\"nav-link with-sub\",class:{ active: _vm.help_category_active == c.id },attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.loadCategory(c.id, true)}}},[_c('feather',{attrs:{\"type\":\"layers\"}}),_vm._v(\" \"+_vm._s(c.title)+\" \")],1),_c('nav',{staticClass:\"nav\"},_vm._l((_vm.tasks_cur),function(t,ti){return _c('a',{key:ti,class:{ active: _vm.taskCur.id == t.id },attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.loadTask(t.id)}}},[_vm._v(_vm._s(t.task))])}),0)])})],2)])]),_c('div',{staticClass:\"section-nav vid-here\",staticStyle:{\"width\":\"30%\",\"padding\":\"20px\"}},[_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.taskCur.taskDescEn)}})]),_c('div',{staticClass:\"content content-components\",staticStyle:{\"margin-left\":\"20%\",\"margin-right\":\"30%\"}},[_c('div',{staticClass:\"container\",staticStyle:{\"min-height\":\"calc(100vh - 200px)\"}},[_c('h1',{staticClass:\"df-title\"},[_vm._v(_vm._s(_vm.taskCur.task))]),_c('div',{staticClass:\"help-desk\",domProps:{\"innerHTML\":_vm._s(_vm.taskCur.taskDesc)}})])])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"navbar-brand\"},[_c('a',{staticClass:\"df-logo\",attrs:{\"href\":\"/\"}},[_vm._v(\"Гарын\"),_c('span',[_vm._v(\"авлага\")])])])\n}]\n\nexport { render, staticRenderFns }","<template>\n <div>\n <header class=\"navbar navbar-header navbar-header-fixed\">\n <div class=\"navbar-brand\">\n <a href=\"/\" class=\"df-logo\">Гарын<span>авлага</span></a>\n </div>\n <!-- navbar-brand -->\n <div class=\"navbar-right\">\n <a href=\"http://vetdrug.mn/#/login\" target=\"_blank\" class=\"btn btn-buy\">\n <feather type=\"log-in\"></feather>\n <span>СиÑтемд нÑвтрÑÑ…</span>\n </a>\n </div>\n <!-- navbar-right -->\n </header>\n <!-- navbar -->\n\n <vue-custom-scrollbar\n id=\"sidebarMenu\"\n class=\"sidebar sidebar-fixed sidebar-components\"\n style=\"height: calc(100vh - 109px); width: 20%\"\n >\n <div class=\"sidebar-header\">\n <a href=\"\" id=\"mainMenuOpen\"><feather type=\"menu\"></feather></a>\n <h5>Components</h5>\n <a href=\"\" id=\"sidebarMenuClose\"><feather type=\"x\"></feather></a>\n </div>\n <!-- sidebar-header -->\n <div class=\"sidebar-body\">\n <ul class=\"sidebar-nav\" :key=\"allKey\">\n <li class=\"nav-label mg-b-15\">ҮндÑÑн цÑÑ</li>\n <li\n class=\"nav-item\"\n v-for=\"(c, i) in help_category\"\n :key=\"i\"\n :class=\"{ show: help_category_active == c.id }\"\n >\n <a\n @click=\"loadCategory(c.id, true)\"\n role=\"button\"\n class=\"nav-link with-sub\"\n :class=\"{ active: help_category_active == c.id }\"\n >\n <feather type=\"layers\"></feather> {{ c.title }}\n </a>\n <nav class=\"nav\">\n <a\n @click=\"loadTask(t.id)\"\n role=\"button\"\n :class=\"{ active: taskCur.id == t.id }\"\n v-for=\"(t, ti) in tasks_cur\"\n :key=\"ti\"\n >{{ t.task }}</a\n >\n </nav>\n </li>\n </ul>\n </div>\n </vue-custom-scrollbar>\n <div class=\"section-nav vid-here\" style=\"width: 30%; padding: 20px\">\n <div v-html=\"taskCur.taskDescEn\"></div>\n </div>\n <div\n class=\"content content-components\"\n style=\"margin-left: 20%; margin-right: 30%\"\n >\n <div class=\"container\" style=\"min-height: calc(100vh - 200px)\">\n <h1 class=\"df-title\">{{ taskCur.task }}</h1>\n <div class=\"help-desk\" v-html=\"taskCur.taskDesc\"></div>\n </div>\n </div>\n </div>\n</template>\n\n<style>\nhtml {\n overflow: auto !important;\n}\n.vid-here iframe {\n width: 100%;\n}\n.help-desk img {\n max-width: 100%;\n}\n</style>\n\n<script>\nimport { request } from \"@/api/all\";\nimport vueCustomScrollbar from \"vue-custom-scrollbar\";\nvar _ = require(\"lodash\");\n\nimport { mapActions } from \"vuex\";\n\nexport default {\n components: {\n vueCustomScrollbar\n },\n data() {\n return {\n allKey: 0,\n params: {\n cid: 0,\n iod: 0\n },\n help_category: [],\n help_category_active: 0,\n tasks_all: [],\n tasks_cur: [],\n taskCur: {\n id: 0,\n task: \"\",\n taskDesc: \"\"\n }\n };\n },\n mounted() {\n require(\"@/assets/scss/pages/demo.scss\");\n //this.featherReplace();\n this.params = this.$route.params;\n this.loadTasks();\n },\n // updated(){\n // this.featherReplace();\n // },\n methods: {\n ...mapActions([\"handleLoading\"]),\n initNewsCategory() {\n request({\n api: { method: \"GET\", url: \"Type/GetTreeData\" },\n params: { parentId: 0, key: \"userManualMenu\" },\n store: this.$store\n }).then(res => {\n if (res != false) {\n this.handleLoading({ isLoading: false });\n this.help_category = res.data.types;\n if (res.data.types.length) {\n let _cid = parseInt(this.params.cid, 10);\n if (_cid > 0) {\n this.loadCategory(_cid);\n } else {\n this.loadCategory(res.data.types[0].id);\n }\n }\n }\n });\n },\n loadTasks() {\n this.handleLoading({ isLoading: true });\n //api: { method: \"POST\", url: \"TaskCore/GetCoreList\" },\n request({\n api: { method: \"POST\", url: \"task/getDataWDI\" },\n data: {\n ot: 492,\n skip: 0,\n size: 200,\n projectId: 53800,\n model: {\n isPublic: true\n }\n },\n store: this.$store\n }).then(res => {\n if (res != false) {\n this.tasks_all = _.orderBy(res.data.tasks, \"ord\", \"asc\");\n this.initNewsCategory();\n }\n });\n },\n loadCategory(cid, force) {\n if (this.help_category_active == cid) {\n this.help_category_active = 0;\n } else this.help_category_active = cid;\n\n //console.log(this.help_category_active);\n this.tasks_cur = this.tasks_all.filter(x => x.locTypeId == cid);\n this.$nextTick(() => {\n this.allKey++;\n });\n\n this.taskCur = {\n id: 0,\n task: \"\",\n taskDesc: \"\"\n };\n\n if (force != undefined && force) {\n if (this.tasks_cur.length > 0) {\n this.loadTask(this.tasks_cur[0].id);\n }\n } else {\n let _id = parseInt(this.params.id, 10);\n if (_id > 0) {\n this.loadTask(_id);\n } else if (this.tasks_cur.length > 0) {\n this.loadTask(this.tasks_cur[0].id);\n }\n }\n },\n loadTask(id) {\n if (id != parseInt(this.params.id, 10)) {\n this.$router.push({\n name: \"\",\n params: { cid: this.help_category_active, id: id }\n });\n }\n //console.log(id);\n request({\n api: { method: \"GET\", url: \"task/taskInheritedDetail\" },\n params: { id: id },\n store: this.$store\n }).then(res => {\n if (res != false) {\n this.taskCur = res.data.task;\n }\n });\n }\n }\n};\n</script>\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./help.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./help.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./help.vue?vue&type=template&id=f0169ae0\"\nimport script from \"./help.vue?vue&type=script&lang=js\"\nexport * from \"./help.vue?vue&type=script&lang=js\"\nimport style0 from \"./help.vue?vue&type=style&index=0&id=f0169ae0&prod&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 null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./help.vue?vue&type=style&index=0&id=f0169ae0&prod&lang=css\""],"sourceRoot":""}