Commit 02724e38 authored by 何虹's avatar 何虹 💬

action查询保存

parent 1c37c978
...@@ -21798,11 +21798,11 @@ __webpack_require__.r(__webpack_exports__); ...@@ -21798,11 +21798,11 @@ __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_API": function() { return /* binding */ CONFIG_API; },
/* harmony export */ "getWEB_QUERY": function() { return /* binding */ getWEB_QUERY; }, /* harmony export */ "getWEB_QUERY": function() { return /* binding */ getWEB_QUERY; },
/* harmony export */ "getWEB_QUERY_QUERY": function() { return /* binding */ getWEB_QUERY_QUERY; }, /* harmony export */ "getWEB_QUERY_QUERY": function() { return /* binding */ getWEB_QUERY_QUERY; },
/* harmony export */ "getWEB_QUERY_QUERY_VALUE": function() { return /* binding */ getWEB_QUERY_QUERY_VALUE; }, /* harmony export */ "getWEB_QUERY_QUERY_VALUE": function() { return /* binding */ getWEB_QUERY_QUERY_VALUE; },
/* harmony export */ "getWEB_QUERY_PAGE": function() { return /* binding */ getWEB_QUERY_PAGE; } /* harmony export */ "getWEB_QUERY_PAGE": function() { return /* binding */ getWEB_QUERY_PAGE; },
/* harmony export */ "getPbWebDyncCode": function() { return /* binding */ getPbWebDyncCode; }
/* 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);
...@@ -21822,7 +21822,6 @@ const UN_CLOSE_BILLS = `${_commonProxy__WEBPACK_IMPORTED_MODULE_0__.COMMON_UTIL_ ...@@ -21822,7 +21822,6 @@ 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_API = `${_commonProxy__WEBPACK_IMPORTED_MODULE_0__.CONFIG_PROXY}/`
function getWEB_QUERY (isConfig) { function getWEB_QUERY (isConfig) {
const start = isConfig ? _commonProxy__WEBPACK_IMPORTED_MODULE_0__.CONFIG_PROXY : _commonProxy__WEBPACK_IMPORTED_MODULE_0__.TOOL_PROXY const start = isConfig ? _commonProxy__WEBPACK_IMPORTED_MODULE_0__.CONFIG_PROXY : _commonProxy__WEBPACK_IMPORTED_MODULE_0__.TOOL_PROXY
return `${start}/web_query/` return `${start}/web_query/`
...@@ -21839,6 +21838,10 @@ function getWEB_QUERY_PAGE(isConfig){ ...@@ -21839,6 +21838,10 @@ function getWEB_QUERY_PAGE(isConfig){
const start = isConfig ? _commonProxy__WEBPACK_IMPORTED_MODULE_0__.CONFIG_PROXY : _commonProxy__WEBPACK_IMPORTED_MODULE_0__.TOOL_PROXY const start = isConfig ? _commonProxy__WEBPACK_IMPORTED_MODULE_0__.CONFIG_PROXY : _commonProxy__WEBPACK_IMPORTED_MODULE_0__.TOOL_PROXY
return `${start}/web_chart_config/query_page/` return `${start}/web_chart_config/query_page/`
} }
function getPbWebDyncCode(isConfig){
const start = isConfig ? _commonProxy__WEBPACK_IMPORTED_MODULE_0__.CONFIG_PROXY : _commonProxy__WEBPACK_IMPORTED_MODULE_0__.TOOL_PROXY
return `${start}/api/queryBi/pbWebDyncCode/`
}
/***/ }), /***/ }),
/* 31 */ /* 31 */
...@@ -22133,7 +22136,7 @@ class Control { ...@@ -22133,7 +22136,7 @@ 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
} }
hasConfigDb(){ hasConfigDb () {
return !!config_db_name return !!config_db_name
} }
getInitDbConfigParam () { getInitDbConfigParam () {
...@@ -22143,6 +22146,30 @@ class Control { ...@@ -22143,6 +22146,30 @@ class Control {
} }
: false : false
} }
// 获取 动态中的action列表
queryBillpbWebDyncCode (data = {}) {
const { appCode, pageName } = data
const param = {
app_code: appCode || this.requestClient.appCode,
page_name: pageName || this.requestClient.pageName,
usable: 1
}
const url = (0,_common_commonModule__WEBPACK_IMPORTED_MODULE_0__.getPbWebDyncCode)(this.hasConfigDb())
return this.restfulClient.get(url, param)
}
// 获取 动态中的action列表
saveBillpbWebDyncCode (data = {}) {
const { appCode, pageName, app_code, page_name } = data
if (!appCode && !app_code) {
data.app_code = this.requestClient.appCode
}
if (!pageName && !page_name) {
data.page_name = this.requestClient.pageName
data.page_url = this.requestClient.pageName
}
const url = (0,_common_commonModule__WEBPACK_IMPORTED_MODULE_0__.getPbWebDyncCode)(this.hasConfigDb())
return this.restfulClient.post(url, data, getInitDbConfigParam)
}
} }
/* harmony default export */ __webpack_exports__["default"] = (Control); /* harmony default export */ __webpack_exports__["default"] = (Control);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -279,7 +279,7 @@ class Control { ...@@ -279,7 +279,7 @@ class Control {
usable: 1 usable: 1
} }
const url = getPbWebDyncCode(this.hasConfigDb()) const url = getPbWebDyncCode(this.hasConfigDb())
return this.restfulClient.get(url, param) return this.requestClient.get(url, param)
} }
// 获取 动态中的action列表 // 获取 动态中的action列表
saveBillpbWebDyncCode (data = {}) { saveBillpbWebDyncCode (data = {}) {
...@@ -292,7 +292,7 @@ class Control { ...@@ -292,7 +292,7 @@ class Control {
data.page_url = this.requestClient.pageName data.page_url = this.requestClient.pageName
} }
const url = getPbWebDyncCode(this.hasConfigDb()) const url = getPbWebDyncCode(this.hasConfigDb())
return this.restfulClient.post(url, data, getInitDbConfigParam) return this.requestClient.post(url, data, getInitDbConfigParam)
} }
} }
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