/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminold/export/js/chunk-5552e057.ffc8cad4.js.map
{"version":3,"sources":["webpack:///./src/assets/images/no-image.png","webpack:///./src/components/goldPrice.vue","webpack:///src/components/goldPrice.vue","webpack:///./src/components/goldPrice.vue?1a82","webpack:///./src/components/goldPrice.vue?b8d7","webpack:///./src/views/branch/assets/img/ads.svg","webpack:///./src/views/branch/dashboard.vue","webpack:///src/views/branch/dashboard.vue","webpack:///./src/views/branch/dashboard.vue?fedb","webpack:///./src/views/branch/dashboard.vue?d969","webpack:///./src/views/branch/dashboard.vue?15b3"],"names":["module","exports","render","_vm","this","_c","_self","model","mesghal","staticClass","staticStyle","attrs","slot","_v","_s","uaj","p","scopedSlots","_u","key","fn","style","dt","proxy","geram18","geram24","_e","staticRenderFns","name","data","created","axios","console","component","dashboardData","Math","floor","total_weight_today","_f","total_price_today","total_weight_yesterday","total_price_yesterday","total_weight_month","total_price_month","total_weight_all","total_price_all","_m","list_orders_week","_l","tr","index","id","sts_str","total_price","caj","max_order","title","max_gram","image","noImage","require","components","GoldPrice","Icon","mounted"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,6B,6DCA3C,IAAIC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAQF,EAAII,MAAMC,QAASH,EAAG,UAAU,CAACI,YAAY,yBAAyBC,YAAY,CAAC,mBAAmB,WAAWC,MAAM,CAAC,KAAO,WAAWC,KAAK,WAAW,CAACP,EAAG,MAAM,CAACI,YAAY,wCAAwC,CAACJ,EAAG,MAAM,CAACA,EAAG,MAAM,CAACI,YAAY,uBAAuB,CAACN,EAAIU,GAAG,aAAaR,EAAG,MAAM,CAACI,YAAY,aAAaE,MAAM,CAAC,IAAM,QAAQ,CAACR,EAAIU,GAAG,eAAeV,EAAIW,GAAGX,EAAII,MAAMC,QAAQO,KAAK,iBAAiBV,EAAG,aAAa,CAACI,YAAY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U,GAAG,eAAeR,EAAG,QAAQ,CAACF,EAAIU,GAAG,eAAeR,EAAG,QAAQ,CAACF,EAAIU,GAAG,kBAAkB,IAAI,IAAI,MAAM,MAAM,IAEjyJc,EAAkB,CAAC,WAAY,IAAIxB,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACI,YAAY,cAAc,CAACJ,EAAG,MAAM,CAACI,YAAY,SAASE,MAAM,CAAC,IAAMiD,EAAQ,e,qECyIjJ,GACfhC,iBACAiC,YACAC,iBACAC,aAEAlC,gBACA,OACA8B,YACAzB,mBAGA8B,mBAAA,6KAEA,oDAAAnC,SACA,qBACAG,qBAAA,mDAEAA,kBAAA,8GANAgC,ICvJkW,I,wBCQ9V/B,EAAY,eACd,EACA/B,EACAyB,GACA,EACA,KACA,KACA,MAIa,aAAAM,E,2CCnBf","file":"js/chunk-5552e057.ffc8cad4.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/no-image.2e7b9f62.png\";","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.model.mesghal)?_c('vx-card',{staticClass:\"text-center greet-user\",staticStyle:{\"background-color\":\"#112046\"},attrs:{\"slot\":\"no-body\"},slot:\"no-body\"},[_c('div',{staticClass:\"md:flex items-center justify-between\"},[_c('div',[_c('div',{staticClass:\"text-white text-2xl\"},[_vm._v(\"نرخ طلا\")]),_c('div',{staticClass:\"text-white\",attrs:{\"dir\":\"ltr\"}},[_vm._v(\"\\n \"+_vm._s(_vm.model.mesghal.uaj)+\"\\n \")])]),_c('AStatistic',{staticClass:\"text-white\",staticStyle:{\"color\":\"white\"},attrs:{\"title\":\"مثقال طلا\",\"value\":_vm.model.mesghal.p || 0},scopedSlots:_vm._u([{key:\"prefix\",fn:function(){return [_c('a-icon',{style:(_vm.model.mesghal.dt=='high' ? {'color':'greenyellow'}:{'color':'red'}),attrs:{\"type\":_vm.model.mesghal.dt=='high' ? 'arrow-up':'arrow-down'}})]},proxy:true}],null,false,4068332016)}),_c('AStatistic',{staticClass:\"text-white\",staticStyle:{\"color\":\"white\"},attrs:{\"title\":\"طلا 18\",\"value\":_vm.model.geram18.p || 0},scopedSlots:_vm._u([{key:\"prefix\",fn:function(){return [_c('a-icon',{style:(_vm.model.geram18.dt=='high' ? {'color':'greenyellow'}:{'color':'red'}),attrs:{\"type\":_vm.model.geram18.dt=='high' ? 'arrow-up':'arrow-down'}})]},proxy:true}],null,false,3391683312)}),_c('AStatistic',{staticClass:\"text-white\",staticStyle:{\"color\":\"white\"},attrs:{\"title\":\"طلا 24\",\"value\":_vm.model.geram24.p || 0},scopedSlots:_vm._u([{key:\"prefix\",fn:function(){return [_c('a-icon',{style:(_vm.model.geram24.dt=='high' ? {'color':'greenyellow'}:{'color':'red'}),attrs:{\"type\":_vm.model.geram24.dt=='high' ? 'arrow-up':'arrow-down'}})]},proxy:true}],null,false,4282077296)})],1)]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <vx-card slot=\"no-body\" class=\"text-center greet-user\" style=\"background-color: #112046\" v-if=\"model.mesghal\">\r\n\r\n <div class=\"md:flex items-center justify-between\" >\r\n <div>\r\n <div class=\"text-white text-2xl\">نرخ طلا</div>\r\n <div class=\"text-white\" dir=\"ltr\">\r\n {{model.mesghal.uaj}}\r\n <!-- ۳۱ اردیبهشت ۱۳۹۹-->\r\n <!-- {{ model. }}-->\r\n </div>\r\n </div>\r\n <AStatistic title=\"مثقال طلا\" :value=\"model.mesghal.p || 0\" class=\"text-white\" style=\"color: white\">\r\n <template #prefix>\r\n <a-icon :type=\"model.mesghal.dt=='high' ? 'arrow-up':'arrow-down'\" :style=\"model.mesghal.dt=='high' ? {'color':'greenyellow'}:{'color':'red'}\" />\r\n </template>\r\n </AStatistic>\r\n<!-- <AStatistic title=\"سکه\" :value=\"model.sekeb.p\" class=\"text-white\" style=\"color: white\" >-->\r\n<!-- <template #prefix>-->\r\n<!-- <!–<a-icon type=\"arrow-up\" style=\"color: greenyellow\" />–>-->\r\n<!-- <a-icon :type=\"model.sekeb.dt=='high' ? 'arrow-up':'arrow-down'\" :style=\"model.sekeb.dt=='high' ? {'color':'greenyellow'}:{'color':'red'}\" />-->\r\n<!-- </template>-->\r\n<!-- </AStatistic>-->\r\n<!-- <AStatistic title=\"انس طلا\" :value=\"model.ons.p || 0\" class=\"text-white\" style=\"color: white\" >\r\n <template #prefix>\r\n <!–<a-icon type=\"arrow-up\" style=\"color: greenyellow\" />–>\r\n <a-icon :type=\"model.ons.dt=='high' ? 'arrow-up':'arrow-down'\" :style=\"model.ons.dt=='high' ? {'color':'greenyellow'}:{'color':'red'}\" />\r\n </template>\r\n </AStatistic>-->\r\n <AStatistic title=\"طلا 18\" :value=\"model.geram18.p || 0\" class=\"text-white\" style=\"color: white\" >\r\n <template #prefix>\r\n <!--<a-icon type=\"arrow-up\" style=\"color: greenyellow\" />-->\r\n <a-icon :type=\"model.geram18.dt=='high' ? 'arrow-up':'arrow-down'\" :style=\"model.geram18.dt=='high' ? {'color':'greenyellow'}:{'color':'red'}\" />\r\n </template>\r\n </AStatistic>\r\n <AStatistic title=\"طلا 24\" :value=\"model.geram24.p || 0\" class=\"text-white\" style=\"color: white\" >\r\n <template #prefix>\r\n <!--<a-icon type=\"arrow-up\" style=\"color: greenyellow\" />-->\r\n <a-icon :type=\"model.geram24.dt=='high' ? 'arrow-up':'arrow-down'\" :style=\"model.geram24.dt=='high' ? {'color':'greenyellow'}:{'color':'red'}\" />\r\n </template>\r\n </AStatistic>\r\n </div>\r\n </vx-card>\r\n</template>\r\n\r\n<script>\r\nimport axios from \"@/axios\";\r\n\r\nexport default {\r\nname: \"goldPrice\",\r\n data(){\r\n return {\r\n model:{}\r\n }\r\n },\r\n async created() {\r\n try {\r\n const {data} = await axios.get('price')\r\n this.model = data\r\n }\r\n catch (e) {\r\n console.error(e)\r\n }\r\n\r\n /*.then(resp => {\r\n resp.data;\r\n //console.log(this.omdeData);\r\n })\r\n .catch(err => {\r\n // Handle Error Here\r\n console.error(err);\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!./goldPrice.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!./goldPrice.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./goldPrice.vue?vue&type=template&id=66907336&scoped=true&\"\nimport script from \"./goldPrice.vue?vue&type=script&lang=js&\"\nexport * from \"./goldPrice.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 \"66907336\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"img/ads.f3dbd1a8.svg\";","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"branch-dashboard\"},[_c('gold-price'),(_vm.dashboardData)?_c('div',{staticClass:\"grid grid-cols-1 lg:grid-cols-12 mt-5 xl:mb-0 gap-4 items-center\"},[_c('div',{staticClass:\"col-span-8\"},[_c('div',{staticClass:\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4\"},[_c('vx-card',{staticClass:\"info-box\"},[_c('div',{staticClass:\"flex gap-2 items-center\"},[_c('div',{staticClass:\"box-icon p-3\"},[_c('Icon',{staticClass:\"text-primary\",attrs:{\"icon\":\"vuesax-linear:bag-happy\",\"size\":\"24\"}})],1),_c('span',{staticClass:\"!font-extrabold\"},[_vm._v(\"جمع فروش روز\")])]),_c('div',{staticClass:\"flex justify-between mt-3\"},[_c('div',[_c('span',[_vm._v(_vm._s(Math.floor(_vm.dashboardData.total_weight_today)))]),_c('span',{staticClass:\"text-xs ml-1 text-secondary-color text-secondary\"},[_vm._v(\"گرم\")])]),_c('div',[_c('span',[_vm._v(_vm._s(_vm._f(\"price\")(_vm.dashboardData.total_price_today)))]),_c('span',{staticClass:\"text-xs ml-1 text-secondary-color text-secondary\"},[_vm._v(\"تومان\")])])])]),_c('vx-card',{staticClass:\"info-box\"},[_c('div',{staticClass:\"flex gap-2 items-center\"},[_c('div',{staticClass:\"box-icon p-3\"},[_c('Icon',{staticClass:\"text-primary\",attrs:{\"icon\":\"vuesax-linear:bag-timer\",\"size\":\"24\"}})],1),_c('span',{staticClass:\"!font-extrabold\"},[_vm._v(\"جمع فروش روز گذشته\")])]),_c('div',{staticClass:\"flex justify-between mt-3\"},[_c('div',[_c('span',[_vm._v(_vm._s(Math.floor(_vm.dashboardData.total_weight_yesterday)))]),_c('span',{staticClass:\"text-xs ml-1 text-secondary-color text-secondary\"},[_vm._v(\"گرم\")])]),_c('div',[_c('span',[_vm._v(_vm._s(_vm._f(\"price\")(_vm.dashboardData.total_price_yesterday)))]),_c('span',{staticClass:\"text-xs ml-1 text-secondary-color text-secondary\"},[_vm._v(\"تومان\")])])])]),_c('vx-card',{staticClass:\"info-box\"},[_c('div',{staticClass:\"flex gap-2 items-center\"},[_c('div',{staticClass:\"box-icon p-3\"},[_c('Icon',{staticClass:\"text-primary\",attrs:{\"icon\":\"vuesax-linear:bag-timer\",\"size\":\"24\"}})],1),_c('span',{staticClass:\"!font-extrabold\"},[_vm._v(\"جمع فروش ماه \")])]),_c('div',{staticClass:\"flex justify-between mt-3\"},[_c('div',[_c('span',[_vm._v(_vm._s(Math.floor(_vm.dashboardData.total_weight_month)))]),_c('span',{staticClass:\"text-xs ml-1 text-secondary-color text-secondary\"},[_vm._v(\"گرم\")])]),_c('div',[_c('span',[_vm._v(_vm._s(_vm._f(\"price\")(_vm.dashboardData.total_price_month)))]),_c('span',{staticClass:\"text-xs ml-1 text-secondary-color text-secondary\"},[_vm._v(\"تومان\")])])])]),_c('vx-card',{staticClass:\"info-box\"},[_c('div',{staticClass:\"flex gap-2 items-center\"},[_c('div',{staticClass:\"box-icon p-3\"},[_c('Icon',{staticClass:\"text-primary\",attrs:{\"icon\":\"vuesax-linear:shop\",\"size\":\"24\"}})],1),_c('span',{staticClass:\"!font-extrabold\"},[_vm._v(\"جمع کل فروش\")])]),_c('div',{staticClass:\"flex justify-between mt-3\"},[_c('div',[_c('span',[_vm._v(_vm._s(Math.floor(_vm.dashboardData.total_weight_all)))]),_c('span',{staticClass:\"text-xs ml-1 text-secondary-color text-secondary\"},[_vm._v(\"گرم\")])]),_c('div',[_c('span',[_vm._v(_vm._s(_vm._f(\"price\")(_vm.dashboardData.total_price_all)))]),_c('span',{staticClass:\"text-xs ml-1 text-secondary-color text-secondary\"},[_vm._v(\"تومان\")])])])])],1)]),_vm._m(0)]):_vm._e(),_c('div',{staticClass:\"grid grid-cols-1 lg:grid-cols-12 gap-4 mt-5\"},[_c('div',{staticClass:\"col-span-8\"},[_c('vx-card',{attrs:{\"title\":\"سفارشات هفته جاری\"}},[_c('div',{staticClass:\"mt-4\",attrs:{\"slot\":\"no-body\"},slot:\"no-body\"},[_c('vs-table',{attrs:{\"stripe\":\"\",\"data\":_vm.dashboardData.list_orders_week,\"noDataText\":\"سفارشی وجود ندارد\"},scopedSlots:_vm._u([{key:\"default\",fn:function({data}){return _vm._l((data),function(tr,index){return _c('vs-tr',{key:index},[_c('vs-td',[_vm._v(_vm._s(tr.id))]),_c('vs-td',[_vm._v(_vm._s(tr.sts_str))]),_c('vs-td'),_c('vs-td',[_vm._v(_vm._s(_vm._f(\"priceUnit\")(tr.total_price)))]),_c('vs-td',[_vm._v(_vm._s(tr.caj))])],1)})}}])},[_c('template',{slot:\"thead\"},[_c('vs-th',[_vm._v(\"شماره سفارش\")]),_c('vs-th',[_vm._v(\"وضعیت\")]),_c('vs-th',[_vm._v(\"مشتری\")]),_c('vs-th',[_vm._v(\"جمع فاکتور\")]),_c('vs-th',[_vm._v(\"تاریخ سفارش\")])],1)],2)],1)])],1),_c('div',{staticClass:\"col-span-4\"},[_c('vx-card',{attrs:{\"title\":\"محصولات پر فروش\"}},[_c('div',{staticClass:\"mt-4\",attrs:{\"slot\":\"no-body\"},slot:\"no-body\"},[_c('vs-table',{attrs:{\"stripe\":\"\",\"data\":_vm.dashboardData.max_order,\"noDataText\":\"سفارشی وجود ندارد\"},scopedSlots:_vm._u([{key:\"default\",fn:function({data}){return _vm._l((data),function(tr,index){return _c('vs-tr',{key:index},[_c('vs-td',[_vm._v(_vm._s(tr.title))]),_c('vs-td',[_vm._v(_vm._s(tr.max_gram))]),_c('vs-td',[_c('img',{attrs:{\"src\":tr.image ? tr.image.image : _vm.noImage,\"width\":\"90px\",\"height\":\"90px\"}})])],1)})}}])},[_c('template',{slot:\"thead\"},[_c('vs-th',[_vm._v(\"نام محصول\")]),_c('vs-th',[_vm._v(\"وزن (گرم)\")]),_c('vs-th',[_vm._v(\"تصویر محصول\")])],1)],2)],1)])],1)])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"col-span-4\"},[_c('img',{staticClass:\"w-full\",attrs:{\"src\":require(\"./assets/img/ads.svg\")}})])\n}]\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"branch-dashboard\">\r\n <gold-price />\r\n <div class=\"grid grid-cols-1 lg:grid-cols-12 mt-5 xl:mb-0 gap-4 items-center\" v-if=\"dashboardData\">\r\n <div class=\"col-span-8\">\r\n <div class=\"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4\">\r\n <vx-card class=\"info-box\">\r\n <div class=\"flex gap-2 items-center\">\r\n <div class=\"box-icon p-3\">\r\n <Icon icon=\"vuesax-linear:bag-happy\" size=\"24\" class=\"text-primary\" />\r\n </div>\r\n <span class=\"!font-extrabold\">جمع فروش روز</span>\r\n </div>\r\n <div class=\"flex justify-between mt-3\">\r\n <div>\r\n <span>{{ Math.floor(dashboardData.total_weight_today) }}</span>\r\n <span class=\"text-xs ml-1 text-secondary-color text-secondary\">گرم</span>\r\n </div>\r\n <div>\r\n <span>{{ dashboardData.total_price_today | price }}</span>\r\n <span class=\"text-xs ml-1 text-secondary-color text-secondary\">تومان</span>\r\n </div>\r\n </div>\r\n </vx-card>\r\n <vx-card class=\"info-box\">\r\n <div class=\"flex gap-2 items-center\">\r\n <div class=\"box-icon p-3\">\r\n <Icon icon=\"vuesax-linear:bag-timer\" size=\"24\" class=\"text-primary\" />\r\n </div>\r\n <span class=\"!font-extrabold\">جمع فروش روز گذشته</span>\r\n </div>\r\n <div class=\"flex justify-between mt-3\">\r\n <div>\r\n <span>{{ Math.floor(dashboardData.total_weight_yesterday) }}</span>\r\n <span class=\"text-xs ml-1 text-secondary-color text-secondary\">گرم</span>\r\n </div>\r\n <div>\r\n <span>{{ dashboardData.total_price_yesterday | price }}</span>\r\n <span class=\"text-xs ml-1 text-secondary-color text-secondary\">تومان</span>\r\n </div>\r\n </div>\r\n </vx-card>\r\n <vx-card class=\"info-box\">\r\n <div class=\"flex gap-2 items-center\">\r\n <div class=\"box-icon p-3\">\r\n <Icon icon=\"vuesax-linear:bag-timer\" size=\"24\" class=\"text-primary\" />\r\n </div>\r\n <span class=\"!font-extrabold\">جمع فروش ماه </span>\r\n </div>\r\n <div class=\"flex justify-between mt-3 \">\r\n <div>\r\n <span>{{ Math.floor(dashboardData.total_weight_month) }}</span>\r\n <span class=\"text-xs ml-1 text-secondary-color text-secondary\">گرم</span>\r\n </div>\r\n <div>\r\n <span>{{ dashboardData.total_price_month | price }}</span>\r\n <span class=\"text-xs ml-1 text-secondary-color text-secondary\">تومان</span>\r\n </div>\r\n </div>\r\n </vx-card>\r\n <vx-card class=\"info-box\">\r\n <div class=\"flex gap-2 items-center\">\r\n <div class=\"box-icon p-3\">\r\n <Icon icon=\"vuesax-linear:shop\" size=\"24\" class=\"text-primary\" />\r\n </div>\r\n <span class=\"!font-extrabold\">جمع کل فروش</span>\r\n </div>\r\n <div class=\"flex justify-between mt-3\">\r\n <div>\r\n <span>{{ Math.floor(dashboardData.total_weight_all) }}</span>\r\n <span class=\"text-xs ml-1 text-secondary-color text-secondary\">گرم</span>\r\n </div>\r\n <div>\r\n <span>{{ dashboardData.total_price_all | price }}</span>\r\n <span class=\"text-xs ml-1 text-secondary-color text-secondary\">تومان</span>\r\n </div>\r\n </div>\r\n </vx-card>\r\n </div>\r\n </div>\r\n <div class=\"col-span-4\">\r\n <img src=\"./assets/img/ads.svg\" class=\"w-full\" />\r\n </div>\r\n </div>\r\n <div class=\"grid grid-cols-1 lg:grid-cols-12 gap-4 mt-5\">\r\n <div class=\"col-span-8\">\r\n <vx-card title=\"سفارشات هفته جاری\">\r\n <div slot=\"no-body\" class=\"mt-4\">\r\n <vs-table stripe :data=\"dashboardData.list_orders_week\" noDataText=\"سفارشی وجود ندارد\" >\r\n <template slot=\"thead\">\r\n <vs-th>شماره سفارش</vs-th>\r\n <vs-th>وضعیت</vs-th>\r\n <vs-th>مشتری</vs-th>\r\n <vs-th>جمع فاکتور</vs-th>\r\n <vs-th>تاریخ سفارش</vs-th>\r\n </template>\r\n <template slot-scope=\"{data}\">\r\n <vs-tr :key=\"index\" v-for=\"(tr, index) in data\" >\r\n <vs-td>{{tr.id}}</vs-td>\r\n <vs-td>{{ tr.sts_str }}</vs-td>\r\n <vs-td></vs-td>\r\n <vs-td>{{ tr.total_price | priceUnit}}</vs-td>\r\n <vs-td>{{ tr.caj }}</vs-td>\r\n </vs-tr>\r\n </template>\r\n </vs-table>\r\n </div>\r\n </vx-card>\r\n </div>\r\n <div class=\"col-span-4\">\r\n <vx-card title=\"محصولات پر فروش\">\r\n <div slot=\"no-body\" class=\"mt-4\">\r\n <vs-table stripe :data=\"dashboardData.max_order\" noDataText=\"سفارشی وجود ندارد\" >\r\n <template slot=\"thead\">\r\n <vs-th>نام محصول</vs-th>\r\n <vs-th>وزن (گرم)</vs-th>\r\n <vs-th>تصویر محصول</vs-th>\r\n </template>\r\n <template slot-scope=\"{data}\">\r\n <vs-tr :key=\"index\" v-for=\"(tr, index) in data\" >\r\n <vs-td>{{tr.title }}</vs-td>\r\n <vs-td>{{ tr.max_gram }}</vs-td>\r\n <vs-td>\r\n <img :src=\"tr.image ? tr.image.image : noImage\" width=\"90px\" height=\"90px\" />\r\n </vs-td>\r\n </vs-tr>\r\n </template>\r\n </vs-table>\r\n </div>\r\n </vx-card>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport Icon from '../../components/icon'\r\nimport GoldPrice from \"../../components/goldPrice\";\r\nimport noImage from \"../../assets/images/no-image.png\"\r\nexport default {\r\n name: \"dashboard\",\r\n components:{\r\n GoldPrice,\r\n Icon\r\n },\r\n data(){\r\n return {\r\n noImage,\r\n dashboardData:{}\r\n }\r\n },\r\n async mounted() {\r\n try{\r\n const {data}=await this.$http.get(\"/branch/dashboard\")\r\n this.dashboardData=data\r\n console.log(\"ddd\",data)\r\n }catch (e) {\r\n console.log(e)\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style lang=\"less\">\r\n .branch-dashboard{\r\n & .box-icon {\r\n border: 1px solid #F6F7F9;\r\n border-radius: 4px;\r\n background-color: #F6F7F9;\r\n }\r\n & .info-box{\r\n & .vx-card__body{\r\n padding: 5px 5px 25px;\r\n }\r\n }\r\n\r\n & .ant-statistic-title,& .ant-statistic-content-value{\r\n color:#fff\r\n }\r\n\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!./dashboard.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!./dashboard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./dashboard.vue?vue&type=template&id=2ae08524&\"\nimport script from \"./dashboard.vue?vue&type=script&lang=js&\"\nexport * from \"./dashboard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./dashboard.vue?vue&type=style&index=0&id=2ae08524&prod&lang=less&\"\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--10-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../node_modules/less-loader/dist/cjs.js??ref--14!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./dashboard.vue?vue&type=style&index=0&id=2ae08524&prod&lang=less&\""],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure