Commit fe367e34 by 李长胜

客户的接口都改回测试

1 parent c3ec6e72
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http2 } from '@/main' import { http3 } from '@/main'
//获取数据概览上方的数据 /rop-scrm-datahub //获取数据概览上方的数据 /rop-scrm-datahub
export function getDataOverview(params){ export function getDataOverview(params){
params.method='entmicro.api.Customer.customer.view.data' params.method='entmicro.api.Customer.customer.view.data'
return http2({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
//获取数据概览下方柱状图的数据 //获取数据概览下方柱状图的数据
export function getDataOverviewBarMap(params){ export function getDataOverviewBarMap(params){
params.method='entmicro.api.customer.view.chart' params.method='entmicro.api.customer.view.chart'
return http2({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
// params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop" // params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop"
// params.timestamp=new Date().getTime() // params.timestamp=new Date().getTime()
// +'?method=org.ore.api.customer.page' // +'?method=org.ore.api.customer.page'
return http2({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
} }
export function syncCustomer(params){ export function syncCustomer(params){
params.method='entmicro.api.synchro.syncCustomer' params.method='entmicro.api.synchro.syncCustomer'
return http2({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
params.method='entmicro.api.customer.detail' params.method='entmicro.api.customer.detail'
// params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop" // params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop"
return http2({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
*/ */
export function getDictionaryFun(params){ export function getDictionaryFun(params){
params.method='entmicro.api.common.dictdata.list' params.method='entmicro.api.common.dictdata.list'
return http2({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'GET', method: 'GET',
data: params, data: params,
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http2 } from '@/main' import { http3 } from '@/main'
//计算是第几次接触该页面 //计算是第几次接触该页面
export function getLoginCount (params){ export function getLoginCount (params){
params.method='entmicro.api.common.findLoginCount' params.method='entmicro.api.common.findLoginCount'
return http2({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
......
...@@ -62,7 +62,7 @@ export const Util = { ...@@ -62,7 +62,7 @@ export const Util = {
*/ */
isSpecialLetter: function (str) { isSpecialLetter: function (str) {
let reg = new RegExp("[`~!@#$^&*=|{}':;',\\[\\]<>?~!@#¥……&*——|{}【】‘;:”“'。,、? ]"); let reg = new RegExp("[`~!@#$^&*=|{}':;',\\[\\]<>?~!@#¥……&*——|{}【】‘;:”“'。,、? ]");
return reg.test(str); return reg.test(str);//true/false
}, },
/** /**
......
...@@ -562,7 +562,6 @@ export default { ...@@ -562,7 +562,6 @@ export default {
let isSameTagFlag = false let isSameTagFlag = false
var tempArr = this.tagForm.tagsList.map(item => item.name) var tempArr = this.tagForm.tagsList.map(item => item.name)
isSameTagFlag = this.isHasSome(tempArr) isSameTagFlag = this.isHasSome(tempArr)
console.log('dayin',isSameTagFlag,tempArr)
if (isSameTagFlag) { if (isSameTagFlag) {
this.$message.error('不能提交相同的标签,请修改') this.$message.error('不能提交相同的标签,请修改')
return return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!