PageSourceSearch

https://vetp.mn/_nuxt/tvet_creation.642b91db.js

js vetp.mn collected 2026-10-03 18:50:04 UTC 8,584 bytes, 1 lines download raw bytes

1import{_ as C}from"./nuxt-link.2dad1730.js";import{r as E,s as I,t as z,u as B,v as T,w as A}from"./queries.09bf263b.js";import{_ as N,z as k,R as q,K as G,S,m as U,x as u,o as r,c,a as e,t as n,F as g,A as b,B as p,w as i,b as o,d}from"./entry.01f11820.js";import{_ as V}from"./file.6e61ce66.js";const H={name:"tvet_creation",data(){return{totalIds:"",zoxiolch_id:null,barimt_bichig_id:null,bvteel_angilal_id:null,aa_negj_turul_id:null,lut_zoxiolch:[],barimt_bichig:[],bvteel_angilal:[],aa_negj_turul:[],bvteel_san_list:[],current_page:1,total:0}},beforeMount(){this.getLutZoxiogch(),this.getNegjTurul(),this.getBvteelAngilal(),this.getBarimtBichig(),this.getList()},methods:{async idsCalculator(){this.bvteel_san_list=[],this.total=0,this.totalIds="";let t=await this.$apollo.query({query:E,variables:{bvteel_zoxiogch:this.zoxiolch_id===null?"":this.zoxiolch_id,barimt_bichig:this.barimt_bichig_id===null?"999999999":this.barimt_bichig_id,buteel_angilal:this.bvteel_angilal_id===null?"999999999":this.bvteel_angilal_id,aj_uildver_salbar:this.aa_negj_turul_id===null?"999999999":this.aa_negj_turul_id}});t.data.view_buteel_san!==null&&t.data.view_buteel_san.length>=1&&(this.totalIds="",t.data.view_buteel_san.forEach(a=>{this.objectChecker(a)===!0&&(this.totalIds=this.totalIds+(this.totalIds===""?"":", ")+a.id)}),(this.zoxiolch_id!==null||this.barimt_bichig_id!==null||this.bvteel_angilal_id!==null||this.aa_negj_turul_id!==null)&&this.totalIds===""&&(this.totalIds="A"),this.getList())},objectChecker(t){let a=!1,x=[this.barimt_bichig_id!==null,this.bvteel_angilal_id!==null,this.aa_negj_turul_id!==null],y=[t.view_sub_buteel_san_barimt_bichig_torol!==null,t.view_sub_buteel_san_buteel_angilal!==null,t.view_sub_buteel_san_aj_uildver_salbar!==null],s=0;return x.forEach((_,v)=>{_!==y[v]&&s++}
1),s>0?a=!1:a=!0,a},async getList(){this.bvteel_san_list=[],this.total=0;let t=await this.$apollo.query({query:I,variables:{page:this.current_page,size:10,ids:this.totalIds}});t.data.paginate.view_buteel_san!==null&&(t.data.paginate.view_buteel_san.length>=1&&(this.bvteel_san_list=t.data.paginate.view_buteel_san),t.data.paginate.view_buteel_san.length>=1&&(this.total=t.data.paginate.total))},cutDate(t){return k(t!==null?t:"").format("YYYY-MM-DD")},nullCheck(t){let a="";return t!==null&&(a=t),a},async getLutZoxiogch(){let t=await this.$apollo.query({query:z});t.data.lut_zohiolch!==null&&t.data.lut_zohiolch.length>=1&&(this.lut_zoxiolch=t.data.lut_zohiolch)},async getBarimtBichig(){let t=await this.$apollo.query({query:B});t.data.lut_barimt_bichig_torol!==null&&t.data.lut_barimt_bichig_torol.length>=1&&(this.barimt_bichig=t.data.lut_barimt_bichig_torol)},async getNegjTurul(){let t=await this.$apollo.query({query:T});t.data.lut_aj_ahui_negj_torol!==null&&t.data.lut_aj_ahui_negj_torol.length>=1&&(this.aa_negj_turul=t.data.lut_aj_ahui_negj_torol)},async getBvteelAngilal(){let t=await this.$apollo.query({query:A});t.data.lut_buteel_angilal!==null&&t.data.lut_buteel_angilal.length>=1&&(this.bvteel_angilal=t.data.lut_buteel_angilal)},clear(){this.zoxiolch_id=null,this.barimt_bichig_id=null,this.bvteel_angilal_id=null,this.aa_negj_turul_id=null,this.idsCalculator()}},components:{RightOutlined:q,CalendarOutlined:G,SearchOutlined:S},computed:{...U(["languages","language"]),getCurrentLanguage(){return this.$store.state.language}}},M={id:"vetp_style",class:"container mx-auto max-w-6xl px-4 pb-40"},R={class:"text-2xl lg:text-3xl xl:text-4xl text-primary_color py-6 m-0"},D={class:"grid md:grid-cols-12 md:gap-6 lg:gap-8"},O={class:"col-span-12 md:col-span-8 pb-40"},Y={class:"mb-4 py-5"},Z={class:"flex items-start space-x-2 mb-4 border-b pb-2 transition ease-in-out delay-100 hover:scale-90 duration-300 cursor-pointer"},F=e("img",{class:"w-14 h-14",src:V},null,-1),J={class:"w-full"},K={class:"flex items-start justify-between space-x-4"},X={class:"text-base black-color hover:text-amber-600 m-0"},P={class:"inline-flex items-center space-x-2"},Q={class:"text-sm gray-color w-16 m-0"},W=["innerHTML"],$={class:"ctvet_pagination flex items-center justify-center pt-24"},tt={id:"tab-menu",class:"col-span-12 md:col-span-4"},et={class:"user-nav-holder pb-6 border-b-2 border-primary_color mb-6"},lt={class:"main-menu"},at={class:"no-list-style"},st={class:"w-full border"},it={class:"flex items-center justify-between w-full space-x-2"},nt={class:"text-base"},ot={class:"w-full border"},_t={class:"flex items-center justify-between w-full space-x-2"},rt={class:"text-base"},ut={class:"w-full border"},ct={class:"flex items-center w-full space-x-2"},dt={class:"text-base"},ht={class:"w-full border"},gt={class:"flex items-center w-full space-x-2"},bt={class:"text-base"},pt={class:"registration-select space-y-4"},vt={class:"flex items-center space-x-3"},mt={class:"text-base lg:text-lg font-semibold text-second_color m-0"},ft={class:"p-5 border space-y-4"},xt={class:"inline-flex items-center justify-between w-full space-x-2 py-4"},yt={class:"button-secondary w-full"},wt={class:"button-primary w-full"};function jt(t,a,x,y,s,_){const v=u("font-awesome-icon"),h=C,j=u("a-pagination"),m=u("a-select-option"),f=u("a-select"),w=u("a-button"),L=u("search-outlined");return r(),c("div",M,[e("h4",R,n(t.$t("home.card_tvetproducts")),1),e("div",D,[e("div",O,[e("div",Y,[(r(!0),c(g,null,b(s.bvteel_san_list,l=>(r(),p(h,{to:"/creation/"+l.id},{default:i(()=>[e("div",Z,[F,e("div",J,[e("div",K,[e("p",X,n(_.getCurrentLanguage==="mn"?l.buteel_ner_mn:l.buteel_ner_en),1),e("div",P,[o(v,{class:"w-4 h-4 gray-color",icon:"fa-regular fa-calendar"}),e("p",Q,n(_.cutDate(l.niitelsen_ognoo)),1)])]),e("p",{class:"text-xs lg:text-sm secondary-color m-0",innerHTML:_.getCurrentLanguage==="mn"?l.huraangui_mn:l.huraangui_en},null,8,W)])])]),_:2},1032,["to"]))),256))]),e("div",$,[o(j,{current:s.current_page,"onUpdate:current":a[0]||(a[0]=l=>s.current_page=l),total:s.total,"page-size":10,onChange:_.getList},null,8,["current","total","onChange"])])]),e("div",tt,[e("div",et,[e("nav",lt,[e("ul",at,[e("li",st,[o(h,{to:"/projects/projectfund",class:""},{default:i(()=>[e("div",it,[e("span",nt,n(t.$t("home.card_projectdatabase")),1)])]),_:1})]),e("li",ot,[o(h,{to:"/vetpproject",class:""},{default:i(()=>[e("div",_t,[e("span",rt,n(t.$t("home.tvetprojects")),1)])]),_:1})]),e("li",ut,[o(h,{to:"/creation/tvet_creation",class:""},{default:i(()=>[e("div",ct,[e("span",dt,n(t.$t("home.card_tvetproducts")),1)])]),_:1})]),e("li",ht,[o(h,{to:"/goodpractice",class:""},{default:i(()=>[e("div",gt,[e("span",bt,n(t.$t("home.card_goodpractice")),1)])]),_:1})])])])]),e("div",pt,[e("div",vt,[o(v,{class:"w-4 h-4 text-second_color",icon:"fa-solid fa-magnifying-glass"}),e("h1",mt,n(t.$t("others.searcher")),1)]),e("div",ft,[o(f,{value:s.zoxiolch_id,"onUpdate:value":a[1]||(a[1]=l=>s.zoxiolch_id=l),placeholder:t.$t("creation.author"),style:{width:"100%"}},{default:i(()=>[(r(!0),c(g,null,b(s.lut_zoxiolch,l=>(r(),p(m,{value:l.id},{default:i(()=>[d(n(_.getCurrentLanguage==="mn"?l.zohiolch:l.zohiolch_en),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value","placeholder"]),o(f,{value:s.barimt_bichig_id,"onUpdate:value":a[2]||(a[2]=l=>s.barimt_bichig_id=l),placeholder:t.$t("creation.select_document_type"),style:{width:"100%"}},{default:i(()=>[(r(!0),c(g,null,b(s.barimt_bichig,l=>(r(),p(m,{value:l.id},{default:i(()=>[d(n(_.getCurrentLanguage==="mn"?l.barimt_bichig_torol:l.barimt_bichig_torol_en),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value","placeholder"]),o(f,{value:s.bvteel_angilal_id,"onUpdate:value":a[3]||(a[3]=l=>s.bvteel_angilal_id=l),placeholder:t.$t("about.category"),style:{width:"100%"}},{default:i(()=>[(r(!0),c(g,null,b(s.bvteel_angilal,l=>(r(),p(m,{value:l.id},{default:i(()=>[d(n(_.getCurrentLanguage==="mn"?l.buteel_angilal_mn:l.buteel_angilal_en),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value","placeholder"]),o(f,{value:s.aa_negj_turul_id,"onUpdate:value":a[4]||(a[4]=l=>s.aa_negj_turul_id=l),placeholder:t.$t("creation.trade"),style:{width:"100%"}},{default:i(()=>[(r(!0),c(g,null,b(s.aa_negj_turul,l=>(r(),p(m,{value:l.id},{default:i(()=>[d(n(_.getCurrentLanguage==="mn"?l.aj_ahui_negj_torol:l.aj_ahui_negj_torol_en),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value","placeholder"]),e("div",xt,[e("div",yt,[o(w,{class:"w-full",onClick:_.clear},{default:i(()=>[d(n(t.$t("others.clear")),1)]),_:1},8,["onClick"])]),e("div",wt,[o(w,{type:"primary",class:"w-full",onClick:_.idsCalculator},{icon:i(()=>[o(L,{style:{fontSize:"16px"}})]),default:i(()=>[d(" "+n(t.$t("others.search")),1)]),_:1},8,["onClick"])])])])])])])])}const zt=N(H,[["render",jt]]);export{zt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.