Commit e5b83885 authored by 翁佳瑞's avatar 翁佳瑞

修改打包上传配置

parent a3b3f4fe
...@@ -52,7 +52,7 @@ const resolveModule = (resolveFn, filePath) => { ...@@ -52,7 +52,7 @@ const resolveModule = (resolveFn, filePath) => {
module.exports = { module.exports = {
dotenv: resolveApp('.env'), dotenv: resolveApp('.env'),
appPath: resolveApp('.'), appPath: resolveApp('.'),
appBuild: resolveApp('dist'), appBuild: resolveApp('build'),
appPublic: resolveApp('public'), appPublic: resolveApp('public'),
appHtml: resolveApp('public/index.html'), appHtml: resolveApp('public/index.html'),
appIndexJs: resolveModule(resolveApp, 'src/index'), appIndexJs: resolveModule(resolveApp, 'src/index'),
......
...@@ -530,6 +530,7 @@ module.exports = function(webpackEnv) { ...@@ -530,6 +530,7 @@ module.exports = function(webpackEnv) {
minifyCSS: true, minifyCSS: true,
minifyURLs: true, minifyURLs: true,
}, },
filename: '../dist/index.html'
} }
: undefined : undefined
) )
......
{
"files": {
"main.css": "//r.51gjj.com/webpublic/inclass/static/css/main.8e0c0d86.chunk.css",
"main.js": "//r.51gjj.com/webpublic/inclass/static/js/main.4bc3de5f.chunk.js",
"runtime-main.js": "//r.51gjj.com/webpublic/inclass/static/js/runtime-main.7c771ce0.js",
"static/css/2.6466ce29.chunk.css": "//r.51gjj.com/webpublic/inclass/static/css/2.6466ce29.chunk.css",
"static/js/2.4b9a045a.chunk.js": "//r.51gjj.com/webpublic/inclass/static/js/2.4b9a045a.chunk.js",
"index.html": "//r.51gjj.com/webpublic/inclass/index.html",
"precache-manifest.e046edc16495bcd903c5017244e914ea.js": "//r.51gjj.com/webpublic/inclass/precache-manifest.e046edc16495bcd903c5017244e914ea.js",
"service-worker.js": "//r.51gjj.com/webpublic/inclass/service-worker.js",
"static/js/2.4b9a045a.chunk.js.LICENSE.txt": "//r.51gjj.com/webpublic/inclass/static/js/2.4b9a045a.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.7c771ce0.js",
"static/css/2.6466ce29.chunk.css",
"static/js/2.4b9a045a.chunk.js",
"static/css/main.8e0c0d86.chunk.css",
"static/js/main.4bc3de5f.chunk.js"
]
}
\ No newline at end of file
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "f3c02d6092d4b57ae4c6afbdc3473103",
"url": "//r.51gjj.com/webpublic/inclass/index.html"
},
{
"revision": "f656d03998ed12d0a754",
"url": "//r.51gjj.com/webpublic/inclass/static/css/2.6466ce29.chunk.css"
},
{
"revision": "4a622099683550a808be",
"url": "//r.51gjj.com/webpublic/inclass/static/css/main.8e0c0d86.chunk.css"
},
{
"revision": "f656d03998ed12d0a754",
"url": "//r.51gjj.com/webpublic/inclass/static/js/2.4b9a045a.chunk.js"
},
{
"revision": "3453b8997016469371284a28c0e873e2",
"url": "//r.51gjj.com/webpublic/inclass/static/js/2.4b9a045a.chunk.js.LICENSE.txt"
},
{
"revision": "4a622099683550a808be",
"url": "//r.51gjj.com/webpublic/inclass/static/js/main.4bc3de5f.chunk.js"
},
{
"revision": "4653adeefb17c713de09",
"url": "//r.51gjj.com/webpublic/inclass/static/js/runtime-main.7c771ce0.js"
}
]);
\ No newline at end of file
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
/**
* Welcome to your Workbox-powered service worker!
*
* You'll need to register this file in your web app and you should
* disable HTTP caching for this file too.
* See https://goo.gl/nhQhGp
*
* The rest of the code is auto-generated. Please don't update this file
* directly; instead, make changes to your Workbox build configuration
* and re-run your build process.
* See https://goo.gl/2aRDsh
*/
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts(
"//r.51gjj.com/webpublic/inclass/precache-manifest.e046edc16495bcd903c5017244e914ea.js"
);
self.addEventListener('message', (event) => {
if (event.data && event.data.type === 'SKIP_WAITING') {
self.skipWaiting();
}
});
workbox.core.clientsClaim();
/**
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
* requests for URLs in the manifest.
* See https://goo.gl/S9QRab
*/
self.__precacheManifest = [].concat(self.__precacheManifest || []);
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("//r.51gjj.com/webpublic/inclass/index.html"), {
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
});
This source diff could not be displayed because it is too large. You can view the blob instead.
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace}.sider-menu .menu-header{color:#fff;height:64px;position:relative;line-height:64px;transition:all .3s;background:#002140}.sider-menu .menu-header .home{display:flex;align-items:center;justify-content:center}.sider-menu .menu-header .logo{height:32px;width:32px;display:inline-block;margin-right:10px}.sider-menu .menu-header .title{color:#fff;font-size:16px;font-weight:700}.site-layout .site-layout-background{padding:0;background:#fff;display:flex;align-items:center;justify-content:space-between}.site-layout .site-layout-background .trigger{font-size:18px;line-height:64px;padding:0 24px;cursor:pointer;transition:color .3s}.site-layout .site-layout-background .trigger:hover{color:#1890ff}.loginPane{position:relative;width:70vw;min-width:960px;display:block;margin:0 auto;padding-top:20vh}.login-inline{display:inline-block;vertical-align:middle}.loginItem{margin:15px 0}.btn{width:100%;border-radius:5px;outline:none;border:none;height:40px;font-size:16px}.btn_act{background-color:#008b8b;color:#fff}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/** @license React v0.19.1
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.13.1
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.13.1
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
(this["webpackJsonpantd-demo-ts"]=this["webpackJsonpantd-demo-ts"]||[]).push([[0],{198:function(e,t,a){e.exports=a(351)},203:function(e,t,a){},339:function(e,t,a){},340:function(e,t,a){},347:function(e,t,a){},348:function(e,t,a){},349:function(e,t,a){},350:function(e,t,a){},351:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),c=a(18),l=a.n(c),o=(a(203),a(56)),i=a(35),s=a(12),m=a(126),u=a(42),d=a.n(u),p=a(357),f=a(356),g=a(353),b=a(354),h=a(359),E=a(40),y=(a(150),a(355)),O=y.a.Column,j=[{title:"\u8ba2\u5355\u53f7",dataIndex:"order_no",key:"order_no"},{title:"\u5df2\u8d2d\u8bfe\u7a0b\u540d\u79f0",dataIndex:"class_name",key:"class_name"},{title:"\u7528\u6237\u59d3\u540d",dataIndex:"address",key:"address",render:function(e){return r.a.createElement("span",null,e.name)}},{title:"\u6536\u8d27\u5730\u5740",dataIndex:"address",key:"address",render:function(e){return r.a.createElement("span",null,e.province,e.city,e.area,e.address)}},{title:"\u8054\u7cfb\u7535\u8bdd",dataIndex:"address",key:"address",render:function(e){return r.a.createElement("span",null,e.phone)}},{title:"\u4ed8\u6b3e\u91d1\u989d\uff08\u5143\uff09",dataIndex:"pay",key:"pay"},{title:"\u4e0b\u5355\u65f6\u95f4",dataIndex:"pay_time",key:"pay_time"}],w=function(e){return r.a.createElement("div",{style:{padding:"30px"}},r.a.createElement(y.a,{rowKey:function(e){return e.id||"key"},dataSource:e.dataSource,onChange:e.handleTableChange,pagination:{pageSize:e.pageSize,current:e.current,total:e.totalCount,showSizeChanger:!0,showTotal:function(e,t){return"\u6bcf\u9875".concat(t[1]-t[0]+1,"\u6761\uff0c\u603b\u8ba1").concat(e," \u6761")}}},j.map((function(e){return r.a.createElement(O,Object.assign({},e,{key:e.key}))}))))},v=a(352),_=a(78),S=a(360),k=a(127),x=a(358),C=a(362),I=a(128),T=a(180),z=a.n(T),N=function(e,t){if("get"===e){var a="";for(var n in t)a+="".concat(n,"=").concat(t[n],"&");return a.substr(0,a.length-1)}return JSON.stringify(t)};function A(e,t){window.location.host;var a=t.type||"POST",n=e;return n="GET"===a?"".concat(n,"?").concat(N("get",t.data)):n,z()(n,{method:a,headers:Object(I.a)({"Content-Type":"application/json;charset=utf-8",Authorization:window.localStorage.getItem("token")},t.header),body:"GET"===a?"":N("post",t.data)}).then((function(e){if(200===e.status)return t.responseType?e[t.responseType]():e.json();e.status.toString().match(/40./)&&e.json().then((function(e){var a=e.error||e.msg||"error";S.a.error(a),e.error&&e.error.match(/token/)&&(S.a.error("\u767b\u5f55\u8fc7\u671f\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55"),window.location.href="/inclass-partners/login"),t.error&&"function"===typeof t.error&&t.error(e)}))})).catch((function(e){return new Error(e)}))}var Y=function(){var e=Object(n.useState)(!1),t=Object(s.a)(e,2),a=t[0],c=t[1],l=Object(n.useState)(!1),o=Object(s.a)(l,2),i=o[0],m=o[1],u=Object(n.useState)(""),d=Object(s.a)(u,2),p=d[0],f=d[1],g=Object(n.useState)(""),b=Object(s.a)(g,2),y=b[0],O=b[1],j=Object(n.useState)(""),w=Object(s.a)(j,2),v=w[0],I=w[1],T=Object(n.useState)(""),z=Object(s.a)(T,2),N=z[0],Y=z[1];Object(n.useEffect)((function(){Y(window.localStorage.getItem("user"))}),[]);var F=_.a.Item,R=r.a.createElement(_.a,null,r.a.createElement(F,{onClick:function(){return c(!0)}},"\u9000\u51fa\u767b\u5f55")),K=function(){window.localStorage.removeItem("user"),window.localStorage.removeItem("token"),c(!1),window.localStorage.removeItem("routerConf"),window.location.href="/inclass-partners/login"},P=function(){A("/yizhi_server/api/user/password",{type:"PUT",data:{password:y,confirm_password:p}}).then((function(e){e.msg&&(e.msg.match(/\u6210\u529f/)?(S.a.info("".concat(e.msg,"\uff0c\u8bf7\u91cd\u65b0\u767b\u5f55")),c(!1),setTimeout((function(){K()}),1e3)):S.a.info(e.msg))}))},M=function(e,t){var a=e.target.value;({o_pwd:function(){return I(a)},password:function(){return O(a)},confirm_password:function(){return f(a)}})[t]()};return r.a.createElement(r.a.Fragment,null,r.a.createElement(k.a,{overlay:R},r.a.createElement(E.a,{type:"link"},N," ",r.a.createElement(C.a,null))),r.a.createElement(x.a,{title:"",width:"300px",visible:a,onOk:K,onCancel:function(){return c(!1)}},r.a.createElement("p",{style:{fontSize:"18px"}},"\u662f\u5426\u9000\u51fa\u767b\u5f55\uff1f")),r.a.createElement(x.a,{title:"\u4fee\u6539\u5bc6\u7801",width:"400px",visible:i,onOk:function(){v&&y&&p?p===y?P():S.a.error("\u5bc6\u7801\u4e0d\u4e00\u81f4"):S.a.info("\u8f93\u5165\u6846\u4e0d\u80fd\u4e3a\u7a7a")},onCancel:function(){return m(!1)}},r.a.createElement("div",null,r.a.createElement(h.a,{size:"large",placeholder:"\u8bf7\u8f93\u5165\u4f60\u7684\u539f\u5bc6\u7801",addonBefore:"\u539f\u5bc6\u7801",defaultValue:"",autoComplete:"off",onChange:function(e){return M(e,"o_pwd")}}),r.a.createElement("div",{style:{height:"20px"}}),r.a.createElement(h.a.Password,{size:"large",placeholder:"\u8bf7\u8f93\u5165\u4f60\u7684\u65b0\u5bc6\u7801",addonBefore:"\u65b0\u5bc6\u7801",defaultValue:"",autoComplete:"new-password",onChange:function(e){return M(e,"password")}}),r.a.createElement("div",{style:{height:"20px"}}),r.a.createElement(h.a.Password,{size:"large",defaultValue:"",autoComplete:"new-password",placeholder:"\u8bf7\u518d\u6b21\u8f93\u5165\u4f60\u7684\u65b0\u5bc6\u7801",addonBefore:"\u786e\u8ba4\u65b0\u5bc6\u7801",onChange:function(e){return M(e,"confirm_password")}}))))},F=a(361),R=Object(F.a)({scriptUrl:"//at.alicdn.com/t/font_n8ucanheuka6pqfr.js"}),K=v.a.Sider,P=_.a.SubMenu,M=function(e){var t=Object(n.useState)(window.localStorage.getItem("menu_defKey")||"1"),a=Object(s.a)(t,2),c=a[0],l=a[1],i=Object(n.useState)(window.localStorage.getItem("menu_openKey")||"1"),m=Object(s.a)(i,2),u=m[0],d=m[1],p=window.localStorage.getItem("routerConf")||"";p||(window.location.href="/inclass-partners/login");var f=JSON.parse(p);Object(n.useEffect)((function(){g(f)}),[]);var g=function(t){var a=e.pathName,n=function(e,t,n){e.path===a&&(l(t),d(n),window.localStorage.setItem("menu_defKey",t),window.localStorage.setItem("menu_openKey",n))};t.map((function(e){0===e.subs.length&&n(e,String(e.id),String(e.id)),e.subs.length&&e.subs.map((function(t){n(t,String(t.id),String(e.id))}))}))},b=function(e){return r.a.createElement(R,{type:e})},h=function(e){return r.a.createElement(_.a.Item,{key:e.id,icon:b(e.icon)},r.a.createElement(o.b,{to:e.path},e.title))};return r.a.createElement(r.a.Fragment,null,r.a.createElement(K,{trigger:null,collapsible:!0,collapsed:e.collapsed,className:"sider-menu",style:e.style},e.collapsed?null:r.a.createElement("div",{className:"menu-header"},r.a.createElement(o.b,{to:"/orderList",className:"home"},r.a.createElement("img",{className:"logo",src:"//r.51gjj.com/webpublic/images/2020523/oyed3Mkrvrpdg.png",alt:""}),r.a.createElement("div",{className:"title"},"\u8da3\u9009\u8bfe\u5408\u4f5c\u540e\u53f0"))),r.a.createElement(_.a,{theme:"dark",defaultSelectedKeys:[c],defaultOpenKeys:[u],selectedKeys:[c],mode:"inline",onClick:function(e){l(e.key);var t=e.keyPath[e.keyPath.length-1];d(t),window.localStorage.setItem("menu_defKey",e.key),window.localStorage.setItem("menu_openKey",t)}},f.map((function(e){return e.subs&&e.subs.length>0?r.a.createElement(P,{key:e.id,icon:b(e.icon),title:e.title},e.subs.map((function(e){return h(e)}))):h(e)})))))},B=(a(339),a(363)),G=a(364),L=v.a.Header,D=v.a.Footer,q=v.a.Content,J=function(){return Object(n.useEffect)((function(){window.location.href="/inclass-partners/login"}),[]),null},W=Object(i.f)((function(e){var t=Object(n.useState)(!1),a=Object(s.a)(t,2),c=a[0],l=a[1],o=Object(n.useState)(200),i=Object(s.a)(o,2),m=i[0],u=i[1];return sessionStorage.getItem("token")||888?r.a.createElement(v.a,{style:{minHeight:"100vh"}},r.a.createElement(M,{collapsed:c,pathName:e.match.path,style:{overflow:"auto",height:"100vh",position:"fixed",left:0,width:m}}),r.a.createElement(v.a,{className:"site-layout",style:{paddingLeft:m}},r.a.createElement(L,{className:"site-layout-background"},r.a.createElement(c?B.a:G.a,{className:"trigger",onClick:function(){u(c?200:80),l(!c)}}),r.a.createElement(Y,null)),r.a.createElement(q,{style:{padding:"50px 20px",marginTop:20,background:"#fff"}},e.children),r.a.createElement(D,null,r.a.createElement("div",{style:{textAlign:"center"}},r.a.createElement("p",null,"\xa92020 - \u8da3\u9009\u8bfe"),r.a.createElement("p",null,"\u5982\u6709\u95ee\u9898\uff0c\u8bf7\u8054\u7cfb\u6280\u672f"))))):r.a.createElement(J,null)})),U=function(e,t){var a=new Blob([e],{type:"application/vnd.ms-excel"}),n=URL.createObjectURL(a),r=document.createElement("a");r.download="".concat(t,".xlsx"),r.href=n,r.click()},Q=(a(340),p.a.Item),V=f.a.RangePicker;d.a.locale("zh-cn");var H=function(){var e=Object(n.useState)(""),t=Object(s.a)(e,2),a=t[0],c=t[1],l=Object(n.useState)(""),o=Object(s.a)(l,2),i=o[0],u=o[1],f=Object(n.useState)(""),y=Object(s.a)(f,2),O=y[0],j=y[1],v=Object(n.useState)(""),_=Object(s.a)(v,2),S=_[0],k=_[1],x=Object(n.useState)([]),C=Object(s.a)(x,2),I=C[0],T=C[1],z=Object(n.useState)(0),N=Object(s.a)(z,2),Y=N[0],F=N[1],R=Object(n.useState)(1),K=Object(s.a)(R,2),P=K[0],M=K[1],B=Object(n.useState)(10),G=Object(s.a)(B,2),L=G[0],D=G[1],q=p.a.useForm(),J=Object(s.a)(q,1)[0];Object(n.useEffect)((function(){H({class_name:a,user_name:i,start_time:O,end_time:S,current:P,limit:L})}),[]);var H=function(e){var t=e.class_name,a=void 0===t?"":t,n=e.user_name,r=void 0===n?"":n,c=e.start_time,l=void 0===c?"":c,o=e.end_time,i=void 0===o?"":o,s=e.current,m=void 0===s?1:s,u=e.limit;A("/51business/api/course/back/order",{type:"GET",data:{class_name:a,user_name:r,start_time:l?l+" 00:00:00":"",end_time:i?i+" 23:59:59":"",page:m,limit:void 0===u?10:u}}).then((function(e){T(e.list),F(e.total_count)}))},$=function(e,t){var a={class_name:function(){return c(t)},user_name:function(){return u(t)},dates:function(){var e=t&&d()(t[0]).format("YYYY-MM-DD")||"",a=t&&d()(t[1]).format("YYYY-MM-DD")||"";j(e),k(a)}};a[e]&&a[e]()};return r.a.createElement(W,null,r.a.createElement("div",{className:"analy-content"},r.a.createElement(p.a,Object.assign({},{labelCol:{xs:{span:24},sm:{span:10},md:{span:10}},wrapperCol:{xs:{span:24},sm:{span:18},md:{span:18}}},{form:J,onFinish:function(){M(1),D(10),H({class_name:a,user_name:i,start_time:O,end_time:S,current:1,limit:10})}}),r.a.createElement(g.a,{gutter:{xs:8,sm:16,md:24}},r.a.createElement(b.a,{span:"6"},r.a.createElement(Q,{label:"\u5df2\u8d2d\u8bfe\u7a0b\u540d\u79f0\uff1a",name:"class_name"},r.a.createElement(h.a,{placeholder:"\u8bf7\u8f93\u5165",onChange:function(e){$("class_name",e.target.value)}}))),r.a.createElement(b.a,{span:"6"},r.a.createElement(Q,{label:"\u7528\u6237\u59d3\u540d\uff1a",name:"userName"},r.a.createElement(h.a,{placeholder:"\u8bf7\u8f93\u5165",onChange:function(e){$("user_name",e.target.value)}}))),r.a.createElement(b.a,{span:"6"},r.a.createElement(Q,{label:"\u4e0b\u5355\u65f6\u95f4\uff1a",name:"dates"},r.a.createElement(V,{locale:m.a,onCalendarChange:function(e){$("dates",e)}})))),r.a.createElement(g.a,Object.assign({style:{padding:"12px 0"}},{gutter:{xs:8,sm:16,md:24}}),r.a.createElement(b.a,{md:12,sm:24},r.a.createElement(E.a,{type:"primary",style:{marginRight:"12px"},onClick:function(){A("/51business/api/course/back/export/order",{type:"GET",data:{class_name:a,user_name:i,start_time:O?O+" 00:00:00":"",end_time:S?S+" 23:59:59":""},responseType:"arrayBuffer"}).then((function(e){U(e,"\u8d2d\u4e70\u8ba2\u5355\u5217\u8868".concat(O,"_").concat(S))}))}},"\u5bfc\u51fa\u8ba2\u5355\u4fe1\u606f\u8868")),r.a.createElement(b.a,{md:12,sm:24,style:{textAlign:"right"}},r.a.createElement(p.a.Item,null,r.a.createElement(E.a,{type:"primary",htmlType:"submit",style:{marginRight:"12px"}},"\u67e5\u8be2"),r.a.createElement(E.a,{htmlType:"button",onClick:function(){J.resetFields(),$("class_name",""),$("user_name",""),M(1),D(10),H({})}},"\u91cd\u7f6e")))))),r.a.createElement(w,{dataSource:I,pageSize:L,current:P,totalCount:Y,handleTableChange:function(e){M(e.current),D(e.pageSize),H({class_name:a,user_name:i,start_time:O,end_time:S,current:e.current,limit:e.pageSize})}}))},$=y.a.Column,X=[{title:"\u8bfe\u7a0bID",dataIndex:"id",key:"id"},{title:"\u8bfe\u7a0b\u540d\u79f0",dataIndex:"class_name",key:"class_name"},{title:"\u5151\u6362\u7801",dataIndex:"code",key:"code"},{title:"\u6e20\u9053",dataIndex:"channel",key:"channel"},{title:"\u662f\u5426\u5151\u6362",dataIndex:"is_used",key:"is_used",render:function(e){return r.a.createElement("span",null,e?"\u662f":"\u5426")}},{title:"\u5151\u6362\u65f6\u95f4",dataIndex:"used_time",key:"used_time"},{title:"\u751f\u6210\u65f6\u95f4",dataIndex:"created_time",key:"created_time"}],Z=function(e){return r.a.createElement("div",{style:{padding:"30px"}},r.a.createElement(y.a,{dataSource:e.dataSource,rowKey:function(e){return e.id||"key"},onChange:e.handleTableChange,pagination:{pageSize:e.pageSize,current:e.current,total:e.totalCount,showSizeChanger:!0,showTotal:function(e,t){return"\u6bcf\u9875".concat(t[1]-t[0]+1,"\u6761\uff0c\u603b\u8ba1").concat(e," \u6761")}}},X.map((function(e){return r.a.createElement($,Object.assign({},e,{key:e.key}))}))))},ee=(a(347),p.a.Item),te=function(){var e=Object(n.useState)([]),t=Object(s.a)(e,2),a=t[0],c=t[1],l=Object(n.useState)(0),i=Object(s.a)(l,2),m=i[0],u=i[1],d=Object(n.useState)(""),p=Object(s.a)(d,2),f=p[0],y=p[1],O=Object(n.useState)(1),j=Object(s.a)(O,2),w=j[0],v=j[1],_=Object(n.useState)(10),S=Object(s.a)(_,2),k=S[0],x=S[1];Object(n.useEffect)((function(){C(f,w,k)}),[]);var C=function(e,t,a){A("/51business/api/course/back/redeem",{type:"GET",data:{class_name:e,limit:a,page:t}}).then((function(e){c(e.list),u(e.total_count)}))};return r.a.createElement(W,null,r.a.createElement("div",{className:"content"},r.a.createElement(g.a,{gutter:{xs:8,sm:16,md:24}},r.a.createElement(b.a,{md:6,sm:12},r.a.createElement(ee,{label:"\u5df2\u8d2d\u8bfe\u7a0b\u540d\u79f0\uff1a"},r.a.createElement(h.a,{value:f,placeholder:"\u8bf7\u8f93\u5165",onChange:function(e){y(e.target.value)}}))),r.a.createElement(b.a,{md:6,sm:12},r.a.createElement(E.a,{type:"primary",onClick:function(){C(f,w,k)},style:{marginRight:"12px"}},"\u67e5\u8be2"),r.a.createElement(E.a,{htmlType:"button",onClick:function(){y(""),v(1),x(10),C(f,w,k)}},"\u91cd\u7f6e"))),r.a.createElement(g.a,Object.assign({style:{padding:"12px 0"}},{gutter:{xs:8,sm:16,md:24}}),r.a.createElement(b.a,{md:12,sm:24},r.a.createElement(E.a,{type:"primary",style:{marginRight:"12px"}},r.a.createElement(o.b,{to:"/generateCode"},"\u5151\u6362\u7801\u751f\u6210\u5668")),r.a.createElement(E.a,{type:"primary",style:{marginRight:"12px"},onClick:function(){A("/51business/api/course/back/export/redeem",{type:"GET",data:{class_name:f,limit:k,page:w},responseType:"arrayBuffer"}).then((function(e){U(e,"\u5151\u6362\u7801\u5217\u8868")}))}},"\u5bfc\u51fa\u5151\u6362\u7801\u6570\u636e\u8868")))),r.a.createElement(Z,{dataSource:a,handleTableChange:function(e){v(e.current),x(e.pageSize),C(f,e.current,e.pageSize)},pageSize:k,current:w,totalCount:m}))},ae=a(100),ne=ae.a.Option,re={labelCol:{span:4},wrapperCol:{span:6}},ce={wrapperCol:{offset:4,span:6}},le=function(){var e=window.localStorage.getItem("institution_name")||"",t=Object(n.useState)([]),a=Object(s.a)(t,2),c=a[0],l=a[1],o=Object(n.useState)([]),i=Object(s.a)(o,2),m=i[0],u=i[1],d=p.a.useForm(),f=Object(s.a)(d,1)[0];Object(n.useEffect)((function(){g(e)}),[]);var g=function(e){A("/51business/api/course/back/class",{data:{institution_name:e,page:1,limit:20},type:"GET"}).then((function(e){l(e.list)}))};return r.a.createElement(W,null,r.a.createElement(p.a,Object.assign({},re,{form:f,name:"control-hooks",onFinish:function(e){A("/51business/api/course/back/redeem",{type:"POST",data:Object(I.a)({},e)}).then((function(e){S.a.success("\u751f\u6210\u6210\u529f"),f.resetFields()}))}}),r.a.createElement(p.a.Item,{name:"institution",label:"\u673a\u6784\u540d\u79f0\uff1a",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u673a\u6784"}]},r.a.createElement(ae.a,{defaultActiveFirstOption:!0,placeholder:"\u8bf7\u9009\u62e9\u673a\u6784",allowClear:!0,showSearch:!e,onChange:function(e){f.resetFields(["class_id"]);var t=[];c.map((function(a){a.id===e&&(t=a.class)})),u(t)},onSearch:function(e){g(e)},filterOption:function(e,t){return t.children.toLowerCase().indexOf(e.toLowerCase())>=0}},c.map((function(e){return r.a.createElement(ne,{value:e.id,key:e.id},e.name)})))),r.a.createElement(p.a.Item,{name:"class_id",label:"\u8bfe\u7a0b\u540d\u79f0\uff1a",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u8bfe\u7a0b"}]},r.a.createElement(ae.a,{placeholder:"\u8bf7\u9009\u62e9\u8bfe\u7a0b\u540d\u79f0",allowClear:!0},m.map((function(e){return r.a.createElement(ne,{value:e.id,key:e.id},e.name)})))),r.a.createElement(p.a.Item,{name:"channel",label:"\u6e20\u9053\u540d\u79f0\uff1a",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6e20\u9053"},{whitespace:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a\u683c\u5b57\u7b26"}]},r.a.createElement(h.a,{placeholder:"\u8bf7\u8f93\u5165"})),r.a.createElement(p.a.Item,{name:"num",label:"\u5151\u6362\u7801\u6570\u91cf\uff1a",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5151\u6362\u7801\u6570\u91cf"},{whitespace:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a\u683c\u5b57\u7b26"},{pattern:/^[0-9]+$/,message:"\u4ec5\u652f\u6301\u8f93\u5165\u6570\u5b57"}]},r.a.createElement(h.a,{placeholder:"\u8bf7\u8f93\u5165"})),r.a.createElement(p.a.Item,ce,r.a.createElement(E.a,{type:"primary",htmlType:"submit"},"\u751f\u6210\u5151\u6362\u7801"),r.a.createElement(E.a,{htmlType:"button",onClick:function(){f.resetFields()},style:{marginLeft:"20px"}},"\u91cd\u7f6e"))))},oe=y.a.Column,ie=[{title:"\u8ba2\u5355\u53f7",dataIndex:"order_no",key:"order_no"},{title:"\u5151\u6362\u8bfe\u7a0b\u540d\u79f0",dataIndex:"class_name",key:"class_name"},{title:"\u5151\u6362\u7801",dataIndex:"code",key:"code"},{title:"\u6e20\u9053",dataIndex:"channel",key:"channel"},{title:"\u5151\u6362\u6388\u6743\u624b\u673a\u53f7",dataIndex:"phone",key:"phone"},{title:"\u5151\u6362\u65f6\u95f4",dataIndex:"used_time",key:"used_time"}],se=function(e){return r.a.createElement("div",{style:{padding:"30px"}},r.a.createElement(y.a,{rowKey:function(e){return e.id||"key"},dataSource:e.dataSource,onChange:e.handleTableChange,pagination:{pageSize:e.pageSize,current:e.current,total:e.totalCount,showSizeChanger:!0,showTotal:function(e,t){return"\u6bcf\u9875".concat(t[1]-t[0]+1,"\u6761\uff0c\u603b\u8ba1").concat(e," \u6761")}}},ie.map((function(e){return r.a.createElement(oe,Object.assign({},e,{key:e.key}))}))))},me=(a(348),p.a.Item),ue=f.a.RangePicker;d.a.locale("zh-cn");var de=function(){var e=Object(n.useState)(""),t=Object(s.a)(e,2),a=t[0],c=t[1],l=Object(n.useState)(""),o=Object(s.a)(l,2),i=o[0],u=o[1],f=Object(n.useState)(""),y=Object(s.a)(f,2),O=y[0],j=y[1],w=Object(n.useState)([]),v=Object(s.a)(w,2),_=v[0],S=v[1],k=Object(n.useState)(0),x=Object(s.a)(k,2),C=x[0],I=x[1],T=Object(n.useState)(1),z=Object(s.a)(T,2),N=z[0],Y=z[1],F=Object(n.useState)(10),R=Object(s.a)(F,2),K=R[0],P=R[1],M=p.a.useForm(),B=Object(s.a)(M,1)[0];Object(n.useEffect)((function(){G({class_name:a,start_time:i,end_time:O,current:N,limit:K})}),[]);var G=function(e){var t=e.class_name,a=void 0===t?"":t,n=e.start_time,r=void 0===n?"":n,c=e.end_time,l=void 0===c?"":c,o=e.current,i=void 0===o?1:o,s=e.limit;A("/51business/api/course/back/redeem/used",{type:"GET",data:{class_name:a,start_time:r?r+" 00:00:00":"",end_time:l?l+" 23:59:59":"",page:i,limit:void 0===s?10:s}}).then((function(e){S(e.list),I(e.total_count)}))},L=function(e,t){var a={class_name:function(){return c(t)},dates:function(){var e=t&&d()(t[0]).format("YYYY-MM-DD")||"",a=t&&d()(t[1]).format("YYYY-MM-DD")||"";u(e),j(a)}};a[e]&&a[e]()};return r.a.createElement(W,null,r.a.createElement("div",{className:"analy-content"},r.a.createElement(p.a,Object.assign({},{labelCol:{xs:{span:24},sm:{span:10},md:{span:10}},wrapperCol:{xs:{span:24},sm:{span:18},md:{span:18}}},{form:B,onFinish:function(){Y(1),P(10),G({class_name:a,start_time:i,end_time:O,current:1,limit:10})}}),r.a.createElement(g.a,{gutter:{xs:8,sm:16,md:24}},r.a.createElement(b.a,{span:"6"},r.a.createElement(me,{label:"\u5151\u6362\u8bfe\u7a0b\u540d\u79f0\uff1a",name:"class_name"},r.a.createElement(h.a,{placeholder:"\u8bf7\u8f93\u5165",onChange:function(e){L("class_name",e.target.value)}}))),r.a.createElement(b.a,{span:"6"},r.a.createElement(me,{label:"\u5151\u6362\u65f6\u95f4\uff1a",name:"dates"},r.a.createElement(ue,{locale:m.a,onCalendarChange:function(e){L("dates",e)}})))),r.a.createElement(g.a,Object.assign({style:{padding:"12px 0"}},{gutter:{xs:8,sm:16,md:24}}),r.a.createElement(b.a,{md:12,sm:24},r.a.createElement(E.a,{type:"primary",style:{marginRight:"12px"},onClick:function(){A("/51business/api/course/back/export/redeem/used",{type:"GET",data:{class_name:a,start_time:i?i+" 00:00:00":"",end_time:O?O+" 23:59:59":""},responseType:"arrayBuffer"}).then((function(e){U(e,"\u5151\u6362\u8ba2\u5355\u5217\u8868".concat(i,"_").concat(O))}))}},"\u5bfc\u51fa\u8ba2\u5355\u4fe1\u606f\u8868")),r.a.createElement(b.a,{md:12,sm:24,style:{textAlign:"right"}},r.a.createElement(p.a.Item,null,r.a.createElement(E.a,{type:"primary",htmlType:"submit",style:{marginRight:"12px"}},"\u67e5\u8be2"),r.a.createElement(E.a,{htmlType:"button",onClick:function(){B.resetFields(),L("class_name",""),Y(1),P(10),G({})}},"\u91cd\u7f6e")))))),r.a.createElement(se,{dataSource:_,pageSize:K,current:N,totalCount:C,handleTableChange:function(e){Y(e.current),P(e.pageSize),G({class_name:a,start_time:i,end_time:O,current:e.current,limit:e.pageSize})}}))},pe=a(148),fe=a.n(pe),ge=a(189),be=a(365),he=a(366),Ee=(a(349),function(){var e=Object(n.useState)(""),t=Object(s.a)(e,2),a=t[0],c=t[1],l=Object(n.useState)(""),o=Object(s.a)(l,2),m=o[0],u=o[1],d=Object(n.useState)(!1),p=Object(s.a)(d,2),f=p[0],g=p[1],b=Object(n.useState)(!1),y=Object(s.a)(b,2),O=y[0],j=y[1],w=Object(n.useRef)(null),v=function(e,t){({passport:function(e){c(e)},password:function(e){u(e)}})[t](e.target.value)};Object(n.useMemo)((function(){g(!(!m||!a))}),[a,m]),S.a.config({duration:2,maxCount:3});var _=Object(i.f)((function(e){var t=f?["btn","loginItem","btn_act"]:["btn","loginItem"];return r.a.createElement("button",{className:t.join(" "),onClick:function(){if(f){var t=e.history;A("/51business/api/course/back/login",{data:{account:a,password:m},error:function(){u("")}}).then(function(){var e=Object(ge.a)(fe.a.mark((function e(n){var r;return fe.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=10;break}return window.localStorage.setItem("token",n.auth_token),window.localStorage.setItem("institution_name",n.institution_name),window.localStorage.setItem("institution_id",n.institution_id),window.localStorage.setItem("user",a),e.next=7,A("/51business/api/course/back/menu",{type:"GET"});case 7:r=e.sent,window.localStorage.setItem("routerConf",JSON.stringify(r.list)),t.push("/orderList");case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e)}))}else n="\u7528\u6237\u540d\u6216\u5bc6\u7801\u4e0d\u6b63\u786e",S.a.info(n);var n},ref:w},e.title)}));return r.a.createElement("div",null,r.a.createElement("div",{className:"loginPane"},r.a.createElement("div",{className:"login-inline"},r.a.createElement("img",{style:{width:"80%"},src:"https://gw.alipayobjects.com/mdn/rms_ae7ad9/afts/img/A*-wAhRYnWQscAAAAAAAAAAABkARQnAQ",alt:""})),r.a.createElement("div",{className:"login-inline"},r.a.createElement("div",null,r.a.createElement("h3",{style:{textAlign:"center",fontSize:"24px",fontWeight:"bold"}},"\u8da3\u9009\u8bfe\u5408\u4f5c\u540e\u53f0")),r.a.createElement("div",{className:"loginItem"},r.a.createElement(h.a,{size:"large",placeholder:"\u8bf7\u8f93\u5165\u4f60\u7684\u8d26\u53f7",value:a,onChange:function(e){return v(e,"passport")},prefix:r.a.createElement(be.a,{className:"site-form-item-icon"})})),r.a.createElement("div",{className:"loginItem"},r.a.createElement(h.a.Password,{size:"large",placeholder:"\u8bf7\u8f93\u5165\u4f60\u7684\u5bc6\u7801",value:m,autoComplete:"new-password",onPressEnter:function(){var e=w.current;console.log(e)},onChange:function(e){return v(e,"password")},prefix:r.a.createElement(he.a,null)})),r.a.createElement(_,{title:"\u767b\u5f55"}),r.a.createElement(E.a,{type:"link",onClick:function(){return j(!0)}},"\u5fd8\u8bb0\u5bc6\u7801"),r.a.createElement(x.a,{title:"\u5fd8\u8bb0\u5bc6\u7801",width:"300px",visible:O,footer:r.a.createElement(E.a,{type:"primary",size:"large",block:!0,onClick:function(){return j(!1)}},"\u767b\u5f55"),onCancel:function(){return j(!1)}},r.a.createElement("p",{style:{fontSize:"16px"}},"\u8bf7\u8054\u7cfb51\u516c\u79ef\u91d1\u540c\u4e8b\u8fdb\u884c\u5bc6\u7801\u91cd\u7f6e")))))}),ye=Object(i.f)((function(){return r.a.createElement(i.c,null,r.a.createElement(i.a,{path:"/login",exact:!0,component:Ee}),r.a.createElement(i.a,{path:"/orderList",exact:!0,component:H}),r.a.createElement(i.a,{path:"/exchangeCode",exact:!0,component:te}),r.a.createElement(i.a,{path:"/generateCode",exact:!0,component:le}),r.a.createElement(i.a,{path:"/exchangeList",exact:!0,component:de}),r.a.createElement(i.a,{path:"/",component:H}))})),Oe=function(){return r.a.createElement(ye,null)};a(350);console.log("typescript eject test");var je=function(){return r.a.createElement("div",{className:"appWrap"},r.a.createElement(o.a,{basename:"/inclass-partners"},r.a.createElement(Oe,null)))};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));l.a.render(r.a.createElement(je,null),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}},[[198,1,2]]]);
\ No newline at end of file
!function(e){function t(t){for(var n,l,a=t[0],i=t[1],c=t[2],p=0,s=[];p<a.length;p++)l=a[p],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(f&&f(t);s.length;)s.shift()();return u.push.apply(u,c||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var i=r[a];0!==o[i]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="//r.51gjj.com/webpublic/inclass/";var a=this["webpackJsonpantd-demo-ts"]=this["webpackJsonpantd-demo-ts"]||[],i=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var f=i;r()}([]);
\ No newline at end of file
...@@ -14,7 +14,7 @@ needle.post( ...@@ -14,7 +14,7 @@ needle.post(
// 获取配置、设置上传本地路径、上传核心代码 // 获取配置、设置上传本地路径、上传核心代码
let config = res.data.config; let config = res.data.config;
const osspath = 'webpublic/inclass'; const osspath = 'webpublic/inclass';
const local = path.resolve(__dirname, './dist'); const local = path.resolve(__dirname, './build');
uploadToOss({ uploadToOss({
config, config,
local, local,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment