1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-message-content"],{"00fa":function(t,e,a){"use strict";a.r(e);var i=a("988f4"),n=a("024d");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("0e32");var d,r=a("f0c5"),c=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"fa5a7bd4",null,!1,i["a"],d);e["default"]=c.exports},"024d":function(t,e,a){"use strict";a.r(e);var i=a("6a29"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"0e32":function(t,e,a){"use strict";var i=a("ad3e"),n=a.n(i);n.a},"6a29":function(t,e,a){"use strict";(function(t){a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("14d9");var n=i(a("b424")),o=i(a("1026")),d={components:{mpHtml:o.default},data:function(){return{id:"",content:{},file:{},ismine:!1}},filters:{time:function(t){var e=new Date(t);return(0,n.default)(e).format("YYYY-MM-DD HH:mm")}},onLoad:function(t){this.id=t.id,this.initData()},methods:{initData:function(){this.getContent(),uni.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:this.themeColor.color,animation:{duration:400,timingFunc:"easeIn"}})},getContent:function(){var t=this.$mConfig.baseUrl+"/system/mes/"+this.id,e=this.$preToken+" "+this.$store.state.accessToken,a=this;this.$http.request({url:t,header:{"content-type":"application/json",Authorization:e}}).then((function(t){if("200"==t.code){a.content=t.data;var e=[];if(t.data.remark)var i=t.data.remark.split(",");else i=[];for(var n=0;n<i.length;n++)e.push({name:i[n],path:t.data.putFilePath.split(",")[n]});a.file=e}}))},showFile:function(e){var a=e.split(".")[1].toLocaleLowerCase(),i=this.$mConfig.baseUrl+e;if("jpg"==a||"jpeg"==a||"bmp"==a||"gif"==a||"png"==a){var n=[];n.push(i),uni.previewImage({urls:n})}else"doc"==a||"xls"==a||"ppt"==a||"pdf"==a||"docx"==a||"xlsx"==a||"pptx"==a?uni.downloadFile({url:i,success:function(e){var a=e.tempFilePath;uni.openDocument({filePath:a,success:function(e){t("log",e," at pages/message/content.vue:125")}})}}):uni.downloadFile({url:i,success:function(t){if(200===t.statusCode){var e=t.tempFilePath;uni.saveFile({tempFilePath:e[0],success:function(t){var e=t.savedFilePath;toastMsg("success","已保存文件至:"+e)}})}}})},handleWorksOperation:function(t){var e=this,a=this.$mConfig.baseUrl+t,i=this.$mConfig.baseUrl+"/fw/submitToDoItem/"+this.taskid,n=this.$preToken+" "+this.$store.state.accessToken,o=this;this.$http.request({url:a,method:"POST",header:{"content-type":"application/json",Authorization:n},params:{id:o.id}}).then((function(t){(t.code="200")&&e.$http.request({url:i,method:"PUT",header:{"content-type":"application/json",Authorization:n},data:{SelectUserType:"end",sendUser:"",sendUserRealName:""}}).then((function(t){"200"==t.code&&(o.qianshou=!0,o.content.updateTime=new Date)}))}))}}};e.default=d}).call(this,a("0de9")["log"])},"988f4":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var i={mpHtml:a("1026").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"oa-notice-detail"},[a("v-uni-view",{staticClass:"covers-body covers-uploader oa-uploader"},[a("v-uni-view",[a("v-uni-view",{staticStyle:{"text-align":"center","font-size":"1.2rem"}},[t._v(t._s(t.content.tatle))]),a("v-uni-view",{staticClass:"u-border-bottom"},[a("span",[t._v("发布人:"+t._s(t.content.createBy||"无"))]),a("span",{staticStyle:{"margin-left":"1rem"}},[t._v("发布时间:"+t._s(t._f("time")(t.content.createTime)))])]),a("v-uni-view",{staticClass:"input-title"},[a("mp-html",{attrs:{content:t.content.fileDetails}})],1)],1)],1),t.file.length>0?a("v-uni-view",{staticClass:"covers-body covers-uploader oa-uploader"},[a("v-uni-view",{staticClass:"input-title"},[a("v-uni-view",[t._v("附件:")]),a("v-uni-view",{staticClass:"uni-uploader"},t._l(t.file,(function(e,i){return a("v-uni-view",{key:i,staticClass:"uni-uploader-body"},[a("v-uni-view",{staticClass:"uni-uploader_files",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.showFile(e.path)}}},[[a("v-uni-view",{staticClass:"uni-uploader__file",staticStyle:{position:"relative"}},[t._v(t._s(e.name))])]],2)],1)})),1)],1)],1):t._e()],1)},o=[]},ad3e:function(t,e,a){var i=a("b467");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("2ce7cf9e",i,!0,{sourceMap:!1,shadowMode:!1})},b467:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/* 图片加载中颜色 */\n/* 行为相关颜色 */.oa-notice-detail .uni-timeline[data-v-fa5a7bd4]{padding:%?30?%;background-color:#fff}.oa-notice-detail .feedback-title[data-v-fa5a7bd4]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:%?20?%;margin-top:%?20?%;font-size:%?32?%}.oa-notice-detail .feedback-star-view.feedback-title[data-v-fa5a7bd4]{justify-content:flex-start;margin:0}.oa-notice-detail .feedback-quick[data-v-fa5a7bd4]{position:relative;padding-right:%?40?%}.oa-notice-detail .feedback-quick .iconfont[data-v-fa5a7bd4]{font-size:%?28?%}.oa-notice-detail .u-border-bottom[data-v-fa5a7bd4]{border-bottom:1px solid #e5e5e5;text-align:center;margin-top:10px;font-size:.9rem;color:#999}.oa-notice-detail .feedback-body[data-v-fa5a7bd4]{background:#fff;padding:%?10?% %?20?%}.oa-notice-detail .feedback-body .gender-item[data-v-fa5a7bd4]{margin-right:%?20?%}.oa-notice-detail .feedback-body .gender-item .gender-item-text[data-v-fa5a7bd4]{padding-left:%?10?%}.oa-notice-detail .feedback-body .gender-item uni-radio .wx-radio-input.wx-radio-input-checked[data-v-fa5a7bd4]{background:#fa436a;border-color:#fa436a}.oa-notice-detail .feedback-textare[data-v-fa5a7bd4]{height:%?200?%;font-size:%?34?%;line-height:%?50?%;width:100%;box-sizing:border-box;padding:%?20?% %?30?% 0}.oa-notice-detail .footer[data-v-fa5a7bd4]{position:fixed;left:0;bottom:0;z-index:98;width:100%;background-color:#fff;color:#606266;box-shadow:0 -1px 5px rgba(0,0,0,.1);display:flex;justify-content:flex-end;align-items:center;padding:%?15?% %?20?%}.oa-notice-detail .footer .action-btn[data-v-fa5a7bd4]{font-size:%?28?%;margin:0 0 0 %?15?%;padding:0 %?30?%;text-align:center;height:%?60?%;line-height:%?60?%}.oa-notice-detail .banner[data-v-fa5a7bd4]{overflow:hidden;position:relative;background-color:#ccc}.oa-notice-detail .banner .banner-img[data-v-fa5a7bd4]{height:%?300?%;width:100%}.oa-notice-detail .banner .banner-title[data-v-fa5a7bd4]{max-height:%?84?%;overflow:hidden;position:absolute;bottom:0;width:100%;font-size:%?32?%;font-weight:400;line-height:%?42?%;color:#fff;z-index:11;background-color:rgba(0,0,0,.25);padding:%?4?% %?20?%}.oa-notice-detail .banner-title[data-v-fa5a7bd4]{padding:%?30?% %?30?% 0;font-size:%?36?%}.oa-notice-detail .article-meta[data-v-fa5a7bd4]{padding:%?20?% %?40?%;display:flex;flex-direction:row;justify-content:flex-start;color:grey}.oa-notice-detail .article-meta .article-text[data-v-fa5a7bd4]{font-size:%?26?%;line-height:%?50?%;margin:0 %?20?%}.oa-notice-detail .article-meta .article-author[data-v-fa5a7bd4],\n.oa-notice-detail .article-meta .article-time[data-v-fa5a7bd4]{font-size:%?30?%}.oa-notice-detail .article-content[data-v-fa5a7bd4]{padding:0 %?30?%;overflow:hidden;font-size:%?30?%;margin-bottom:%?30?%}.oa-notice-detail .input-title[data-v-fa5a7bd4]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:%?20?%;margin-top:%?20?%;font-size:%?32?%}.oa-notice-detail .input-body[data-v-fa5a7bd4]{background:#fff;padding:%?10?% %?20?%}.oa-notice-detail .covers-title[data-v-fa5a7bd4]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:%?20?%;margin-top:%?20?%;font-size:%?32?%}.oa-notice-detail .covers-body[data-v-fa5a7bd4]{background:#fff;padding:%?10?% %?20?%}.oa-notice-detail .covers-body .gender-item[data-v-fa5a7bd4]{margin-right:%?20?%}.oa-notice-detail .covers-body .gender-item .gender-item-text[data-v-fa5a7bd4]{padding-left:%?10?%}.oa-notice-detail .covers-body .gender-item uni-radio .wx-radio-input.wx-radio-input-checked[data-v-fa5a7bd4]{background:#fa436a;border-color:#fa436a}.oa-notice-detail .covers-uploader[data-v-fa5a7bd4]{padding:%?22?% %?20?%;margin:%?22?% %?20?%}.input-content[data-v-fa5a7bd4]{overflow:hidden;width:100%}.input-content[data-v-fa5a7bd4] img{max-width:100%}',""]),t.exports=e}}]);
|