{"version":3,"sources":["webpack:///./src/views/web/components/stf/all-projects.vue","webpack:///src/views/web/components/stf/all-projects.vue","webpack:///./src/views/web/components/stf/all-projects.vue?e624","webpack:///./src/views/web/components/stf/all-projects.vue?7660","webpack:///./src/views/web/components/stf/all-projects.vue?de47"],"names":["render","_vm","this","_c","_self","staticClass","tasks","length","_v","_s","comp","task","_l","t","i","key","attrs","on","$event","$emit","style","concat","defaultAttachmentUrl","locTypeName","type","name","$store","state","app","activeGroup","publicPage","route","params","id","pages","filter","x","st1","cid","staticStyle","_m","_e","staticRenderFns","moment","require","props","Object","default","data","mounted","loadTasks","methods","_this","sizes","$route","request","api","method","url","skip","size","ot","model","isPublic","locTypeId","store","then","res","getDuration","start","createdDate","due","dueDate","diff","typeDetail","_this2","watch","newRoute","oldRoute","_this3","$nextTick","component"],"mappings":"+KAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,UAAU,CAACE,YAAY,WAAW,CAAEJ,EAAIK,MAAMC,OAAS,EAAGJ,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,6BAA6B,CAACF,EAAG,KAAK,CAACF,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,KAAKC,WAAWR,EAAG,MAAM,CAACE,YAAY,OAAOJ,EAAIW,GAAIX,EAAIK,OAAO,SAASO,EAAEC,GAAG,OAAOX,EAAG,MAAM,CAACY,IAAID,EAAET,YAAY,gDAAgDW,MAAM,CAAC,KAAO,UAAUC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOjB,EAAIkB,MAAM,cAAeN,MAAM,CAACV,EAAG,MAAM,CAACE,YAAY,6BAA6B,CAACF,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,MAAM,CAACE,YAAY,aAAae,MAAK,0BAAAC,OAA4BR,EAAES,qBAAoB,gCAAgCnB,EAAG,MAAM,CAACE,YAAY,gCAAgC,CAACF,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M,KAAAwC,EAAA9C,OAAAM,KACA,KAAA0C,WAAA,WACAD,EAAA7B,kBCxLkY,I,wBCQ9X+B,EAAY,eACd,EACAjF,EACA0C,GACA,EACA,KACA,KACA,MAIa,aAAAuC,E,kECnBf","file":"js/chunk-7027994c.300bfcfd.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('section',{staticClass:\"pd-t-10\"},[(_vm.tasks.length > 0)?_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"d-flex align-items-center\"},[_c('h2',[_vm._v(_vm._s(_vm.comp.task))])]),_c('div',{staticClass:\"row\"},_vm._l((_vm.tasks),function(t,i){return _c('div',{key:i,staticClass:\"col-xs-12 col-sm-6 col-md-4 col-lg-4 col-xl-3\",attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.$emit('on-tsk-info', t)}}},[_c('div',{staticClass:\"card best-courses mg-b-30\"},[_c('div',{staticClass:\"card-body pd-0\"},[_c('div',{staticClass:\"ht-200 cvr\",style:(`background-image: url('${t.defaultAttachmentUrl}?w=350&h=200&mode=crop')`)})]),_c('div',{staticClass:\"card-footer pd-t-20 bg-white\"},[_c('div',{staticClass:\"text-center bd-b mg-b-20 pd-b-10\"},[_c('h5',[_vm._v(_vm._s(t.task))])]),_c('div',{staticClass:\"d-flex stts\"},[_c('div',{staticClass:\"mg-l-auto\"},[_vm._v(\" \"+_vm._s(t.locTypeName)+\" \")])])])])])}),0)]):_c('div',{staticClass:\"container pd-y-100 tx-center\"},[_c('div',{staticClass:\"ht-100p d-flex flex-column align-items-center justify-content-center\"},[_c('h1',{staticClass:\"tx-color-01 tx-24 tx-sm-32 tx-lg-36 mg-xl-b-5\"},[_vm._v(\" Сургалт хоосон байна \")]),_c('h5',{staticClass:\"tx-16 tx-sm-18 tx-lg-20 tx-normal mg-b-20\"},[_vm._v(\" [\"+_vm._s(_vm.type.name)+\"] ангилалд хараахан нээлттэй сургалт зарлагдаагүй байна. \")]),_c('p',{staticClass:\"tx-color-03 mg-b-30\"},[_vm._v(\" Та сургалтууд хэсгээс өөрт тохирох сургалтыг сонгон суралцана уу. \")]),_c('div',{staticClass:\"d-flex mg-b-40\"},[_c('router-link',{staticClass:\"btn btn-brand-02 bd-0 mg-l-5 pd-sm-x-25 text-white\",attrs:{\"to\":{\n            name: _vm.$store.state.app.activeGroup.publicPage.route,\n            params: {\n              id: _vm.$store.state.app.pages.filter(x => x.st1 == 'courses')[0]\n                .id,\n              cid: 0\n            }\n          }}},[_vm._v(\"Бүх сургалтыг үзэх\")])],1)])]),(_vm.$store.state.app.activeGroup.id == 9254)?_c('div',{staticStyle:{\"background\":\"#444\"}},[_vm._m(0)]):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container pd-y-40-f\"},[_c('div',{staticClass:\"text-center\",staticStyle:{\"color\":\"white\",\"font-size\":\"26px\",\"font-style\":\"italic\"}},[_vm._v(\" Засгийн газрын Хэрэг эрхлэх газар, Дэлхийн банкны санхүүжилтээр \"),_c('br'),_vm._v(\"\\\"Ухаалаг засаг\\\" төслийн хүрээнд энэхүү Цахим сургалтын платформыг нэвтрүүлэв. \")])])\n}]\n\nexport { render, staticRenderFns }","<template>\n  <section class=\"pd-t-10\">\n    <div class=\"container\" v-if=\"tasks.length > 0\">\n      <div class=\"d-flex align-items-center \">\n        <h2>{{ comp.task }}</h2>\n        <!-- <router-link\n          :to=\"{\n            name: $store.state.app.activeGroup.publicPage.route,\n            params: {\n              id: $store.state.app.pages.filter(x => x.st1 == 'courses')[0].id,\n              cid: 0\n            }\n          }\"\n          class=\"mg-l-auto btn btn-secondary btn-uppercase btn-xs\"\n        >\n          Бүх сургалтыг үзэх\n          <feather type=\"arrow-right\" class=\"mg-l-5\"></feather>\n        </router-link> -->\n      </div>\n\n      <div class=\"row\">\n        <div\n          @click=\"$emit('on-tsk-info', t)\"\n          class=\"col-xs-12 col-sm-6 col-md-4 col-lg-4 col-xl-3\"\n          v-for=\"(t, i) in tasks\"\n          :key=\"i\"\n          role=\"button\"\n        >\n          <div class=\"card best-courses mg-b-30\">\n            <div class=\"card-body pd-0\">\n              <div\n                :style=\"\n                  `background-image: url('${t.defaultAttachmentUrl}?w=350&h=200&mode=crop')`\n                \"\n                class=\"ht-200 cvr\"\n              ></div>\n              <!-- <img    :src=\"`${t.defaultAttachmentUrl}?w=450&h=200&mode=crop`\" class=\"wd-100p cvr\" /> -->\n            </div>\n            <div class=\"card-footer pd-t-20 bg-white\">\n              <div class=\"text-center bd-b mg-b-20 pd-b-10\">\n                <h5>{{ t.task }}</h5>\n              </div>\n              <div class=\"d-flex stts\">\n                <!-- Оролцогчийн лимит Хугацаа хоног-->\n                <!-- <div><feather type=\"users\" class=\"mg-r-5\"></feather>{{t.i7==1?t.i1:'Хязгааргүй'}}</div> -->\n                <!-- <div>\n                  <feather type=\"calendar\" class=\"mg-r-5\"></feather\n                  >{{ t.flag == 9 ? t.i2 : getDuration(t) }}<sup>хон</sup>\n                </div> -->\n                <div class=\"mg-l-auto\">\n                  <!-- {{ t.budget | formatMoney(0, \".\", \",\") }} ₮ -->\n                  {{ t.locTypeName }}\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n    <div v-else class=\"container pd-y-100 tx-center\">\n      <div\n        class=\"ht-100p d-flex flex-column align-items-center justify-content-center\"\n      >\n        <h1 class=\"tx-color-01 tx-24 tx-sm-32 tx-lg-36 mg-xl-b-5\">\n          Сургалт хоосон байна\n        </h1>\n        <h5 class=\"tx-16 tx-sm-18 tx-lg-20 tx-normal mg-b-20\">\n          [{{ type.name }}] ангилалд хараахан нээлттэй сургалт зарлагдаагүй\n          байна.\n        </h5>\n        <p class=\"tx-color-03 mg-b-30\">\n          Та сургалтууд хэсгээс өөрт тохирох сургалтыг сонгон суралцана уу.\n        </p>\n        <div class=\"d-flex mg-b-40\">\n          <router-link\n            :to=\"{\n              name: $store.state.app.activeGroup.publicPage.route,\n              params: {\n                id: $store.state.app.pages.filter(x => x.st1 == 'courses')[0]\n                  .id,\n                cid: 0\n              }\n            }\"\n            class=\"btn btn-brand-02 bd-0 mg-l-5 pd-sm-x-25 text-white\"\n            >Бүх сургалтыг үзэх</router-link\n          >\n        </div>\n      </div>\n    </div>\n\n    <div\n      style=\"background: #444\"\n      v-if=\"$store.state.app.activeGroup.id == 9254\"\n    >\n      <div class=\"container pd-y-40-f\">\n        <div\n          style=\"color: white; font-size: 26px; font-style: italic\"\n          class=\"text-center\"\n        >\n          Засгийн газрын Хэрэг эрхлэх газар, Дэлхийн банкны санхүүжилтээр\n          <br />\"Ухаалаг засаг\" төслийн хүрээнд энэхүү Цахим сургалтын\n          платформыг нэвтрүүлэв.\n        </div>\n      </div>\n    </div>\n  </section>\n</template>\n\n<script>\nimport { request } from \"@/api/all\";\nconst moment = require(\"moment\");\n\nexport default {\n  props: {\n    comp: {\n      type: Object,\n      default: () => {}\n    }\n  },\n  data() {\n    return {\n      tasks: [],\n      type: {}\n    };\n  },\n  mounted() {\n    this.loadTasks();\n  },\n  methods: {\n    loadTasks() {\n      let sizes = 40;\n      if (this.$store.state.app.pages.filter(x => x.st1 == \"courses\").length) {\n        if (\n          this.$route.params.id ==\n          this.$store.state.app.pages.filter(x => x.st1 == \"courses\")[0].id\n        ) {\n          sizes = 40;\n        }\n      }\n\n      request({\n        api: { method: \"POST\", url: \"TaskCore/GetCoreList\" },\n        data: {\n          skip: 0,\n          size: sizes,\n          ot: 560,\n          model: {\n            isPublic: true,\n            locTypeId:\n              this.$route.params.cid != 0 ? this.$route.params.cid : null\n          }\n        },\n        store: this.$store\n      }).then(res => {\n        if (res != false) {\n          if (res.data.tasks.length > 0) this.tasks = res.data.tasks;\n          //else this.typeDetail();\n        }\n      });\n    },\n    getDuration(t) {\n      var start = moment(t.createdDate);\n      var due = moment(t.dueDate);\n      return due.diff(start, \"days\");\n    },\n    typeDetail() {\n      request({\n        api: { method: \"GET\", url: \"type/GetInheritedDetail\" },\n        params: {\n          id: this.$route.params.cid,\n          key: \"courseType\"\n        },\n        store: this.$store\n      }).then(res => {\n        if (res != false) {\n          this.type = res.data;\n        }\n      });\n    }\n  },\n  watch: {\n    \"$root.$route\"(newRoute, oldRoute) {\n      if (newRoute.params.cid != oldRoute.params.cid) {\n        this.$nextTick(() => {\n          this.loadTasks();\n        });\n      }\n    }\n  }\n};\n</script>\n\n<style lang=\"scss\">\n.best-courses {\n  border: none;\n  box-shadow: 2px 3px 7px rgb(163 177 198 / 50%);\n  border: 20px;\n  .card-body {\n    border-radius: 10px 10px 0 0;\n    .cvr {\n      border-radius: 10px 10px 0 0;\n      background-size: cover;\n      background-position: center;\n    }\n  }\n  .card-footer {\n    .stts {\n      border-radius: 0 0 20px 20px;\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!./all-projects.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!./all-projects.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./all-projects.vue?vue&type=template&id=142c9bd6\"\nimport script from \"./all-projects.vue?vue&type=script&lang=js\"\nexport * from \"./all-projects.vue?vue&type=script&lang=js\"\nimport style0 from \"./all-projects.vue?vue&type=style&index=0&id=142c9bd6&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!./all-projects.vue?vue&type=style&index=0&id=142c9bd6&prod&lang=scss\""],"sourceRoot":""}