Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
ybf
Project
Project
Details
Activity
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
xulili
ybf
Commits
7b0f5b1d
Commit
7b0f5b1d
authored
Jan 10, 2020
by
xd
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://114.67.93.201/xulili/ybf
parents
17c80965
7b4cdea9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
329 additions
and
107 deletions
+329
-107
index.vue
ybf_admin/src/pages/task/bar/index.vue
+1
-1
index.vue
ybf_admin/src/pages/task/com/index.vue
+1
-6
index.vue
ybf_admin/src/pages/task/count/index.vue
+326
-99
index.vue
ybf_admin/src/pages/task/main/index.vue
+1
-1
No files found.
ybf_admin/src/pages/task/bar/index.vue
View file @
7b0f5b1d
...
...
@@ -132,7 +132,7 @@
<el-dialog
title=
"创建任务"
:visible
.
sync=
"cache.status.createDialog"
width=
"
5
0%"
width=
"
4
0%"
:before-close=
"dialogCreateBeforeClose"
>
<div
class=
"dialogMain"
>
...
...
ybf_admin/src/pages/task/com/index.vue
View file @
7b0f5b1d
...
...
@@ -106,12 +106,11 @@
:total=
"400"
></el-pagination>
</div>
<div
class=
"ztask-dialogs"
>
<el-dialog
title=
"创建集团任务"
:visible
.
sync=
"cache.status.createDialog"
width=
"
6
0%"
width=
"
4
0%"
:before-close=
"dialogCreateBeforeClose"
>
<div
class=
"dialogMain"
>
...
...
@@ -487,7 +486,6 @@
flex-direction
:
row
;
justify-content
:
space-between
;
}
.ztask-searchs-items
{
/*border: 2px solid #00c561;*/
...
...
@@ -499,7 +497,6 @@
justify-content
:
flex-start
;
align-items
:
center
;
}
.ztask-searchs-forms
{
/*border: 2px solid #f900ff;*/
height
:
30px
;
...
...
@@ -522,7 +519,6 @@
justify-content
:
flex-end
;
align-items
:
flex-end
;
}
.ztask-page
{
/*border: 2px solid red;*/
position
:
relative
;
...
...
@@ -532,7 +528,6 @@
.buttonTextNormal
{
color
:
#666666
;
}
.buttonTextWarning
{
color
:
#D0021B
;
}
...
...
ybf_admin/src/pages/task/count/index.vue
View file @
7b0f5b1d
...
...
@@ -22,7 +22,7 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"任务类型"
class=
"nature"
>
<el-form-item
label=
"任务类型"
>
<el-select
size=
"small"
v-model=
"data.search.taskType"
...
...
@@ -37,6 +37,17 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"日期"
>
<el-date-picker
size=
"small"
v-model=
"data.search.taskDate"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
style=
"width:200px;"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"关键词"
>
<el-input
size=
"small"
...
...
@@ -50,6 +61,9 @@
<el-button
type=
"primary"
size=
"small"
@
click=
"searchsSearch"
>
搜 索
</el-button>
</div>
</div>
<div
class=
"ztask-charts"
>
</div>
<div
class=
"ztask-lists"
>
<el-table
...
...
@@ -61,35 +75,123 @@
@
selection-change=
"listsSelectChange"
>
<el-table-column
type=
"selection"
width=
"60"
></el-table-column>
<el-table-column
prop=
"taskName"
label=
"任务名称"
align=
"center"
width=
"200"
></el-table-column>
<el-table-column
prop=
"taskDetail"
label=
"任务内容"
align=
"center"
></el-table-column>
<el-table-column
label=
"创建日期"
align=
"center"
width=
"160"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
createTime
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"240"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"scope.row.taskStatus === 'Top'"
type=
"text"
@
click=
"listsUntopClick(scope.row.id)"
>
已置顶
</el-button>
<el-button
v-if=
"scope.row.taskStatus !== 'Top'"
type=
"text"
@
click=
"listsTopClick(scope.row.id)"
>
置顶
</el-button>
<el-button
type=
"text"
@
click=
"listsSeeClick(scope.row)"
>
详情
</el-button>
<el-button
type=
"text"
@
click=
"listsEditClick(scope.row)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"listsDelClick(scope.row)"
class=
"listButtonRed"
>
删除
</el-button>
</
template
>
</el-table-column>
<el-table-column
prop=
"barName"
label=
"门店"
align=
"center"
width=
"200"
></el-table-column>
<el-table-column
prop=
"barType"
label=
"门店类型"
align=
"center"
></el-table-column>
<el-table-column
prop=
"customNew"
label=
"拉新"
align=
"center"
></el-table-column>
<el-table-column
prop=
"customRebuy"
label=
"复购"
align=
"center"
></el-table-column>
</el-table>
</div>
<div
class=
"ztask-pages"
>
<!-- <el-pagination-->
<!-- class="ztask-page"-->
<!-- @size-change="pagesSizeChange"-->
<!-- @current-change="pagesNowPageChange"-->
<!-- :current-page="data.page.nowPageNum"-->
<!-- :page-sizes="[100, 200, 300, 400]"-->
<!-- :page-size="100"-->
<!-- layout="prev, pager, next, sizes, jumper"-->
<!-- :total="400"-->
<!-- ></el-pagination>-->
<el-pagination
class=
"ztask-page"
@
size-change=
"pagesSizeChange"
@
current-change=
"pagesNowPageChange"
:current-page=
"data.page.nowPageNum"
:page-sizes=
"[100, 200, 300, 400]"
:page-size=
"100"
layout=
"prev, pager, next, sizes, jumper"
:total=
"400"
></el-pagination>
</div>
<div
class=
"ztask-dialogs"
>
<el-dialog
title=
"创建集团任务"
:visible
.
sync=
"cache.status.createDialog"
width=
"60%"
:before-close=
"dialogCreateBeforeClose"
>
<div
class=
"dialogMain"
>
<el-form
:model=
"data.create"
:rules=
"rule.create"
label-width=
"120px"
ref=
"createForm"
>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"任务标题:"
prop=
"taskName"
>
<el-input
v-model=
"data.create.taskName"
autocomplete=
"off"
placeholder=
"请输入任务标题"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"作者:"
prop=
"author"
>
<el-select
v-model=
"data.create.author"
placeholder=
"请选择作者"
@
change=
"dialogCreateAuthorChange"
style=
"width:100%;"
>
<el-option
v-for=
"item in list.man"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"任务详情:"
prop=
"taskDetail"
>
<el-input
type=
"textarea"
:rows=
"5"
placeholder=
"请输入任务详情"
v-model=
"data.create.taskDetail"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"dialogCreateCancel"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"dialogCreateSubmitSend('createForm')"
>
保存并发布
</el-button>
</span>
</el-dialog>
<el-dialog
title=
"查看集团任务"
:visible
.
sync=
"cache.status.seeDialog"
width=
"60%"
:before-close=
"dialogSeeBeforeClose"
>
<div
class=
"dialogMain"
>
<el-form
:model=
"data.see"
:rules=
"rule.see"
label-width=
"120px"
ref=
"seeForm"
>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"任务标题:"
prop=
"taskName"
>
<el-input
:disabled=
"true"
v-model=
"data.see.taskName"
autocomplete=
"off"
placeholder=
"任务标题为空"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"作者:"
prop=
"author"
>
<el-input
:disabled=
"true"
v-model=
"data.see.authore"
autocomplete=
"off"
placeholder=
"作者为空"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
label=
"任务详情:"
prop=
"taskDetail"
>
<el-input
:disabled=
"true"
type=
"textarea"
:rows=
"5"
placeholder=
"任务详情为空"
v-model=
"data.see.taskDetail"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"dialogSeeCancel"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"dialogSeeSubmitSend('createForm')"
>
发 布
</el-button>
</span>
</el-dialog>
</div>
</div>
</
template
>
...
...
@@ -100,8 +202,10 @@
return
{
cache
:
{
status
:
{
createDialog
:
false
,
seeDialog
:
false
},
list
:{
list
:
{
bar
:
[
{
id
:
"0"
,
...
...
@@ -122,126 +226,238 @@
name
:
"测试"
}
],
status
:
[
{
id
:
"0"
,
name
:
"全部"
},
{
id
:
"1"
,
name
:
"已发布"
}
],
}
},
list
:
{
main
:[
main
:
[
{
id
:
'1001'
,
taskName
:
'TaskComAlice
'
,
taskDetail
:
'TaskComAliceDetail
'
,
c
reateTime
:
'2020-01-01 01:01:0
0'
,
taskStatus
:
'Top
'
barName
:
'Asics 店
'
,
barType
:
'专柜
'
,
c
ustomNew
:
'1
0'
,
customRebuy
:
'20
'
},
{
id
:
'1002'
,
taskName
:
'TaskComBob
'
,
taskDetail
:
'TaskComBobDetail
'
,
c
reateTime
:
'2020-01-02 02:02:00
'
,
taskStatus
:
'
'
barName
:
'Bape 店
'
,
barType
:
'专柜
'
,
c
ustomNew
:
'18
'
,
customRebuy
:
'10
'
},
{
id
:
'1003'
,
taskName
:
'TaskComClid
'
,
taskDetail
:
'TaskComClidDetail
'
,
c
reateTime
:
'2020-01-03 03:03:00
'
,
taskStatus
:
'
'
barName
:
'Champion 店
'
,
barType
:
'普通门店
'
,
c
ustomNew
:
'24
'
,
customRebuy
:
'40
'
},
{
id
:
'1004'
,
taskName
:
'TaskComDive
'
,
taskDetail
:
'TaskComDiveDetail
'
,
c
reateTime
:
'2020-01-04 04:04:0
0'
,
taskStatus
:
'
'
barName
:
'Dior 店
'
,
barType
:
'普通门店
'
,
c
ustomNew
:
'4
0'
,
customRebuy
:
'15
'
},
{
id
:
'1005'
,
taskName
:
'TaskComEmma
'
,
taskDetail
:
'TaskComEmmaDetail
'
,
c
reateTime
:
'2020-01-05 05:05:00
'
,
taskStatus
:
'
'
barName
:
'Edc 店
'
,
barType
:
'专柜
'
,
c
ustomNew
:
'22
'
,
customRebuy
:
'8
'
},
{
id
:
'1006'
,
taskName
:
'TaskComFaker
'
,
taskDetail
:
'TaskComFakerDetail
'
,
c
reateTime
:
'2020-01-06 06:06:0
0'
,
taskStatus
:
'
'
barName
:
'FILA 店
'
,
barType
:
'专柜
'
,
c
ustomNew
:
'3
0'
,
customRebuy
:
'14
'
},
{
id
:
'1007'
,
taskName
:
'TaskComGlass
'
,
taskDetail
:
'TaskComGlassDetail
'
,
c
reateTime
:
'2020-01-07 07:07:0
0'
,
taskStatus
:
'
'
barName
:
'Gaucho 店
'
,
barType
:
'专柜
'
,
c
ustomNew
:
'2
0'
,
customRebuy
:
'15
'
},
{
id
:
'1008'
,
taskName
:
'TaskComHardy
'
,
taskDetail
:
'TaskComHardyDetail
'
,
c
reateTime
:
'2020-01-08 08:08:00
'
,
taskStatus
:
'
'
barName
:
'Hermes 店
'
,
barType
:
'专柜
'
,
c
ustomNew
:
'8
'
,
customRebuy
:
'20
'
},
{
id
:
'1009'
,
taskName
:
'TaskComIda
'
,
taskDetail
:
'TaskComIdaDetail
'
,
c
reateTime
:
'2020-01-09 09:09:00
'
,
taskStatus
:
'
'
barName
:
'Isolda 店
'
,
barType
:
'普通门店
'
,
c
ustomNew
:
'11
'
,
customRebuy
:
'23
'
},
{
id
:
'1010'
,
taskName
:
'TaskComJoke
'
,
taskDetail
:
'TaskComJokeDetail
'
,
c
reateTime
:
'2020-01-10 10:10:0
0'
,
taskStatus
:
'
'
barName
:
'Jeanswest 店
'
,
barType
:
'普通门店
'
,
c
ustomNew
:
'4
0'
,
customRebuy
:
'20
'
},
{
id
:
'1011'
,
taskName
:
'TaskComKey
'
,
taskDetail
:
'TaskComKeyDetail
'
,
c
reateTime
:
'2020-01-11 11:11:00
'
,
taskStatus
:
'
'
barName
:
'Kevin 店
'
,
barType
:
'普通门店
'
,
c
ustomNew
:
'11
'
,
customRebuy
:
'14
'
},
{
id
:
'1012'
,
taskName
:
'TaskComLux'
,
taskDetail
:
'TaskComLuxDetail'
,
createTime
:
'2020-01-12 12:12:00'
,
taskStatus
:
''
barName
:
'Lux 店'
,
barType
:
'专柜'
,
customNew
:
'24'
,
customRebuy
:
'14'
},
],
man
:
[
{
id
:
'1001'
,
name
:
'Alice'
},
{
id
:
'1002'
,
name
:
'Bob'
},
{
id
:
'1003'
,
name
:
'Clid'
},
{
id
:
'1004'
,
name
:
'Dive'
},
]
},
data
:
{
search
:{
search
:
{
bar
:
''
,
taskType
:
''
,
taskDate
:
''
,
keys
:
''
,
},
page
:{
nowPageNum
:
''
,
}
page
:
{
nowPageNum
:
1
,
},
create
:
{
taskName
:
''
,
author
:
''
,
taskDetail
:
''
,
},
createDefault
:
{
taskName
:
''
,
author
:
''
,
taskDetail
:
''
,
},
see
:
{
taskName
:
''
,
author
:
''
,
taskDetail
:
''
,
},
seeDefault
:
{
taskName
:
''
,
author
:
''
,
taskDetail
:
''
,
},
},
rule
:{
rule
:
{
create
:
{
taskName
:
[{
required
:
true
,
message
:
'任务名称不能为空'
,
trigger
:
'change'
}],
taskDetail
:
[{
required
:
true
,
message
:
'任务详情不能为空'
,
trigger
:
'change'
}],
},
see
:
{},
}
};
},
created
()
{
},
methods
:
{
searchsCreate
(){},
searchsDels
(){},
searchsSearch
(){},
searchsCreate
()
{
this
.
cache
.
status
.
createDialog
=
true
},
searchsDels
()
{
},
searchsSearch
()
{
},
listsSelectChange
(){},
listsUntopClick
(){},
listsTopClick
(){},
listsSeeClick
(){},
listsEditClick
(){},
listsDelClick
(){},
listsSelectChange
()
{
},
listsUntopClick
()
{
},
listsTopClick
()
{
},
listsSeeClick
(
inData
)
{
this
.
cache
.
status
.
seeDialog
=
true
this
.
data
.
see
=
{
taskName
:
'Bob'
,
author
:
'author'
,
taskDetail
:
'taskDetail'
,
}
pagesSizeChange
(){},
pagesNowPageChange
(){},
},
listsEditClick
(
inData
)
{
this
.
cache
.
status
.
createDialog
=
true
this
.
data
.
create
=
{
taskName
:
'taskName'
,
author
:
'author'
,
taskDetail
:
'taskDetail'
,
}
},
listsDelClick
()
{
},
pagesSizeChange
()
{
},
pagesNowPageChange
()
{
},
dialogCreateAuthorChange
()
{
},
dialogCreateBeforeClose
()
{
this
.
cache
.
status
.
createDialog
=
false
},
dialogCreateCancel
()
{
this
.
data
.
create
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
.
createDefault
))
this
.
cache
.
status
.
createDialog
=
false
},
dialogCreateSubmitSend
()
{
this
.
$refs
[
inForm
].
validate
(
valid
=>
{
if
(
valid
)
{
}
else
{
return
false
}
})
},
dialogSeeBeforeClose
()
{
this
.
cache
.
status
.
seeDialog
=
false
},
dialogSeeCancel
()
{
this
.
data
.
see
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
.
seeDefault
))
this
.
cache
.
status
.
seeDialog
=
false
},
dialogSeeSubmitSend
()
{
},
}
};
</
script
>
...
...
@@ -260,9 +476,8 @@
flex-direction
:
row
;
justify-content
:
space-between
;
}
.ztask-searchs-items
{
border
:
2px
solid
#00c561
;
/*border: 2px solid #00c561;*/
margin
:
17px
0px
20px
0px
;
width
:
auto
;
...
...
@@ -272,19 +487,24 @@
justify-content
:
flex-start
;
align-items
:
center
;
}
.ztask-searchs-forms
{
.ztask-searchs-forms
{
/*border: 2px solid #f900ff;*/
height
:
30px
;
margin-bottom
:
10px
;
}
.ztask-charts
{
border
:
2px
solid
green
;
background-color
:
rgba
(
220
,
220
,
220
,
0
.5
);
height
:
262px
;
}
.ztask-lists
{
/*border: 2px solid #0dc50e;*/
height
:
calc
((
100vh
-
338px
)
*
1
.0
);
border
:
2px
solid
red
;
height
:
calc
((
100vh
-
600px
)
*
1
.0
);
overflow
:
auto
;
}
.ztask-pages
{
/*border: 2px solid red;*/
/*height: 56px;*/
...
...
@@ -294,9 +514,16 @@
justify-content
:
flex-end
;
align-items
:
flex-end
;
}
.ztask-page
{
.ztask-page
{
/*border: 2px solid red;*/
position
:
relative
;
margin-right
:
0
;
}
.buttonTextNormal
{
color
:
#666666
;
}
.buttonTextWarning
{
color
:
#D0021B
;
}
</
style
>
ybf_admin/src/pages/task/main/index.vue
View file @
7b0f5b1d
...
...
@@ -43,7 +43,7 @@ export default {
.mains
{
/*border: 1px solid red;*/
height
:
calc
((
100vh
-
140px
)
*
1
.0
);
min-width
:
1
00
0px
;
min-width
:
1
28
0px
;
margin
:
10px
20px
10px
10px
;
...
...
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