forked from golang/hotime
1 line
5.5 KiB
JavaScript
1 line
5.5 KiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3b58c314"],{2934:function(e,t,r){"use strict";r.d(t,"e",function(){return n}),r.d(t,"d",function(){return o}),r.d(t,"b",function(){return i}),r.d(t,"c",function(){return u}),r.d(t,"a",function(){return c}),r.d(t,"f",function(){return s});var t=r("b0c0"),_=r("b775"),t=r("4328"),a=r.n(t);function n(e,t){return Object(_.b)({url:e,method:"GET",params:t})}function o(e,t){return Object(_.b)({url:e,method:"GET",params:t})}function i(e,t){return Object(_.b)({url:e,method:"DELETE",data:a.a.stringify(t)})}function u(e,t){return Object(_.b)({url:e,method:"PUT",data:a.a.stringify(t)})}function c(e,t){return Object(_.b)({url:e,method:"POST",data:a.a.stringify(t)})}function s(e){var t=new FormData;return t.append("file",e,e.name),Object(_.b)({url:"file",headers:{"Content-Type":"multipart/form-data"},method:"POST",data:t})}},"31a1":function(module,__webpack_exports__,__webpack_require__){"use strict";var D_work_hotimejs_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("b85c"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("9911"),core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_2__),_api_common_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("2934");__webpack_exports__.a={data:function(){return{templateData:{},form:{}}},methods:{onSubmit:function(){},routeInit:function routeInit(){var that=this,Hotime=window.Hotime;if(this.templateData=Hotime.mapData[this.$route.path.substring(0,this.$route.path.lastIndexOf("/info"))],null!=this.templateData){if(null!=this.templateData.columns){var _iterator=Object(D_work_hotimejs_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__.a)(this.templateData.columns),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var item=_step.value;null==item.value&&(item.value=item.name)}}catch(err){_iterator.e(err)}finally{_iterator.f()}}Object(_api_common_js__WEBPACK_IMPORTED_MODULE_3__.d)(Hotime.data.name+"/"+this.templateData.name+"/"+this.$route.query.id).then(function(data){if(null!=that.templateData.columns){var _iterator2=Object(D_work_hotimejs_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__.a)(that.templateData.columns),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _item=_step2.value;if(null!=_item.link){try{data.result[_item.value]=eval("data.result."+_item.value)}catch(e){}break}}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}that.form=data.result})}}},watch:{},mounted:function(){this.routeInit()}}},"8f33":function(e,t,r){"use strict";r.r(t);r("9911"),r("b0c0");var u=r("f2bf"),c=Object(u.hb)("data-v-9892819c");Object(u.I)("data-v-9892819c");var s={key:0,style:{}};Object(u.G)();var _=c(function(r,e,t,_,a,n){var o=Object(u.O)("el-descriptions-item"),i=Object(u.O)("el-descriptions");return Object(u.F)(),Object(u.j)(i,{style:{width:"100%",background:"white",padding:"10px"}},{default:c(function(){return[(Object(u.F)(!0),Object(u.j)(u.b,null,Object(u.M)(a.templateData.columns,function(t){return Object(u.F)(),Object(u.j)(u.b,{key:t.type},[null!=t.link?(Object(u.F)(),Object(u.j)(u.b,{key:0},[0!=t.info?(Object(u.F)(),Object(u.j)(o,{key:0,label:t.label+":"},{default:c(function(){return[Object(u.n)(Object(u.S)(a.form[t.link]?a.form[t.link][t.value]:"无"),1)]}),_:2},1032,["label"])):Object(u.k)("",!0)],64)):Object(u.k)("",!0),null==t.link?(Object(u.F)(),Object(u.j)(u.b,{key:1},[null==t.options&&0!=t.info?(Object(u.F)(),Object(u.j)(o,{key:0,label:t.label+":"},{default:c(function(){return[Object(u.n)(Object(u.S)(a.form[t.value]),1)]}),_:2},1032,["label"])):Object(u.k)("",!0),"state"==t.t
|