Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-sensitive-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.foundation.frontend
pica-sensitive-admin
提交
fd66b0fb
提交
fd66b0fb
编写于
12月 03, 2020
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
一个按钮两次点击优化
上级
94f0a034
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
7 行删除
+11
-7
add-funnel.vue
src/views/user-path/add-funnel.vue
+11
-7
未找到文件。
src/views/user-path/add-funnel.vue
浏览文件 @
fd66b0fb
...
...
@@ -109,7 +109,8 @@ export default {
eventSelect
:
[],
tipText
:
'名称重复,请重新输入'
,
nameTip
:
'请输入漏斗名称'
,
repIndex
:
0
repIndex
:
0
,
flag
:
false
}
},
created
()
{
...
...
@@ -170,16 +171,17 @@ export default {
},
// 步骤名称不重复
stepNameRepeat
(
val
,
index
)
{
this
.
flag
=
false
;
this
.
$set
(
this
.
searchParam
.
actionModelList
[
index
],
'nameCheck'
,
false
);
if
(
!
val
)
return
;
for
(
let
i
=
0
;
i
<
this
.
searchParam
.
actionModelList
.
length
;
i
++
)
{
if
(
i
==
index
)
continue
;
if
(
val
==
this
.
searchParam
.
actionModelList
[
i
].
actionName
)
{
this
.
searchParam
.
actionModelList
[
index
].
actionName
=
''
this
.
searchParam
.
actionModelList
[
index
].
actionName
=
''
;
this
.
$set
(
this
.
searchParam
.
actionModelList
[
index
],
'nameCheck'
,
true
);
this
.
flag
=
true
;
}
}
console
.
log
(
this
.
searchParam
.
actionModelList
)
},
// 触发事件选择时重复判断
eventChange
(
item
,
index
)
{
...
...
@@ -188,22 +190,21 @@ export default {
if
(
index
!=
i
)
{
if
(
item
.
eventId
==
this
.
searchParam
.
actionModelList
[
i
].
eventId
)
{
this
.
$set
(
this
.
searchParam
.
actionModelList
[
index
],
'repChecked'
,
true
);
this
.
repIndex
=
index
;
this
.
searchParam
.
actionModelList
[
index
].
eventId
=
''
;
}
}
}
},
// 触发事件是否为空样式
selectValid
(
item
,
index
)
{
console
.
log
(
item
)
this
.
$set
(
this
.
searchParam
.
actionModelList
[
index
],
'unchecked'
,
false
);
// if(!item.eventId) return;
// for(let i = 0; i
<
this
.
searchParam
.
actionModelList
.
length
;
i
++
)
{
// this.$set(this.searchParam.actionModelList[i], 'repChecked', false);
// if(index != i) {
// if(item.eventId == this.searchParam.actionModelList[i].eventId) {
// this.searchParam.actionModelList[index].eventId = '';
// this.$set(this.searchParam.actionModelList[index], 'repChecked', true);
// this.searchParam.actionModelList.eventId = '';
// }
// }
// }
...
...
@@ -232,9 +233,12 @@ export default {
}
let
req
=
this
.
searchParam
;
for
(
let
i
=
0
;
i
<
req
.
actionModelList
.
length
;
i
++
)
{
if
(
req
.
actionModelList
[
i
].
nameCheck
)
{
req
.
actionModelList
[
i
].
nameCheck
=
false
;
return
;
}
if
(
!
req
.
actionModelList
[
i
].
actionName
)
{
req
.
actionModelList
[
i
].
actionName
=
req
.
actionModelList
[
i
].
eventName
;
req
.
actionModelList
[
i
].
nameCheck
=
false
;
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录