Commit 8feb4be4 by 胡悦

Merge branch 'v1.0.2' of http://192.168.3.233:8090/saas/scrm-micro-custom into v1.0.2

2 parents 31544e2d fe367e34
......@@ -6,12 +6,12 @@
* @param {*} params
* @returns
*/
import { http2 } from '@/main'
import { http3 } from '@/main'
//获取数据概览上方的数据 /rop-scrm-datahub
export function getDataOverview(params){
params.method='entmicro.api.Customer.customer.view.data'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -22,7 +22,7 @@
//获取数据概览下方柱状图的数据
export function getDataOverviewBarMap(params){
params.method='entmicro.api.customer.view.chart'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......
......@@ -64,7 +64,7 @@
// params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop"
// params.timestamp=new Date().getTime()
// +'?method=org.ore.api.customer.page'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -73,7 +73,7 @@
}
export function syncCustomer(params){
params.method='entmicro.api.synchro.syncCustomer'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -84,7 +84,7 @@
params.method='entmicro.api.customer.detail'
// params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop"
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -96,7 +96,7 @@
*/
export function getDictionaryFun(params){
params.method='entmicro.api.common.dictdata.list'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
......
......@@ -6,11 +6,11 @@
* @param {*} params
* @returns
*/
import { http2 } from '@/main'
import { http3 } from '@/main'
//计算是第几次接触该页面
export function getLoginCount (params){
params.method='entmicro.api.common.findLoginCount'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......
......@@ -62,7 +62,7 @@ export const Util = {
*/
isSpecialLetter: function (str) {
let reg = new RegExp("[`~!@#$^&*=|{}':;',\\[\\]<>?~!@#¥……&*——|{}【】‘;:”“'。,、? ]");
return reg.test(str);
return reg.test(str);//true/false
},
/**
......
......@@ -509,6 +509,18 @@ export default {
break
}
},
isHasSome(array) {
var temp = [] //一个新的临时数组
for (var i = 0; i < array.length; i++) {
if (temp.indexOf(array[i]) !== -1) {
return true
}
if (temp.indexOf(array[i]) == -1) {
temp.push(array[i])
}
}
return false
},
//编辑触发事件
editEvent(rowData) {
this.handleClose()
......@@ -545,6 +557,16 @@ export default {
this.$message.error('不能提交空标签')
return
}
//如果存在添加标签的输入框的内容的标签相同则不提交
let isSameTagFlag = false
var tempArr = this.tagForm.tagsList.map(item => item.name)
isSameTagFlag = this.isHasSome(tempArr)
if (isSameTagFlag) {
this.$message.error('不能提交相同的标签,请修改')
return
}
this.newAddTagFun()
//this.handleClose() //这里不管
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!