Commit 7d87b035 authored by 王万里's avatar 王万里

update:切换本地和线上环境

parent fb977b65
......@@ -197,29 +197,47 @@ FLOWABLE.APP_URL = {
/* FORM MODEL URLS */
// 获取模型列表
getFormModelsUrl: function (cookie) {
return 'http://localhost:8089/CityInterface/rest/services/PandaWorkflow.svc/GetFormModelList?Cookie=' + 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;
},
// 获取模型详情
getFormModelDetail: function(id, key, cookie) {
return 'http://localhost:8089/CityInterface/rest/services/PandaWorkflow.svc/GetModelDetail?ModelID=' + id + '&Model_key=' + key +'&Cookie=' + 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
},
// 获取字段配置信息
GetColumnConfig:function(ACTID, FORMKEY) {
return `http://localhost:8089/CityInterface/rest/services/PandaWorkflow.svc/GetColumnConfig?ActID=${ACTID}&FormKey=${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}`
},
// 保存单个字段配置信息
SaveFieldConfig:function() {
return `http://localhost:8089/CityInterface/rest/services/PandaWorkflow.svc/SaveFieldConfig`
// 本地
// return `http://localhost:8089/CityInterface/rest/services/PandaWorkflow.svc/SaveFieldConfig`
// 线上
return window.location.origin + `/CityInterface/rest/services/PandaWorkflow.svc/SaveFieldConfig`
},
// 保存整个表单字段配置信息
SaveColumnConfig:function(ACTID, FORMKEY) {
return `http://localhost:8089/CityInterface/rest/services/PandaWorkflow.svc/SaveColumnConfig?ActID=${ACTID}&FormKey=${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}`
},
// 获取员工列表
getStaffList: function() {
return 'http://localhost:8089/Cityinterface/rest/services/PandaWorkflow.svc/getUserListForRole?_version=9999'
// 本地
// return 'http://localhost:8089/Cityinterface/rest/services/PandaWorkflow.svc/getUserListForRole?_version=9999'
// 线上
return window.location.origin + '/Cityinterface/rest/services/PandaWorkflow.svc/getUserListForRole?_version=9999'
},
getFormModelValuesUrl: function (query) {
......
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