1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7dde07a9"],{a30b:function(e,t,i){"use strict";i.d(t,"e",(function(){return n})),i.d(t,"d",(function(){return r})),i.d(t,"f",(function(){return o})),i.d(t,"b",(function(){return l}));var a=i("b775");function n(e){return Object(a["a"])({url:"/system/email/info/list",method:"get",params:e})}function r(e){return Object(a["a"])({url:"/system/email/info/"+e,method:"get"})}function o(e){return Object(a["a"])({url:"/system/email/info",method:"put",data:e})}function l(e){return Object(a["a"])({url:"/system/email/info/"+e,method:"delete"})}},a805:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.mailGuid,expression:"mailGuid"}],attrs:{hidden:"hidden",id:"keys"},domProps:{value:e.mailGuid},on:{input:function(t){t.target.composing||(e.mailGuid=t.target.value)}}}),i("el-form-item",{attrs:{label:"发件人",prop:"senderName"}},[i("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.form.senderName,callback:function(t){e.$set(e.form,"senderName",t)},expression:"form.senderName"}})],1),i("el-form-item",{attrs:{label:"接收时间",prop:"createTime"}},[i("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.form.createTime,callback:function(t){e.$set(e.form,"createTime",t)},expression:"form.createTime"}})],1),i("el-form-item",{attrs:{label:"收件人",prop:"createTime"}},[i("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.form.receiverName,callback:function(t){e.$set(e.form,"receiverName",t)},expression:"form.receiverName"}})],1),i("el-form-item",{attrs:{label:"邮件主题",prop:"mailTheme"}},[i("el-input",{attrs:{placeholder:"",clearable:""},model:{value:e.form.mailTheme,callback:function(t){e.$set(e.form,"mailTheme",t)},expression:"form.mailTheme"}})],1),i("el-form-item",{attrs:{label:"附件",prop:"fujian"}},e._l(e.fujian,(function(t){return i("span",{staticClass:"hg"},[i("a",{staticClass:"fujian",attrs:{href:e.devapi+t.path,target:"_blank"}},[e._v(e._s(t.name.length>0?t.name:"无附件"))])])})),0),i("el-form-item",{staticStyle:{height:"250px"},attrs:{label:"邮件内容",prop:"mailContent"}},[i("Editor",{model:{value:e.form.mailContent,callback:function(t){e.$set(e.form,"mailContent",t)},expression:"form.mailContent"}})],1)],1)],1)},n=[],r=(i("28a5"),i("a30b")),o=i("095c"),l={name:"senddetails",components:{Editor:o["a"]},data:function(){return{loading:!0,ids:[],single:!0,multiple:!0,total:0,infoList:[],title:"",open:!1,open1:!1,queryParams:{pageNum:1,pageSize:10,senderName:void 0,senderAccount:void 0,receiverName:void 0,receiverAccount:void 0,mailTheme:void 0,mailContent:void 0,status:void 0,deleteTime:void 0},form:{},rules:{},fujianpath:"",fujianName:"",fujian:[],devapi:"",mailGuid:this.$route.query.id}},created:function(){this.info(),this.getList()},methods:{info:function(e){var t=this;Object(r["d"])(this.mailGuid).then((function(e){t.form=e.data,t.fujianpath=e.data.filePath.split(","),t.fujianName=e.data.fileName.split(",");for(var i=0;i<t.fujianName.length;i++)t.fujian.push({path:t.fujianpath[i],name:t.fujianName[i]});t.devapi="/prod-api"}))},openda:function(){this.open1=!1},getList:function(){var e=this;this.loading=!0,Object(r["e"])(this.queryParams).then((function(t){e.infoList=t.rows,e.total=t.total,e.loading=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={mailGuid:void 0,senderName:void 0,senderAccount:void 0,receiverName:void 0,receiverAccount:void 0,mailTheme:void 0,mailContent:void 0,createTime:void 0,status:"0",deleteTime:void 0},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.mailGuid})),this.single=1!=e.length,this.multiple=!e.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加【请填写功能名称】"},handleUpdate:function(e){var t=this;this.reset();var i=e.mailGuid||this.ids;Object(r["d"])(i).then((function(e){t.form=e.data,t.open=!0,t.title="邮件详情"}))},handleUpdate1:function(e){var t=this;this.reset();var i=e.mailGuid||this.ids;Object(r["d"])(i).then((function(e){t.form=e.data,t.title="修改【请填写功能名称】"}))}},watch:{$route:function(e,t){this.fujian=[],this.mailGuid=this.$route.query.id},mailGuid:function(){this.info()}}},s=l,m=(i("c91d"),i("2877")),u=Object(m["a"])(s,a,n,!1,null,"0b467d8b",null);t["default"]=u.exports},c91d:function(e,t,i){"use strict";i("cb16")},cb16:function(e,t,i){}}]);
|