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OAAQ,GACRC,UAAU,EACVhB,UAAMiB,EACNC,MAAO,CACb,CACQ,MAARvB,eACQ,QAARG,YAEA,CACQ,MAARH,cACQ,QAARG,YAEA,CACQ,MAARH,QACQ,QAARG,gBAEA,CACQ,MAARH,OACQ,QAARG,eAEA,CACQ,MAARH,MACQ,QAARG,UAKEqB,SAAU,CAIRC,cAJJ,WAKM,MAAkB,iBAAd9C,KAAK0B,KAAgC1B,KAAKwC,MAAMO,QAAO,SAAjE,wCACa/C,KAAKwC,MAAMO,QAAO,SAA/B,0CAGE,QA3CF,WA2CA,gKACA,aADA,uBAEA,cAFA,8CAKEC,QAAS,CACP/B,QADJ,SACAN,GACU,CAAC,eAAgB,eAAesC,SAAStC,IAC3CX,KAAK0C,UAAW,EAChB1C,KAAK0B,KAAOf,GACpB,kBAEI,OAPJ,SAOAuC,GAAA,gJACAA,EAAAA,iBACA,4KACAC,EADA,0CAGA,iCAHA,uBAIA,gDAJA,cAKA,qBALA,SAMA,iBANA,OAOA,kDAPA,qDASAC,QAAAA,IAAAA,EAAAA,IATA,mCAWA,iCAXA,qJAFA,8CAqCI,SA5CJ,WA4CA,iLAEA,iCAFA,uBAGA,6BAHA,gBAGAC,EAHA,EAGAjB,KAAAiB,KACA,UAJA,qDAMAD,QAAAA,IAAAA,EAAAA,IANA,mCAQA,iCARA,+FAWI,UAvDJ,WAuDA,iLAEA,iCAFA,uBAGA,kCAHA,gBAGAC,EAHA,EAGAjB,KAAAiB,KACA,WAJA,qDAMAD,QAAAA,IAAAA,EAAAA,IANA,mCAQA,iCARA,+FA2BI3B,aAlFJ,SAkFA6B,EAAAC,GACM,OAAO,EAAb,gFCvMggB,I,UCO5fC,GAAY,OACd,EACA1D,EACAqC,GACA,EACA,KACA,WACA,MAIF,EAAeqB,EAAiB","sources":["webpack://liman/./src/views/messenger/notification.vue?8cdc","webpack://liman/src/views/messenger/notification.vue","webpack://liman/./src/views/messenger/notification.vue?26e6","webpack://liman/./src/views/messenger/notification.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}},[_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:(['title',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}],} ]),expression:\"['title',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}],},]\"}],staticClass:\"w-full\"})],1),_c('a-form-item',{attrs:{\"label\":\"نوع\"}},[_c('a-select',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:(['target_type',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}],} ]),expression:\"['target_type',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}],},]\"}],staticClass:\"w-full ltr\",on:{\"change\":_vm.setShow}},_vm._l((_vm.types),function(item){return _c('a-select-option',{key:item.title,attrs:{\"value\":item.title}},[_vm._v(\" \"+_vm._s(item.titleFa)+\" \")])}),1)],1),(_vm.showUser)?_c('a-form-item',{attrs:{\"label\":\"کاربر\"}},[_c('a-select',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:(['id',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}],} ]),expression:\"['id',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}],},]\"}],staticClass:\"w-full ltr\",attrs:{\"filter-option\":_vm.filterOption,\"show-search\":\"\"}},[(_vm.type == 'admin_single')?_vm._l((_vm.admins),function(item,index){return _c('a-select-option',{key:index,attrs:{\"value\":item.id}},[_vm._v(\" \"+_vm._s(item.id)+\" \"+_vm._s(item.first_name)+\" \"+_vm._s(item.last_name)+\" \")])}):_vm._l((_vm.filteredUsers),function(item,index){return _c('a-select-option',{key:index,attrs:{\"value\":item.id}},[_vm._v(\" \"+_vm._s(item.id)+\" \"+_vm._s(item.first_name)+\" \"+_vm._s(item.last_name)+\" \")])})],2)],1):_vm._e(),_c('a-form-item',{staticClass:\"md:col-span-3\",attrs:{\"label\":\"متن پیام\"}},[_c('a-textarea',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:(['body', { rules: [{ required: true, message: 'مقدار را وارد نمایید' }] }]),expression:\"['body', { rules: [{ required: true, message: 'مقدار را وارد نمایید' }] }]\"}],attrs:{\"auto-size\":{ minRows: 3, maxRows: 5 }}})],1)],1),_c('a-button',{staticClass:\"bg-primary\",attrs:{\"type\":\"primary\"},on:{\"click\":_vm.submit}},[_vm._v(\" ثبت اطلاعات \")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <a-form :form=\"form\">\r\n <div class=\"grid grid-cols-1 md:grid-cols-3 gap-4\">\r\n <a-form-item label=\"عنوان\">\r\n <a-input\r\n v-decorator=\"['title',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}],},]\"\r\n class=\"w-full\"\r\n />\r\n </a-form-item>\r\n <a-form-item label=\"نوع\">\r\n <a-select\r\n v-decorator=\"['target_type',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}],},]\"\r\n class=\"w-full ltr\"\r\n @change=\"setShow\"\r\n >\r\n <a-select-option\r\n v-for=\"item in types\"\r\n :key=\"item.title\"\r\n :value=\"item.title\"\r\n >\r\n {{ item.titleFa }}\r\n </a-select-option>\r\n </a-select>\r\n </a-form-item>\r\n <a-form-item\r\n v-if=\"showUser\"\r\n label=\"کاربر\"\r\n >\r\n <a-select\r\n v-decorator=\"['id',{rules: [{ required: true,message: 'لطفا مقدار را وارد کنید'}],},]\"\r\n :filter-option=\"filterOption\"\r\n show-search\r\n class=\"w-full ltr\"\r\n >\r\n <template v-if=\"type == 'admin_single'\">\r\n <a-select-option\r\n v-for=\"(item, index) in admins\"\r\n :key=\"index\"\r\n :value=\"item.id\">\r\n {{ item.id }} {{ item.first_name }} {{ item.last_name }}\r\n </a-select-option>\r\n </template>\r\n <template v-else>\r\n <a-select-option\r\n v-for=\"(item, index) in filteredUsers\"\r\n :key=\"index\"\r\n :value=\"item.id\">\r\n {{ item.id }} {{ item.first_name }} {{ item.last_name }}\r\n </a-select-option>\r\n </template>\r\n </a-select>\r\n </a-form-item>\r\n <a-form-item label=\"متن پیام\" class=\"md:col-span-3\">\r\n <a-textarea v-decorator=\"['body', { rules: [{ required: true, message: 'مقدار را وارد نمایید' }] }]\"\r\n :auto-size=\"{ minRows: 3, maxRows: 5 }\"\r\n />\r\n </a-form-item>\r\n </div>\r\n <a-button class=\"bg-primary\"\r\n type=\"primary\"\r\n @click=\"submit\"\r\n >\r\n ثبت اطلاعات\r\n </a-button>\r\n </a-form>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'Notification',\r\n data() {\r\n return {\r\n form: this.$form.createForm(this, { name: 'coordinated' }),\r\n created_at: null,\r\n users: [],\r\n admins: [],\r\n showUser: false,\r\n type: undefined,\r\n types: [\r\n {\r\n title: 'admin_single',\r\n titleFa: 'یک ادمین',\r\n },\r\n {\r\n title: 'user_single',\r\n titleFa: 'یک کاربر',\r\n },\r\n {\r\n title: 'admin',\r\n titleFa: 'همه ادمین ها',\r\n },\r\n {\r\n title: 'user',\r\n titleFa: 'همه کاربران',\r\n },\r\n {\r\n title: 'all',\r\n titleFa: 'همه',\r\n },\r\n ],\r\n }\r\n },\r\n computed: {\r\n /* id() {\r\n return this.$route.params.id\r\n }, */\r\n filteredUsers() {\r\n if (this.type === 'admin_single') return this.users.filter(x => x.user_type === 'super_admin')\r\n return this.users.filter(x => x.user_type !== 'super_admin')\r\n },\r\n },\r\n async created() {\r\n await this.getUsers()\r\n await this.getAdmins()\r\n // if (this.id) await this.getSashe()\r\n },\r\n methods: {\r\n setShow(value) {\r\n if (['admin_single', 'user_single'].includes(value)) {\r\n this.showUser = true\r\n this.type = value\r\n } else this.showUser = false\r\n },\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.$axios.post('/messenger/push-notification', values)\r\n this.form.resetFields()\r\n await this.$router.go(-1)\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 const obj = Object.assign(values, { created_at: this.created_at })\r\n await this.$axios.put(`/object-delivery/${this.id}`, obj)\r\n this.form.resetFields()\r\n await this.$router.push({ name: 'sashe-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 getUsers() {\r\n try {\r\n await this.$store.commit('setLoading', true)\r\n const { data: { rows } } = await this.$axios.post('/user/table' /* {filters: [{cr: 'or',index: 0,field: 'user_type', type: 'default',id: Math.random(),op: 'not', value: 'super_admin',},], // eslint-disable-next-line function-paren-newline} */)\r\n this.users = 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 getAdmins() {\r\n try {\r\n await this.$store.commit('setLoading', true)\r\n const { data: { rows } } = await this.$axios.post('/user-user/table' /* {filters: [{cr: 'or',index: 0,field: 'user_type', type: 'default',id: Math.random(),op: 'not', value: 'super_admin',},], // eslint-disable-next-line function-paren-newline} */)\r\n this.admins = 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 getSashe() {\r\n try {\r\n await this.$store.commit('setLoading', true)\r\n const { data } = await this.$axios.get(`/object-delivery/${this.id}`)\r\n this.created_at = data.created_at\r\n const sashe = {\r\n destination: data.destination.id,\r\n count: data.count,\r\n }\r\n this.form.setFieldsValue(sashe)\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!./notification.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!./notification.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./notification.vue?vue&type=template&id=389b8c1e&scoped=true&\"\nimport script from \"./notification.vue?vue&type=script&lang=js&\"\nexport * from \"./notification.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 \"389b8c1e\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","form","staticClass","directives","name","rawName","value","rules","required","message","expression","on","setShow","_l","item","key","title","_v","_s","titleFa","filterOption","type","index","id","first_name","last_name","_e","minRows","maxRows","submit","staticRenderFns","data","$form","createForm","created_at","users","admins","showUser","undefined","types","computed","filteredUsers","filter","methods","includes","e","err","console","rows","input","option","component"],"sourceRoot":""}
Copyright ©2k19 -
Hexid
|
Tex7ure