update production key

This commit is contained in:
2023-11-18 20:11:57 +05:30
parent 2421902dbf
commit e9d21824df
77 changed files with 127 additions and 118 deletions

View File

@ -0,0 +1,2 @@
(this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[]).push([[7],{653:function(e,t,c){"use strict";c.r(t);var n=c(0),s=c(522),i=c.n(s),r=c(516),o=c(515),a=c(596),l=c.n(a),j=(c(595),c(11));t.default=function(){const e="https://openshield.bizside.biz",[t,c]=Object(n.useState)([]),[s,a]=Object(n.useState)(""),[d,h]=Object(n.useState)(""),[b,u]=Object(n.useState)(!1),[x,O]=Object(n.useState)(null),[m,p]=Object(n.useState)([]),[f,g]=Object(n.useState)("");function v(e){var t=String(e.getDate()).padStart(2,"0"),c=String(e.getMonth()+1).padStart(2,"0");return e.getFullYear()+"-"+c+"-"+t}function k(){if(console.log(S()),console.log(f),""!=s&&""!=d){var t="";null!==x?(t=b?e+"/generate"+s+"?construction_id="+d+"&construction_date="+v(x)+"&graph=true":e+"/generate"+s+"?construction_id="+d+"&construction_date="+v(x),g(t)):g(t=b?e+"/generate"+s+"?construction_id="+d+"&graph=true":e+"/generate"+s+"?construction_id="+d)}else alert("\u5efa\u8a2d\u3068\u30ec\u30dd\u30fc\u30c8\u306e\u4e21\u65b9\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044")}function S(){return!1===_()&&""!==s&&""!==d||null!==x}function _(){return"BoxDisplacement"===s||"MachineControl"===s||"MachineSheet"===s}return Object(n.useEffect)((()=>{!async function(){const e=await i()("https://openshield.bizside.biz/getConstructionList");c(e.data)}()}),[]),Object(n.useEffect)((()=>{!async function(){if(""!==d&&""!==s&&1==_()){const e=await i()("https://openshield.bizside.biz/getDateToHaveData?construction_id="+d+"&sheetname="+s);p(e.data.record)}}()}),[s,d]),Object(j.jsxs)(r.K,{children:[Object(j.jsx)(r.k,{xs:"12",sm:"12",md:"12",children:Object(j.jsxs)(r.f,{children:[Object(j.jsx)(r.j,{children:"\u30ec\u30dd\u30fc\u30c8"}),Object(j.jsxs)(r.g,{children:[Object(j.jsxs)(r.L,{custom:!0,name:"cons_select",id:"cons_select",onChange:function(e){h(e.target.value),O(null),g("")},children:['" ',Object(j.jsx)("option",{value:"",children:"-- \u5de5\u4e8b\u540d --"}),'"+',t.map(((e,t)=>Object(j.jsx)("option",{value:e.construction_id,children:e.construction_name},e.construction_id)))]}),Object(j.jsxs)(r.f,{children:[Object(j.jsx)(r.g,{children:Object(j.jsxs)(r.s,{action:"",method:"post",encType:"multipart/form-data",className:"form-horizontal",children:[Object(j.jsxs)(r.t,{row:!0,children:[Object(j.jsx)(r.k,{md:"3",children:Object(j.jsx)(r.H,{htmlFor:"select",children:"\u30ec\u30dd\u30fc\u30c8\u7a2e\u985e"})}),Object(j.jsx)(r.k,{xs:"12",md:"9",children:Object(j.jsxs)(r.L,{custom:!0,name:"select",id:"select",onChange:function(e){a(e.target.value),O(null),g("")},value:s,children:[Object(j.jsx)("option",{value:"",children:"-- \u30ec\u30dd\u30fc\u30c8\u7a2e\u985e --"}),Object(j.jsx)("option",{value:"BoxDisplacement",children:"\u51fd\u4f53\u5909\u4f4d\u8868"}),Object(j.jsx)("option",{value:"MachineControl",children:"\u30aa\u30fc\u30d7\u30f3\u30b7\u30fc\u30eb\u30c9\u30de\u30b7\u30f3\u7ba1\u7406\u65e5\u5831"}),Object(j.jsx)("option",{value:"Measurement",children:"\u51fd\u5e95\u9ad8\u30fb\u504f\u4f4d\u91cf\u6e2c\u5b9a\u4e00\u89a7\u8868"}),Object(j.jsx)("option",{value:"CheckSheet",children:"\u5de5\u7a0b\u5185\u691c\u67fb\u8868"}),Object(j.jsx)("option",{value:"Injection",children:"\u88cf\u8fbc\u6ce8\u5165\u6750\u6599\u53d7\u6255\u3044\u7c3f"})]})})]}),!0===_()?Object(j.jsxs)(r.t,{row:!0,children:[Object(j.jsx)(r.k,{md:"3",children:Object(j.jsx)(r.H,{htmlFor:"select",children:"\u5831\u544a\u65e5"})}),Object(j.jsx)(r.k,{xs:"12",md:"9",children:Object(j.jsx)(l.a,{dateFormat:"yyyy/MM/dd",selected:x,onChange:e=>O(e),filterDate:e=>{if(void 0===m)return!1;var t=v(e);return!!m.includes(t)},placeholderText:"\u65e5\u4ed8\u3092\u9078\u629e"})})]}):Object(j.jsx)("div",{}),"MachineControl"==s?Object(j.jsxs)(r.t,{variant:"checkbox",className:"checkbox",children:[Object(j.jsx)(r.B,{id:"checkbox1",name:"checkbox1",checked:b,value:"graph",onChange:function(e){console.log("setting report"+f),u(e.target.checked),g("")}}),Object(j.jsx)(r.H,{variant:"checkbox",className:"form-check-label",htmlFor:"checkbox1",children:"\u30b0\u30e9\u30d5\u306e\u6709\u7121"})]}):""]})}),Object(j.jsx)(r.h,{children:!0===S()?Object(j.jsxs)("p",{children:[Object(j.jsxs)(r.e,{type:"submit",size:"sm",color:"primary",onClick:k,children:[Object(j.jsx)(o.a,{name:"cil-scrubber"})," \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9"]}),Object(j.jsx)("br",{}),""===f?Object(j.jsx)("p",{}):Object(j.jsx)("a",{href:f,children:"Download"})]}):Object(j.jsxs)(r.e,{disabled:!0,type:"submit",size:"sm",color:"primary",onClick:k,children:[Object(j.jsx)(o.a,{name:"cil-scrubber"})," \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9"]})})]})]})]})}),Object(j.jsx)(r.k,{xs:"1",sm:"1",md:"1"})]})}}}]);
//# sourceMappingURL=7.5f5fd478.chunk.js.map