/
home
/
maktab
/
admin
/
js
/
File Upload :
llllll
Current File: /home/maktab/admin/js/chunk-2d21b851.708502db.js.map
{"version":3,"sources":["webpack:///./src/views/polino/list.vue?0f09","webpack:///./src/table/polino.js","webpack:///src/views/polino/list.vue","webpack:///./src/views/polino/list.vue?b2c2","webpack:///./src/views/polino/list.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","ref","staticClass","attrs","cols","scopedSlots","_u","key","fn","record","on","$event","setInitialValue","deleteItem","id","text","_v","_s","_f","staticRenderFns","tbl","XTbl","add","Xtc","filterText","filterDate","renderSlot","name","components","RestFullActionSheet","XTable","data","initialValue","view","methods","axios","console","window","created","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,UAAU,CAACE,IAAI,aAAaC,YAAY,UAAUC,MAAM,CAAC,kBAAmB,EAAM,MAAQ,eAAe,CAACJ,EAAG,MAAM,CAACA,EAAG,SAAS,CAACE,IAAI,MAAME,MAAM,CAAC,MAAQR,EAAIS,MAAMC,YAAYV,EAAIW,GAAG,CAAC,CAACC,IAAI,WAAWC,GAAG,SAASP,GACjU,IAAIQ,EAASR,EAAIQ,OACjB,OAAOV,EAAG,sBAAsB,CAACI,MAAM,CAAC,OAASM,EAAO,UAAY,SAAS,cAAa,EAAK,cAAa,EAAM,YAAW,GAAOC,GAAG,CAAC,KAAO,SAASC,GAAQ,OAAOhB,EAAIiB,gBAAgBH,IAAS,OAAS,SAASE,GAAQ,OAAOhB,EAAIkB,WAAWJ,EAAOK,UAAU,CAACP,IAAI,aAAaC,GAAG,SAASP,GACnS,IAAIc,EAAOd,EAAIc,KACf,MAAO,CAACpB,EAAIqB,GAAG,iBAAiBrB,EAAIsB,GAAGtB,EAAIuB,GAAG,cAAPvB,CAAsBoB,IAAO,wBAAwB,MAAM,IAC9FI,EAAkB,G,oCCchBC,EAAM,IAAIC,OAAK,wBAAyB,cAC9CD,EAAIE,IAAI,IAAIC,OAAI,KAAM,SAASC,cAC/BJ,EAAIE,IAAI,IAAIC,OAAI,YAAa,SAASC,cACtCJ,EAAIE,IAAI,IAAIC,OAAI,OAAQ,sBAAsBC,cAC9CJ,EAAIE,IAAI,IAAIC,OAAI,MAAO,OAAOC,cAC9BJ,EAAIE,IAAI,IAAIC,OAAI,YAAa,WAAWC,cACxCJ,EAAIE,IAAI,IAAIC,OAAI,aAAc,aAAaE,aAAaC,WAAW,eACnEN,EAAIE,IAAI,IAAIC,OAAI,WAAY,UAAUG,WAAW,aAClCN,Q,oCCQA,GACfO,YACAC,YACAC,2BACAC,eAEAC,gBACA,OACA3B,UACA4B,oBACAC,UAGAC,SACArB,sBAAA,6IAEA,OAFA,SAEA,mCACAsB,2CAAA,OACA,+DACA,iFAEA,uCACAC,kBAAA,QAEA,OAFA,UAEA,4JAVAvB,GAaAD,4BAGAyB,mEAGAC,mBACA,cCrE6V,I,YCOzVC,EAAY,eACd,EACA7C,EACAyB,GACA,EACA,KACA,WACA,MAIa,aAAAoB,E","file":"js/chunk-2d21b851.708502db.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('vx-card',{ref:\"filterCard\",staticClass:\"vx-card\",attrs:{\"removeCardAction\":false,\"title\":\"لیست پلینو\"}},[_c('div',[_c('XTable',{ref:\"tbl\",attrs:{\"model\":_vm.cols},scopedSlots:_vm._u([{key:\"operator\",fn:function(ref){\nvar record = ref.record;\nreturn _c('RestFullActionSheet',{attrs:{\"record\":record,\"activeKey\":\"active\",\"has-delete\":true,\"has-active\":false,\"has-edit\":false},on:{\"view\":function($event){return _vm.setInitialValue(record)},\"delete\":function($event){return _vm.deleteItem(record.id)}}})}},{key:\"created_at\",fn:function(ref){\nvar text = ref.text;\nreturn [_vm._v(\"\\n \"+_vm._s(_vm._f(\"jdateNoTime\")(text))+\"\\n \")]}}])})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\r\nimport ColCreator from \"./index\";\r\n\r\nclass Table {\r\n cols = [\r\n new ColCreator('id', 'کد').export(),\r\n new ColCreator('ProductImage', 'تصویر محصول').renderSlot('image').export(),\r\n new ColCreator('title', 'نام محصول').export(),\r\n new ColCreator('product_code', 'کد محصول ').export(),\r\n new ColCreator('action', 'عملیات').renderSlot('op').export(),\r\n ];\r\n}\r\n\r\nexport default new Table().cols;\r\n*/\r\n\r\n\r\nimport XTbl, {Xtc} from '@/components/x-table/index';\r\n\r\nconst tbl = new XTbl('/admin/pol/user/table', 'لیست پلینو')\r\ntbl.add(new Xtc('id', 'شناسه').filterText())\r\ntbl.add(new Xtc('specialty', 'عنوان').filterText())\r\ntbl.add(new Xtc('name', 'نام و نام خانوادگی').filterText())\r\ntbl.add(new Xtc('job', 'شغل').filterText())\r\ntbl.add(new Xtc('education', 'تحصیلات').filterText())\r\ntbl.add(new Xtc('created_at', 'تاریخ ثبت').filterDate().renderSlot('created_at'))\r\ntbl.add(new Xtc('operator', 'عملیات').renderSlot('operator'))\r\nexport default tbl;\r\n\r\n","<template>\r\n <div>\r\n <vx-card\r\n ref=\"filterCard\"\r\n :removeCardAction=\"false\"\r\n title=\"لیست پلینو\"\r\n class=\"vx-card\">\r\n <div>\r\n <XTable :model=\"cols\" ref=\"tbl\">\r\n <RestFullActionSheet slot=\"operator\" slot-scope=\"{record}\"\r\n :record=\"record\" activeKey=\"active\"\r\n :has-delete=\"true\"\r\n :has-active=\"false\"\r\n :has-edit=\"false\"\r\n @view=\"setInitialValue(record)\"\r\n @delete=\"deleteItem(record.id)\"\r\n />\r\n<!-- <template #active=\"{text}\">\r\n {{ isActive(text) }}\r\n </template>-->\r\n <template #created_at=\"{text}\">\r\n {{ text | jdateNoTime }}\r\n </template>\r\n </XTable>\r\n </div>\r\n </vx-card>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport * as TableCol from '@/table/polino'\r\nimport XTable from '@/components/x-table/XTable'\r\nimport axios from '@/axios'\r\nimport RestFullActionSheet from '@/components/RestFullActionSheet'\r\n\r\nexport default {\r\n name: 'list',\r\n components: {\r\n RestFullActionSheet,\r\n XTable\r\n },\r\n data () {\r\n return {\r\n cols: null,\r\n initialValue: undefined,\r\n view: false\r\n }\r\n },\r\n methods: {\r\n async deleteItem(id) {\r\n try {\r\n this.$refs.tbl.loading = true\r\n await axios.delete(`admin/pol/user/${id}`)\r\n this.$message.success('آیتم با موفقیت حذف شد')\r\n await this.$refs.tbl.fetch()\r\n } catch (error) {\r\n this.$message.error('خطا در حذف آیتم')\r\n console.log(error)\r\n } finally {\r\n this.$refs.tbl.loading = false\r\n }\r\n },\r\n setInitialValue (row) {\r\n/* this.initialValue = row\r\n this.view = true*/\r\n window.open(`/admin/polino/info/${row.id}`, '_blank').focus()\r\n },\r\n },\r\n created () {\r\n this.cols = TableCol.default\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\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!./list.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!./list.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./list.vue?vue&type=template&id=5f45d609&scoped=true&\"\nimport script from \"./list.vue?vue&type=script&lang=js&\"\nexport * from \"./list.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 \"5f45d609\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure