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,KAAO,mBACHF,KAIR,IAAIG,EAAMX,EAAIE,GAAM7E,EAAKsF,EAAI,GAC7B,OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,MAAK,WACzC,OAAOJ,EAAoB9E,MAG7B4E,EAAoBW,KAAO,WAAa,OAAOnF,OAAOmF,KAAKZ,IAC3DC,EAAoB5E,GAAK,MACzBwF,EAAOC,QAAUb,G","sources":["webpack://liman/./src/views/user/user/add-edit-user.vue?8871","webpack://liman/src/views/user/user/add-edit-user.vue","webpack://liman/./src/views/user/user/add-edit-user.vue?05a2","webpack://liman/./src/views/user/user/add-edit-user.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('sedmed-form',{attrs:{\"items\":_vm.fromItems,\"initial-value\":_vm.initialValue,\"okText\":((_vm.id ? 'ویرایش' : 'ثبت') + \" ادمین \")},on:{\"create\":function($event){_vm.create(Object.assign($event, {full_name: $event.first_name+' '+$event.last_name}))},\"update\":function($event){_vm.update(Object.assign($event, {full_name: $event.first_name+' '+$event.last_name}))}}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <sedmed-form :items=\"fromItems\" @create=\"create(Object.assign($event, {full_name: $event.first_name+' '+$event.last_name}))\" @update=\"update(Object.assign($event, {full_name: $event.first_name+' '+$event.last_name}))\"\r\n :initial-value=\"initialValue\"\r\n :okText=\"`${id ? 'ویرایش' : 'ثبت'} ادمین `\"/>\r\n</template>\r\n\r\n<script>\r\nimport defaultFeilds from '@/mixins/defaultFeilds'\r\nimport SedmedForm from '@/components/sedmed-form/sedmed-form.vue'\r\nimport restFull from \"@/mixins/restFull\";\r\n\r\nexport default {\r\n name: 'addEditUser',\r\n components: {\r\n SedmedForm,\r\n },\r\n data() {\r\n return {\r\n fromItems: Object.assign(Object.assign({}, defaultFeilds), {\r\n user_type: {cls: 'hidden', initialValue: 1},\r\n email: {label: 'ایمیل', decorator: [{defaultKey: 'mail'}]},\r\n national_code: {label: 'کد ملی', decorator: [{defaultKey: 'len', defaultVal: 10}]},\r\n phone: {label: 'تلفن ثابت', decorator: [{defaultKey: 'phone'}]},\r\n access_level: {label: 'سطح دسترسی', custom: {type: 'number', min: 0, max: 100}},\r\n profile_img: {label: 'تصویر پروفایل', custom: {type: 'upload', mode: 'single', urlKey: 'avatar_url'}, initialValue: []},\r\n }),\r\n }\r\n },\r\n mixins: [restFull],\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\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!./add-edit-user.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!./add-edit-user.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./add-edit-user.vue?vue&type=template&id=4ae7a9ce&scoped=true&\"\nimport script from \"./add-edit-user.vue?vue&type=script&lang=js&\"\nexport * from \"./add-edit-user.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 \"4ae7a9ce\",\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 && this.initialValue.province) await this.getCities(this.initialValue.province)\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\t660\n\t],\n\t\"./categoryTbl\": [\n\t\t22881,\n\t\t881\n\t],\n\t\"./customerTbl\": [\n\t\t61003,\n\t\t3\n\t],\n\t\"./documentTbl\": [\n\t\t1370,\n\t\t370\n\t],\n\t\"./factorTbl\": [\n\t\t13159,\n\t\t159\n\t],\n\t\"./negotiable-typeTbl\": [\n\t\t47429,\n\t\t429\n\t],\n\t\"./negotiableTbl\": [\n\t\t2941,\n\t\t941\n\t],\n\t\"./porterTbl\": [\n\t\t63685,\n\t\t685\n\t],\n\t\"./productTbl\": [\n\t\t44740,\n\t\t740\n\t],\n\t\"./userTbl\": [\n\t\t66896,\n\t\t896\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","attrs","fromItems","initialValue","id","on","$event","create","Object","assign","full_name","first_name","last_name","update","staticRenderFns","name","components","SedmedForm","data","user_type","cls","email","label","decorator","defaultKey","national_code","defaultVal","phone","access_level","custom","type","min","max","profile_img","mode","urlKey","mixins","component","undefined","model","view","computed","$route","params","restfull","meta","restfullPath","customRoute","isCustomRoute","async","default","getData","city","province","getCities","methods","$store","commit","$axios","get","parent","error","console","log","values","patch","$ntSuccess","$router","push","post","toEdit","window","open","focus","setInitialValue","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