(this.webpackJsonpfronted=this.webpackJsonpfronted||[]).push([[0],{268:function(t,e,n){"use strict";n.r(e);var s=n(8),r=n.n(s),c=n(27),i=n.n(c),a=(n(32),n(33),n(6)),o=n.n(a),d=n(13),u=n(2),l="http://wanzq.vaiwan.com";d.ready((function(){d.runtime.permission.requestAuthCode({corpId:"ding9f50b15bccd16741",onSuccess:function(t){o.a.get(l+"/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 h=function(){var t=function(){var t=[];return o.a.get(l+"/process/instance").then((function(e){alert(JSON.stringify(e.data.result)),e.data.result.forEach((function(e){alert(JSON.stringify(e));var n=e.formComponentValues[0].name,s=e.result,r=e.approverUserids[0];t.push(Object(u.jsxs)("tr",{children:[Object(u.jsx)("td",{children:n}),Object(u.jsx)("td",{children:s}),Object(u.jsx)("td",{children:r})]}))}))})).catch((function(t){alert(JSON.stringify(t))})),t};return Object(u.jsxs)("div",{className:"App",children:[Object(u.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:l+"/process/instance",method:"post",data:t,headers:{"Content-Type":"application/json"}}).then((function(t){alert(JSON.stringify(t.data)),o.a.get(l+"/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(u.jsx)("button",{onClick:t,children:"\u83b7\u53d6\u63d0\u4ea4\u7684\u5ba1\u6279\u4fe1\u606f"}),Object(u.jsxs)("table",{children:[Object(u.jsx)("thead",{children:Object(u.jsxs)("tr",{children:[Object(u.jsx)("th",{children:"\u7269\u54c1\u7528\u9014"}),Object(u.jsx)("th",{children:"\u5ba1\u6279\u72b6\u6001"}),Object(u.jsx)("th",{children:"\u5ba1\u6279\u4eba"})]})}),Object(u.jsx)("tbody",{children:t()})]})]})},f=function(t){t&&t instanceof Function&&n.e(3).then(n.bind(null,269)).then((function(e){var n=e.getCLS,s=e.getFID,r=e.getFCP,c=e.getLCP,i=e.getTTFB;n(t),s(t),r(t),c(t),i(t)}))};i.a.render(Object(u.jsx)(r.a.StrictMode,{children:Object(u.jsx)(h,{})}),document.getElementById("root")),f()},32:function(t,e,n){},33:function(t,e,n){}},[[268,1,2]]]);
//# sourceMappingURL=main.9d7c8923.chunk.js.map