{"version":3,"sources":["webpack:///./src/components/SimpleUploadImage/index.vue?8860","webpack:///./src/components/MultipleUploadFile/index.vue?1421","webpack:///./src/components/MultipleUploadFile/index.vue?ac02","webpack:///./src/components/MultipleUploadFile/index.vue?7dc0","webpack:///./src/components/MultipleUploadFile/index.vue","webpack:///./src/components/AbSelect/index.vue?6d18","webpack:///./src/components/AbSelect/index.vue?6669","webpack:///./src/components/AbSelect/index.vue?d427","webpack:///./src/components/AbSelect/index.vue","webpack:///./src/views/fundProject/fundNonCashDonation/edit.vue?508a","webpack:///./src/views/fundProject/fundNonCashDonation/edit.vue?90a8","webpack:///./src/views/fundProject/fundNonCashDonation/edit.vue?06ae","webpack:///./src/views/fundProject/fundNonCashDonation/edit.vue","webpack:///./src/components/SimpleUploadImage/index.vue?9d04","webpack:///./src/components/SimpleUploadImage/index.vue?2f6b","webpack:///./src/components/SimpleUploadImage/index.vue?7bd2","webpack:///./src/components/SimpleUploadImage/index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","baseURL","uploadParameter","onSuccess","attachmentList","onRemove","beforeRemove","onPreview","_v","staticRenderFns","attachmentIds","hostId","toString","api","attachmentService","getAttachments","hostType","then","res","length","map","item","name","fileName","push","id","$emit","file","success","result","attachmentId","$confirm","index","indexOf","response","splice","window","open","url","getOU","getTenantId","Authorization","getToken","type","Array","default","required","component","placeholder","disabled","filterable","clearable","loading","model","value","callback","$$v","val","expression","_l","key","itemValue","itemKey","newVal","deep","staticClass","ref","roleRule","form","$set","donationType","pattern","message","trigger","contactType","staticStyle","items","scopedSlots","_u","fn","scope","row","on","$event","deleteRow","$index","addRow","cancel","btnDisabled","save","text","company","telephone","Email","email","$route","params","fundNonCashDonation","get","Number","nonCashDonationItemJson","JSON","parse","$refs","dataForm","validate","valid","stringify","update","body","create","$router","back","$message","error","obj","Content","undefined","Count","Unit","Remark","FundApply","components","Tinymce","AbSelect","Ueditor","MultipleUploadFile","SimpleUploadImage","headers","handleSuccess","beforeUpload","stopPropag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AMvI,EAAG,IAAI,CAACmE,YAAY,uCAAuC,IACvnBxD,EAAkB,G,wHC0BD,EAArB,mPAUsBS,EAAUS,GAVhC,iFAWQT,EAAIU,UACNjC,KAAK2C,IAAMpB,EAAIW,OAAOS,IACtB3C,KAAK+B,MAAM,SAAUR,EAAIW,OAAOS,KAChC3C,KAAK2I,aAdX,6RAmBI3I,KAAK+B,MAAM,SAAU,IAnBzB,4IAmCuBC,GACnB4G,QAAQC,IAAI7G,GACEA,EAAKgB,KAAnB,IACM8F,EAAS9G,EAAK+G,KAAO,KAAO,KAAO,GACzC,QAAKD,IACH9I,KAAKsH,SAASC,MAAM,uBACb,KAzCb,8BAsBa,MACT,MAAO,CACL,mCAA0B,OAAW3E,aAArC,aAA0B,EAAkBd,GAC5C,eAAgB,OAAUe,YAC1B,+BAA2B,OAAWE,UACtC,sBAAuB,2BA3B7B,sCAgCI,MAAO,CAAC1B,SAAUrB,KAAKqB,cAhC3B,GAA+C,QAEC,gBAA7C,eAAM,SAAU,CAAC2B,KAAMgG,OAAQ9F,QAAS,M,0BAGzC,gBADC,eAAK,CAACC,UAAU,K,+BAIjB,gBADC,eAAK,CAACA,UAAU,EAAOD,SAAS,K,iCAPd,EAAiB,gBAHrC,eAAU,CACTvB,KAAK,uBAEc,WC3B6X,I,wBCQ9YyB,EAAY,eACd,EACAtD,EACAgB,GACA,EACA,KACA,WACA,MAIa,OAAAsC,E","file":"js/chunk-5aa1917c.b309dad7.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=673a343a&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=673a343a&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-upload',{attrs:{\"action\":(_vm.baseURL + \"/api/services/app/Attachment/UploadToOss\"),\"data\":_vm.uploadParameter,\"on-success\":_vm.onSuccess,\"multiple\":\"\",\"file-list\":_vm.attachmentList,\"on-remove\":_vm.onRemove,\"before-remove\":_vm.beforeRemove,\"on-preview\":_vm.onPreview}},[_c('el-button',{attrs:{\"size\":\"small\",\"type\":\"primary\"}},[_vm._v(\"点击上传\")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\nimport {Component, Model, Prop, Vue, Watch} from \"vue-property-decorator\";\nimport Base64 from \"@/utils/Base64\";\nimport api from \"@/api\";\nimport {UserModule} from \"@/store/modules/user\";\nimport {AppModule} from \"@/store/modules/app\";\nimport {AttachmentDto, AttachmentHostType} from \"@/api/appService\";\n\n@Component({\n name: \"multipleUploadFile\"\n})\nexport default class multipleUploadFile extends Vue {\n @Model(\"change\", {type: Array, default: () => []}) readonly fileIds?: number[] | undefined;\n\n @Prop({required: false})\n hostType!: AttachmentHostType;\n\n @Prop({required: true})\n hostId!: string | number;\n\n attachmentList?: AttachmentDto[] = [];\n attachmentIds?: number[] = [];\n\n created() {\n let hostId = ''\n if (typeof (this.hostId) === 'number') {\n hostId = this.hostId.toString()\n }\n api.attachmentService\n .getAttachments({\n hostId: hostId,\n hostType: this.hostType\n })\n .then(res => {\n this.attachmentList = res;\n if (this.attachmentList!.length > 0) {\n this.attachmentList!.map((item: any) => {\n item.name = item.fileName;\n this.attachmentIds!.push(item.id);\n });\n }\n this.$emit(\"change\", this.attachmentIds);\n });\n }\n\n // 上传成功\n async onSuccess(res: any, file: any) {\n if (res.success) {\n this.attachmentIds!.push(res.result.attachmentId);\n this.$emit(\"change\", this.attachmentIds);\n }\n }\n\n // 删除前\n beforeRemove(file: any) {\n return this.$confirm(`确定移除 ${file.name}?`);\n }\n\n // 删除成功\n onRemove(file: any) {\n this.$emit(\"onRemove\", file);\n let index = this.attachmentIds!.indexOf(file.id);\n if (index == -1) {\n index = this.attachmentIds!.indexOf(file.response.result.attachmentId);\n }\n this.attachmentIds!.splice(index, 1);\n this.$emit(\"change\", this.attachmentIds);\n }\n\n onPreview(file: any) {\n window.open(file.url);\n }\n\n get uploadParameter() {\n return {hostType: this.hostType};\n }\n\n get headers() {\n return {\n \"Abp-OrganizationUnitId\": UserModule.getOU?.id,\n \"Abp-TenantId\": AppModule.getTenantId,\n Authorization: `Bearer ${UserModule.getToken}`,\n \".AspNetCore.Culture\": \"c=zh-Hans|uic=zh-Hans\"\n };\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../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=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../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=ts&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=80f8c4fc&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=ts&\"\nexport * from \"./index.vue?vue&type=script&lang=ts&\"\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 \"80f8c4fc\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-select',{attrs:{\"placeholder\":_vm.placeholder,\"disabled\":_vm.disabled,\"filterable\":_vm.filterable,\"clearable\":_vm.clearable,\"loading\":_vm.loading},model:{value:(_vm.val),callback:function ($$v) {_vm.val=$$v},expression:\"val\"}},_vm._l((_vm.list),function(item,index){return _c('el-option',{key:index,attrs:{\"label\":item[_vm.itemValue],\"value\":item[_vm.itemKey],\"disabled\":_vm.disabled}})}),1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n import {Component, Vue, Inject, Prop, Watch, Model} from \"vue-property-decorator\";\nimport api from \"@/api\";\n\n@Component({name:'AbSelect'})\nexport default class AbSelect extends Vue {\n\n @Model('change',{required:true,default:''})readonly value!: number|string;\n\n @Prop({ required: false, default: false }) filterable!: boolean;\n\n // 页面上显示的值\n @Prop({ required: true }) itemValue!: string;\n\n // 传给后台的值再数据中的属性\n @Prop({ required: true }) itemKey!: string;\n\n @Prop({ required: false }) name!: string | number;\n\n @Prop({ required: false }) placeholder!: string;\n\n // 数据数组\n @Prop({ required: true }) list!: any[];\n\n @Prop({ required: false }) itemImage!: string | undefined;\n\n @Prop({ required: false }) itemTime!: string | undefined;\n\n @Prop({ required: false, default: false }) disabled!: boolean;\n\n @Prop({ required: false }) color!: string | undefined;\n @Prop({ required: false, default: true }) clearable!: boolean;\n @Prop({ required: false, default: false }) loading!: boolean;\n\n private val: number|string = '';\n\n created(){\n if(!this.loading){\n this.val = this.value;\n }\n }\n @Watch(\"value\",{deep:true})\n getValue(newVal:string | number) {\n this.val = newVal\n }\n\n @Watch(\"val\")\n onValueChange(newVal:string | number) {\n this.$emit('change',newVal);\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../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=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../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=ts&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=b8522dd8&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=ts&\"\nexport * from \"./index.vue?vue&type=script&lang=ts&\"\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 \"b8522dd8\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('el-form',{ref:\"dataForm\",attrs:{\"rules\":_vm.roleRule,\"model\":_vm.form,\"label-position\":\"top\"}},[_c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{attrs:{\"span\":10}},[_c('el-form-item',{attrs:{\"label\":\"姓名\",\"prop\":\"name\"}},[_c('el-input',{model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1)],1),_c('el-col',{attrs:{\"span\":10}},[_c('el-form-item',{attrs:{\"label\":\"公司\",\"prop\":\"company\"}},[_c('el-input',{model:{value:(_vm.form.company),callback:function ($$v) {_vm.$set(_vm.form, \"company\", $$v)},expression:\"form.company\"}})],1)],1),_c('el-col',{attrs:{\"span\":10}},[_c('el-form-item',{attrs:{\"label\":\"捐赠类型\",\"prop\":\"donationType\"}},[_c('ab-select',{staticClass:\"width-100\",attrs:{\"list\":_vm.donationType,\"item-value\":\"text\",\"item-key\":\"value\",\"placeholder\":\"请选择\"},model:{value:(_vm.form.donationType),callback:function ($$v) {_vm.$set(_vm.form, \"donationType\", $$v)},expression:\"form.donationType\"}})],1)],1),_c('el-col',{attrs:{\"span\":10}},[_c('el-form-item',{attrs:{\"label\":\"捐赠地址\",\"prop\":\"address\"}},[_c('el-input',{model:{value:(_vm.form.address),callback:function ($$v) {_vm.$set(_vm.form, \"address\", $$v)},expression:\"form.address\"}})],1)],1),_c('el-col',{attrs:{\"span\":10}},[_c('el-form-item',{attrs:{\"label\":\"手机号码\",\"prop\":\"telephone\",\"rules\":[{ required: true, pattern: /^1[345789]\\d{9}$/, message: '请输入正确的手机号', trigger: 'blur' }]}},[_c('el-input',{attrs:{\"type\":\"number\"},model:{value:(_vm.form.telephone),callback:function ($$v) {_vm.$set(_vm.form, \"telephone\", $$v)},expression:\"form.telephone\"}})],1)],1),_c('el-col',{attrs:{\"span\":10}},[_c('el-form-item',{attrs:{\"label\":\"邮箱\",\"prop\":\"email\"}},[_c('el-input',{model:{value:(_vm.form.email),callback:function ($$v) {_vm.$set(_vm.form, \"email\", $$v)},expression:\"form.email\"}})],1)],1),_c('el-col',{attrs:{\"span\":10}},[_c('el-form-item',{attrs:{\"label\":\"家庭电话\",\"prop\":\"homeTelephone\"}},[_c('el-input',{attrs:{\"type\":\"number\"},model:{value:(_vm.form.homeTelephone),callback:function ($$v) {_vm.$set(_vm.form, \"homeTelephone\", $$v)},expression:\"form.homeTelephone\"}})],1)],1),_c('el-col',{attrs:{\"span\":10}},[_c('el-form-item',{attrs:{\"label\":\"希望联系方式\",\"prop\":\"contactType\"}},[_c('ab-select',{staticClass:\"width-100\",attrs:{\"list\":_vm.contactType,\"item-value\":\"text\",\"item-key\":\"value\",\"placeholder\":\"请选择\"},model:{value:(_vm.form.contactType),callback:function ($$v) {_vm.$set(_vm.form, \"contactType\", $$v)},expression:\"form.contactType\"}})],1)],1)],1)],1),_c('el-card',{staticStyle:{\"margin-top\":\"24px\"}},[_c('el-table',{attrs:{\"data\":_vm.items,\"border\":\"\",\"stripe\":\"\"}},[_c('el-table-column',{attrs:{\"label\":\"序号\",\"type\":\"index\",\"width\":\"50\"}}),_c('el-table-column',{attrs:{\"label\":\"捐赠内容\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-input',{attrs:{\"type\":\"textarea\",\"autocomplete\":\"off\"},model:{value:(scope.row.Content),callback:function ($$v) {_vm.$set(scope.row, \"Content\", $$v)},expression:\"scope.row.Content\"}})]}}])}),_c('el-table-column',{attrs:{\"label\":\"请输入捐赠数量\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-input',{attrs:{\"type\":\"number\",\"onkeyup\":\"value=value.replace(/[^\\\\-?\\\\d.]/g,'')\"},model:{value:(scope.row.Count),callback:function ($$v) {_vm.$set(scope.row, \"Count\", $$v)},expression:\"scope.row.Count\"}})]}}])}),_c('el-table-column',{attrs:{\"label\":\"请输入捐赠单位\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-input',{attrs:{\"type\":\"textarea\",\"autocomplete\":\"off\"},model:{value:(scope.row.Unit),callback:function ($$v) {_vm.$set(scope.row, \"Unit\", $$v)},expression:\"scope.row.Unit\"}})]}}])}),_c('el-table-column',{attrs:{\"label\":\"请输入备注\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-input',{attrs:{\"type\":\"textarea\",\"autocomplete\":\"off\"},model:{value:(scope.row.Remark),callback:function ($$v) {_vm.$set(scope.row, \"Remark\", $$v)},expression:\"scope.row.Remark\"}})]}}])}),_c('el-table-column',{attrs:{\"label\":\"操作\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{staticClass:\"btn-add\",attrs:{\"size\":\"medium\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.deleteRow(scope.$index)}}},[_vm._v(\" 删除 \")])]}}])})],1),_c('el-row',{staticClass:\"text-center margin-top-lg\"},[_c('el-button',{staticClass:\"btn-add\",attrs:{\"size\":\"medium\",\"type\":\"primary\"},on:{\"click\":_vm.addRow}},[_vm._v(\" 添加一行 \")])],1)],1),_c('div',{staticStyle:{\"margin-top\":\"24px\"}},[_c('el-button',{attrs:{\"type\":\"default\"},on:{\"click\":_vm.cancel}},[_vm._v(\"返回\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"disabled\":_vm.btnDisabled},on:{\"click\":_vm.save}},[_vm._v(\"保存\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Ueditor from \"@/components/Ueditor/index.vue\";\r\nimport { Component, Ref, Vue } from \"vue-property-decorator\";\r\nimport api from \"@/api\";\r\nimport Tinymce from \"@/components/Tinymce/index.vue\";\r\nimport {\r\n AttachmentHostType, FundNonCashDonationRecordDto\r\n} from \"@/api/appService\";\r\nimport { ElForm } from \"element-ui/types/form\";\r\nimport AbSelect from \"@/components/AbSelect/index.vue\";\r\nimport MultipleUploadFile from \"@/components/MultipleUploadFile/index.vue\";\r\nimport SimpleUploadImage from \"@/components/SimpleUploadImage/index.vue\";\r\n\r\n@Component({\r\n components: {\r\n Tinymce,\r\n AbSelect,\r\n Ueditor,\r\n MultipleUploadFile,\r\n SimpleUploadImage\r\n }\r\n})\r\nexport default class CreateFundNonCashDonation extends Vue {\r\n @Ref() readonly dataForm!: ElForm;\r\n form: FundNonCashDonationRecordDto = {\r\n id: 0\r\n };\r\n contactType: any = [{\r\n text: '手机',\r\n value: 1\r\n }, {\r\n text: '邮箱',\r\n value: 2\r\n }, {\r\n text: '两种皆可',\r\n value: 3\r\n }];\r\n donationType: any = [{\r\n text: '物品捐赠',\r\n value: 1\r\n }, {\r\n text: '场地/其他捐赠',\r\n value: 2\r\n }];\r\n items: any = [];\r\n btnDisabled:boolean = false;\r\n\r\n get hostTypeFile() {\r\n return AttachmentHostType.FundApply;\r\n }\r\n\r\n created() {\r\n if (this.$route.params.id) {\r\n api.fundNonCashDonation\r\n .get({ id: Number(this.$route.params.id) })\r\n .then(res => {\r\n this.form = { ...res };\r\n if (this.form && this.form.nonCashDonationItemJson) {\r\n this.items = JSON.parse(this.form.nonCashDonationItemJson)\r\n }\r\n });\r\n }\r\n }\r\n\r\n async save() {\r\n this.btnDisabled = true;\r\n (this.$refs.dataForm as any).validate(async (valid: boolean) => {\r\n if (valid) {\r\n if (this.form!.id) {\r\n this.form.nonCashDonationItemJson = JSON.stringify(this.items)\r\n await api.fundNonCashDonation.update({\r\n body: this.form\r\n });\r\n } else {\r\n this.form.nonCashDonationItemJson = JSON.stringify(this.items)\r\n await api.fundNonCashDonation.create({\r\n body: this.form\r\n });\r\n }\r\n this.$router.back();\r\n this.$message.success(\"操作成功\");\r\n } else {\r\n this.$message.error(\"请检查表单!\");\r\n this.btnDisabled = false;\r\n }\r\n });\r\n }\r\n\r\n addRow() {\r\n let obj = {\r\n Content: undefined,\r\n\r\n Count: undefined,\r\n\r\n Unit: undefined,\r\n\r\n Remark: undefined,\r\n };\r\n this.items = [...this.items!, obj];\r\n }\r\n\r\n deleteRow(index: number) {\r\n if (this.items!.length === 1) {\r\n return;\r\n }\r\n this.items!.splice(index, 1);\r\n }\r\n\r\n cancel() {\r\n this.$router.back();\r\n }\r\n\r\n roleRule = {\r\n name: [\r\n {\r\n required: true,\r\n message: \"姓名必填\",\r\n trigger: \"blur\"\r\n }\r\n ],\r\n company: [\r\n {\r\n required: true,\r\n message: \"公司必填\",\r\n trigger: \"blur\"\r\n }\r\n ],\r\n donationType: [\r\n {\r\n required: true,\r\n message: \"捐赠类型必填\",\r\n trigger: \"blur\"\r\n }\r\n ],\r\n telephone: [\r\n {\r\n required: true,\r\n message: \"手机号码必填\",\r\n trigger: \"blur\"\r\n }\r\n ],\r\n Email: [\r\n {\r\n required: true,\r\n message: \"邮箱必填\",\r\n trigger: \"blur\"\r\n }\r\n ],\r\n contactType: [\r\n {\r\n required: true,\r\n message: \"希望联系方式必填\",\r\n trigger: \"blur\"\r\n }\r\n ],\r\n email: [\r\n {\r\n required: true,\r\n message: \"邮箱必填\",\r\n trigger: \"blur\"\r\n },\r\n {\r\n message: \"请填写正确的邮箱地址\",\r\n type: \"email\",\r\n trigger: \"blur\"\r\n }\r\n ]\r\n };\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./edit.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./edit.vue?vue&type=template&id=625eee0b&\"\nimport script from \"./edit.vue?vue&type=script&lang=ts&\"\nexport * from \"./edit.vue?vue&type=script&lang=ts&\"\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 null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-upload',{staticClass:\"avatar-uploader\",attrs:{\"data\":_vm.uploadParameter,\"action\":(_vm.baseURL + \"/api/services/app/Attachment/UploadToOss\"),\"show-file-list\":false,\"headers\":_vm.headers,\"on-success\":_vm.handleSuccess,\"before-upload\":_vm.beforeUpload}},[(_vm.url)?[_c('img',{staticClass:\"avatar\",attrs:{\"src\":_vm.url}}),(_vm.showDelete)?_c('i',{staticClass:\"el-icon-delete\",on:{\"click\":function($event){$event.stopPropagation();return _vm.handleRemove($event)}}}):_vm._e()]:_c('i',{staticClass:\"el-icon-plus avatar-uploader-icon\"})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport {Component, Model, Prop, Vue} from \"vue-property-decorator\";\nimport Base64 from \"@/utils/Base64\";\nimport api from \"@/api\";\nimport {UserModule} from \"@/store/modules/user\";\nimport {AppModule} from \"@/store/modules/app\";\nimport {AttachmentHostType} from \"@/api/appService\";\n\n@Component({\n name:'SimpleUploadImage'\n})\nexport default class SimpleUploadImage extends Vue {\n\n @Model('change', {type: String, default: ''}) url!: string;\n\n @Prop({required: true})\n hostType!: AttachmentHostType;\n\n @Prop({required: false, default: false})\n showDelete!: boolean;\n\n async handleSuccess(res: any, file: any) {\n if (res.success) {\n this.url = res.result.url;\n this.$emit('change', res.result.url)\n this.$nextTick()\n }\n }\n\n async handleRemove() {\n this.$emit('change', '')\n }\n\n get headers() {\n return {\n 'Abp-OrganizationUnitId': UserModule.getOU?.id,\n 'Abp-TenantId': AppModule.getTenantId,\n 'Authorization': `Bearer ${UserModule.getToken}`,\n '.AspNetCore.Culture': 'c=zh-Hans|uic=zh-Hans'\n }\n }\n\n get uploadParameter() {\n return {hostType: this.hostType};\n }\n\n private beforeUpload(file: any) {\n console.log(file);\n const isJPG = file.type === \"image/jpeg\";\n const isLt2M = file.size / 1024 / 1024 < 10;\n if (!isLt2M) {\n this.$message.error(\"上传头像图片大小不能超过 10MB!\");\n return false;\n } else {\n return true;\n }\n }\n\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../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=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../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=ts&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=673a343a&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=ts&\"\nexport * from \"./index.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=673a343a&scoped=true&lang=css&\"\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 \"673a343a\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}