1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/diyform/detail"],{"1c44":function(n,t,e){"use strict";var i=e("407f"),u=e.n(i);u.a},"2cb3":function(n,t,e){"use strict";(function(n){e("630e");i(e("66fd"));var t=i(e("7cb2"));function i(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("5486")["createPage"])},"407f":function(n,t,e){},"7cb2":function(n,t,e){"use strict";e.r(t);var i=e("a07b"),u=e("8b57");for(var o in u)"default"!==o&&function(n){e.d(t,n,(function(){return u[n]}))}(o);e("1c44");var a,r=e("f0c5"),c=Object(r["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);t["default"]=c.exports},"8b57":function(n,t,e){"use strict";e.r(t);var i=e("e475"),u=e.n(i);for(var o in i)"default"!==o&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=u.a},a07b:function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){return i}));var i={faNavbar:function(){return e.e("components/fa-navbar/fa-navbar").then(e.bind(null,"6858"))},uParse:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-parse/u-parse")]).then(e.bind(null,"fb53"))},uTable:function(){return e.e("uview-ui/components/u-table/u-table").then(e.bind(null,"1efe"))},uTr:function(){return e.e("uview-ui/components/u-tr/u-tr").then(e.bind(null,"401e"))},uTh:function(){return e.e("uview-ui/components/u-th/u-th").then(e.bind(null,"893e"))},uTd:function(){return e.e("uview-ui/components/u-td/u-td").then(e.bind(null,"4574"))},uAlertTips:function(){return e.e("uview-ui/components/u-alert-tips/u-alert-tips").then(e.bind(null,"bcd1"))},uGap:function(){return e.e("uview-ui/components/u-gap/u-gap").then(e.bind(null,"71a3"))},uIcon:function(){return e.e("uview-ui/components/u-icon/u-icon").then(e.bind(null,"ba52"))},faTabbar:function(){return Promise.all([e.e("common/vendor"),e.e("components/fa-tabbar/fa-tabbar")]).then(e.bind(null,"ecd8"))}},u=function(){var n=this,t=n.$createElement,e=(n._self._c,n.__map(n.fieldsList,(function(t,e){var i=n.__get_orig(t),u=["string","text","number","city"].indexOf(t.type),o=["date","time","datetime","datetimerange"].indexOf(t.type),a="checkbox"==t.type||"selects"==t.type?n._f("checkboxmat")(t):null,r="file"==t.type?n._f("fileNameMat")(t.value):null,c="files"==t.type?n.__map(t.value,(function(t,e){var i=n.__get_orig(t),u=n._f("fileNameMat")(t);return{$orig:i,f2:u}})):null;return{$orig:i,g0:u,g1:o,f0:a,f1:r,l0:c}})));n._isMounted||(n.e0=function(t){n.downtips=!1},n.e1=function(t){n.downtips=!1}),n.$mp.data=Object.assign({},{$root:{l1:e}})},o=[]},e475:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=e("59de"),u={mixins:[i.tools,i.vote],created:function(){this},onLoad:function(n){var t=this.$Route.query||n||{};this.id=t.id||0,this.diyname=t.diyname||"",this.getformShow()},data:function(){return{id:0,diyname:"",diydata:{},diyform:{},fieldsList:[],downtips:!1,description:"",downame:""}},methods:{edit:function(){this.$Router.push({path:"/pages/diyform/diyform",query:{diyname:this.diyname,id:this.id}})},getformShow:function(){var n=this;this.$api.formShow({id:this.id,diyname:this.diyname}).then((function(t){t.code?(n.diydata=t.data.diydata,n.fieldsList=t.data.fieldsList,n.diyform=t.data.diyform):n.$u.toast(t.msg)}))},preview:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[];"string"==typeof t?i.push(t):i=t,n.previewImage({current:e,urls:i,longPressActions:{itemList:["发送给朋友","保存图片","收藏"],success:function(n){},fail:function(n){}}})},download:function(t,e){var i=this;i.downame=e,n.downloadFile({url:t,success:function(t){200===t.statusCode&&n.saveFile({tempFilePath:t.tempFilePath,success:function(n){i.downtips=!0,i.description=n.savedFilePath},fail:function(n){}})}})}},filters:{checkboxmat:function(n){var t=n.value.split(","),e=[];return t.forEach((function(t){e.push(n.content_list[t])})),e.join(",")},fileNameMat:function(n){var t=n.lastIndexOf("."),e=n.length;return n.substring(t,e)}}};t.default=u}).call(this,e("5486")["default"])}},[["2cb3","common/runtime","common/vendor"]]]);
|