1 line
6.2 KiB
JavaScript
1 line
6.2 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6d54f27e"],{"15ff":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"outmain ba_f heighthv pad_20 bor_rad5"},[t._m(0),n("div",{staticClass:"flex-bet pad_lr_20"},[n("div",[n("el-button",{attrs:{type:"primary",size:"medium"},on:{click:t.handleEdit}},[t._v("新建页面跳转链接")])],1)]),n("div",{staticClass:"tabledata mar_t20"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"tablecenter",staticStyle:{width:"100%"},attrs:{data:t.list,"element-loading-text":t.elementLoadingText,stripe:""}},[n("el-table-column",{attrs:{prop:"name",label:"链接名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.title))])]}}])}),n("el-table-column",{attrs:{prop:"message",label:"生成时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(" "+t._s(e.row.createdAt)+" ")])]}}])}),n("el-table-column",{attrs:{prop:"message",label:"过期时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(" "+t._s(e.row.expire_time)+" ")])]}}])}),n("el-table-column",{attrs:{prop:"path",label:"页面链接"}}),n("el-table-column",{attrs:{prop:"message",label:"微信内部链接"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(" "+t._s(e.row.scene)+" ")])]}}])}),n("el-table-column",{attrs:{prop:"message",label:"外部链接(微信短链)"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(" "+t._s(e.row.link)+" ")])]}}])})],1),n("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pagesize,"current-page":t.page.currentPage},on:{"update:currentPage":function(e){return t.$set(t.page,"currentPage",e)},"update:current-page":function(e){return t.$set(t.page,"currentPage",e)},"current-change":t.handleCurrentChange}})],1)])},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"shuju_title mar_b20"},[n("div",{staticClass:"shuju_title_text"},[n("span",[t._v("微信小程序外链生成工具")])])])}],o=(n("99af"),n("96cf"),n("1da1")),i=n("7cb7"),s=n("ed08"),c={created:function(){this.fetchData()},data:function(){return{list:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1}}},methods:{fetchData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var n,r,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.listLoading=!0,e.next=3,Object(i["z"])({page:t.page.currentPage});case 3:for(n=e.sent,r=n.data,a=n.count,o=0;o<r.length;o++)r[o].createdAt=Object(s["c"])(r[o].createdAt),"0"==r[o].expire_time?r[o].expire_time="无限":r[o].expire_time=Object(s["c"])(r[o].expire_time);t.list=r,t.page.total=a,t.listLoading=!1;case 10:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.page.currentPage=t,this.fetchData()},handleEdit:function(t){t.id?this.$router.push("/linkslistAdd?id=".concat(t.id,"&type=").concat(t.type)):this.$router.push({path:"linkslistAdd"})}}},u=c,l=n("2877"),p=Object(l["a"])(u,r,a,!1,null,null,null);e["default"]=p.exports},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},7156:function(t,e,n){var r=n("861d"),a=n("d2bb");t.exports=function(t,e,n){var o,i;return a&&"function"==typeof(o=e.constructor)&&o!==n&&r(i=o.prototype)&&i!==n.prototype&&a(t,i),t}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),a=n("da84"),o=n("94ca"),i=n("6eeb"),s=n("5135"),c=n("c6b6"),u=n("7156"),l=n("c04e"),p=n("d039"),d=n("7c73"),g=n("241c").f,f=n("06cf").f,_=n("9bf2").f,b=n("58a8").trim,h="Number",v=a[h],m=v.prototype,w=c(d(m))==h,y=function(t){var e,n,r,a,o,i,s,c,u=l(t,!1);if("string"==typeof u&&u.length>2)if(u=b(u),e=u.charCodeAt(0),43===e||45===e){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+u}for(o=u.slice(2),i=o.length,s=0;s<i;s++)if(c=o.charCodeAt(s),c<48||c>a)return NaN;return parseInt(o,r)}return+u};if(o(h,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var N,S=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof S&&(w?p((function(){m.valueOf.call(n)})):c(n)!=h)?u(new v(y(e)),n,S):y(e)},I=r?g(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;I.length>x;x++)s(v,N=I[x])&&!s(S,N)&&_(S,N,f(v,N));S.prototype=m,m.constructor=S,i(a,h,S)}},bf19:function(t,e,n){"use strict";var r=n("23e7");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(t,e,n){var r=n("825a"),a=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),a(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},ed08:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o}));n("a9e3"),n("ac1f"),n("5319"),n("bf19");function r(t){var e=new Date(t).toJSON(),n=new Date(+new Date(e)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return n}function a(t){var e=new Date(t),n=e.getFullYear(),r=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,a=e.getDate()<10?"0"+e.getDate():e.getDate(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),i=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return n+"-"+r+"-"+a+" "+o+":"+i+":"+s}function o(t){var e=new Date(1e3*Number(t)),n=e.getFullYear()+"-",r=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",a=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",o=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",i=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),c=n+r+a+o+i+s;return c}}}]); |