Commit c59c0a6e authored by 何虹's avatar 何虹 💬

问号参数dB_NAME

parent e9e8c905
import { TOOL_PROXY, GQL_PROXY, COMMON_UTIL_PROXY ,SERVICE_PROXY} from './commonProxy' import { TOOL_PROXY, GQL_PROXY, COMMON_UTIL_PROXY ,SERVICE_PROXY,CONFIG_TOOL_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/`
...@@ -15,5 +15,5 @@ export const UN_CLOSE_BILLS = `${COMMON_UTIL_PROXY}/un_close_bills/` ...@@ -15,5 +15,5 @@ export const UN_CLOSE_BILLS = `${COMMON_UTIL_PROXY}/un_close_bills/`
export const SEND_BILLS = `${COMMON_UTIL_PROXY}/send_bills/` 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_TOOL_API = `${COMMON_UTIL_PROXY}/` export const CONFIG_TOOL_API = `${CONFIG_TOOL_PROXY}/`
...@@ -82,7 +82,8 @@ class Control { ...@@ -82,7 +82,8 @@ class Control {
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY, this.getConfigDbNameApiProxy() || WEB_QUERY,
postData postData,
this.getInitDbConfigParam()
) )
} }
// 查询配置 // 查询配置
...@@ -118,7 +119,8 @@ class Control { ...@@ -118,7 +119,8 @@ class Control {
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY_QUERY, this.getConfigDbNameApiProxy() || WEB_QUERY_QUERY,
postData postData,
this.getInitDbConfigParam()
) )
} }
// 获取将要另存到本地的配置 // 获取将要另存到本地的配置
...@@ -132,7 +134,8 @@ class Control { ...@@ -132,7 +134,8 @@ class Control {
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY_QUERY_VALUE, this.getConfigDbNameApiProxy() || WEB_QUERY_QUERY_VALUE,
postData postData,
this.getInitDbConfigParam()
) )
} }
// 另存配置 // 另存配置
...@@ -189,7 +192,8 @@ class Control { ...@@ -189,7 +192,8 @@ class Control {
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY_QUERY, this.getConfigDbNameApiProxy() || WEB_QUERY_QUERY,
postData postData,
this.getInitDbConfigParam()
) )
} }
webChartConfigQueryLog (data = {}) { webChartConfigQueryLog (data = {}) {
...@@ -202,7 +206,8 @@ class Control { ...@@ -202,7 +206,8 @@ class Control {
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY_QUERY, this.getConfigDbNameApiProxy() || WEB_QUERY_QUERY,
postData postData,
this.getInitDbConfigParam()
) )
} }
webChartConfigRevert (data = {}) { webChartConfigRevert (data = {}) {
...@@ -215,7 +220,8 @@ class Control { ...@@ -215,7 +220,8 @@ class Control {
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY, this.getConfigDbNameApiProxy() || WEB_QUERY,
postData postData,
this.getInitDbConfigParam()
) )
} }
// 控件配置查询 // 控件配置查询
...@@ -246,7 +252,8 @@ class Control { ...@@ -246,7 +252,8 @@ class Control {
} }
return this.requestClient.post( return this.requestClient.post(
this.getConfigDbNameApiProxy() || WEB_QUERY_PAGE, this.getConfigDbNameApiProxy() || WEB_QUERY_PAGE,
postData postData,
this.getInitDbConfigParam()
) )
} }
getRealDbName () { getRealDbName () {
...@@ -256,5 +263,12 @@ class Control { ...@@ -256,5 +263,12 @@ class Control {
getConfigDbNameApiProxy () { getConfigDbNameApiProxy () {
return config_db_name ? CONFIG_TOOL_API : '' return config_db_name ? CONFIG_TOOL_API : ''
} }
getInitDbConfigParam () {
return config_db_name
? {
db_name: config_db_name
}
: false
}
} }
export default Control export default Control
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