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OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,MAAK,WACzC,OAAOJ,EAAoBlE,MAG7BgE,EAAoBW,KAAO,WAAa,OAAO9B,OAAO8B,KAAKZ,IAC3DC,EAAoBhE,GAAK,MACzB4E,EAAOC,QAAUb","sources":["webpack://liman/./src/views/brand/brandList.vue?473a","webpack://liman/src/views/brand/brandList.vue","webpack://liman/./src/views/brand/brandList.vue?dfd4","webpack://liman/./src/views/brand/brandList.vue","webpack://liman/./src/mixins/restFull.js","webpack://liman/./src/tableModel|lazy|/^/.*Tbl$/|groupOptions: {}|namespace object"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('x-table',{ref:\"brandTbl\",attrs:{\"model\":_vm.model},scopedSlots:_vm._u([{key:\"operator\",fn:function(ref){\nvar record = ref.record;\nreturn _c('div',{staticClass:\"grid grid-cols-1 md:grid-cols-3 gap-4\"},[_c('a-tooltip',[_c('template',{slot:\"title\"},[_vm._v(\" نمایش جزئیات \")]),_c('span',{on:{\"click\":function($event){return _vm.setInitialValue(record)}}},[_c('Icon',{staticClass:\"size-25 cursor-pointer\",attrs:{\"icon\":\"ion:list\"}})],1)],2),_c('a-tooltip',[_c('template',{slot:\"title\"},[_vm._v(\" ویرایش \")]),_c('a-popconfirm',{attrs:{\"title\":\"آیتم ویرایش شود؟\",\"ok-text\":\"بله\",\"cancel-text\":\"خیر\"},on:{\"confirm\":function($event){return _vm.toEdit(record.id)}}},[_c('Icon',{class:\"size-24 cursor-pointer text-success\",attrs:{\"icon\":\"ion:create-outline\"}})],1)],2),_c('a-tooltip',[_c('template',{slot:\"title\"},[_vm._v(\" حذف \")]),_c('a-popconfirm',{attrs:{\"title\":\"آیتم حذف شود؟\",\"ok-text\":\"بله\",\"cancel-text\":\"خیر\"},on:{\"confirm\":function($event){return _vm.deleteItem(record.id)}}},[_c('Icon',{class:\"size-24 cursor-pointer text-danger\",attrs:{\"icon\":\"ion:trash-outline\"}})],1)],2)],1)}}])}),(_vm.initialValue)?_c('a-modal',{attrs:{\"footer\":null},model:{value:(_vm.view),callback:function ($$v) {_vm.view=$$v},expression:\"view\"}},[_c('a-descriptions',{attrs:{\"title\":\"اطلاعات\",\"column\":{ xxl: 3, md: 2, xs: 1 }}},[_c('a-descriptions-item',{attrs:{\"label\":\"شناسه\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.id || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"نام\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.name || '-')+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"تعداد\"}},[_vm._v(\" \"+_vm._s(_vm.initialValue.count)+\" \")]),_c('a-descriptions-item',{attrs:{\"label\":\"توضیحات\",\"span\":2}},[_vm._v(\" \"+_vm._s(_vm.initialValue.description || '-')+\" \")])],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <x-table :model=\"model\" ref=\"brandTbl\">\r\n <div class=\"grid grid-cols-1 md:grid-cols-3 gap-4\" slot=\"operator\" slot-scope=\"{record}\">\r\n <a-tooltip>\r\n <template slot=\"title\">\r\n نمایش جزئیات\r\n </template>\r\n <span @click=\"setInitialValue(record)\">\r\n <Icon icon=\"ion:list\" class=\"size-25 cursor-pointer\"/>\r\n </span>\r\n </a-tooltip>\r\n <a-tooltip>\r\n <template slot=\"title\">\r\n ویرایش\r\n </template>\r\n <a-popconfirm\r\n title=\"آیتم ویرایش شود؟\"\r\n ok-text=\"بله\"\r\n cancel-text=\"خیر\"\r\n @confirm=\"toEdit(record.id)\"\r\n >\r\n <Icon icon=\"ion:create-outline\" :class=\"`size-24 cursor-pointer text-success`\"/>\r\n </a-popconfirm>\r\n </a-tooltip>\r\n <a-tooltip>\r\n <template slot=\"title\">\r\n حذف\r\n </template>\r\n <a-popconfirm\r\n title=\"آیتم حذف شود؟\"\r\n ok-text=\"بله\"\r\n cancel-text=\"خیر\"\r\n @confirm=\"deleteItem(record.id)\"\r\n >\r\n <Icon icon=\"ion:trash-outline\" :class=\"`size-24 cursor-pointer text-danger`\"/>\r\n </a-popconfirm>\r\n </a-tooltip>\r\n </div>\r\n </x-table>\r\n <a-modal v-model=\"view\" :footer=\"null\" v-if=\"initialValue\">\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.count }}\r\n </a-descriptions-item>\r\n <a-descriptions-item label=\"توضیحات\" :span=\"2\">\r\n {{ initialValue.description || '-' }}\r\n </a-descriptions-item>\r\n </a-descriptions>\r\n </a-modal>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport XTable from '@/components/x-table/XTable.vue'\r\nimport restFull from \"@/mixins/restFull\";\r\n\r\nexport default {\r\n mixins: [restFull],\r\n name: 'brandList',\r\n components: {XTable},\r\n}\r\n</script>\r\n","import mod from \"-!../../../node_modules/.pnpm/thread-loader@3.0.4_webpack@5.70.0/node_modules/thread-loader/dist/cjs.js!../../../node_modules/.pnpm/babel-loader@8.2.3_ed870ac3ba52c4ec230ba2bc3dbb311c/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../node_modules/.pnpm/@vue+cli-service@5.0.1_c60d37d6f98edb8bb59b38caea4c9fe8/node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./brandList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/.pnpm/thread-loader@3.0.4_webpack@5.70.0/node_modules/thread-loader/dist/cjs.js!../../../node_modules/.pnpm/babel-loader@8.2.3_ed870ac3ba52c4ec230ba2bc3dbb311c/node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../node_modules/.pnpm/@vue+cli-service@5.0.1_c60d37d6f98edb8bb59b38caea4c9fe8/node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./brandList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./brandList.vue?vue&type=template&id=735c1600&\"\nimport script from \"./brandList.vue?vue&type=script&lang=js&\"\nexport * from \"./brandList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/.pnpm/vue-loader@15.9.8_1f9b6d6a8c5e3033a639476f0cf6d876/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 default {\r\n data() {\r\n return {\r\n initialValue: undefined,\r\n model: undefined,\r\n view: false,\r\n }\r\n },\r\n computed: {\r\n id() {\r\n return this.$route.params.id\r\n },\r\n restfull() {\r\n return this.$route.meta.restfull\r\n },\r\n restfullPath() {\r\n return this.$route.meta.restfullPath || this.$route.meta.restfull\r\n },\r\n customRoute() {\r\n return this.$route.meta.isCustomRoute\r\n },\r\n },\r\n async created() {\r\n const model = await import(`@/tableModel/${this.restfull}Tbl`)\r\n this.model = model.default\r\n if (this.id && !this.customRoute) await this.getData()\r\n if (this.initialValue && this.initialValue.city) {\r\n await this.getProvince()\r\n if (this.initialValue.province) await this.getCities(this.initialValue.province)\r\n }\r\n },\r\n methods: {\r\n async getData(id = undefined) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n const {data} = await this.$axios.get(`/${this.restfullPath}/${id || this.id}/`)\r\n if (data && data.city && data.city.id && data.city.parent && data.city.parent.id) {\r\n this.initialValue = Object.assign(data, {\r\n province: data.city.parent.id,\r\n city: data.city.id\r\n })\r\n }\r\n else this.initialValue = data\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n async update(values) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n await this.$axios.patch(`/${this.restfullPath}/${this.id}/`, values)\r\n this.$ntSuccess('اطلاعات با موفقیت آپدیت شد')\r\n await this.$router.push({name: `${this.restfull}_list`})\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n async create(values) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n await this.$axios.post(`/${this.restfullPath}/`, values)\r\n this.$ntSuccess('اطلاعات با موفقیت ثبت شد')\r\n await this.$router.push({name: `${this.restfull}_list`})\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n\r\n\r\n\r\n // list methods\r\n toEdit(id) {\r\n window.open(`/${this.restfull}/edit/${id}`, '_blank').focus()\r\n },\r\n setInitialValue(row) {\r\n this.initialValue = row\r\n this.view = true\r\n },\r\n async toView(id) {\r\n await this.getData(id)\r\n this.view = true\r\n },\r\n async deleteItem(id) {\r\n try {\r\n this.$store.commit('setLoading', true)\r\n await this.$axios.delete(`/${this.restfullPath}/${id}/`)\r\n this.$ntSuccess('آیتم با موفقیت حذف شد')\r\n await this.$refs[`${this.restfull}Tbl`].fetch()\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n this.$store.commit('setLoading', false)\r\n }\r\n },\r\n },\r\n}\r\n","var map = {\n\t\"./brandTbl\": [\n\t\t54660,\n\t\t4660\n\t],\n\t\"./categoryTbl\": [\n\t\t22881,\n\t\t2881\n\t],\n\t\"./constantTbl\": [\n\t\t77041,\n\t\t7041\n\t],\n\t\"./customerTbl\": [\n\t\t61003,\n\t\t1003\n\t],\n\t\"./documentTbl\": [\n\t\t1370,\n\t\t1370\n\t],\n\t\"./factorTbl\": [\n\t\t13159,\n\t\t3159\n\t],\n\t\"./negotiable-typeTbl\": [\n\t\t47429,\n\t\t7429\n\t],\n\t\"./negotiableTbl\": [\n\t\t2941,\n\t\t2941\n\t],\n\t\"./orderTbl\": [\n\t\t56730,\n\t\t6730\n\t],\n\t\"./porsantTbl\": [\n\t\t45693,\n\t\t5693\n\t],\n\t\"./porterTbl\": [\n\t\t63685,\n\t\t3685\n\t],\n\t\"./productTbl\": [\n\t\t44740,\n\t\t4740\n\t],\n\t\"./sasheTbl\": [\n\t\t45868,\n\t\t5868\n\t],\n\t\"./userTbl\": [\n\t\t66896,\n\t\t6896\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 18847;\nmodule.exports = webpackAsyncContext;"],"names":["render","_vm","this","_h","$createElement","_c","_self","ref","attrs","model","scopedSlots","_u","key","fn","record","staticClass","slot","_v","on","$event","setInitialValue","toEdit","id","class","deleteItem","value","callback","$$v","view","expression","xxl","md","xs","_s","initialValue","name","count","description","_e","staticRenderFns","mixins","components","XTable","component","data","undefined","computed","$route","params","restfull","meta","restfullPath","customRoute","isCustomRoute","async","default","getData","city","getProvince","province","getCities","methods","$store","commit","$axios","get","parent","Object","assign","error","console","log","values","patch","$ntSuccess","$router","push","post","window","open","focus","row","delete","$refs","fetch","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","keys","module","exports"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure