Commit 36dc1d11 authored by 何虹's avatar 何虹 💬

优化

parent b8a422d9
...@@ -21798,7 +21798,7 @@ __webpack_require__.r(__webpack_exports__); ...@@ -21798,7 +21798,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ "SEND_BILLS": function() { return /* binding */ SEND_BILLS; }, /* harmony export */ "SEND_BILLS": function() { return /* binding */ SEND_BILLS; },
/* harmony export */ "UN_SEND_BILLS": function() { return /* binding */ UN_SEND_BILLS; }, /* harmony export */ "UN_SEND_BILLS": function() { return /* binding */ UN_SEND_BILLS; },
/* harmony export */ "REJECT_BILLS": function() { return /* binding */ REJECT_BILLS; }, /* harmony export */ "REJECT_BILLS": function() { return /* binding */ REJECT_BILLS; },
/* harmony export */ "CONFIG_TOOL_API": function() { return /* binding */ CONFIG_TOOL_API; } /* harmony export */ "CONFIG_API": function() { return /* binding */ CONFIG_API; }
/* harmony export */ }); /* harmony export */ });
/* harmony import */ var _commonProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31); /* harmony import */ var _commonProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
...@@ -21818,7 +21818,7 @@ const UN_CLOSE_BILLS = `${_commonProxy__WEBPACK_IMPORTED_MODULE_0__.COMMON_UTIL_ ...@@ -21818,7 +21818,7 @@ const UN_CLOSE_BILLS = `${_commonProxy__WEBPACK_IMPORTED_MODULE_0__.COMMON_UTIL_
const SEND_BILLS = `${_commonProxy__WEBPACK_IMPORTED_MODULE_0__.COMMON_UTIL_PROXY}/send_bills/` const SEND_BILLS = `${_commonProxy__WEBPACK_IMPORTED_MODULE_0__.COMMON_UTIL_PROXY}/send_bills/`
const UN_SEND_BILLS = `${_commonProxy__WEBPACK_IMPORTED_MODULE_0__.COMMON_UTIL_PROXY}/un_send_bills/` const UN_SEND_BILLS = `${_commonProxy__WEBPACK_IMPORTED_MODULE_0__.COMMON_UTIL_PROXY}/un_send_bills/`
const REJECT_BILLS = `${_commonProxy__WEBPACK_IMPORTED_MODULE_0__.COMMON_UTIL_PROXY}/reject_bills/` const REJECT_BILLS = `${_commonProxy__WEBPACK_IMPORTED_MODULE_0__.COMMON_UTIL_PROXY}/reject_bills/`
const CONFIG_TOOL_API = `${_commonProxy__WEBPACK_IMPORTED_MODULE_0__.CONFIG_TOOL_PROXY}/` const CONFIG_API = `${_commonProxy__WEBPACK_IMPORTED_MODULE_0__.CONFIG_PROXY}/`
...@@ -21837,7 +21837,7 @@ __webpack_require__.r(__webpack_exports__); ...@@ -21837,7 +21837,7 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ "GQL_PROXY": function() { return /* binding */ GQL_PROXY; }, /* harmony export */ "GQL_PROXY": function() { return /* binding */ GQL_PROXY; },
/* harmony export */ "FILE_RESOURCE_PROXY": function() { return /* binding */ FILE_RESOURCE_PROXY; }, /* harmony export */ "FILE_RESOURCE_PROXY": function() { return /* binding */ FILE_RESOURCE_PROXY; },
/* harmony export */ "SERVICE_PROXY": function() { return /* binding */ SERVICE_PROXY; }, /* harmony export */ "SERVICE_PROXY": function() { return /* binding */ SERVICE_PROXY; },
/* harmony export */ "CONFIG_TOOL_PROXY": function() { return /* binding */ CONFIG_TOOL_PROXY; } /* harmony export */ "CONFIG_PROXY": function() { return /* binding */ CONFIG_PROXY; }
/* harmony export */ }); /* harmony export */ });
const OAUTH_PROXY = 'OAUTH_PROXY' // `http://${api}/HSRight/api/` const OAUTH_PROXY = 'OAUTH_PROXY' // `http://${api}/HSRight/api/`
const TOOL_PROXY = 'TOOL_PROXY' // `http://${api}/Tool/api/` const TOOL_PROXY = 'TOOL_PROXY' // `http://${api}/Tool/api/`
...@@ -21847,7 +21847,7 @@ const COMMON_PROXY = 'COMMON_PROXY' // `http://${api}/` ...@@ -21847,7 +21847,7 @@ const COMMON_PROXY = 'COMMON_PROXY' // `http://${api}/`
const GQL_PROXY = 'GQL_PROXY' // `http://${api}/GQL/api/` const GQL_PROXY = 'GQL_PROXY' // `http://${api}/GQL/api/`
const FILE_RESOURCE_PROXY = 'FILE_RESOURCE_PROXY' // `http://${api}/fileresource/api/` const FILE_RESOURCE_PROXY = 'FILE_RESOURCE_PROXY' // `http://${api}/fileresource/api/`
const SERVICE_PROXY = 'SERVICE_PROXY' // `SERVICE_PROXY` const SERVICE_PROXY = 'SERVICE_PROXY' // `SERVICE_PROXY`
const CONFIG_TOOL_PROXY = 'CONFIG_TOOL_PROXY' // `新模式toolconfig` const CONFIG_PROXY = 'CONFIG_PROXY' // `新模式toolconfig`
/***/ }), /***/ }),
...@@ -22116,7 +22116,9 @@ class Control { ...@@ -22116,7 +22116,9 @@ class Control {
return db_name return db_name
} }
getConfigDbNameApiProxy () { getConfigDbNameApiProxy () {
return config_db_name ? _common_commonModule__WEBPACK_IMPORTED_MODULE_0__.CONFIG_TOOL_API : '' const str = config_db_name ? _common_commonModule__WEBPACK_IMPORTED_MODULE_0__.CONFIG_API : ''
console.log(str)
return str
} }
getInitDbConfigParam () { getInitDbConfigParam () {
return config_db_name return config_db_name
......
This source diff could not be displayed because it is too large. You can view the blob instead.
import { TOOL_PROXY, GQL_PROXY, COMMON_UTIL_PROXY ,SERVICE_PROXY,CONFIG_PROXY} from './commonProxy' import {
TOOL_PROXY,
GQL_PROXY,
COMMON_UTIL_PROXY,
SERVICE_PROXY,
CONFIG_PROXY
} from './commonProxy'
export const WEB_QUERY = `${TOOL_PROXY}/web_query/` export const WEB_QUERY = `${TOOL_PROXY}/web_query/`
export const WEB_QUERY_QUERY = `${TOOL_PROXY}/web_query/query/` export const WEB_QUERY_QUERY = `${TOOL_PROXY}/web_query/query/`
export const WEB_QUERY_QUERY_VALUE = `${TOOL_PROXY}/web_query/query_value/` export const WEB_QUERY_QUERY_VALUE = `${TOOL_PROXY}/web_query/query_value/`
...@@ -16,4 +22,19 @@ export const SEND_BILLS = `${COMMON_UTIL_PROXY}/send_bills/` ...@@ -16,4 +22,19 @@ export const SEND_BILLS = `${COMMON_UTIL_PROXY}/send_bills/`
export const UN_SEND_BILLS = `${COMMON_UTIL_PROXY}/un_send_bills/` export const UN_SEND_BILLS = `${COMMON_UTIL_PROXY}/un_send_bills/`
export const REJECT_BILLS = `${COMMON_UTIL_PROXY}/reject_bills/` export const REJECT_BILLS = `${COMMON_UTIL_PROXY}/reject_bills/`
export const CONFIG_API = `${CONFIG_PROXY}/` export const CONFIG_API = `${CONFIG_PROXY}/`
export function getWEB_QUERY (isConfig) {
const start = isConfig ? CONFIG_PROXY : TOOL_PROXY
return `${start}/web_query/`
}
export function getWEB_QUERY_QUERY (isConfig) {
const start = isConfig ? CONFIG_PROXY : TOOL_PROXY
return `${start}/web_query/query/`
}
export function getWEB_QUERY_QUERY_VALUE(isConfig){
const start = isConfig ? CONFIG_PROXY : TOOL_PROXY
return `${start}/web_query/query_value/`
}
export function getWEB_QUERY_PAGE(isConfig){
const start = isConfig ? CONFIG_PROXY : TOOL_PROXY
return `${start}/web_chart_config/query_page/`
}
\ No newline at end of file
import { import {
WEB_QUERY, getWEB_QUERY,
WEB_QUERY_QUERY, getWEB_QUERY_QUERY,
WEB_QUERY_QUERY_VALUE, getWEB_QUERY_QUERY_VALUE,
WEB_QUERY_PAGE, getWEB_QUERY_PAGE
CONFIG_API
} from '../common/commonModule' } from '../common/commonModule'
import hsUtil from 'hs-util-js' import hsUtil from 'hs-util-js'
const urlParam = hsUtil.SystemModule.getUrlParams() const urlParam = hsUtil.SystemModule.getUrlParams()
...@@ -81,7 +80,7 @@ class Control { ...@@ -81,7 +80,7 @@ class Control {
} }
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY, getWEB_QUERY(this.hasConfigDb()),
postData, postData,
this.getInitDbConfigParam() this.getInitDbConfigParam()
) )
...@@ -118,7 +117,7 @@ class Control { ...@@ -118,7 +117,7 @@ class Control {
db_code: dbCode db_code: dbCode
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY_QUERY, getWEB_QUERY_QUERY(this.hasConfigDb()),
postData, postData,
this.getInitDbConfigParam() this.getInitDbConfigParam()
) )
...@@ -133,7 +132,7 @@ class Control { ...@@ -133,7 +132,7 @@ class Control {
db_code: dbCode db_code: dbCode
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY_QUERY_VALUE, getWEB_QUERY_QUERY_VALUE(this.hasConfigDb()),
postData, postData,
this.getInitDbConfigParam() this.getInitDbConfigParam()
) )
...@@ -191,7 +190,7 @@ class Control { ...@@ -191,7 +190,7 @@ class Control {
db_code: dbCode db_code: dbCode
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY_QUERY, getWEB_QUERY_QUERY(this.hasConfigDb()),
postData, postData,
this.getInitDbConfigParam() this.getInitDbConfigParam()
) )
...@@ -205,7 +204,7 @@ class Control { ...@@ -205,7 +204,7 @@ class Control {
db_code: dbCode db_code: dbCode
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY_QUERY, getWEB_QUERY_QUERY(this.hasConfigDb()),
postData, postData,
this.getInitDbConfigParam() this.getInitDbConfigParam()
) )
...@@ -219,7 +218,7 @@ class Control { ...@@ -219,7 +218,7 @@ class Control {
db_code: dbCode db_code: dbCode
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY, getWEB_QUERY(this.hasConfigDb()),
postData, postData,
this.getInitDbConfigParam() this.getInitDbConfigParam()
) )
...@@ -251,7 +250,7 @@ class Control { ...@@ -251,7 +250,7 @@ class Control {
config_type: configType config_type: configType
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY_PAGE, getWEB_QUERY_PAGE(this.hasConfigDb()),
postData, postData,
this.getInitDbConfigParam() this.getInitDbConfigParam()
) )
...@@ -260,10 +259,8 @@ class Control { ...@@ -260,10 +259,8 @@ class Control {
const db_name = config_db_name || this.requestClient.getDbName() const db_name = config_db_name || this.requestClient.getDbName()
return db_name return db_name
} }
getConfigDbNameApiProxy () { hasConfigDb(){
const str = config_db_name ? CONFIG_API : '' return !!config_db_name
console.log(str)
return str
} }
getInitDbConfigParam () { getInitDbConfigParam () {
return config_db_name return config_db_name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment