You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
257 KiB
2 lines
257 KiB
6 years ago
|
webpackJsonp([8],{1001:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(984),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,function(){return r[e]})}(o);var a=n(1004);var s=function(e){n(1002)},l=n(27)(i.a,a.a,!1,s,null,null);t.default=l.exports},1002:function(e,t,n){var r=n(1003);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(35)("3cf3e1ac",r,!0,{})},1003:function(e,t,n){(e.exports=n(34)(!1)).push([e.i,".no-type-model{text-align:center;padding-top:160px}.no-type-model>p{padding-top:10px;color:#666}",""])},1004:function(e,t,n){"use strict";var r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"no-type-model"},[t("img",{attrs:{src:n(1005),alt:""}}),this._v(" "),t("p",[this._v(this._s(this.$t("不支持在线查看类型")))])])},staticRenderFns:[]};t.a=r},1005:function(e,t,n){e.exports=n.p+"images/down_error.png?4339cb288e29d420babb7d7c848b9093"},1050:function(e,t,n){"use strict";t.__esModule=!0;var r=m(n(28)),i=n(123),o=n(807),a=m(n(1001)),s=n(735),l=m(n(682)),c=m(n(646)),u=m(n(226)),d=m(n(663)),f=n(983),h=m(n(654)),p=m(n(650));function m(e){return e&&e.__esModule?e:{default:e}}var g=void 0;t.default={name:"file-details",data:function(){return{name:"",isNoType:!0,isLoading:!1,filtTypeArr:o.filtTypeArr,loadingIndex:0,mode:"python",isData:!0,size:null,spinnerLoading:!1,msg:""}},props:{},methods:Object.assign({},(0,i.mapActions)("resource",["getViewResources","updateContent"]),{ok:function(){var e=this;this.spinnerLoading=!0,this.updateContent({id:this.$route.params.id,content:g.getValue()}).then(function(t){e.$message.success(t.msg),setTimeout(function(){e.spinnerLoading=!1,e.close()},800)}).catch(function(t){e.$message.error(t.msg||""),e.spinnerLoading=!1})},close:function(){this.$router.push({name:"file"})},_getViewResources:function(){var e=this;this.isLoading=!0,this.getViewResources({id:this.$route.params.id,skipLineNum:0,limit:2e3}).then(function(t){e.name=t.data.alias.split(".")[0],t.data?(e.isData=!0,e._handlerEditor().setValue(t.data.content||""),setTimeout(function(){$(".code-mirror-model").scrollTop(12).scrollLeft(0)},200)):e.isData=!1,e.isLoading=!1}).catch(function(t){e.msg=t.msg||"error",e.$message.error(t.msg||""),e.isLoading=!1})},_handlerEditor:function(){return g=(0,l.default)("code-edit-mirror",{mode:this.mode,readOnly:!1}),this.keypress=function(){g.getOption("readOnly")||g.showHint({completeSingle:!1})},g.on("keypress",this.keypress),g}}),watch:{},created:function(){var e=r.default.split(u.default.getItem("file"),"|",2),t=e[0],n=e[1],i=t.lastIndexOf("."),o=t.substring(i,t.length);this.mode=f.handlerSuffix[o],this.size=(0,s.bytesToSize)(parseInt(n)),this.isNoType=r.default.includes(this.filtTypeArr,r.default.trimStart(o,"."))},mounted:function(){this.isNoType&&this._getViewResources()},destroyed:function(){g&&(g.toTextArea(),g.off($(".code-edit-mirror"),"keypress",this.keypress))},computed:{},components:{mListConstruction:p.default,mNoType:a.default,mSpin:c.default,mSecondaryMenu:h.default,mNoData:d.default}}},1167:function(e,t,n){var r=n(1168);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(35)("786589f0",r,!0,{})},1168:function(e,t,n){(e.exports=n(34)(!1)).push([e.i,".file-edit-content{width:100%;background:#fff;padding-bottom:20px}.file-edit-content>h2{line-height:60px;text-align:center;padding-bottom:6px;position:relative}.file-edit-content>h2 .down{position:absolute;right:0;top:0}.file-edit-content>h2 .down>i{font-size:20px;color:#2d8cf0;cursor:pointer;vertical-align:middle}.file-edit-content>h2 .down em{font-size:12px;font-style:normal;vertical-align:middle;color:#777;margin-left:-2px}.file-edit-content .code-mirror-model{height:calc(100vh - 300px)}.file-edit-content .code-mirror-model .cm-s-mdn-like.CodeMirror{height:calc(100vh - 310px)}.file-edit-content .submit-c{text-align:center;padding-top:12px}.file-operation{padding:30px 0;text-align:center}",""])},1169:function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;r
|
||
|
//# sourceMappingURL=8.d0d692f.js.map
|