Commit 0979fb13 authored by 王万里's avatar 王万里

add:抽离配置文件

parent 7d87b035
......@@ -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>
......@@ -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) {
......
// 测试环境
// 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
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