Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
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
marketing-web
marketing
Commits
8da14a2c
Commit
8da14a2c
authored
Mar 26, 2021
by
陈羽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:更改参数类型
parent
c05baec0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
11 deletions
+31
-11
popApi.js
src/service/api/popApi.js
+8
-0
list.vue
src/views/pop/list.vue
+23
-11
No files found.
src/service/api/popApi.js
0 → 100644
View file @
8da14a2c
import
{
requests
}
from
'./index'
;
const
PREFIX
=
'api-marketing/'
;
import
config
from
'@/config'
;
export
const
url
=
config
.
api
+
PREFIX
;
// 弹窗计划分页列表
export
const
popPlanList
=
params
=>
requests
(
PREFIX
+
'query-popup-plan-page-list'
,
params
);
src/views/pop/list.vue
View file @
8da14a2c
...
...
@@ -2,14 +2,14 @@
<section
class=
"dm-wrap"
v-loading=
"loading"
>
<div
class=
"clearfix pb22"
>
<el-input
v-model=
"listParams.key1"
style=
"width:239px;"
placeholder=
"请输入内容"
clearable
@
change=
"refresh"
><i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
></i></el-input>
<el-select
class=
"dm-select"
clearable
v-model=
"listParams.
key2
"
placeholder=
"全部状态"
@
change=
"refresh"
>
<el-select
class=
"dm-select"
clearable
v-model=
"listParams.
activeStatus
"
placeholder=
"全部状态"
@
change=
"refresh"
>
<el-option
v-for=
"item in status"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
<el-select
class=
"dm-select"
clearable
v-model=
"listParams.
key3
"
placeholder=
"全部内容"
@
change=
"refresh"
>
<el-select
class=
"dm-select"
clearable
v-model=
"listParams.
putonType
"
placeholder=
"全部内容"
@
change=
"refresh"
>
<el-option
v-for=
"item in status"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
<el-date-picker
class=
"w300"
v-model=
"listParams.dateTime"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
@
change=
"refresh"
></el-date-picker>
<el-checkbox
v-model=
"listParams.
key4
"
>
仅看本人
</el-checkbox>
<el-checkbox
v-model=
"listParams.
onlySelf"
:true-label=
"1"
:false-label=
"0
"
>
仅看本人
</el-checkbox>
<div
class=
"fr"
>
<el-button
type=
"primary"
@
click=
"goForm(
{}, 'add')">新建计划(
{{
tableList
.
length
}}
/30)
</el-button>
</div>
...
...
@@ -81,11 +81,20 @@
</template>
<
script
>
// import { cdkeyPlanRecord, cdkeyPlanForbid, cdkeyPlanDelete, cdkeyExport, getCdkeyWxaQrCodeImage } from '@/service/api/cdKey
Api.js';
import
{
popPlanList
}
from
'@/service/api/pop
Api.js'
;
import
{
formatDateTimeByType
}
from
'@/utils/index.js'
;
import
timeCounts
from
'@/components/timeCount/index.vue'
;
import
tableMethods
from
'@/mixins/tableMethods.js'
;
import
templatePic
from
'./img.jpg'
;
const
activeStatusOpt
=
[
{
value
:
1
,
label
:
'未开始'
},
{
value
:
2
,
label
:
'进行中'
},
{
value
:
3
,
label
:
'已结束'
}
];
const
putonTypeOpt
=
[
{
value
:
1
,
label
:
'图片'
},
{
value
:
2
,
label
:
'卡券'
}
];
export
default
{
name
:
'pop-list'
,
components
:
{
...
...
@@ -94,11 +103,8 @@ export default {
mixins
:
[
tableMethods
],
data
()
{
return
{
status
:
[
{
value
:
1
,
label
:
'未开始'
},
{
value
:
2
,
label
:
'进行中'
},
{
value
:
3
,
label
:
'已结束'
}
],
activeStatusOpt
:
activeStatusOpt
,
putonTypeOpt
:
putonTypeOpt
,
loading
:
false
,
tableList
:
[
{
...
...
@@ -222,8 +228,14 @@ export default {
},
methods
:
{
formatDateTimeByType
,
getTableList
()
{
console
.
log
(
this
.
listParams
.
dateTime
);
async
getTableList
()
{
let
params
=
{
...
this
.
listParams
};
if
(
params
.
dateTime
)
{
params
.
beginTime
=
params
.
dateTime
[
0
];
params
.
endTime
=
params
.
dateTime
[
1
];
}
const
res
=
await
popPlanList
(
params
);
console
.
log
(
res
);
},
goForm
(
group
,
type
)
{
if
(
type
===
'add'
)
{
...
...
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