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