{"version":3,"sources":["webpack:///./src/views/modules/report/search/components/learn_userReport.vue","webpack:///src/views/modules/report/search/components/learn_userReport.vue","webpack:///./src/views/modules/report/search/components/learn_userReport.vue?5869","webpack:///./src/views/modules/report/search/components/learn_userReport.vue?9b3e","webpack:///./src/views/modules/report/search/components/learn_userReport.vue?31d6"],"names":["render","_vm","this","_c","_self","staticClass","style","attrs","maxScrollbarLength","model","value","srch","startDate","callback","$$v","$set","expression","endDate","$store","state","user","userInfo","groupId","on","loadBox","courseId","_l","filterData","tasks","t","i","key","id","concat","task","_v","_s","_f","dueStartDate","dueDate","_e","lessonId","boxes","hasPermission","directives","name","rawName","departSelected","undefined","app","mainReportData","propObj","loginName","show","mode","userFinded","$event","$emit","staticRenderFns","moment","require","_","components","Form","FormItem","DatePicker","Button","Select","Option","vueCustomScrollbar","departFinder","component","loading","AsyncLoading","error","AsyncLoadError","delay","timeout","userFinder","data","userId","departs","mounted","startOf","format","fillCourse","methods","perrArr","hasOneOf","access","toggleBodyClass","addRemoveClass","className","el","document","body","classList","add","remove","e","_this","_pid","proj","groupDefaultProjects","filter","x","objectTypeId","length","request","api","method","url","projectId","skip","size","coreSearchModel","store","then","res","orderBy","_this2","params","tb","b","ot","bid","resb"],"mappings":"uIAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,GAAG,CAACA,EAAG,uBAAuB,CAACE,YAAY,QAAQC,MAAK,oEAAuEC,MAAM,CAAC,SAAW,CAAEC,mBAAoB,MAAO,CAACL,EAAG,OAAO,CAACE,YAAY,mCAAmCE,MAAM,CAAC,iBAAiB,QAAQ,CAACJ,EAAG,WAAW,CAACI,MAAM,CAAC,MAAQ,gBAAgB,CAACJ,EAAG,aAAa,CAACE,YAAY,YAAYE,MAAM,CAAC,KAAO,OAAO,OAAS,aAAa,eAAe,aAAa,YAAc,cAAcE,MAAM,CAACC,MAAOT,EAAIU,KAAKC,UAAWC,SAAS,SA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MAAAC,IAAA,4BACAU,OAAA,CACAzF,GAAAmE,GAEAiB,MAAA,KAAAlG,SACAmG,MAAA,SAAAC,GAEA,GADAE,EAAA9B,gBAAA,gCACA,GAAA4B,EAAA,CAEA,IAAAI,EAAAJ,EAAAvC,KAAA7C,KAAAyF,EACA,GAAAD,EAAAf,OAAA,GACAe,EAAAlB,QAAA,SAAAmB,GAAA,YAAAA,EAAAC,MAAAjB,OAAA,GACAa,EAAA9B,gBAAA,6BACA,IAAAmC,EAAAH,EAAAlB,QAAA,SAAAmB,GAAA,YAAAA,EAAAC,MAAA,GAAA5F,GACA4E,eAAA,CACAC,IAAA,CAAAC,OAAA,OAAAC,IAAA,8BACAhC,KAAA,CACA/C,GAAA6F,EACAZ,KAAA,EACAC,KAAA,KAEAE,MAAAI,EAAAtG,SACAmG,MAAA,SAAAS,GAEAN,EAAA9B,gBAAA,gCACA,GAAAoC,IACAN,EAAA7F,WAAAe,MAAAoF,EAAA/C,KAAAnD,gBAQA,KAAAD,WAAAe,MAAA,MC5QqZ,I,yBCQjZ6B,EAAY,eACd,EACAvE,EACA0D,GACA,EACA,KACA,KACA,MAIa,aAAAa,E,wECnBf","file":"js/chunk-55aeeccc.0c7e11d6.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{},[_c('vue-custom-scrollbar',{staticClass:\"pd-10\",style:(`overflow: hidden; position: relative; height: calc(100vh - 120px)`),attrs:{\"settings\":{ maxScrollbarLength: 60 }}},[_c('Form',{staticClass:\"pd-r-5 pd-l-5 report-filter-form\",attrs:{\"label-position\":\"top\"}},[_c('FormItem',{attrs:{\"label\":\"Огноо ÑхлÑÑ…\"}},[_c('DatePicker',{staticClass:\"wd-100p-f\",attrs:{\"type\":\"date\",\"format\":'yyyy.MM.dd',\"value-format\":'yyyy.MM.dd',\"placeholder\":\"Ñонгоно уу\"},model:{value:(_vm.srch.startDate),callback:function ($$v) {_vm.$set(_vm.srch, \"startDate\", $$v)},expression:\"srch.startDate\"}})],1),_c('FormItem',{attrs:{\"label\":\"Огноо дууÑах\"}},[_c('DatePicker',{staticClass:\"wd-100p-f\",attrs:{\"type\":\"date\",\"format\":'yyyy.MM.dd',\"value-format\":'yyyy.MM.dd',\"placeholder\":\"Ñонгоно уу\"},model:{value:(_vm.srch.endDate),callback:function ($$v) {_vm.$set(_vm.srch, \"endDate\", $$v)},expression:\"srch.endDate\"}})],1),(_vm.$store.state.user.userInfo.groupId != 9237)?_c('FormItem',{attrs:{\"label\":\"Сургалт\"}},[_c('Select',{staticClass:\"wd-100p\",attrs:{\"filterable\":\"\",\"clearable\":\"\"},on:{\"change\":_vm.loadBox},model:{value:(_vm.srch.courseId),callback:function ($$v) {_vm.$set(_vm.srch, \"courseId\", $$v)},expression:\"srch.courseId\"}},_vm._l((_vm.filterData.tasks),function(t,i){return _c('Option',{key:i,attrs:{\"value\":t.id,\"label\":`${i + 1}.) ${t.task}`}},[_vm._v(_vm._s(i + 1)+\".) \"+_vm._s(t.task)+\" (\"+_vm._s(_vm._f(\"moment\")(t.dueStartDate,\"YYYY.MM.DD\"))+\"-\"+_vm._s(_vm._f(\"moment\")(t.dueDate,\"YYYY.MM.DD\"))+\")\")])}),1)],1):_vm._e(),(_vm.$store.state.user.userInfo.groupId != 9237)?_c('FormItem',{attrs:{\"label\":\"ХичÑÑл\"}},[_c('Select',{staticClass:\"wd-100p\",attrs:{\"filterable\":\"\",\"clearable\":\"\"},model:{value:(_vm.srch.lessonId),callback:function ($$v) {_vm.$set(_vm.srch, \"lessonId\", $$v)},expression:\"srch.lessonId\"}},_vm._l((_vm.filterData.boxes),function(t,i){return _c('Option',{key:i,attrs:{\"value\":t.id,\"label\":`${i + 1}.) ${t.task}`}},[_vm._v(_vm._s(i + 1)+\".) \"+_vm._s(t.task)+\" (\"+_vm._s(_vm._f(\"moment\")(t.dueStartDate,\"YYYY.MM.DD\"))+\"-\"+_vm._s(_vm._f(\"moment\")(t.dueDate,\"YYYY.MM.DD\"))+\")\")])}),1)],1):_vm._e(),(!_vm.hasPermission(['reporttagviewer']))?_c('FormItem',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.$store.state.user.userInfo.groupId != 9237),expression:\"$store.state.user.userInfo.groupId != 9237\"}],attrs:{\"label\":\"Газар / ÐÑгж\"}},[_c('depart-finder',{on:{\"on-depart-selected\":_vm.departSelected}})],1):_vm._e(),_c('FormItem',{attrs:{\"label\":\"Ðжилтан / Ð¥ÑÑ€ÑглÑгч\"}},[(\n _vm.$store.state.app.mainReportData.propObj.loginName != undefined &&\n _vm.$store.state.app.mainReportData.propObj.loginName != null\n )?_c('user-finder',{staticClass:\"pd-x-10\",attrs:{\"defaultValue\":_vm.$store.state.app.mainReportData.show\n ? {\n mode: '1',\n value: _vm.$store.state.app.mainReportData.propObj.loginName\n }\n : null},on:{\"on-user-finded\":_vm.userFinded}}):_c('user-finder',{staticClass:\"pd-x-10\",on:{\"on-user-finded\":_vm.userFinded}})],1)],1)],1),_c('div',{staticClass:\"pd-10 bg-white bd-t\"},[_c('button',{staticClass:\"btn btn-xs btn-primary btn-block btn-uppercase\",on:{\"click\":function($event){return _vm.$emit('on-seach', _vm.srch)}}},[_vm._v(\" Ðчааллах \")])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div class=\"\">\n <vue-custom-scrollbar\n :style=\"\n `overflow: hidden; position: relative; height: calc(100vh - 120px)`\n \"\n :settings=\"{ maxScrollbarLength: 60 }\"\n class=\"pd-10\"\n > \n <Form label-position=\"top\" class=\"pd-r-5 pd-l-5 report-filter-form\">\n <FormItem label=\"Огноо ÑхлÑÑ…\">\n <DatePicker\n type=\"date\"\n v-model=\"srch.startDate\"\n :format=\"'yyyy.MM.dd'\"\n :value-format=\"'yyyy.MM.dd'\"\n placeholder=\"Ñонгоно уу\"\n class=\"wd-100p-f\"\n ></DatePicker>\n </FormItem>\n <FormItem label=\"Огноо дууÑах\">\n <DatePicker\n type=\"date\"\n v-model=\"srch.endDate\"\n :format=\"'yyyy.MM.dd'\"\n :value-format=\"'yyyy.MM.dd'\"\n placeholder=\"Ñонгоно уу\"\n class=\"wd-100p-f\"\n ></DatePicker>\n </FormItem>\n <FormItem label=\"Сургалт\" v-if=\"$store.state.user.userInfo.groupId != 9237\">\n <Select\n v-model=\"srch.courseId\"\n filterable\n clearable\n @change=\"loadBox\"\n class=\"wd-100p\"\n >\n <Option\n v-for=\"(t, i) in filterData.tasks\"\n :value=\"t.id\"\n :key=\"i\"\n :label=\"`${i + 1}.) ${t.task}`\"\n >{{ i + 1 }}.) {{ t.task }} ({{\n t.dueStartDate | moment(\"YYYY.MM.DD\")\n }}-{{ t.dueDate | moment(\"YYYY.MM.DD\") }})</Option\n >\n </Select>\n </FormItem>\n <FormItem label=\"ХичÑÑл\" v-if=\"$store.state.user.userInfo.groupId != 9237\">\n <Select v-model=\"srch.lessonId\" filterable clearable class=\"wd-100p\">\n <Option\n v-for=\"(t, i) in filterData.boxes\"\n :value=\"t.id\"\n :key=\"i\"\n :label=\"`${i + 1}.) ${t.task}`\"\n >{{ i + 1 }}.) {{ t.task }} ({{\n t.dueStartDate | moment(\"YYYY.MM.DD\")\n }}-{{ t.dueDate | moment(\"YYYY.MM.DD\") }})</Option\n >\n </Select>\n </FormItem>\n <FormItem label=\"Газар / ÐÑгж\" v-if=\"!hasPermission(['reporttagviewer'])\" v-show=\"$store.state.user.userInfo.groupId != 9237\">\n <depart-finder @on-depart-selected=\"departSelected\"></depart-finder>\n </FormItem>\n <FormItem label=\"Ðжилтан / Ð¥ÑÑ€ÑглÑгч\">\n <user-finder\n v-if=\"\n $store.state.app.mainReportData.propObj.loginName != undefined &&\n $store.state.app.mainReportData.propObj.loginName != null\n \"\n @on-user-finded=\"userFinded\"\n :defaultValue=\"\n $store.state.app.mainReportData.show\n ? {\n mode: '1',\n value: $store.state.app.mainReportData.propObj.loginName\n }\n : null\n \"\n class=\"pd-x-10\"\n ></user-finder>\n <user-finder\n v-else\n @on-user-finded=\"userFinded\"\n class=\"pd-x-10\"\n ></user-finder>\n </FormItem>\n </Form>\n </vue-custom-scrollbar>\n <div class=\"pd-10 bg-white bd-t\">\n <button\n @click=\"$emit('on-seach', srch)\"\n class=\"btn btn-xs btn-primary btn-block btn-uppercase\"\n >\n Ðчааллах\n </button>\n </div>\n </div>\n</template>\n\n<script>\nimport AsyncLoadError from \"@/components/base/asyncLoadingError\";\nimport AsyncLoading from \"@/components/base/asyncLoading\";\nimport vueCustomScrollbar from \"vue-custom-scrollbar\";\n\nconst moment = require(\"moment\");\n\nimport \"element-ui/lib/theme-chalk/index.css\";\nimport { Form, FormItem, DatePicker, Button, Select, Option } from \"element-ui\";\n\nvar _ = require(\"lodash\");\nimport { request } from \"@/api/all\";\nimport { hasOneOf } from \"@/libs/tools\";\n\nexport default {\n components: {\n Form,\n FormItem,\n DatePicker,\n Button,\n Select,\n Option,\n vueCustomScrollbar,\n departFinder: () => ({\n component: import(\"@/components/modules/hr/departFinder\"),\n loading: AsyncLoading,\n error: AsyncLoadError,\n delay: 100,\n timeout: 5000\n }),\n userFinder: () => ({\n component: import(\"@/components/modules/hr/userFinder\"),\n loading: AsyncLoading,\n error: AsyncLoadError,\n delay: 100,\n timeout: 5000\n })\n },\n data() {\n return {\n srch: {\n startDate: null,\n endDate: null,\n userId: \"\",\n departs: [],\n courseId: null,\n lessonId: null\n },\n filterData: {\n tasks: [],\n boxes: []\n }\n };\n },\n mounted() {\n if (this.$store.state.app.mainReportData.show) {\n if (\n this.$store.state.app.mainReportData.propObj.loginName != undefined &&\n this.$store.state.app.mainReportData.propObj.loginName != null\n )\n this.srch.userId = this.$store.state.app.mainReportData.propObj.loginName;\n\n if (\n this.$store.state.app.mainReportData.propObj.courseId != undefined &&\n this.$store.state.app.mainReportData.propObj.courseId != null\n ) {\n this.srch.courseId = this.$store.state.app.mainReportData.propObj.courseId;\n this.$emit(\"on-seach\", this.srch);\n }\n }\n\n this.srch.startDate = moment()\n .startOf(\"year\")\n .format(\"yyyy.MM.DD\");\n this.srch.endDate = moment().format(\"yyyy.MM.DD\");\n\n this.fillCourse();\n },\n methods: {\n hasPermission(perrArr) {\n return hasOneOf(perrArr, this.$store.state.user.access);\n },\n toggleBodyClass(addRemoveClass, className) {\n const el = document.body;\n\n if (addRemoveClass === \"addClass\") {\n el.classList.add(className);\n } else {\n el.classList.remove(className);\n }\n },\n departSelected(e) {\n this.srch.departs = e.departs;\n //this.$emit('on-seach', this.srch);\n },\n userFinded(e) {\n //console.log('userFinded', e);\n this.srch.userId = e.userId;\n this.$emit(\"on-seach\", this.srch);\n },\n fillCourse() {\n this.toggleBodyClass(\"addClass\", \"dynamic-locker\");\n let _pid = 0;\n let proj = this.$store.state.app.groupDefaultProjects.filter(\n x => x.objectTypeId == 115\n );\n if (proj.length) {\n _pid = proj[0].id;\n request({\n api: { method: \"POST\", url: \"TaskCore/GetCoreList\" },\n data: {\n projectId: _pid,\n skip: 0,\n size: 2000,\n id: 0,\n model: this.coreSearchModel\n },\n store: this.$store\n }).then(res => {\n this.toggleBodyClass(\"removeClass\", \"dynamic-locker\");\n if (res.data.tasks.length > 0)\n this.filterData.tasks = _.orderBy(res.data.tasks, [\"id\"], [\"desc\"]);\n else\n this.filterData.tasks = [\n { id: 0, task: \"Байгууллагын админд хандана уу\" }\n ];\n });\n }\n },\n loadBox(e) {\n if (e > 0) {\n this.toggleBodyClass(\"addClass\", \"dynamic-locker\");\n request({\n api: { method: \"get\", url: \"task/taskInheritedDetail\" },\n params: {\n id: e\n },\n store: this.$store\n }).then(res => {\n this.toggleBodyClass(\"removeClass\", \"dynamic-locker\");\n if (res != false) {\n //console.log('taskInheritedDetail', res);\n let tb = res.data.task.b;\n if (tb.length > 0) {\n if (tb.filter(b => b.ot == 114).length > 0) {\n this.toggleBodyClass(\"addClass\", \"dynamic-locker\");\n let bid = tb.filter(b => b.ot == 114)[0].id;\n request({\n api: { method: \"post\", url: \"taskCore/coreBoxInTaskList\" },\n data: {\n id: bid,\n skip: 0,\n size: 500\n },\n store: this.$store\n }).then(resb => {\n //console.log('coreBoxInTaskList', resb);\n this.toggleBodyClass(\"removeClass\", \"dynamic-locker\");\n if (resb != false) {\n this.filterData.boxes = resb.data.tasks;\n }\n });\n }\n }\n }\n });\n } else {\n this.filterData.boxes = [];\n }\n }\n }\n};\n</script>\n\n<style lang=\"scss\">\n.report-filter-form {\n .el-form-item {\n margin-bottom: 10px;\n .el-form-item__label {\n margin: 0;\n padding: 0;\n line-height: 16px;\n }\n }\n}\n</style>\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!./learn_userReport.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!./learn_userReport.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./learn_userReport.vue?vue&type=template&id=78234a1c\"\nimport script from \"./learn_userReport.vue?vue&type=script&lang=js\"\nexport * from \"./learn_userReport.vue?vue&type=script&lang=js\"\nimport style0 from \"./learn_userReport.vue?vue&type=style&index=0&id=78234a1c&prod&lang=scss\"\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--8-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./learn_userReport.vue?vue&type=style&index=0&id=78234a1c&prod&lang=scss\""],"sourceRoot":""}