Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
flowable-engine-fontend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王万里
flowable-engine-fontend
Commits
0979fb13
Commit
0979fb13
authored
Apr 23, 2021
by
王万里
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:抽离配置文件
parent
7d87b035
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
24 deletions
+16
-24
index.html
index.html
+2
-0
url-config.js
scripts/configuration/url-config.js
+6
-24
web4UrlConfig.js
web4UrlConfig.js
+8
-0
No files found.
index.html
View file @
0979fb13
...
...
@@ -307,5 +307,7 @@
<!-- Integration extensions -->
<script
src=
"scripts/resource-loader.js?v=2"
app=
"editor"
></script>
<script
src=
"web4UrlConfig.js"
type=
"text/javascript"
></script>
</body>
</html>
scripts/configuration/url-config.js
View file @
0979fb13
...
...
@@ -197,47 +197,29 @@ FLOWABLE.APP_URL = {
/* FORM MODEL URLS */
// 获取模型列表
getFormModelsUrl
:
function
(
cookie
)
{
// 本地
// return 'http://localhost:8089/CityInterface/rest/services/PandaWorkflow.svc/GetFormModelList?Cookie=' + cookie;
// 线上
return
window
.
location
.
origin
+
'/CityInterface/rest/services/PandaWorkflow.svc/GetFormModelList?Cookie='
+
cookie
;
return
`
${
window
.
API_ADDRESS
}
/GetFormModelList?Cookie=
${
cookie
}
`
;
},
// 获取模型详情
getFormModelDetail
:
function
(
id
,
key
,
cookie
)
{
// 本地
// return 'http://localhost:8089/CityInterface/rest/services/PandaWorkflow.svc/GetModelDetail?ModelID=' + id + '&Model_key=' + key +'&Cookie=' + cookie
// 线上
return
window
.
location
.
origin
+
'/CityInterface/rest/services/PandaWorkflow.svc/GetModelDetail?ModelID='
+
id
+
'&Model_key='
+
key
+
'&Cookie='
+
cookie
return
`
${
window
.
API_ADDRESS
}
/GetModelDetail?ModelID=
${
id
}
&Model_key=
${
key
}
&Cookie=
${
cookie
}
`
},
// 获取字段配置信息
GetColumnConfig
:
function
(
ACTID
,
FORMKEY
)
{
// 本地
// return `http://localhost:8089/CityInterface/rest/services/PandaWorkflow.svc/GetColumnConfig?ActID=${ACTID}&FormKey=${FORMKEY}`
// 线上
return
window
.
location
.
origin
+
`/CityInterface/rest/services/PandaWorkflow.svc/GetColumnConfig?ActID=
${
ACTID
}
&FormKey=
${
FORMKEY
}
`
return
`
${
window
.
API_ADDRESS
}
/GetColumnConfig?ActID=
${
ACTID
}
&FormKey=
${
FORMKEY
}
`
},
// 保存单个字段配置信息
SaveFieldConfig
:
function
()
{
// 本地
// return `http://localhost:8089/CityInterface/rest/services/PandaWorkflow.svc/SaveFieldConfig`
// 线上
return
window
.
location
.
origin
+
`/CityInterface/rest/services/PandaWorkflow.svc/SaveFieldConfig`
return
`
${
window
.
API_ADDRESS
}
/SaveFieldConfig`
},
// 保存整个表单字段配置信息
SaveColumnConfig
:
function
(
ACTID
,
FORMKEY
)
{
// 本地
// return `http://localhost:8089/CityInterface/rest/services/PandaWorkflow.svc/SaveColumnConfig?ActID=${ACTID}&FormKey=${FORMKEY}`
// 线上
return
window
.
location
.
origin
+
`/CityInterface/rest/services/PandaWorkflow.svc/SaveColumnConfig?ActID=
${
ACTID
}
&FormKey=
${
FORMKEY
}
`
return
`
${
window
.
API_ADDRESS
}
/SaveColumnConfig?ActID=
${
ACTID
}
&FormKey=
${
FORMKEY
}
`
},
// 获取员工列表
getStaffList
:
function
()
{
// 本地
// return 'http://localhost:8089/Cityinterface/rest/services/PandaWorkflow.svc/getUserListForRole?_version=9999'
// 线上
return
window
.
location
.
origin
+
'/Cityinterface/rest/services/PandaWorkflow.svc/getUserListForRole?_version=9999'
return
`
${
window
.
API_ADDRESS
}
/getUserListForRole?_version=9999`
},
getFormModelValuesUrl
:
function
(
query
)
{
...
...
web4UrlConfig.js
0 → 100644
View file @
0979fb13
// 测试环境
// const API_ADDRESS = "http://localhost:8089/Cityinterface/rest/services/PandaWorkflow.svc"
// 切换线上环境
const
API_ADDRESS
=
"http://192.168.19.105:8055/Cityinterface/rest/services/PandaWorkflow.svc"
window
.
API_ADDRESS
=
API_ADDRESS
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment