/
home
/
maktab
/
admin
/
js
/
File Upload :
llllll
Current File: /home/maktab/admin/js/chunk-5b9a2dda.7c800d15.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5b9a2dda"],{"583f":function(t,e,o){"use strict";o("cbf7")},cbf7:function(t,e,o){},ce5c:function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("XTable",{ref:"tbl",attrs:{model:t.cols},scopedSlots:t._u([{key:"operator",fn:function(e){e.text;var n=e.record;return o("div",{},[o("a-tooltip",{on:{click:function(e){return t.setPreview(n.file,n.title)}}},[o("template",{slot:"title"},[t._v("\n مشاهده عکس ها\n ")]),o("Icon",{staticClass:"cursor-pointer text-primary",attrs:{icon:"vuesax:gallery-linear"}})],2),o("a-tooltip",{on:{click:function(e){return t.toEdit(n.id)}}},[o("template",{slot:"title"},[t._v("\n ویرایش عکس ها\n ")]),o("Icon",{staticClass:"cursor-pointer text-warning",attrs:{icon:"vuesax:edit-linear"}})],2)],1)}}])}),o("GalleryMoldal",{attrs:{items:t.photosModelPreview,title:t.photosModelTitle},model:{value:t.photoModel,callback:function(e){t.photoModel=e},expression:"photoModel"}})],1)},i=[],s=o("e0d2"),l=new s["b"]("/admin/gallery/table","لیست مکتب ها");l.add(new s["a"]("id","شناسه").filterText()),l.add(new s["a"]("title","عنوان").filterText()),l.add(new s["a"]("operator","عملیات").renderSlot("operator"));var a=l,r=o("ff6e"),c=o("dc19"),d=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("transition",{attrs:{name:"slide-fade"}},[t.value?o("div",{staticClass:"w-screen h-screen bg-c-grey-transparent fixed top-0 bottom-0 left-0 right-0",staticStyle:{"z-index":"60000"},on:{click:function(e){return t.$emit("input",!1)}}},[t.items.length>0?o("div",[o("h2",{staticClass:"text-white mt-12 mx-5"},[t._v(t._s(t.title))]),o("div",{staticClass:"pt-3 text-center"},[o("transition",{attrs:{name:"slide-fade",mode:"out-in"}},[o("picture",{key:t.counter},[o("img",{staticClass:"w-64 h-64 md:w-82 md:h-82 rounded-lg trans-img",attrs:{src:t.items[t.counter],alt:""}})])])],1),o("div",{staticClass:"sticky bottom-0"},[o("div",{staticClass:"thumb-scroll",attrs:{id:"container"},on:{click:t.stopPropagation}},[o("div",{staticClass:"flex mt-24 mb-10 thumb-items "},t._l(t.items,(function(e,n){return o("div",{staticClass:"thumb-item",class:n===t.counter?"":"opacity-50",on:{click:function(e){t.counter=n}}},[o("img",{staticClass:"mr-5 w-32 h-32 rounded",attrs:{src:e,alt:""}})])})),0)])])]):o("div",{staticClass:"text-white text-3xl w-full h-full flex items-center justify-center"},[t._v("\n هیچ تصویری موجود نیست\n ")])]):t._e()])],1)},u=[],f={data:function(){return{counter:0}},methods:{stopPropagation:function(t){console.log("salam"),t.stopPropagation()}},watch:{value:function(t){t&&this.$nextTick((function(){var t,e,o=document.getElementById("container"),n=!1,i=function(i){n=!0,t=i.pageX-o.offsetLeft,e=o.scrollLeft},s=function(t){n=!1};o.addEventListener("mousemove",(function(i){if(i.preventDefault(),n){var s=i.pageX-o.offsetLeft,l=s-t;o.scrollLeft=e-l}})),o.addEventListener("mousedown",i,!1),o.addEventListener("mouseup",s,!1),o.addEventListener("mouseleave",s,!1)}))}},props:{value:{required:!0},items:{required:!0},title:{}},mounted:function(){}},p=f,m=(o("583f"),o("2877")),v=Object(m["a"])(p,d,u,!1,null,null,null),h=v.exports,w={name:"list",data:function(){return{cols:null,photoModel:!1,photosModelTitle:"",photosModelPreview:[]}},computed:{gridCols:function(){switch(this.photosModelPreview.length){case 1:return"lg:grid-cols-1";case 2:return"lg:grid-cols-2";default:return"lg:grid-cols-3"}}},components:{GalleryMoldal:h,XTable:r["a"],Icon:c["a"]},methods:{setPreview:function(t,e){this.photosModelPreview=t.map((function(t){return t.full_src})),this.photosModelTitle=e,this.photoModel=!0},toEdit:function(t){window.open("/gallery/".concat(t),"_blank").focus()}},created:function(){this.cols=a}},g=w,b=Object(m["a"])(g,n,i,!1,null,"3cf42cca",null);e["default"]=b.exports}}]); //# sourceMappingURL=chunk-5b9a2dda.7c800d15.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure