/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: /home/henzagold/admin_report/js/chunk-2d20e85d.3dcccc51.js.map
{"version":3,"sources":["webpack:///./src/views/promotion/PromotionList.vue","webpack:///./src/table/promotion.js","webpack:///src/views/promotion/PromotionList.vue","webpack:///./src/views/promotion/PromotionList.vue?7c15","webpack:///./src/views/promotion/PromotionList.vue?8a39"],"names":["render","_vm","this","_c","_self","ref","attrs","model","scopedSlots","_u","key","fn","text","_v","_s","record","staticStyle","slot","staticClass","on","$event","edit","id","deleteItem","staticRenderFns","tbl","XTbl","add","Xtc","filterNumber","filterText","noSort","renderSlot","name","components","XTable","data","methods","window","axios","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,UAAU,CAACA,EAAG,SAAS,CAACE,IAAI,MAAMC,MAAM,CAAC,MAAQL,EAAIM,OAAOC,YAAYP,EAAIQ,GAAG,CAAC,CAACC,IAAI,YAAYC,GAAG,YAAgB,IAANC,EAAI,EAAJA,KAAO,MAAO,CAACX,EAAIY,GAAG,WAAWZ,EAAIa,GAAGF,EAAO,MAAQ,OAAO,aAAa,CAACF,IAAI,WAAWC,GAAG,YAAgB,IAANC,EAAI,EAAJA,KAAO,MAAO,CAACX,EAAIY,GAAG,WAAWZ,EAAIa,GAAGF,EAAO,MAAQ,OAAO,aAAa,CAACF,IAAI,KAAKC,GAAG,SAASC,EAAKG,GAAQ,OAAOZ,EAAG,MAAM,CAACa,YAAY,CAAC,QAAU,OAAO,kBAAkB,eAAe,cAAc,WAAW,CAACb,EAAG,WAAW,CAACA,EAAG,OAAO,CAACG,MAAM,CAAC,KAAO,SAASW,KAAK,SAAS,CAAChB,EAAIY,GAAG,YAAYV,EAAG,eAAe,CAACe,YAAY,sBAAsBZ,MAAM,CAAC,KAAO,WAAW,WAAa,wBAAwBa,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOnB,EAA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iB,EAAY,eACd,EACAxC,EACAwB,GACA,EACA,KACA,KACA,MAIa,aAAAgB,E","file":"js/chunk-2d20e85d.3dcccc51.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('vx-card',[_c('XTable',{ref:\"tbl\",attrs:{\"model\":_vm.model},scopedSlots:_vm._u([{key:\"is_active\",fn:function({text}){return [_vm._v(\"\\n \"+_vm._s(text ? 'بله' : 'خیر')+\"\\n \")]}},{key:\"use_only\",fn:function({text}){return [_vm._v(\"\\n \"+_vm._s(text ? 'بله' : 'خیر')+\"\\n \")]}},{key:\"op\",fn:function(text,record){return _c('div',{staticStyle:{\"display\":\"flex\",\"justify-content\":\"space-evenly\",\"align-items\":\"center\"}},[_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('a-popconfirm',{attrs:{\"placement\":\"top\",\"ok-text\":\"بله\",\"cancel-text\":\"خیر\"},on:{\"confirm\":function($event){return _vm.deleteItem(text.record.id)}}},[_c('template',{slot:\"title\"},[_c('p',[_vm._v(\"آیا مطمئن به حذف رکورد مورد نظر هستید ؟\")])]),_c('feather-icon',{staticClass:\"cursor-pointer mx-1\",attrs:{\"icon\":\"TrashIcon\",\"svgClasses\":\"h-6 w-6 text-danger\"}})],2),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"حذف\")])],1)],1)}}])})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import XTbl, {Xtc} from '@/components/x-table-new/index';\r\n\r\nconst tbl = new XTbl('/admin/promotion/table', 'لیست تخفیف ها');\r\ntbl.add(new Xtc('id', 'کد').filterNumber());\r\ntbl.add(new Xtc('title', 'عنوان').filterText())\r\ntbl.add(new Xtc('saj', 'تاریخ شروع').noSort())\r\ntbl.add(new Xtc('eaj', 'تاریخ پایان').noSort())\r\ntbl.add(new Xtc('type_str', 'نوع').filterText())\r\ntbl.add(new Xtc('description', 'توضیحات').filterText())\r\ntbl.add(new Xtc('discount_percent', 'میزان تخفیف').filterText())\r\ntbl.add(new Xtc('is_active', 'فعال').filterText().renderSlot('is_active'))\r\ntbl.add(new Xtc('use_only', 'یکبار مصرف').filterText().renderSlot('use_only'))\r\ntbl.add(new Xtc('op', 'عملیات').filterText().renderSlot('op'))\r\n\r\nexport default tbl;\r\n","<template>\r\n <vx-card>\r\n <XTable :model=\"model\" ref=\"tbl\">\r\n <template #is_active=\"{text}\">\r\n {{ text ? 'بله' : 'خیر' }}\r\n </template>\r\n <template #use_only=\"{text}\">\r\n {{ text ? 'بله' : 'خیر' }}\r\n </template>\r\n <div slot=\"op\" slot-scope=\"text,record\" style=\"display: flex;justify-content: space-evenly;align-items: center\">\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 <a-popconfirm\r\n placement=\"top\"\r\n ok-text=\"بله\"\r\n cancel-text=\"خیر\"\r\n @confirm=\"deleteItem(text.record.id)\"\r\n >\r\n <template slot=\"title\">\r\n <p>آیا مطمئن به حذف رکورد مورد نظر هستید ؟</p>\r\n </template>\r\n <feather-icon\r\n icon=\"TrashIcon\"\r\n svgClasses=\"h-6 w-6 text-danger\"\r\n class=\"cursor-pointer mx-1\"\r\n />\r\n </a-popconfirm>\r\n <span slot=\"title\">حذف</span>\r\n </ATooltip>\r\n </div>\r\n </XTable>\r\n </vx-card>\r\n</template>\r\n\r\n<script>\r\nimport XTable from '@/components/x-table-new/XTable'\r\nimport model from '@/table/promotion'\r\nimport axios from \"@/axios\"\r\n\r\n\r\nexport default {\r\n name: \"TargetLIst\",\r\n components: {\r\n XTable,\r\n },\r\n data() {\r\n return {\r\n model,\r\n }\r\n },\r\n methods: {\r\n edit(id) {\r\n window.open(`/admin/promotion/edit/${id}`, '_blank').focus();\r\n },\r\n async deleteItem(id) {\r\n try {\r\n this.loading = true\r\n await axios.delete(`admin/promotion/${id}/`)\r\n this.$ntSet()\r\n } catch (e) {\r\n this.$ntSetError()\r\n } finally {\r\n this.loading = false\r\n await this.$refs.tbl.fetch()\r\n }\r\n }\r\n },\r\n}\r\n</script>\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!./PromotionList.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!./PromotionList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PromotionList.vue?vue&type=template&id=6fcabf56&\"\nimport script from \"./PromotionList.vue?vue&type=script&lang=js&\"\nexport * from \"./PromotionList.vue?vue&type=script&lang=js&\"\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"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure