/
home
/
maktab
/
admin
/
js
/
File Upload :
llllll
Current File: /home/maktab/admin/js/chunk-7799e2f7.48557432.js.map
{"version":3,"sources":["webpack:///./src/components/RestFullActionSheet.vue","webpack:///src/components/RestFullActionSheet.vue","webpack:///./src/components/RestFullActionSheet.vue?f6fa","webpack:///./src/components/RestFullActionSheet.vue?ba6a","webpack:///./src/views/attendance/components/ReportModal.vue?a4cb","webpack:///./src/views/setting/supervisor/list.vue","webpack:///./src/table/general.js","webpack:///src/views/setting/supervisor/list.vue","webpack:///./src/views/setting/supervisor/list.vue?0a7a","webpack:///./src/views/setting/supervisor/list.vue?48a3","webpack:///./src/components/ConfirmBtn.vue","webpack:///src/components/ConfirmBtn.vue","webpack:///./src/components/ConfirmBtn.vue?9914","webpack:///./src/components/ConfirmBtn.vue?34ac","webpack:///./src/views/attendance/components/ReportModal.vue","webpack:///src/views/attendance/components/ReportModal.vue","webpack:///./src/views/attendance/components/ReportModal.vue?c1d5","webpack:///./src/views/attendance/components/ReportModal.vue?314c"],"names":["render","_vm","this","_c","_self","staticClass","slot","_v","on","$event","$emit","attrs","hasEdit","class","_e","hasDelete","hasActive","_s","concat","isActive","record","activeKey","_t","staticRenderFns","name","components","Icon","ConfirmBtn","props","Object","rowKey","String","Boolean","methods","active","component","$router","push","ref","cols","scopedSlots","_u","key","fn","_ref","toEdit","id","setInitialValue","deleteItem","initialValue","model","value","view","callback","$$v","expression","file","staticStyle","full_src","xxl","md","xs","mobile","_f","created_at","tbl","XTbl","add","Xtc","filterText","renderSlot","data","undefined","watch","reportModal","reportModalData","reportModalTitle","ReportModal","RestFullActionSheet","XTable","_deleteItem","_asyncToGenerator","regeneratorRuntime","mark","_callee","wrap","_context","prev","next","$refs","loading","axios","delete","fetch","$message","success","t0","error","console","log","finish","stop","_x","apply","arguments","window","open","focus","row","created","TableCol","okText","cancelText","title","iconClass","icon","type","required","teacher","length","item","index","present","default"],"mappings":"gHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAA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QAASnH,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACF,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACJ,EAAIM,GAAG,eAAeJ,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACJ,EAAIM,GAAG,aAAaN,EAAIgB,GAAGhB,EAAIqH,SAAS,gBAAgBrH,EAAIa,KAAKX,EAAG,aAAaA,EAAG,MAAM,CAACE,YAAY,uBAAuBQ,MAAMZ,EAAIsE,MAA0B,IAApBtE,EAAIsE,KAAKgD,OAAe,mBAAyB,IAAI,CAACpH,EAAG,SAAS,CAACQ,MAAM,CAAC,cAAc,aAAa,cAAcV,EAAIsE,MAAM/B,YAAYvC,EAAIwC,GAAG,CAAC,CAACC,IAAI,aAAaC,GAAG,SAAS6E,EAAMC,GAAO,OAAOtH,EAAG,cAAc,GAAG,CAACA,EAAG,MAAM,CAACE,YAAY,cAAc,CAACJ,EAAIM,GAAGN,EAAIgB,GAAGuG,EAAKhG,SAASrB,EAAG,QAAQ,CAACQ,MAAM,CAAC,MAAQ6G,EAAKE,QAAS,QAAQ,QAAQ,CAACzH,EAAIM,GAAG,iBAAiBN,EAAIgB,GAAGuG,EAAKE,QAAU,OAAS,QAAQ,mBAAmB,UAAU,IAAI,IAAI,IAE/hCnG,EAAkB,GCmCP,GACfC,KAAA,cACA+C,KAAA,WACA,UAEA3C,MAAA,CACAuB,MAAA,CAAAwE,SAAA,GACApD,KAAA,CAAA8C,UAAA,GACAJ,MAAA,GACAvB,QAAA,GACA4B,QAAA,KC/CkX,I,wBCQ9WnF,EAAY,eACd,EACAnC,EACAuB,GACA,EACA,KACA,WACA,MAIa,OAAAY,E","file":"js/chunk-7799e2f7.48557432.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"flex gap-1 w-full max-w-fit\"},[_c('ATooltip',[_c('template',{slot:\"title\"},[_vm._v(\"\\n نمایش جزئیات\\n \")]),_c('span',{on:{\"click\":function($event){return _vm.$emit('view')}}},[_c('Icon',{staticClass:\"!text-[25px] cursor-pointer\",attrs:{\"icon\":\"vuesax:clipboard-text-linear\"}})],1)],2),(_vm.hasEdit)?_c('ATooltip',{attrs:{\"placement\":\"bottom\"}},[_c('template',{slot:\"title\"},[_vm._v(\"\\n ویرایش\\n \")]),_c('div',{on:{\"click\":function($event){return _vm.$emit('edit')}}},[_c('Icon',{class:`!text-[25px] cursor-pointer text-success`,attrs:{\"icon\":'vuesax:edit-linear'}})],1)],2):_vm._e(),(_vm.hasDelete)?_c('ATooltip',{attrs:{\"placement\":\"bottom\"}},[_c('template',{slot:\"title\"},[_vm._v(\"\\n حذف\\n \")]),_c('ConfirmBtn',{attrs:{\"title\":\"آیتم حذف شود؟\",\"icon\":\"vuesax:trash-linear\",\"iconClass\":`!text-[25px] cursor-pointer text-danger`},on:{\"confirm\":function($event){return _vm.$emit('delete')}}})],2):_vm._e(),(_vm.hasActive)?_c('ATooltip',{attrs:{\"placement\":\"bottom\"}},[_c('template',{slot:\"title\"},[_vm._v(\"\\n \"+_vm._s(`${_vm.isActive(!_vm.record[_vm.activeKey])} کردن`)+\"\\n \")]),_c('ConfirmBtn',{attrs:{\"title\":`آیتم ${_vm.isActive(!_vm.record[_vm.activeKey])} شود؟`,\"icon\":_vm.record[_vm.activeKey] ? 'vuesax:tick-square-linear' : 'vuesax:close-square-linear',\"iconClass\":`!text-[25px] cursor-pointer ${_vm.record[_vm.activeKey] ? 'text-primary' : 'text-danger'}`},on:{\"confirm\":function($event){return _vm.$emit('active')}}})],2):_vm._e(),_vm._t(\"default\")],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"flex gap-1 w-full max-w-fit\" slot-scope=\"{record}\">\r\n <ATooltip>\r\n <template slot=\"title\">\r\n نمایش جزئیات\r\n </template>\r\n <span @click=\"$emit('view')\">\r\n <Icon icon=\"vuesax:clipboard-text-linear\" class=\"!text-[25px] cursor-pointer\"/>\r\n </span>\r\n </ATooltip>\r\n <ATooltip v-if=\"hasEdit\" placement=\"bottom\">\r\n <template slot=\"title\">\r\n ویرایش\r\n </template>\r\n <!-- <ConfirmBtn\r\n title=\"آیتم ویرایش شود؟\"\r\n icon=\"vuesax:edit-linear\"\r\n :iconClass=\"`!text-[25px] cursor-pointer text-success`\"\r\n @confirm=\"$emit('edit')\"\r\n />-->\r\n <div @click=\"$emit('edit')\">\r\n <Icon :icon=\"'vuesax:edit-linear'\"\r\n :class=\"`!text-[25px] cursor-pointer text-success`\"/>\r\n </div>\r\n </ATooltip>\r\n <ATooltip v-if=\"hasDelete\" placement=\"bottom\">\r\n <template slot=\"title\">\r\n حذف\r\n </template>\r\n <ConfirmBtn\r\n title=\"آیتم حذف شود؟\"\r\n icon=\"vuesax:trash-linear\"\r\n :iconClass=\"`!text-[25px] cursor-pointer text-danger`\"\r\n @confirm=\"$emit('delete')\"\r\n />\r\n </ATooltip>\r\n <ATooltip v-if=\"hasActive\" placement=\"bottom\">\r\n <template slot=\"title\">\r\n {{ `${isActive(!record[activeKey])} کردن` }}\r\n </template>\r\n <ConfirmBtn\r\n :title=\"`آیتم ${isActive(!record[activeKey])} شود؟`\"\r\n @confirm=\"$emit('active')\"\r\n :icon=\"record[activeKey] ? 'vuesax:tick-square-linear' : 'vuesax:close-square-linear'\"\r\n :iconClass=\"`!text-[25px] cursor-pointer ${record[activeKey] ? 'text-primary' : 'text-danger'}`\"\r\n >\r\n </ConfirmBtn>\r\n </ATooltip>\r\n <slot/>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport ConfirmBtn from '@/components/ConfirmBtn'\r\nimport Icon from '@/assets/icons/UI/Icon'\r\n\r\nexport default {\r\n name: 'RestFullActionSheet',\r\n components: {\r\n Icon,\r\n ConfirmBtn\r\n },\r\n props: {\r\n record: Object,\r\n rowKey: String,\r\n hasActive: Boolean,\r\n hasEdit: Boolean,\r\n hasDelete: Boolean,\r\n activeKey: String\r\n },\r\n methods: {\r\n isActive (active) {\r\n return active ? 'فعال' : 'غیر فعال'\r\n }\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!./RestFullActionSheet.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!./RestFullActionSheet.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./RestFullActionSheet.vue?vue&type=template&id=3f179bc8&scoped=true\"\nimport script from \"./RestFullActionSheet.vue?vue&type=script&lang=js\"\nexport * from \"./RestFullActionSheet.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 \"3f179bc8\",\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!./ReportModal.vue?vue&type=style&index=0&id=b6e9b184&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('vx-card',[_c('a-button',{staticClass:\"mb-5\",attrs:{\"type\":\"primary\"},on:{\"click\":function($event){return _vm.$router.push('/setting/supervisor/add')}}},[_vm._v(\"افزودن سوپروایزر\")]),_c('XTable',{ref:\"tbl\",attrs:{\"model\":_vm.cols},scopedSlots:_vm._u([{key:\"operator\",fn:function({record}){return _c('RestFullActionSheet',{attrs:{\"record\":record,\"activeKey\":\"active\",\"has-delete\":true,\"has-active\":false,\"has-edit\":true},on:{\"edit\":function($event){return _vm.toEdit(record.id)},\"view\":function($event){return _vm.setInitialValue(record)},\"delete\":function($event){return _vm.deleteItem(record.id)}}})}}])})],1),(_vm.initialValue)?_c('a-modal',{attrs:{\"footer\":null,\"onclose\":\"this.initialValue = undefined\"},model:{value:(_vm.view),callback:function ($$v) {_vm.view=$$v},expression:\"view\"}},[_c('div',{staticClass:\"md:flex gap-5 pt-10\"},[(_vm.initialValue.file)?_c('div',{staticClass:\"w-48 h-48 mx-auto\"},[_c('img',{staticClass:\"shadow-lg rounded-lg\",staticStyle:{\"width\":\"inherit\",\"height\":\"inherit\"},attrs:{\"src\":_vm.initialValue.file.full_src,\"alt\":_vm.initialValue.name}})]):_vm._e(),_c('div',[_c('a-descriptions',{attrs:{\"title\":\"اطلاعات\",\"column\":{ xxl: 3, md: 2, xs: 1 }}},[_c('a-descriptions-item',{attrs:{\"label\":\"شناسه\"}},[_vm._v(\"\\n \"+_vm._s(_vm.initialValue.id || '-')+\"\\n \")]),_c('a-descriptions-item',{attrs:{\"label\":\"نام\"}},[_vm._v(\"\\n \"+_vm._s(_vm.initialValue.name || '-')+\"\\n \")]),_c('a-descriptions-item',{attrs:{\"label\":\"موبایل\"}},[_vm._v(\"\\n \"+_vm._s(_vm.initialValue.mobile || '-')+\"\\n \")]),_c('a-descriptions-item',{attrs:{\"label\":\"تاریخ ثبت\"}},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"jdate\")(_vm.initialValue.created_at))+\"\\n \")])],1)],1)])]):_vm._e()],1)\n}\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/user/general/table', 'لیست سوپروایزر')\r\ntbl.add(new Xtc('id', 'شناسه').filterText())\r\ntbl.add(new Xtc('name', 'نام و نام خانوادگی').filterText())\r\ntbl.add(new Xtc('mobile', 'شماره تلفن').filterText())\r\n// tbl.add(new Xtc('daj', 'تاریخ').filterNumber())\r\ntbl.add(new Xtc('operator', 'عملیات').renderSlot('operator'))\r\n\r\nexport default tbl;\r\n\r\n","<template>\r\n\r\n <div>\r\n <vx-card>\r\n <a-button type=\"primary\" class=\"mb-5\" @click=\"$router.push('/setting/supervisor/add')\">افزودن سوپروایزر</a-button>\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=\"true\"\r\n @edit=\"toEdit(record.id)\"\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 <!-- <template #operator=\"{record}\">\r\n <a-tooltip @click=\"setPreview(record.id,record.title)\">\r\n <template slot=\"title\">\r\n مشاهده گزارش\r\n </template>\r\n <Icon icon=\"vuesax:clipboard-text-linear\" class=\"cursor-pointer text-primary\"/>\r\n </a-tooltip>\r\n </template>-->\r\n </XTable>\r\n </vx-card>\r\n <a-modal v-model=\"view\" :footer=\"null\" v-if=\"initialValue\" onclose=\"this.initialValue = undefined\">\r\n\r\n <div class=\"md:flex gap-5 pt-10\">\r\n <div v-if=\"initialValue.file\" class=\"w-48 h-48 mx-auto\">\r\n <img :src=\"initialValue.file.full_src\" :alt=\"initialValue.name\"\r\n class=\"shadow-lg rounded-lg\" style=\"width: inherit;height: inherit\">\r\n </div>\r\n <div>\r\n <a-descriptions title=\"اطلاعات\" :column=\"{ xxl: 3, md: 2, xs: 1 }\">\r\n <a-descriptions-item label=\"شناسه\">\r\n {{ initialValue.id || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"نام\">\r\n {{ initialValue.name || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"موبایل\">\r\n {{ initialValue.mobile || '-' }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"تاریخ ثبت\">\r\n {{ initialValue.created_at | jdate }}\r\n </a-descriptions-item>\r\n </a-descriptions>\r\n </div>\r\n </div>\r\n </a-modal>\r\n </div>\r\n <!-- <ReportModal :value=\"reportModal\" @input=\"(x) => reportModal = x\"/>-->\r\n</template>\r\n\r\n<script>\r\nimport * as TableCol from '@/table/general'\r\nimport XTable from '@/components/x-table/XTable'\r\nimport RestFullActionSheet from '@/components/RestFullActionSheet'\r\nimport Icon from '@/assets/icons/UI/Icon'\r\nimport ReportModal from '@/views/attendance/components/ReportModal'\r\nimport axios from '@/axios'\r\n\r\nexport default {\r\n name: 'Teacher',\r\n data(){\r\n return{\r\n cols: null,\r\n initialValue: undefined,\r\n view: false\r\n }\r\n },\r\n watch:{\r\n reportModal(){\r\n this.reportModalData = undefined\r\n this.reportModalTitle = ''\r\n }\r\n },\r\n components: {\r\n ReportModal,\r\n RestFullActionSheet,\r\n XTable,\r\n Icon\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/user/general/${id}`)\r\n await this.$refs.tbl.fetch()\r\n this.$message.success('آیتم با موفقیت حذف شد')\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 toEdit (id) {\r\n window.open(`/admin/setting/supervisor/edit/${id}`, '_blank').focus()\r\n },\r\n setInitialValue (row) {\r\n this.initialValue = row\r\n this.view = true\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=dd50b972&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 \"dd50b972\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('APopconfirm',{attrs:{\"ok-text\":_vm.okText || 'بله',\"cancel-text\":_vm.cancelText || 'خیر'},on:{\"confirm\":function($event){return _vm.$emit('confirm')}}},[_c('template',{slot:\"title\"},[_vm._v(\"\\n \"+_vm._s(_vm.title)+\"\\n \")]),_c('Icon',{class:_vm.iconClass,attrs:{\"icon\":_vm.icon}})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <APopconfirm\r\n :ok-text=\"okText || 'بله'\"\r\n :cancel-text=\"cancelText || 'خیر'\"\r\n @confirm=\"$emit('confirm')\"\r\n >\r\n <template slot=\"title\">\r\n {{title}}\r\n </template>\r\n <Icon :icon=\"icon\" :class=\"iconClass\"/>\r\n </APopconfirm>\r\n</template>\r\n\r\n<script>\r\nimport Icon from '@/assets/icons/UI/Icon'\r\nexport default {\r\n name: \"TooltipBtn\",\r\n components: {Icon},\r\n props: {\r\n icon: {\r\n type: String,\r\n required: true,\r\n },\r\n title: {\r\n type: String,\r\n required: false,\r\n },\r\n iconClass: {\r\n type: String,\r\n required: false,\r\n },\r\n okText: {\r\n type: String,\r\n required: false,\r\n },\r\n cancelText: {\r\n type: String,\r\n required: false,\r\n },\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!./ConfirmBtn.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!./ConfirmBtn.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ConfirmBtn.vue?vue&type=template&id=2ae9e054&scoped=true\"\nimport script from \"./ConfirmBtn.vue?vue&type=script&lang=js\"\nexport * from \"./ConfirmBtn.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 \"2ae9e054\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('a-modal',{attrs:{\"visible\":_vm.value,\"centered\":\"\",\"footer\":null},on:{\"cancel\":function($event){return _vm.$emit('input',false)}}},[_c('a-spin',{attrs:{\"spinning\":_vm.loading}},[_c('h3',{staticClass:\"pr-5 md:text-xl\"},[_vm._v(_vm._s(_vm.title))]),(_vm.teacher)?_c('div',{staticClass:\"pr-5 flex items-center\"},[_c('div',{staticClass:\"text-xl font-bold\"},[_vm._v(\"نام مربی:\")]),_c('div',{staticClass:\"ml-2\"},[_vm._v(\"\\n \"+_vm._s(_vm.teacher)+\"\\n \")])]):_vm._e(),_c('a-divider'),_c('div',{staticClass:\"w-[90vw] md:w-[60vw]\",class:_vm.data? _vm.data.length !== 0 ? 'attendance_items': '' : ''},[_c('a-list',{attrs:{\"item-layout\":\"horizontal\",\"data-source\":_vm.data},scopedSlots:_vm._u([{key:\"renderItem\",fn:function(item, index){return _c('a-list-item',{},[_c('div',{staticClass:\"px-10 py-2\"},[_vm._v(_vm._s(item.name))]),_c('a-tag',{attrs:{\"color\":item.present? 'green':'red'}},[_vm._v(\"\\n \"+_vm._s(item.present ? 'حاضر' : 'غایب')+\"\\n \")])],1)}}])})],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <a-modal :visible=\"value\" centered @cancel=\"$emit('input',false)\" :footer=\"null\">\r\n <a-spin :spinning=\"loading\">\r\n <h3 class=\"pr-5 md:text-xl\">{{ title }}</h3>\r\n <div class=\"pr-5 flex items-center\" v-if=\"teacher\">\r\n <div class=\"text-xl font-bold\">نام مربی:</div>\r\n <div class=\"ml-2\">\r\n {{ teacher }}\r\n </div>\r\n </div>\r\n\r\n <a-divider/>\r\n <div class=\"w-[90vw] md:w-[60vw]\" :class=\"data? data.length !== 0 ? 'attendance_items': '' : ''\">\r\n <a-list item-layout=\"horizontal\" :data-source=\"data\">\r\n <a-list-item slot=\"renderItem\" slot-scope=\"item, index\">\r\n <!-- <a-list-item-meta\r\n description=\"Ant Design, a design language for background applications, is refined by Ant UED Team\"\r\n >\r\n <a slot=\"title\" href=\"https://www.antdv.com/\">{{ item.title }}</a>\r\n <a-avatar\r\n slot=\"avatar\"\r\n src=\"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png\"\r\n />\r\n </a-list-item-meta>-->\r\n <div class=\"px-10 py-2\">{{ item.name }}</div>\r\n <a-tag :color=\"item.present? 'green':'red' \">\r\n {{ item.present ? 'حاضر' : 'غایب' }}\r\n </a-tag>\r\n </a-list-item>\r\n </a-list>\r\n </div>\r\n\r\n </a-spin>\r\n </a-modal>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'ReportModal',\r\n data () {\r\n return {}\r\n },\r\n props: {\r\n value: {default: false},\r\n data: {required: true},\r\n title: {},\r\n loading: {},\r\n teacher: {}\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.attendance_items {\r\n max-height: 75vh;\r\n overflow-y: auto;\r\n}\r\n[dir] .ant-divider-horizontal{\r\n margin: 10px 0;\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!./ReportModal.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!./ReportModal.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./ReportModal.vue?vue&type=template&id=b6e9b184&scoped=true\"\nimport script from \"./ReportModal.vue?vue&type=script&lang=js\"\nexport * from \"./ReportModal.vue?vue&type=script&lang=js\"\nimport style0 from \"./ReportModal.vue?vue&type=style&index=0&id=b6e9b184&prod&scoped=true&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 \"b6e9b184\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure