2 lines
17 KiB
JavaScript
2 lines
17 KiB
JavaScript
|
import{J as M,L as J,w as K,M as W,I as Y,B as Q,C as X,a1 as Z,D as c}from"./element-plus.bb5d129a.js";import{l as h}from"./lodash.5226da61.js";import{i as N,s as ll,v as el,R as k,w as ul,x as ol,P as tl,f as P,y as al}from"./index.69ffdd93.js";import{N as B}from"./nprogress.cc41886d.js";import{d as dl}from"./axios.ba5f746b.js";import{d as nl,$ as _,r as q,o as y,c as w,U as l,L as o,K as z,R as E,V as ml,S as C,a as R}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.c5177e7a.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./vue-clipboard3.7988db4f.js";import"./clipboard.cb7a871d.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const il={requestInterceptorsHook(m){var r;B.start();const{withToken:A,isParamsToData:i}=m.requestOptions,s=m.params||{},n=m.headers||{};if(A){const d="602ebe407d85c6bbd2325c2917868d95";n.token=d}return i&&!Reflect.has(m,"data")&&((r=m.method)==null?void 0:r.toUpperCase())===el.POST&&(m.data=s,m.params={}),m.headers=n,m},requestInterceptorsCatchHook(m){return B.done(),m},async responseInterceptorsHook(m){B.done();const{isTransformResponse:A,isReturnDefaultResponse:i}=m.config.requestOptions;if(i)return m;if(!A)return m.data;const{code:s,data:n,show:r,msg:d}=m.data;switch(s){case k.SUCCESS:return r&&d&&P.msgSuccess(d),n;case k.FAIL:return r&&d&&P.msgError(d),Promise.reject(n);case k.LOGIN_FAILURE:return ul(),ol.push(tl.LOGIN),Promise.reject();case k.OPEN_NEW_PAGE:return window.location.href=n.url,n;default:return n}},responseInterceptorsCatchHook(m){return B.done(),m.code!==dl.exports.AxiosError.ERR_CANCELED&&m.message&&P.msgError(m.message),Promise.reject(m)}},sl={timeout:N.timeout,baseURL:"http://ceshi-suyuan.lihaink.cn/",headers:{"Content-Type":ll.JSON,version:N.version},axiosHooks:il,requestOptions:{isParamsToData:!0,isReturnDefaultResponse:!1,isTransformResponse:!0,urlPrefix:"adminapi",ignoreCancelToken:!1,withToken:!0,isOpenRetry:!0,retryCount:2}};function rl(m){return new al(h.exports.merge(sl,m||{}))}const O=rl();console.log(O,"requ");function pl(m){return O.post({url:"/SuYuan/addMonitor",params:m})}const Vl=C(" \u68C0\u6D4B\u4FE1\u606F\u7F16\u8F91 "),fl=C(" \u6EAF\u6E90\u4FE1\u606F\u7F16\u8F91 "),_l=C("\u786E\u5B9A"),yl=C("\u786E\u5B9A"),El=C("\u786E\u5B9A"),bl=C("\u786E\u5B9A"),Fl={key:0},Cl=R("div",null,"\u67D1\u6A58\u6EAF\u6E90\u4FE1\u606F",-1),Ul={key:1},Al=R("div",null,"\u852C\u83DC\u6EAF\u6E90\u4FE1\u606F",-1),wl={key:2},vl=R("div",null,"\u9E21\u755C\u6EAF\u6E90\u4FE1\u606F",-1),gl={key:3},xl=R("div",null,"\u9C7C\u867E\u6EAF\u6E90\u4FE1\u606F",-1),Dl=C("\u786E\u5B9A"),me=nl({__name:"index",setup(m){const A=_([{id:1,name:"\u67D1\u6A58"},{id:2,name:"\u852C\u83DC"},{id:3,name:"\u9E21\u755C"},{id:4,name:"\u{1F41F}"}]),i=_({production_base_id:1,flag:1,soil_temperature:20,soil_moisture:50,wind_direction:"\u5317",wind_speed:"3.4",rainfall:"20",illumination:"2w",carbon_dioxide_content:"450",hour:"",day:"",month:""}),s=_({production_base_id:2,flag:1,soil_temperature:20,soil_moisture:50,wind_direction:"\u5317",wind_speed:"3.4",rainfall:"20",illumination:"2w",carbon_dioxide_content:"450"}),n=_({production_base_id:3,flag:1,room_temperature:20,air_humidity:50,ammonia_nitrogen_content:"\u5317",methane_content:"3.4",air_quality_index:"20",rainfall:"2w",wind_direction:"450",wind_speed:40,illumination:40}),r=_({production_base_id:4,flag:1,pond_temperature:20,pond_ph_value:50,dissolved_oxyge
|