goweb-gin-demo/web/dist/assets/js/chunk-c731a980.54be1077.js

2 lines
6.8 KiB
JavaScript
Raw Normal View History

2021-11-16 10:44:07 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c731a980"],{"455c":function(e,t,i){},4741: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",{staticStyle:{margin:"50px 0"}},[i("div",{staticClass:"header_write"},[e._v(e._s(e.template.header))]),e._l(e.template.contents,(function(t,a){return i("div",{key:a},[i("div",{staticStyle:{"font-weight":"600"}},[e._v(e._s(t.title)+"")]),i("quill-editor",{ref:a,refInFor:!0,staticStyle:{"margin-top":"20px"},attrs:{id:a},on:{blur:function(t){return e.onEditorBlur(t,a)},focus:function(t){return e.onEditorFocus(t,a)},change:function(t){return e.onEditorChange(t)}},model:{value:t.content,callback:function(i){e.$set(t,"content",i)},expression:"item.content"}})],1)})),i("div",{staticStyle:{"font-weight":"600"}},[e._v("图片上传")]),i("div",[i("div",{staticClass:"clearfix"},[i("a-upload",{attrs:{action:"/week/fileUploadAndDownload/upload","list-type":"picture-card","file-list":e.fileList,accept:".png,.jpeg,.jpg",headers:{"x-token":e.xToken,"x-user-id":e.xUserId},remove:e.removeFile},on:{preview:e.handlePreview,change:e.handleChange}},[e.fileList.length<8?i("div",[i("a-icon",{attrs:{type:"plus"}}),i("div",{staticClass:"ant-upload-text"},[e._v(" Upload ")])],1):e._e()]),i("a-modal",{attrs:{visible:e.previewVisible,footer:null},on:{cancel:e.handleCancel}},[i("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.previewImage}})])],1)]),i("div",{staticStyle:{"font-weight":"600"}},[e._v("文件上传")]),i("div",[i("div",{staticClass:"clearfix"},[i("a-upload",{attrs:{action:"/week/fileUploadAndDownload/upload","file-list":e.fileList2,headers:{"x-token":e.xToken,"x-user-id":e.xUserId},remove:e.removeFile},on:{change:e.handleChange2}},[i("div",[i("a-button",[i("a-icon",{attrs:{type:"upload"}}),e._v(" Upload ")],1)],1)])],1)]),e._m(0),i("a-select",{class:e.sendToClass,staticStyle:{width:"100%"},attrs:{mode:"multiple",placeholder:"请选择人员"},on:{change:e.userChange},model:{value:e.sends,callback:function(t){e.sends=t},expression:"sends"}},e._l(e.userList,(function(t){return i("a-select-option",{key:t.ID},[e._v(" "+e._s(t.userName)+" ")])})),1),"cannotSubmit"===e.sendToClass?i("span",{staticStyle:{color:"red"}},[e._v("请选择人员")]):e._e(),i("div",{staticStyle:{"text-align":"center"}},[i("a-button",{staticStyle:{width:"400px","margin-top":"20px"},attrs:{type:"primary"},on:{click:e.addReports}},[e._v(" 提交 ")])],1)],2)},s=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{"font-weight":"600",margin:"20px 0 0 0"}},[i("span",{staticStyle:{color:"red"}},[e._v("*")]),e._v("发送给")])}],n=i("b85c"),r=i("1da1"),o=(i("96cf"),i("d3b7"),i("b0c0"),i("a9e3"),i("7c15")),l=i("953d");i("a753"),i("8096"),i("14e1");function c(e){return new Promise((function(t,i){var a=new FileReader;a.readAsDataURL(e),a.onload=function(){return t(a.result)},a.onerror=function(e){return i(e)}}))}var d={name:"WriteWeeklyReport",components:{quillEditor:l["quillEditor"]},data:function(){return{fileList:[],previewVisible:!1,previewImage:"",xToken:sessionStorage.getItem("login"),xUserId:sessionStorage.getItem("userId"),pictures:[],fileList2:[],template:{},userList:[],sends:[],attachments:[],sendToClass:"canSubmit",sendTo:[]}},created:function(){this.findTempl(),this.findUserList()},methods:{handleCancel:function(){this.previewVisible=!1},handlePreview:function(e){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(e.url||e.preview){i.next=4;break}return i.next=3,c(e.originFileObj);case 3:e.preview=i.sent;case 4:t.previewImage=e.url||e.preview,t.previewVisible=!0;case 6:case"end":return i.stop()}}),i)})))()},handleChange:function(e){var t=e.fileList;this.fileList=t},handleChange2:function(e){var t=e.fileList;this.fileList2=t},removeFile:function(e){var t=this,i={};i.key=e.response.data.file.key;var a,s=[],r=Object(n["a"])(this.fileList);try{for(r.s();!(a=r.n()).done;){var l=a.value;l.response.da
//# sourceMappingURL=chunk-c731a980.54be1077.js.map