Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
5dc89280
Commit
5dc89280
authored
Nov 29, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
df64aa0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
34 deletions
+53
-34
sale-form.vue
src/components/sale/sale-form.vue
+53
-34
No files found.
src/components/sale/sale-form.vue
View file @
5dc89280
<
style
>
<
style
lang=
"scss"
>
.deleteCusBtn
{
.deleteCusBtn
{
position
:
absolute
;
position
:
absolute
;
right
:
10px
;
right
:
10px
;
...
@@ -38,6 +38,16 @@
...
@@ -38,6 +38,16 @@
line-height
:
120px
;
line-height
:
120px
;
text-align
:
center
;
text-align
:
center
;
}
}
.Details_List
{
border
:
1px
solid
#d1d1d1
;
padding
:
10px
;
margin-bottom
:
20px
;
position
:
relative
;
}
.el-select-dropdown
{
z-index
:
9999
!
important
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<q-dialog
v-model=
"persistent"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
>
<q-dialog
v-model=
"persistent"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
>
...
@@ -56,7 +66,7 @@
...
@@ -56,7 +66,7 @@
ref=
"TaskSubTitle"
class=
"col-6 q-pb-lg"
label=
"任务子标题"
/>
ref=
"TaskSubTitle"
class=
"col-6 q-pb-lg"
label=
"任务子标题"
/>
</div>
</div>
</div>
</div>
<div
class=
"row wrap"
>
<div
class=
"row wrap
q-pb-lg
"
>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-input
filled
v-model=
"objOption.TaskStartTime"
class=
"q-pr-lg"
mask=
"date"
label=
"开始时间"
>
<q-input
filled
v-model=
"objOption.TaskStartTime"
class=
"q-pr-lg"
mask=
"date"
label=
"开始时间"
>
<template
v-slot:append
>
<template
v-slot:append
>
...
@@ -90,7 +100,7 @@
...
@@ -90,7 +100,7 @@
</div>
</div>
<div
class=
"row wrap"
>
<div
class=
"row wrap"
>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-input
filled
v-model=
"objOption.ExchangeEndTime"
mask=
"date"
label=
"兑换截止日期"
>
<q-input
filled
v-model=
"objOption.ExchangeEndTime"
class=
"q-pr-lg"
mask=
"date"
label=
"兑换截止日期"
>
<
template
v-slot:append
>
<
template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-popup-proxy
ref=
"ExchangeEndTime"
cover
transition-show=
"scale"
transition-hide=
"scale"
>
<q-popup-proxy
ref=
"ExchangeEndTime"
cover
transition-show=
"scale"
transition-hide=
"scale"
>
...
@@ -125,35 +135,43 @@
...
@@ -125,35 +135,43 @@
</div>
</div>
<div
class=
"q-pt-none scroll"
style=
"max-height:60hv;margin-bottom:20px;"
>
<div
class=
"q-pt-none scroll"
style=
"max-height:60hv;margin-bottom:20px;"
>
<q-btn
color=
"accent"
size=
"sm"
icon=
"add"
label=
"新增子任务"
@
click=
"addSubTask()"
/>
<q-btn
color=
"accent"
size=
"sm"
icon=
"add"
style=
"margin-bottom:20px;"
label=
"新增子任务"
@
click=
"addSubTask()"
/>
<
template
v-for=
"(sItem, sIndex) in objOption.DetailsList"
>
<
template
v-for=
"(sItem, sIndex) in objOption.DetailsList"
>
<div
:key=
"sIndex"
>
<div
:key=
"sIndex"
class=
"Details_List"
>
<q-input
filled
stack-label
maxlength=
"20"
dense
v-model=
"sItem.DetailsName"
ref=
"DetailsName"
<q-input
filled
stack-label
maxlength=
"20"
style=
"width:523px;"
dense
v-model=
"sItem.DetailsName"
class=
"q-pr-none"
label=
"条件名称"
/>
ref=
"DetailsName"
class=
"q-pr-none q-pb-lg"
label=
"条件名称"
/>
<br
/>
<div
class=
"row wrap"
>
<q-select
filled
stack-label
option-value=
"Id"
@
input=
"clearTarget(sItem)"
option-label=
"Name"
<div
class=
"col-3 q-pr-lg"
>
v-model=
"sItem.TaskType"
ref=
"PriceDiscountType_Id"
:options=
"taskTypeData"
label=
"任务类型"
<q-select
filled
stack-label
option-value=
"Id"
@
input=
"clearTarget(sItem)"
option-label=
"Name"
style=
"width:160px"
dense
emit-value
map-options
/>
v-model=
"sItem.TaskType"
ref=
"PriceDiscountType_Id"
:options=
"taskTypeData"
label=
"任务类型"
dense
<q-select
v-if=
"sItem.TaskType==2"
filled
stack-label
option-value=
"Id"
option-label=
"SubjectName"
emit-value
map-options
/>
v-model=
"sItem.TargetIdList"
:options=
"CourseSubjectList"
multiple
use-chips
label=
"所属科目"
</div>
style=
"width:160px"
dense
emit-value
map-options
/>
<div
class=
"col-5 q-pr-lg"
>
<el-select
v-if=
"sItem.TaskType==2"
style=
"width:100%;"
v-model=
"sItem.TargetIdList"
multiple
collapse-tags
placeholder=
"请选择"
>
<q-select
v-if=
"sItem.TaskType==3"
multiple
filled
use-chips
stack-label
v-model=
"sItem.TargetIdList"
<el-option
v-for=
"mItem in CourseSubjectList"
:key=
"mItem.Id"
:label=
"mItem.SubjectName"
:value=
"mItem.Id"
>
option-value=
"CateId"
option-label=
"CateName"
:options=
"TreeCategoryList"
label=
"课程系列"
</el-option>
style=
"width:160px"
dense
emit-value
map-options
/>
</el-select>
<el-select
v-if=
"sItem.TaskType==3"
style=
"width:100%;"
v-model=
"sItem.TargetIdList"
multiple
collapse-tags
placeholder=
"请选择"
>
<q-select
v-if=
"sItem.TaskType==4"
multiple
filled
use-chips
stack-label
v-model=
"sItem.TargetIdList"
<el-option
v-for=
"mItem in TreeCategoryList"
:key=
"mItem.CateId"
:label=
"mItem.CateName"
:value=
"mItem.CateId"
>
option-value=
"CourseId"
option-label=
"CourseName"
:options=
"CourseList"
label=
"课程"
style=
"width:160px"
</el-option>
dense
emit-value
map-options
/>
</el-select>
<br
/>
<el-select
v-if=
"sItem.TaskType==4"
style=
"width:100%;"
v-model=
"sItem.TargetIdList"
multiple
collapse-tags
placeholder=
"请选择"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"sItem.TaskFinishType"
<el-option
v-for=
"mItem in CourseList"
:key=
"mItem.CourseId"
:label=
"mItem.CourseName"
:value=
"mItem.CourseId"
>
:options=
"finishTypeObj"
label=
"请选择"
style=
"width:160px"
dense
emit-value
map-options
/>
</el-option>
<br
/>
</el-select>
<q-input
filled
stack-label
maxlength=
"20"
@
keyup
.
native=
"checkInteger(sItem,'TaskFinishValue')"
dense
</div>
v-model=
"sItem.TaskFinishValue"
ref=
"TaskFinishValue"
class=
"q-pr-none"
label=
"任务完成值"
/>
<div
class=
"col-2 q-pr-lg"
style=
"width:19%"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"sItem.TaskFinishType"
:options=
"finishTypeObj"
label=
"请选择"
dense
emit-value
map-options
/>
</div>
<div
class=
"col-2"
style=
"width:14%"
>
<q-input
filled
stack-label
maxlength=
"20"
@
keyup
.
native=
"checkInteger(sItem,'TaskFinishValue')"
dense
v-model=
"sItem.TaskFinishValue"
ref=
"TaskFinishValue"
class=
"q-pr-none"
label=
"任务完成值"
/>
</div>
</div>
<br
/>
<br
/>
<q-input
filled
stack-label
maxlength=
"20"
dense
v-model=
"sItem.TaskKudo"
ref=
"TaskKudo"
class=
"q-pr-none
"
<q-input
filled
stack-label
maxlength=
"20"
style=
"width:523px;"
dense
v-model=
"sItem.TaskKudo
"
label=
"奖品名称"
/>
ref=
"TaskKudo"
class=
"q-pr-none"
label=
"奖品名称"
/>
<br
/>
<br
/>
<div
class=
"row col-12"
>
<div
class=
"row col-12"
>
<div
class=
"sale_ImgDiv"
v-for=
"(kItem,kIndex) in sItem.TaskKudoImgList"
:key=
"kIndex"
>
<div
class=
"sale_ImgDiv"
v-for=
"(kItem,kIndex) in sItem.TaskKudoImgList"
:key=
"kIndex"
>
...
@@ -168,9 +186,9 @@
...
@@ -168,9 +186,9 @@
<i
class=
"el-icon-plus avatar-uploader-icon"
></i>
<i
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-upload>
</div>
</div>
<
br
/>
<
q-btn
flat
size=
"xs"
icon=
"iconfont icon-shanchu"
title=
"删除"
color=
"negative"
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-shanchu"
title=
"删除"
color=
"negative"
style=
"font-weight:400
"
style=
"font-weight:400;position:absolute;right:0;top:10px;"
class=
"q-mr-xs"
label=
"
"
class=
"q-mr-xs"
label=
""
@
click=
"deleSubTask(index)"
/>
@
click=
"deleSubTask(index)"
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -415,4 +433,5 @@
...
@@ -415,4 +433,5 @@
}
}
},
},
}
}
</
script
>
\ No newline at end of file
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment