/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: /home/henzagold/admin_report/js/chunk-0fb8d0e0.d5fa3bf8.js.map
{"version":3,"sources":["webpack:///./src/views/collection/CollectionList.vue","webpack:///./src/table/collectionTbl.js","webpack:///src/views/collection/CollectionList.vue","webpack:///./src/views/collection/CollectionList.vue?8192","webpack:///./src/views/collection/CollectionList.vue?2c6a","webpack:///./src/views/collection/CollectionList.vue?6200"],"names":["render","_vm","this","_c","_self","staticClass","on","$event","$router","push","_v","ref","attrs","model","scopedSlots","_u","key","fn","text","record","parent_collection","_s","title","_e","is_site","is_mobile","image","src","icon","slot","edit","id","id_row_delete","visible","deleteUser","staticRenderFns","tbl","XTbl","add","Xtc","filterText","renderSlot","noSort","name","components","XTable","data","row_id","methods","window","axios","created","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,UAAU,CAACA,EAAG,YAAY,CAACE,YAAY,OAAOC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAON,EAAIO,QAAQC,KAAK,yBAAyB,CAACR,EAAIS,GAAG,sBAAsBP,EAAG,SAAS,CAACQ,IAAI,MAAMC,MAAM,CAAC,MAAQX,EAAIY,OAAOC,YAAYb,EAAIc,GAAG,CAAC,CAACC,IAAI,oBAAoBC,GAAG,SAASC,EAAKC,GAAQ,OAAQD,EAAKC,OAAOC,kBAAmBjB,EAAG,OAAO,GAAG,CAACF,EAAIS,GAAG,aAAaT,EAAIoB,GAAGH,EAAKC,OAAOC,kBAAkBE,OAAO,gBAAgBrB,EAAIsB,OAAO,CAACP,IAAI,UAAUC,GAAG,SAASC,EAAKC,GAAQ,OAAOhB,EAAG,OAAO,GAAG,CAAEe,EAAKC,OAAOK,QAASrB,EAAG,eAAe,CAACS,MAAM,CAAC,KAAO,YAAY,WAAa,0BAA0BT,EAAG,eAAe,CAACS,MAAM,CAAC,K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AAG,CAAC,MAAQ,SAASC,GAAQ,OAAON,EAAI+B,cAAcd,EAAKC,OAAOY,SAAS,IAAI,MAAM,MAAK,KAAQ5B,EAAG,YAAY,CAACS,MAAM,CAAC,MAAQ,WAAW,MAAQ,SAAS,OAASX,EAAIgC,QAAQ,cAAc,MAAM,cAAc,OAAO3B,GAAG,CAAC,OAAS,SAASC,GAAQN,EAAIgC,SAAU,GAAO,OAAShC,EAAIiC,WAAW,MAAQ,SAAS3B,GAAQN,EAAIgC,SAAU,GAAO,gBAAgB,SAAS1B,GAAQN,EAAIgC,QAAQ1B,KAAU,CAACJ,EAAG,MAAM,CAACF,EAAIS,GAAG,sDAAsD,IAAI,IAEh3EyB,EAAkB,G,gDCDhBC,EAAM,IAAIC,OAAK,0BAA2B,qBAEhDD,EAAIE,IAAI,IAAIC,OAAI,KAAM,YACtBH,EAAIE,IAAI,IAAIC,OAAI,QAAS,YAAYC,cACrCJ,EAAIE,IAAI,IAAIC,OAAI,SAAU,YAAYE,WAAW,sBAMjDL,EAAIE,IAAI,IAAIC,OAAI,GAAI,UAAUG,SAASD,WAAW,UAEnCL,Q,YCoEA,GACfO,sBACAC,YACAC,eAEAC,gBACA,OACAjC,WACAoB,WACAc,cAGAC,SACAlB,iBAEAmB,mEAEAjB,0BACA,gBACA,eAEAE,sBAAA,kJAGA,OAHA,SAEAH,cACA,mCACAmB,6CAAA,uBACA,8BACA,2FAEA,2BAEA,OAFA,UAEA,4JAVAhB,IAcAiB,mBACA,eCrHuW,I,wBCQnWC,EAAY,eACd,EACApD,EACAmC,GACA,EACA,KACA,KACA,MAIa,aAAAiB,E,qECnBf","file":"js/chunk-0fb8d0e0.d5fa3bf8.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('vx-card',[_c('vs-button',{staticClass:\"mb-5\",on:{\"click\":function($event){return _vm.$router.push('/collection/create')}}},[_vm._v(\"افزودن دسته بندی\")]),_c('XTable',{ref:\"tbl\",attrs:{\"model\":_vm.model},scopedSlots:_vm._u([{key:\"parent_collection\",fn:function(text,record){return (text.record.parent_collection)?_c('span',{},[_vm._v(\"\\n \"+_vm._s(text.record.parent_collection.title)+\"\\n \")]):_vm._e()}},{key:\"is_site\",fn:function(text,record){return _c('span',{},[(text.record.is_site)?_c('feather-icon',{attrs:{\"icon\":\"CheckIcon\",\"svgClasses\":\"w-5 h-5 text-success\"}}):_c('feather-icon',{attrs:{\"icon\":\"XIcon\",\"svgClasses\":\"w-5 h-5 text-danger\"}})],1)}},{key:\"is_mobile\",fn:function(text,record){return _c('span',{},[(text.record.is_mobile)?_c('feather-icon',{attrs:{\"icon\":\"CheckIcon\",\"svgClasses\":\"w-5 h-5 text-success\"}}):_c('feather-icon',{attrs:{\"icon\":\"XIcon\",\"svgClasses\":\"w-5 h-5 text-danger\"}})],1)}},{key:\"image_img\",fn:function(text,record){return _c('span',{},[(text.record.image)?_c('img',{staticClass:\"object-cover\",attrs:{\"src\":text.record.image.src,\"width\":\"40\",\"height\":\"40\"}}):_vm._e()])}},{key:\"image_icon\",fn:function(text,record){return _c('span',{},[(text.record.icon)?_c('img',{staticClass:\"object-cover\",attrs:{\"src\":text.record.icon.src,\"width\":\"40\",\"height\":\"40\"}}):_vm._e()])}},{key:\"names\",fn:function(text,record){return _c('span',{staticClass:\"flex space-x-3\"},[_c('ATooltip',[_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"ویرایش\")]),_c('feather-icon',{staticClass:\"cursor-pointer mx-1\",attrs:{\"icon\":\"EditIcon\",\"svgClasses\":\"h-6 w-6 text-primary\"},on:{\"click\":function($event){return _vm.edit(text.record.id)}}})],1),_c('ATooltip',[_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"حذف\")]),_c('feather-icon',{staticClass:\"cursor-pointer mx-1\",attrs:{\"icon\":\"TrashIcon\",\"svgClasses\":\"h-6 w-6 text-danger\"},on:{\"click\":function($event){return _vm.id_row_delete(text.record.id)}}})],1)],1)}}],null,true)}),_c('vs-prompt',{attrs:{\"title\":\"حذف دسته\",\"color\":\"danger\",\"active\":_vm.visible,\"accept-text\":\"بله\",\"cancel-text\":\"خیر\"},on:{\"cancel\":function($event){_vm.visible = false},\"accept\":_vm.deleteUser,\"close\":function($event){_vm.visible = false},\"update:active\":function($event){_vm.visible=$event}}},[_c('div',[_vm._v(\"\\n آیا می خواهید حذف کنید؟\\n \")])])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import XTbl,{Xtc} from '../components/x-table';\r\nconst tbl = new XTbl('/admin/collection/table', 'لیست دسته بندی ها');\r\n\r\ntbl.add(new Xtc('id', 'کد دسته'))\r\ntbl.add(new Xtc('title', 'نام دسته').filterText())\r\ntbl.add(new Xtc('parent', 'پدر دسته').renderSlot('parent_collection'))\r\n// tbl.add(new Xtc('handle', 'رسیدگی').filterText())\r\n// tbl.add(new Xtc('is_mobile', 'موبایل').renderSlot('is_mobile'))\r\n// tbl.add(new Xtc('is_site', 'سایت').renderSlot('is_site'))\r\n// tbl.add(new Xtc('image_id', 'تصویر').renderSlot('image_img'))\r\n// tbl.add(new Xtc('icon_id', 'آیکون').renderSlot('image_icon'))\r\ntbl.add(new Xtc('', 'عملیات').noSort().renderSlot('names'))\r\n\r\nexport default tbl;\r\n","<template>\r\n <div>\r\n <vx-card>\r\n <vs-button class=\"mb-5\" @click=\"$router.push('/collection/create')\">افزودن دسته بندی</vs-button>\r\n <XTable :model=\"model\" ref=\"tbl\">\r\n <span slot=\"parent_collection\" slot-scope=\"text,record\" v-if=\"text.record.parent_collection\">\r\n {{ text.record.parent_collection.title }}\r\n </span>\r\n <span slot=\"is_site\" slot-scope=\"text,record\">\r\n <feather-icon icon=\"CheckIcon\" svgClasses=\"w-5 h-5 text-success\" v-if=\"text.record.is_site\"/>\r\n <feather-icon icon=\"XIcon\" v-else svgClasses=\"w-5 h-5 text-danger\"/>\r\n </span>\r\n <span slot=\"is_mobile\" slot-scope=\"text,record\">\r\n <feather-icon icon=\"CheckIcon\" svgClasses=\"w-5 h-5 text-success\" v-if=\"text.record.is_mobile\"/>\r\n <feather-icon icon=\"XIcon\" v-else svgClasses=\"w-5 h-5 text-danger\"/>\r\n </span>\r\n <span slot=\"image_img\" slot-scope=\"text,record\">\r\n <img v-if=\"text.record.image\" :src=\"text.record.image.src\" width=\"40\" height=\"40\" class=\"object-cover\">\r\n </span>\r\n <span slot=\"image_icon\" slot-scope=\"text,record\">\r\n <img v-if=\"text.record.icon\" :src=\"text.record.icon.src\" width=\"40\" height=\"40\" class=\"object-cover\">\r\n </span>\r\n <span slot=\"names\" slot-scope=\"text,record\" class=\"flex space-x-3\">\r\n<!-- <a-dropdown>-->\r\n<!-- <a-menu slot=\"overlay\">-->\r\n<!-- <a-menu-item key=\"1\" @click=\"edit(text.record.id)\"> <a-icon type=\"edit\" />ویرایش </a-menu-item>-->\r\n<!--<!– <a-menu-item key=\"2\" @click=\"id_row_delete(text.record.id)\"> <a-icon type=\"delete\" />حذف </a-menu-item>–>-->\r\n<!-- </a-menu>-->\r\n<!-- <a-button style=\"margin-left: 8px\"> عملیات <a-icon type=\"down\" /> </a-button>-->\r\n<!-- </a-dropdown>-->\r\n<!-- -->\r\n <ATooltip>\r\n <span slot=\"title\">ویرایش</span>\r\n <feather-icon\r\n icon=\"EditIcon\"\r\n @click=\"edit(text.record.id)\"\r\n svgClasses=\"h-6 w-6 text-primary\"\r\n class=\"cursor-pointer mx-1\"\r\n />\r\n </ATooltip>\r\n\r\n <ATooltip>\r\n <span slot=\"title\">حذف</span>\r\n <feather-icon\r\n icon=\"TrashIcon\"\r\n @click=\"id_row_delete(text.record.id)\"\r\n svgClasses=\"h-6 w-6 text-danger\"\r\n class=\"cursor-pointer mx-1\"\r\n />\r\n </ATooltip>\r\n\r\n </span>\r\n </XTable>\r\n\r\n <vs-prompt\r\n title=\"حذف دسته\"\r\n color=\"danger\"\r\n @cancel=\"visible = false\"\r\n @accept=\"deleteUser\"\r\n @close=\"visible = false\"\r\n :active.sync=\"visible\"\r\n accept-text=\"بله\"\r\n cancel-text=\"خیر\"\r\n >\r\n <div>\r\n آیا می خواهید حذف کنید؟\r\n </div>\r\n </vs-prompt>\r\n </vx-card>\r\n\r\n\r\n </div>\r\n\r\n</template>\r\n\r\n<script>\r\nimport XTable from '../../components/x-table/XTable'\r\nimport * as TableCol from '@/table/collectionTbl'\r\nimport axios from \"@/axios\"\r\n\r\n\r\nexport default {\r\n name: \"CollectionLIst\",\r\n components:{\r\n XTable\r\n },\r\n data(){\r\n return{\r\n model: null,\r\n visible: false,\r\n row_id: null\r\n }\r\n },\r\n methods:{\r\n edit(id){\r\n // this.$router.push(`/collection/edit/${id}`)\r\n window.open(`/admin/collection/edit/${id}`, '_blank').focus();\r\n },\r\n id_row_delete(id){\r\n this.visible = true\r\n this.row_id = id\r\n },\r\n async deleteUser(){\r\n try{\r\n const id = this.row_id\r\n this.$refs.tbl.loading = true\r\n await axios.delete(`admin/collection/${id}`)\r\n await this.$refs.tbl.fetch()\r\n this.$ntSet('دسته با موفقیت حذف شد.')\r\n }catch (e) {\r\n this.$ntSetError()\r\n }finally {\r\n this.$refs.tbl.loading = false\r\n }\r\n }\r\n },\r\n created() {\r\n this.model = TableCol.default\r\n }\r\n}\r\n</script>\r\n\r\n\r\n<style>\r\n .ant-table-row-expand-icon.ant-table-row-collapsed{\r\n display: none !important;\r\n }\r\n</style>\r\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!./CollectionList.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!./CollectionList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CollectionList.vue?vue&type=template&id=3fe2cb9b&\"\nimport script from \"./CollectionList.vue?vue&type=script&lang=js&\"\nexport * from \"./CollectionList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CollectionList.vue?vue&type=style&index=0&id=3fe2cb9b&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/index.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!./CollectionList.vue?vue&type=style&index=0&id=3fe2cb9b&prod&lang=css&\""],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure