(this.webpackJsonpfronted=this.webpackJsonpfronted||[]).push([[0],{272:function(t,e,n){"use strict";n.r(e);var c=n(4),r=n.n(c),s=n(31),a=n.n(s),i=(n(36),n(37),n(7)),o=n.n(i),d=n(13),u=n(14),l=n(15),j=n(17),h=n(16),b=n(2),f=function(t){Object(j.a)(n,t);var e=Object(h.a)(n);function n(t){return Object(u.a)(this,n),e.call(this,t)}return Object(l.a)(n,[{key:"render",value:function(){return O.items.map((function(t){var e=t.formComponentValues[0].name,n=t.result,c=t.approverUserids[0];return Object(b.jsxs)("tr",{className:"text-center",children:[Object(b.jsx)("td",{children:e}),Object(b.jsx)("td",{children:n}),Object(b.jsx)("td",{children:c})]})}))}}]),n}(r.a.Component),O=function(t){Object(j.a)(n,t);var e=Object(h.a)(n);function n(t){return Object(u.a)(this,n),e.call(this,t)}return Object(l.a)(n,[{key:"render",value:function(){if(n.isLoaded)return Object(b.jsxs)("table",{className:"table table-bordered",children:[Object(b.jsx)("thead",{children:Object(b.jsxs)("tr",{children:[Object(b.jsx)("th",{children:"\u7269\u54c1\u7528\u9014"}),Object(b.jsx)("th",{children:"\u5ba1\u6279\u72b6\u6001"}),Object(b.jsx)("th",{children:"\u5ba1\u6279\u4eba"})]})}),Object(b.jsx)("tbody",{children:Object(b.jsx)(f,{})})]})}}]),n}(r.a.Component);O.items=[];var m=O,p="http://wanzq.vaiwan.com";d.ready((function(){d.runtime.permission.requestAuthCode({corpId:"ding9f50b15bccd16741",onSuccess:function(t){o.a.get(p+"/login?authCode="+t.code).then((function(t){sessionStorage.setItem("userId",t.data.result.userid),sessionStorage.setItem("deptId",t.data.result.deptIdList[0])})).catch((function(t){alert(JSON.stringify(t))}))},onFail:function(t){alert(JSON.stringify(t))}})}));var g=function(){return Object(b.jsxs)("div",{className:"App",children:[Object(b.jsx)("button",{onClick:function(){var t={detailForms:[{textForms:[{name:"\u7269\u54c1\u540d\u79f0",value:"\u6d4b\u8bd5\u7269\u54c1\u9886\u7528-\u7535\u8111"},{name:"\u6570\u91cf",value:"3"}],name:"\u7269\u54c1\u660e\u7ec6"}],originatorUserId:sessionStorage.getItem("userId"),textForms:[{name:"\u7269\u54c1\u7528\u9014",value:"\u6d4b\u8bd5\u7269\u54c1\u9886\u7528"},{name:"\u9886\u7528\u8be6\u60c5",value:"\u9886\u7528\u8be6\u60c51"}],deptId:sessionStorage.getItem("deptId")};o()({url:p+"/process/instance",method:"post",data:t,headers:{"Content-Type":"application/json"}}).then((function(t){alert(JSON.stringify(t.data)),o.a.get(p+"/process/instance/"+t.data.result).then((function(t){alert(JSON.stringify(t.data))})).catch((function(t){alert(JSON.stringify(t))}))})).catch((function(t){console.log(t)}))},children:"\u9886\u7528\u5e76\u63d0\u4ea4\u5ba1\u6279"}),Object(b.jsx)("button",{onClick:function(){o.a.get(p+"/process/instance").then((function(t){alert(JSON.stringify(t.data.result)),m.isLoaded=!0,m.items=t.data.result})).catch((function(t){alert(JSON.stringify(t))}))},children:"\u83b7\u53d6\u63d0\u4ea4\u7684\u5ba1\u6279\u4fe1\u606f"}),Object(b.jsx)("div",{className:"container",children:Object(b.jsx)(m,{})})]})},x=function(t){t&&t instanceof Function&&n.e(3).then(n.bind(null,273)).then((function(e){var n=e.getCLS,c=e.getFID,r=e.getFCP,s=e.getLCP,a=e.getTTFB;n(t),c(t),r(t),s(t),a(t)}))};a.a.render(Object(b.jsx)(r.a.StrictMode,{children:Object(b.jsx)(g,{})}),document.getElementById("root")),x()},36:function(t,e,n){},37:function(t,e,n){}},[[272,1,2]]]);
//# sourceMappingURL=main.7ad60462.chunk.js.map