Browse Source

pumpStation_ 泵站参数前缀

master
wenlele 1 year ago
parent
commit
b002ac2691
  1. 6
      api/app/lib/schedule/workorder_statistics.js
  2. 1
      web/client/src/layout/actions/global.js

6
api/app/lib/schedule/workorder_statistics.js

@ -1,7 +1,7 @@
const moment = require('moment')
let isDev = false
// let isDev = true
// let isDev = false
let isDev = true
@ -24,7 +24,7 @@ module.exports = function (app, opts) {
let data = await getAnxinyunToken(app)
//获取所有泵站
let structureList = await app.fs.anxinyun.get(`/organizations/${data.orgId}/structures?token=${data.token}`) || []
await app.redis.set("structure", JSON.stringify(structureList))
await app.redis.set("pumpStation_structure", JSON.stringify(structureList))
if (structureList.length) {

1
web/client/src/layout/actions/global.js

@ -31,7 +31,6 @@ export function initApiRoot () {
return dispatch => {
RouteRequest.get(RouteTable.apiRoot).then(res => {
localStorage.setItem('tyApiRoot', res.root);
localStorage.setItem('qnDomain', res.qiniu);
localStorage.setItem('aliAdmin', res.aliAdmin);
dispatch({
type: INIT_API_ROOT,

Loading…
Cancel
Save