Commit 7f70ce8d authored by 吴春's avatar 吴春
parents aa944737 2e9d8169
...@@ -123,8 +123,9 @@ export default { ...@@ -123,8 +123,9 @@ export default {
let isOnline = 0; //0-本地测试,1-线上 let isOnline = 0; //0-本地测试,1-线上
let ocrUrl = "http://192.168.5.46:8888"; let ocrUrl = "http://192.168.5.46:8888";
// domainUrl = "http://192.168.5.214"; // domainUrl = "http://192.168.5.214";
domainUrl = "http://192.168.5.214" domainUrl = "http://192.168.5.39:8083"
// domainUrl = "http://192.168.5.204:8030" // domainUrl = "http://192.168.5.204:8030"
domainUrl = "http://192.168.5.46"
// domainUrl = "http://reborn.oytour.com"; // domainUrl = "http://reborn.oytour.com";
let crmLocalFileStreamDownLoadUrl = ""; let crmLocalFileStreamDownLoadUrl = "";
crmLocalFileStreamDownLoadUrl = locationName.indexOf('oytour') !== -1 ? "http://crm.oytour.com" : "http://testcrm.oytour.com"; crmLocalFileStreamDownLoadUrl = locationName.indexOf('oytour') !== -1 ? "http://crm.oytour.com" : "http://testcrm.oytour.com";
...@@ -1434,7 +1435,7 @@ export default { ...@@ -1434,7 +1435,7 @@ export default {
this.$forceUpdate(); this.$forceUpdate();
} }
// 计算当前日期的前后日期 // 计算当前日期的前后日期
Vue.prototype.getBeforeDate = function (num, time) { Vue.prototype.getBeforeDate = function (num, time, format) {
let n = num; let n = num;
let d = ''; let d = '';
if (time) { if (time) {
...@@ -1458,6 +1459,9 @@ export default { ...@@ -1458,6 +1459,9 @@ export default {
mon = d.getMonth() + 1; mon = d.getMonth() + 1;
day = d.getDate(); day = d.getDate();
let s = year + "-" + (mon < 10 ? ('0' + mon) : mon) + "-" + (day < 10 ? ('0' + day) : day); let s = year + "-" + (mon < 10 ? ('0' + mon) : mon) + "-" + (day < 10 ? ('0' + day) : day);
if(format=='yyyy-MM'){
return year + "-" + (mon < 10 ? ('0' + mon) : mon);
}
return s; return s;
}, },
......
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