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
4a74ba5f
Commit
4a74ba5f
authored
Nov 25, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
aab745c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
13 deletions
+39
-13
sale-form.vue
src/components/sale/sale-form.vue
+1
-1
saleTask.vue
src/pages/sale/saleTask.vue
+38
-12
No files found.
src/components/sale/sale-form.vue
View file @
4a74ba5f
...
...
@@ -180,7 +180,7 @@
:options=
"finishTypeObj"
label=
"请选择"
style=
"width:160px"
dense
emit-value
map-options
/>
</td>
<td>
<q-input
filled
stack-label
maxlength=
"20"
dense
v-model=
"sItem.TaskFinishValue"
<q-input
filled
stack-label
maxlength=
"20"
@
keyup
.
native=
"checkInteger(sItem,'TaskFinishValue')"
dense
v-model=
"sItem.TaskFinishValue"
ref=
"TaskFinishValue"
class=
"q-pr-none"
label=
"任务完成值"
/>
</td>
<td>
...
...
src/pages/sale/saleTask.vue
View file @
4a74ba5f
...
...
@@ -11,7 +11,7 @@
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-right-column-table sticky-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
营销任务
</div>
<q-space
/>
<div
class=
"page-option"
>
...
...
@@ -36,13 +36,35 @@
</
template
>
<
template
v-slot:body-cell-TaskConditions=
"props"
>
<q-td
:props=
"props"
style=
"padding-right: 0px"
>
<div
v-for=
"(x,index) in props.value"
:key=
"index"
>
<template
v-if=
"x.TargetList.length>0"
>
<div
class=
"border-bottom"
>
<span
v-for=
"(sItem,sIndex) in x.TargetList"
:key=
"sIndex"
>
{{
sItem
.
TargetName
}}
<span
v-if=
"sIndex!=x.TargetList.length-1"
>
,
</span>
</span>
</div>
<div
v-for=
"(x,index) in props.value"
:key=
"index"
class=
"border-bottom"
>
<template
v-if=
"x.TargetList"
>
<template
v-if=
"x.TargetList.length==1"
>
{{
x
.
TargetList
[
0
].
TargetName
}}
</
template
>
<
template
v-if=
"x.TargetList.length>1"
>
{{
x
.
TargetList
[
0
].
TargetName
}}
<span
class=
"otherTask"
>
{{
x
.
TargetList
.
length
}}
<q-popup-proxy>
<q-banner>
<div
style=
"width:100%;max-height:400px;overflow:auto;"
>
<table
class=
"saleTaskTable"
style=
"border-collapse:collapse;"
>
<tr>
<th>
任务条件
</th>
</tr>
<tr
v-for=
"(sItem,sIndex) in x.TargetList"
:key=
"sIndex"
style=
"border-bottom:1px dashed #d1d1d1;"
>
<td>
{{
sItem
.
TargetName
}}
</td>
</tr>
</table>
</div>
</q-banner>
</q-popup-proxy>
</span>
</
template
>
<
template
v-if=
"x.TargetList.length==0"
>
无
</
template
>
</template>
</div>
</q-td>
...
...
@@ -254,31 +276,35 @@
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
@import
url('~assets/css/table.sass')
</
style
>
<
style
lang=
"scss"
>
.otherTask
{
display
:
inline-block
;
width
:
2
5
px
;
height
:
2
5
px
;
width
:
2
2
px
;
height
:
2
2
px
;
text-align
:
center
;
line-height
:
23px
;
border
:
1px
solid
#2961FE
;
border-radius
:
50%
;
cursor
:
pointer
;
color
:
#2961FE
;
}
.saleTaskTable
{
width
:
400px
;
text-align
:
center
;
}
.saleTaskTable
tr
td
{
height
:
40px
;
}
.saleTaskTable
tr
th
{
height
:
40px
;
background-color
:
rgb
(
238
,
238
,
239
);
}
.border-bottom
{
border-bottom
:
1px
dashed
#eee
;
padding-bottom
:
5px
;
...
...
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