Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-sensitive-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.foundation.frontend
pica-sensitive-admin
提交
cba93f07
提交
cba93f07
编写于
12月 03, 2020
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
两次点击
上级
fd66b0fb
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
8 行增加
和
13 行删除
+8
-13
add-funnel.vue
src/views/user-path/add-funnel.vue
+8
-13
未找到文件。
src/views/user-path/add-funnel.vue
浏览文件 @
cba93f07
...
...
@@ -42,7 +42,7 @@
<el-input
:class=
"
{'red-b': item.nameCheck
&&
item.actionName}"
v-model="item.actionName"
@
blur="stepNameRepeat(item.actionName
, index)"
@
input="nameChange(item
, index)"
maxlength="30"
placeholder="请输入步骤名称"
style="width:70%">
</el-input>
...
...
@@ -170,16 +170,16 @@ export default {
}
},
// 步骤名称不重复
stepNameRepeat
(
val
,
index
)
{
this
.
flag
=
false
;
nameChange
(
item
,
index
)
{
this
.
$set
(
this
.
searchParam
.
actionModelList
[
index
],
'nameCheck'
,
false
);
if
(
!
val
)
return
;
if
(
!
item
.
actionName
)
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
.
$set
(
this
.
searchParam
.
actionModelList
[
index
],
'nameCheck'
,
true
);
this
.
flag
=
true
;
if
(
item
.
actionName
==
this
.
searchParam
.
actionModelList
[
i
].
actionName
)
{
setTimeout
(()
=>
{
this
.
searchParam
.
actionModelList
[
index
].
actionName
=
''
;
this
.
$set
(
this
.
searchParam
.
actionModelList
[
index
],
'nameCheck'
,
true
);
},
500
)
}
}
},
...
...
@@ -233,16 +233,11 @@ 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
;
}
}
this
.
getData
(
"post"
,
`/session/funnel/save`
,
req
,
res
=>
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录