/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: //home/henzagold/adminold/export/js/chunk-2d22891e.ac177f5f.js.map
{"version":3,"sources":["webpack:///./src/views/statics/index.vue","webpack:///src/views/statics/index.vue","webpack:///./src/views/statics/index.vue?aa16","webpack:///./src/views/statics/index.vue?6e3c"],"names":["render","_vm","this","_c","_self","attrs","loading","staticClass","on","getData","model","value","mode","callback","$$v","expression","_v","filterOption","customer","_l","customer_list","key","id","_s","name","_e","cols","dataSource","scopedSlots","_u","fn","record","index","staticRenderFns","data","computed","title","dataIndex","customRender","children","methods","input","option","url","axios","console","getCustomerList","created","component"],"mappings":"qIAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,UAAU,CAACA,EAAG,SAAS,CAACE,MAAM,CAAC,SAAWJ,EAAIK,UAAU,CAACH,EAAG,MAAM,CAACI,YAAY,yCAAyC,CAACJ,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,cAAc,CAACF,EAAG,WAAW,CAACI,YAAY,SAASC,GAAG,CAAC,OAASP,EAAIQ,SAASC,MAAM,CAACC,MAAOV,EAAIW,KAAMC,SAAS,SAAUC,GAAMb,EAAIW,KAAKE,GAAKC,WAAW,SAAS,CAACZ,EAAG,kBAAkB,CAACE,MAAM,CAAC,MAAQ,UAAU,CAACJ,EAAIe,GAAG,0CAA0Cb,EAAG,kBAAkB,CAACE,MAAM,CAAC,MAAQ,iBAAiB,CAACJ,EAAIe,GAAG,4CAA4Cb,EAAG,kBAAkB,CAACE,MAAM,CAAC,MAAQ,gBAAgB,CAACJ,EAAIe,GAAG,yCAAyC,IAAI,GAAiB,gBAAbf,EAAIW,KAAwBT,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,UAAU,CAACF,EAAG,WAAW,CAACI,YAAY,SAASF,MAAM,CAAC,cAAc,GAAG,gBAAgBJ,EAAIgB,cAAcT,GAAG,CAAC,OAASP,EAAIQ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A,qIAkCAE,QA9FA,uKA+FA,eA/FA,uBAgGA,uBAhGA,yGCpC8V,I,YCO1VC,EAAY,eACd,EACAhD,EACAiC,GACA,EACA,KACA,WACA,MAIa,aAAAe,E","file":"js/chunk-2d22891e.ac177f5f.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('vx-card',[_c('a-spin',{attrs:{\"spinning\":_vm.loading}},[_c('div',{staticClass:\"grid gap-4 grid-cols-1 md:grid-cols-3\"},[_c('a-form-item',{attrs:{\"label\":\"نوع نمایش\"}},[_c('a-select',{staticClass:\"w-full\",on:{\"change\":_vm.getData},model:{value:(_vm.mode),callback:function ($$v) {_vm.mode=$$v},expression:\"mode\"}},[_c('a-select-option',{attrs:{\"value\":\"title\"}},[_vm._v(\"\\n عنوان مسیر\\n \")]),_c('a-select-option',{attrs:{\"value\":\"customer/all\"}},[_vm._v(\"\\n تمام مشتریان\\n \")]),_c('a-select-option',{attrs:{\"value\":\"customer/id\"}},[_vm._v(\"\\n یک مشتری\\n \")])],1)],1),(_vm.mode === 'customer/id')?_c('a-form-item',{attrs:{\"label\":\"مشتری\"}},[_c('a-select',{staticClass:\"w-full\",attrs:{\"show-search\":\"\",\"filter-option\":_vm.filterOption},on:{\"change\":_vm.getData},model:{value:(_vm.customer),callback:function ($$v) {_vm.customer=$$v},expression:\"customer\"}},_vm._l((_vm.customer_list),function(customer){return _c('a-select-option',{key:customer.id,attrs:{\"value\":customer.id}},[_vm._v(\"\\n \"+_vm._s(customer.name)+\"\\n \")])}),1)],1):_vm._e()],1),_c('a-table',{attrs:{\"columns\":_vm.cols,\"data-source\":_vm.dataSource,\"bordered\":\"\"},scopedSlots:_vm._u([{key:\"row\",fn:function(name, record, index){return _c('div',{},[_vm._v(_vm._s(index + 1))])}}])})],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <vx-card>\r\n <a-spin :spinning=\"loading\">\r\n <div class=\"grid gap-4 grid-cols-1 md:grid-cols-3\">\r\n <a-form-item label=\"نوع نمایش\">\r\n <a-select @change=\"getData\" v-model=\"mode\" class=\"w-full\">\r\n <a-select-option value=\"title\">\r\n عنوان مسیر\r\n </a-select-option>\r\n <a-select-option value=\"customer/all\">\r\n تمام مشتریان\r\n </a-select-option>\r\n <a-select-option value=\"customer/id\">\r\n یک مشتری\r\n </a-select-option>\r\n </a-select>\r\n </a-form-item>\r\n <a-form-item label=\"مشتری\" v-if=\"mode === 'customer/id'\">\r\n <a-select @change=\"getData\" v-model=\"customer\"\r\n class=\"w-full\" show-search :filter-option=\"filterOption\">\r\n <a-select-option v-for=\"customer in customer_list\" :value=\"customer.id\" :key=\"customer.id\">\r\n {{ customer.name }}\r\n </a-select-option>\r\n </a-select>\r\n </a-form-item>\r\n </div>\r\n <a-table :columns=\"cols\" :data-source=\"dataSource\" bordered>\r\n <div slot=\"row\" slot-scope=\"name, record, index\">{{ index + 1 }}</div>\r\n </a-table>\r\n </a-spin>\r\n </vx-card>\r\n</template>\r\n\r\n<script>\r\nimport axios from \"@/axios\";\r\n\r\nexport default {\r\n name: \"index\",\r\n data() {\r\n return {\r\n dataSource: [],\r\n customer_list: [],\r\n mode: 'title',\r\n customer: null,\r\n loading: false,\r\n }\r\n },\r\n computed: {\r\n cols() {\r\n let cols = [\r\n {\r\n title: 'ردیف',\r\n dataIndex: 'time',\r\n key: 'time',\r\n scopedSlots: {customRender: 'row'},\r\n },\r\n ]\r\n if (this.mode !== 'customer/all')\r\n cols.push({\r\n title: 'عنوان',\r\n dataIndex: 'title',\r\n key: 'title',\r\n })\r\n else\r\n cols.push(\r\n {\r\n title: 'مشتری',\r\n dataIndex: 'customer',\r\n key: 'customer',\r\n children: [\r\n {\r\n title: 'شناسه',\r\n dataIndex: 'customer.id',\r\n key: 'customer.id',\r\n },\r\n {\r\n title: 'نام',\r\n dataIndex: 'customer.name',\r\n key: 'customer.name',\r\n },\r\n {\r\n title: 'موبایل',\r\n dataIndex: 'customer.mobile',\r\n key: 'customer.mobile',\r\n },\r\n ],\r\n }\r\n )\r\n cols.push({\r\n title: 'زمان',\r\n dataIndex: 'time',\r\n key: 'time',\r\n })\r\n return cols\r\n },\r\n },\r\n methods: {\r\n filterOption(input, option) {\r\n return (\r\n option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0\r\n );\r\n },\r\n async getData() {\r\n try {\r\n this.loading = true\r\n const url = this.mode !== 'customer/id' ? `log/${this.mode}` : this.customer ? `log/customer/${this.customer}` : undefined\r\n if (url) {\r\n const {data} = await axios.get(url)\r\n this.dataSource = data\r\n }\r\n } catch (e) {\r\n console.log(e)\r\n this.$ntSetError('خطا در دریافت اطلاعات')\r\n } finally {\r\n this.loading = false\r\n }\r\n },\r\n async getCustomerList() {\r\n try {\r\n this.loading = true\r\n const {data} = await axios.get('/log/list/customer')\r\n this.customer_list = data\r\n } catch (e) {\r\n console.log(e)\r\n this.$ntSetError('خطا در دریافت اطلاعات')\r\n } finally {\r\n this.loading = false\r\n }\r\n },\r\n },\r\n async created() {\r\n await this.getData()\r\n await this.getCustomerList()\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!./index.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!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=5bd14520&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.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 \"5bd14520\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure