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CA,iLAEA,iCAFA,uBAGA,kCAHA,gBAGAC,EAHA,EAGAX,KAAAW,KACA,WAJA,qDAMAD,QAAAA,IAAAA,EAAAA,IANA,mCAQA,iCARA,+FAWI,SAhDJ,WAgDA,iLAEA,iCAFA,uBAGA,4CAHA,gBAGAV,EAHA,EAGAA,KACA,yBAJA,qDAMAU,QAAAA,IAAAA,EAAAA,IANA,mCAQA,iCARA,+FAWItB,aA3DJ,SA2DAwB,EAAAC,GACM,OAAO,EAAb,gFC3H+f,I,UCO3fC,GAAY,OACd,EACAhD,EACAiC,GACA,EACA,KACA,WACA,MAIF,EAAee,EAAiB","sources":["webpack://liman/./src/views/const/createConst.vue?cca4","webpack://liman/src/views/const/createConst.vue","webpack://liman/./src/views/const/createConst.vue?f340","webpack://liman/./src/views/const/createConst.vue"],"sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-form',{attrs:{\"form\":_vm.form},on:{\"submit\":_vm.submit}},[_c('div',{staticClass:\"grid grid-cols-1 md:grid-cols-3 gap-4\"},[_c('a-form-item',{attrs:{\"label\":\"پرچم (دسته)\"}},[_c('a-input',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:(['flag',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'},_vm.username('پرچم')]}]),expression:\"['flag',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'},username('پرچم')]}]\"}]})],1),_c('a-form-item',{attrs:{\"label\":\"عنوان\"}},[_c('a-input',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:(['title',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}]}]),expression:\"['title',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}]}]\"}]})],1),_c('a-form-item',{attrs:{\"label\":\"پدر ثابت\"}},[_c('a-select',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:(['parent_id']),expression:\"['parent_id']\"}],staticStyle:{\"width\":\"100%\",\"direction\":\"rtl !important\"},attrs:{\"filter-option\":_vm.filterOption,\"show-search\":\"\"}},_vm._l((_vm.consts),function(item){return _c('a-select-option',{key:item.id,attrs:{\"value\":item.id}},[_vm._v(\" \"+_vm._s(item.id)+\" \"+_vm._s(item.title)+\" \")])}),1)],1),_c('a-form-item',{staticClass:\"md:col-span-3\",attrs:{\"label\":\"مقدار\"}},[_c('a-textarea',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:(['w']),expression:\"['w']\"}],attrs:{\"auto-size\":{ minRows: 3, maxRows: 5 }}})],1)],1),(!_vm.id)?_c('a-button',{staticClass:\"bg-primary\",attrs:{\"type\":\"primary\"},on:{\"click\":_vm.submit}},[_vm._v(\" ثبت اطلاعات \")]):_c('a-button',{staticClass:\"bg-primary\",attrs:{\"type\":\"primary\"},on:{\"click\":_vm.edit}},[_vm._v(\" ویرایش اطلاعات \")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <a-form\r\n :form=\"form\"\r\n @submit=\"submit\">\r\n <div class=\"grid grid-cols-1 md:grid-cols-3 gap-4\">\r\n <a-form-item label=\"پرچم (دسته)\">\r\n <a-input v-decorator=\"['flag',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'},username('پرچم')]}]\"/>\r\n </a-form-item>\r\n <a-form-item label=\"عنوان\">\r\n <a-input v-decorator=\"['title',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}]}]\"/>\r\n </a-form-item>\r\n <a-form-item label=\"پدر ثابت\">\r\n <a-select v-decorator=\"['parent_id']\" :filter-option=\"filterOption\" show-search style=\"width: 100%;direction: rtl !important;\">\r\n <a-select-option\r\n v-for=\"item in consts\"\r\n :key=\"item.id\"\r\n :value=\"item.id\">\r\n {{ item.id }} {{ item.title }}\r\n </a-select-option>\r\n </a-select>\r\n </a-form-item>\r\n <a-form-item label=\"مقدار\" class=\"md:col-span-3\">\r\n <a-textarea\r\n v-decorator=\"['w']\"\r\n :auto-size=\"{ minRows: 3, maxRows: 5 }\"/>\r\n </a-form-item>\r\n </div>\r\n <a-button v-if=\"!id\"\r\n type=\"primary\" class=\"bg-primary\"\r\n @click=\"submit\"\r\n >\r\n ثبت اطلاعات\r\n </a-button>\r\n <a-button v-else class=\"bg-primary\"\r\n type=\"primary\"\r\n @click=\"edit\"\r\n >\r\n ویرایش اطلاعات\r\n </a-button>\r\n </a-form>\r\n</template>\r\n\r\n<script>\r\n// import customValidation from '@/mixins/customValidation'\r\n\r\nexport default {\r\n name: 'createConst',\r\n // mixins: [customValidation],\r\n data() {\r\n return {\r\n form: this.$form.createForm(this, { name: 'coordinated' }),\r\n consts: [],\r\n }\r\n },\r\n computed: {\r\n id() {\r\n return this.$route.params.id\r\n },\r\n },\r\n async created() {\r\n await this.getConsts()\r\n if (this.id) await this.getConst()\r\n },\r\n methods: {\r\n async submit(e) {\r\n e.preventDefault()\r\n this.form.validateFields(async (err, values) => {\r\n if (!err) {\r\n try {\r\n await this.$store.commit('setLoading', true)\r\n await this.$caxios.post('/constant', values)\r\n this.form.resetFields()\r\n await this.$router.push({ name: 'const-list' })\r\n this.$ntSuccess('ثابت مورد نظر با موفقیت ثبت شد')\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n await this.$store.commit('setLoading', false)\r\n }\r\n }\r\n })\r\n },\r\n async edit(e) {\r\n e.preventDefault()\r\n this.form.validateFields(async (err, values) => {\r\n if (!err) {\r\n try {\r\n await this.$store.commit('setLoading', true)\r\n await this.$caxios.put(`/constant/${this.id}`, values)\r\n this.form.resetFields()\r\n await this.$router.push({ name: 'const-list' })\r\n this.$ntSuccess('ثابت مورد نظر با موفقیت ویرایش شد')\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n await this.$store.commit('setLoading', false)\r\n }\r\n }\r\n })\r\n },\r\n async getConsts() {\r\n try {\r\n await this.$store.commit('setLoading', true)\r\n const { data: { rows } } = await this.$caxios.post('/constant/table')\r\n this.consts = rows\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n await this.$store.commit('setLoading', false)\r\n }\r\n },\r\n async getConst() {\r\n try {\r\n await this.$store.commit('setLoading', true)\r\n const { data } = await this.$caxios.get(`/constant/id/${this.id}`)\r\n this.form.setFieldsValue(data)\r\n } catch (error) {\r\n console.log(error)\r\n } finally {\r\n await this.$store.commit('setLoading', false)\r\n }\r\n },\r\n filterOption(input, option) {\r\n return (option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0)\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/.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!./createConst.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!./createConst.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./createConst.vue?vue&type=template&id=5aa9cd57&scoped=true&\"\nimport script from \"./createConst.vue?vue&type=script&lang=js&\"\nexport * from \"./createConst.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 \"5aa9cd57\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","form","on","submit","staticClass","directives","name","rawName","value","rules","required","message","username","expression","staticStyle","filterOption","_l","item","key","id","_v","_s","title","minRows","maxRows","edit","staticRenderFns","data","$form","createForm","consts","computed","$route","params","methods","e","err","console","rows","input","option","component"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure