Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-new
Commits
dc3a9ee8
提交
dc3a9ee8
authored
4月 28, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
9ea82e39
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
148 行增加
和
3 行删除
+148
-3
AppStepTwo.vue
src/modules/market-tools/components/app/AppStepTwo.vue
+1
-1
StepTodoList.vue
src/modules/market-tools/components/app/StepTodoList.vue
+145
-0
MailStepTwo.vue
src/modules/market-tools/components/mail/MailStepTwo.vue
+1
-1
StepTodoList.vue
src/modules/market-tools/components/mail/StepTodoList.vue
+0
-0
Index.vue
src/modules/market-tools/views/Index.vue
+1
-1
没有找到文件。
src/modules/market-tools/components/app/AppStepTwo.vue
浏览文件 @
dc3a9ee8
...
...
@@ -27,7 +27,7 @@
</template>
<
script
>
import
StepTab
from
'@/components/base/StepTab.vue'
import
StepTodoList
from
'
@/components/base
/StepTodoList.vue'
import
StepTodoList
from
'
.
/StepTodoList.vue'
import
{
cacheReport
}
from
'../../api'
export
default
{
components
:
{
StepTab
,
StepTodoList
},
...
...
src/modules/market-tools/components/app/StepTodoList.vue
0 → 100644
浏览文件 @
dc3a9ee8
<
template
>
<div
class=
"main_con"
>
<div
class=
"main_con_add"
@
click=
"handleAdd"
>
<img
src=
"https://webapp-pub.ezijing.com/x-training-new/bg_add.png"
alt=
""
/>
添加
</div>
<div
class=
"main_con_optionList"
>
<div
class=
"optionList_left"
>
<div
v-for=
"item in form.triggerList.length - 1"
:key=
"item"
>
<div
class=
"optionList_left_line"
></div>
<div
class=
"optionList_left_text"
>
且
</div>
</div>
</div>
<div
class=
"optionList_right"
>
<el-form
:inline=
"true"
:model=
"form"
>
<div
v-for=
"(item, indexB) in list"
:key=
"indexB"
>
<el-form-item>
<span
class=
"optionList_right_text"
>
当用户做过
</span>
<el-select
v-model=
"item.triggerValue"
>
<el-option
v-for=
"it in item.list"
:key=
"it.value"
:label=
"it.label"
:value=
"it.value"
:disabled=
"it.disabled"
>
</el-option>
</el-select>
<span
class=
"optionList_right_text"
>
出现弹窗
</span>
</el-form-item>
<el-form-item>
<img
src=
"https://webapp-pub.ezijing.com/x-training-new/btn_del.png"
@
click=
"handleDelete(item, indexB)"
/>
</el-form-item>
</div>
</el-form>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
form
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
return
{}
},
computed
:
{
list
()
{
return
this
.
form
.
triggerList
.
map
(
item
=>
{
item
.
list
=
item
.
list
.
map
(
i
=>
{
i
.
disabled
=
!!
this
.
form
.
triggerList
.
find
(
item
=>
item
.
triggerValue
===
i
.
value
)
return
i
})
return
item
})
}
},
methods
:
{
handleAdd
()
{
console
.
log
(
'000'
)
if
(
this
.
form
.
triggerList
.
length
<
this
.
form
.
triggerList
[
0
].
list
.
length
)
{
const
item
=
Object
.
assign
({},
this
.
form
.
triggerList
[
0
])
item
.
triggerValue
=
''
// eslint-disable-next-line vue/no-mutating-props
this
.
form
.
triggerList
.
push
(
item
)
}
else
{
this
.
$message
.
warning
(
'添加项不能超过下拉选项个数'
)
}
},
handleDelete
(
item
,
indexB
)
{
if
(
this
.
form
.
triggerList
.
length
>
1
)
{
// eslint-disable-next-line vue/no-mutating-props
this
.
form
.
triggerList
.
splice
(
indexB
,
1
)
}
else
{
this
.
$message
.
warning
(
'默认至少有一条数据'
)
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.main_con
{
display
:
flex
;
flex-direction
:
column
;
.main_con_add
{
align-self
:
flex-end
;
padding
:
0
130px
30px
0
;
}
.main_con_optionList
{
display
:
flex
;
.optionList_left
{
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
.optionList_left_line
{
width
:
0px
;
height
:
85px
;
border
:
1px
solid
#c5c5c5
;
opacity
:
1
;
}
.optionList_left_text
{
border-radius
:
50%
;
width
:
25px
;
height
:
25px
;
background
:
#fff
;
border
:
1px
solid
#c5c5c5
;
text-align
:
center
;
font-size
:
14px
;
font-weight
:
400
;
line-height
:
25px
;
color
:
#49bba2
;
margin-left
:
-12px
;
margin-top
:
-60px
;
}
}
.optionList_right
{
margin-left
:
16px
;
.el-form-item
{
padding-top
:
0
;
.optionList_right_text
{
font-size
:
16px
;
font-weight
:
400
;
color
:
#333333
;
}
.optionList_right_del
{
width
:
12px
;
height
:
12px
;
opacity
:
1
;
}
}
}
}
}
</
style
>
src/modules/market-tools/components/mail/MailStepTwo.vue
浏览文件 @
dc3a9ee8
...
...
@@ -27,7 +27,7 @@
</template>
<
script
>
import
StepTab
from
'@/components/base/StepTab.vue'
import
StepTodoList
from
'
@/components/base/
StepTodoList.vue'
import
StepTodoList
from
'
.
StepTodoList.vue'
import
{
cacheReport
}
from
'../../api'
export
default
{
components
:
{
StepTab
,
StepTodoList
},
...
...
src/
components/base
/StepTodoList.vue
→
src/
modules/market-tools/components/mail
/StepTodoList.vue
浏览文件 @
dc3a9ee8
File moved
src/modules/market-tools/views/Index.vue
浏览文件 @
dc3a9ee8
...
...
@@ -31,7 +31,7 @@
export
default
{
data
()
{
return
{
listIndex
:
2
,
listIndex
:
0
,
list
:
[
{
icon
:
'https://webapp-pub.ezijing.com/x-training-new/tool_video.png'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论