Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
remarketing-yunying
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
yaobeibei
remarketing-yunying
Commits
8d26b437
Commit
8d26b437
authored
Jul 23, 2018
by
yaobeibei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add reset
parent
72bce8bf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
146 additions
and
65 deletions
+146
-65
Dockerfile
Dockerfile
+7
-3
api.js
api/api.js
+0
-0
index.js
config/index.js
+4
-2
package-lock.json
package-lock.json
+0
-0
package.json
package.json
+2
-0
DatePicker.vue
src/components/DatePicker.vue
+11
-6
checkCall.vue
src/components/checkCall.vue
+0
-0
checkUrl.vue
src/components/checkUrl.vue
+110
-26
dropDown.vue
src/components/dropDown.vue
+8
-10
home.vue
src/components/home.vue
+3
-0
data.js
src/store/data.js
+1
-18
No files found.
Dockerfile
View file @
8d26b437
...
...
@@ -15,9 +15,13 @@ RUN npm i --only=production --registry https://registry.npm.taobao.org
ENV
SERVICE_PORT=8082
ENV
PROJECT_LEVEL=production
# ENV MONGO='mongodb://mongo-adpro-ssp-v2-rs-2.localhost:1301/remarketing?replicaSet=adpro_ssp_v2_rs'
ENV
MONGO='mongodb://mongo-adpro-ssp-v2-rs-1.localhost:1301,mongo-adpro-ssp-v2-rs-2.localhost:1301,mongo-adpro-ssp-v2-rs-3.localhost:1301/remarketingAgent?replicaSet=adpro_ssp_v2_rs&adpro_ssp_v2_rs=SECONDARY'
ENV
MONGO_OEM='mongodb://bjwjh-admin:c9yJ2gBFkp7U6@mongo-bjwjh-rs-1.localhost:1302,mongo-bjwjh-rs-2.localhost:1302,mongo-bjwjh-rs-3.localhost:1302/oem_maitian_remarketingAgent?replicaSet=bjwjh-rs&authSource=admin'
ENV
MONGO='mongodb://mongo-adpro-ssp-v2-rs-2.localhost:1301/remarketing?replicaSet=adpro_ssp_v2_rs'
# ENV MONGO='mongodb://10.11.3.123:1301,10.11.3.127:1301,10.12.1.9:1301/remarketing?replicaSet=adpro_ssp_v2_rs&adpro_ssp_v2_rs=SECONDARY'
# ENV MONGO_OEM='mongodb://bjwjh-admin:c9yJ2gBFkp7U6@mongo-bjwjh-rs-1.localhost:1302,mongo-bjwjh-rs-2.localhost:1302,mongo-bjwjh-rs-3.localhost:1302/oem_maitian_remarketingAgent?replicaSet=bjwjh-rs&authSource=admin'
ENV
MONGO_OEM='mongodb://bjwjh-admin:c9yJ2gBFkp7U6@mongo-bjwjh-rs-1.localhost:1302,mongo-bjwjh-rs-2.localhost:1302,mongo-bjwjh-rs-3.localhost:1302/oem_mtty_remarketing?replicaSet=bjwjh-rs&authSource=admin'
ENV
NODE_ENV='production'
EXPOSE
8082
CMD
node server.js
api/api.js
View file @
8d26b437
This diff is collapsed.
Click to expand it.
config/index.js
View file @
8d26b437
...
...
@@ -10,7 +10,9 @@ module.exports = {
// Paths
assetsSubDirectory
:
'static'
,
assetsPublicPath
:
'/'
,
proxyTable
:
{},
proxyTable
:
{
},
// Various Dev Server settings
host
:
'localhost'
,
// can be overwritten by process.env.HOST
...
...
@@ -51,7 +53,7 @@ module.exports = {
assetsRoot
:
path
.
resolve
(
__dirname
,
'../dist'
),
assetsSubDirectory
:
'static'
,
assetsPublicPath
:
'/'
,
/**
* Source Maps
*/
...
...
package-lock.json
View file @
8d26b437
This diff is collapsed.
Click to expand it.
package.json
View file @
8d26b437
...
...
@@ -26,9 +26,11 @@
"
http
"
:
"0.0.0"
,
"
moment
"
:
"^2.22.1"
,
"
mongo
"
:
"^0.1.0"
,
"
mongodb
"
:
"^3.1.0"
,
"
node-xlsx
"
:
"^0.12.1"
,
"
path
"
:
"^0.12.7"
,
"
qs
"
:
"^6.5.1"
,
"
request
"
:
"^2.87.0"
,
"
server
"
:
"^1.0.18"
,
"
vue
"
:
"^2.5.16"
,
"
vue-router
"
:
"^3.0.1"
,
...
...
src/components/DatePicker.vue
View file @
8d26b437
<
template
>
<el-date-picker
class=
"Date"
v-model=
"valueRange"
type=
"daterange"
unlink-panelss
@
change=
"
callback
"
@
change=
"
timeChange
"
range-separator=
"至"
:start-placeholder=
"startTime"
:end-placeholder=
"endTime"
...
...
@@ -11,7 +12,7 @@
format=
'yyyy-MM-dd'
:picker-options=
"pickerOptions"
>
</el-date-picker>
</el-date-picker>
</
template
>
<
script
>
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
...
...
@@ -68,13 +69,17 @@ export default {
},
computed
()
{},
methods
:
{
callback
()
{
console
.
log
(
'to'
)
timeChange
()
{
console
.
log
(
1
)
console
.
log
(
this
.
valueRange
)
this
.
$emit
(
'timeChange'
,
this
.
valueRange
);
}
}
};
</
script
>
<
style
scpoed
>
<
style
>
.Date
{
display
:
inline-block
;
vertical-align
:
top
;
}
</
style
>
src/components/checkCall.vue
View file @
8d26b437
This diff is collapsed.
Click to expand it.
src/components/checkUrl.vue
View file @
8d26b437
<
template
>
<el-main>
<h4>
url审核
</h4>
<el-row>
<DatePicker
:startTime=
'startTime'
:endTime=
'endTime'
:change=
'timeChange'
></DatePicker>
<Drop
:dropChange=
'dropChange'
:chooseArray=
'chooseArray'
></Drop>
</el-row>
<el-table
:data=
"datas"
border
style=
"width:100%"
>
<el-table-column
label=
"序号"
type=
"index"
></el-table-column>
<el-table-column
v-for=
"(value, key) in tables"
:label=
"value"
:prop=
"key"
></el-table-column>
<el-table-column>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
:disabled=
"disabled"
>
通过
</el-button>
<el-button
type=
"text"
>
拒绝
</el-button>
</
template
>
</el-table-column>
</el-table>
<Pagination
:currentPage=
'currentPage'
:pageSize=
'pageSize'
:total=
'total'
:sizeChange=
'sizeChange'
:currentChange=
'currentChange'
></Pagination>
</el-main>
<el-container>
<el-header>
<h4>
url审核
</h4>
</el-header>
<el-main>
<el-row
type=
"flex"
justify=
"space-between"
style=
"margin-bottom: 10px"
>
<el-col
:span=
"8"
>
<DatePicker
:startTime=
'startTime'
:endTime=
'endTime'
@
timeChange=
'timeChange'
></DatePicker>
</el-col>
<el-col
:span=
"4"
><Drop
@
dropChange=
'dropChange'
:chooseArray=
'chooseArray'
></Drop></el-col>
</el-row>
<el-table
:data=
"datas"
border
style=
"width:100%"
>
<el-table-column
label=
"序号"
type=
"index"
style=
'width: 60px'
></el-table-column>
<el-table-column
v-for=
"(value, key) in tables"
:label=
"value"
:prop=
"key"
></el-table-column>
<el-table-column
label=
"操作"
>
<template
slot-scope=
"scope"
>
<el-button
size=
'mini'
type=
"text"
:disabled=
"scope.row.status !== '未审核'"
@
click=
"check(scope, 2)"
>
通过
</el-button>
<el-button
size=
'mini'
type=
"text"
:disabled=
"scope.row.status !== '未审核'"
@
click=
"check(scope, 1)"
>
拒绝
</el-button>
<el-button
type=
'text'
@
click=
'check(scope, 8)'
icon=
'el-icon-refresh'
></el-button>
</
template
>
</el-table-column>
</el-table>
<Pagination
:currentPage=
'currentPage'
:pageSize=
'pageSize'
:total=
'total'
@
sizeChange=
'sizeChange'
@
currentChange=
'currentChange'
></Pagination>
</el-main>
</el-container>
</template>
<
script
>
import
DatePicker
from
'./DatePicker'
import
Pagination
from
'./Pagination'
import
Drop
from
'./dropDown'
import
moment
from
'moment'
import
{
mapActions
,
mapGetters
}
from
'vuex'
export
default
{
name
:
'checkUrl'
,
...
...
@@ -32,7 +40,7 @@ export default {
},
data
()
{
return
{
url
:
'/api/
checkUrl
'
,
url
:
'/api/
getUrlData
'
,
tables
:
{
slotId
:
'ID'
,
email
:
'账户名称'
,
...
...
@@ -43,10 +51,10 @@ export default {
status
:
'Url状态'
},
chooseArray
:
{
all
:
'全部状态'
,
zero
:
'未审核'
,
one
:
'已拒绝'
,
two
:
'已通过'
'全部状态'
:
'全部状态'
,
'未审核'
:
'未审核'
,
'已拒绝'
:
'已拒绝'
,
'已通过'
:
'已通过'
},
datas
:
null
,
currentPage
:
1
,
...
...
@@ -54,17 +62,57 @@ export default {
total
:
1000
,
startTime
:
null
,
endTime
:
null
,
status
:
null
status
:
'未审核'
}
},
mounted
()
{
this
.
getTime
()
this
.
getData
({
url
:
this
.
url
,
choose
:
{
startTime
:
this
.
startTime
,
endTime
:
this
.
endTime
,
pageSize
:
this
.
pageSize
,
currentPage
:
this
.
currentPage
,
status
:
this
.
status
},
callback
:
this
.
formatData
})
},
methods
:
{
...
mapActions
({
getData
:
'GET_DATA'
,
send
:
'SEND'
}),
check
(
scope
,
status
){
this
.
send
({
url
:
'/api/checkUrl'
,
choose
:
{
slotId
:
scope
.
row
.
slotId
,
status
:
status
},
callback
:
(
err
,
data
)
=>
{
if
(
data
.
status
===
700
)
{
this
.
$message
({
message
:
data
.
message
,
type
:
'error'
})
}
if
(
data
.
status
===
200
)
{
switch
(
status
)
{
case
1
:
scope
.
row
.
status
=
'已拒绝'
;
break
;
case
2
:
scope
.
row
.
status
=
'已通过'
;
break
;
case
8
:
scope
.
row
.
status
=
'未审核'
;
break
;
default
:
scope
.
row
.
status
=
'未审核'
;
}
this
.
$message
({
message
:
data
.
message
,
type
:
'success'
})
}
}
})
},
getTime
()
{
this
.
endTime
=
moment
().
format
(
'YYYY-MM-DD'
)
this
.
startTime
=
moment
().
subtract
(
7
,
'days'
).
format
(
'YYYY-MM-DD'
)
...
...
@@ -72,16 +120,50 @@ export default {
sizechange
(
value
)
{
console
.
log
(
value
)
this
.
pageSize
=
value
this
.
getData
({
url
:
this
.
url
,
choose
:
{
startTime
:
this
.
startTime
,
endTime
:
this
.
endTime
,
pageSize
:
this
.
pageSize
,
currentPage
:
this
.
currentPage
,
status
:
this
.
status
},
callback
:
this
.
formatData
})
},
currentPage
(
value
)
{
console
.
log
(
value
)
this
.
currentPage
=
value
this
.
getData
({
url
:
this
.
url
,
choose
:
{
startTime
:
this
.
startTime
,
endTime
:
this
.
endTime
,
pageSize
:
this
.
pageSize
,
currentPage
:
this
.
currentPage
,
status
:
this
.
status
},
callback
:
this
.
formatData
})
},
dropChange
(
value
)
{
console
.
log
(
value
)
this
.
status
=
value
this
.
getData
({
url
:
this
.
url
,
choose
:
{
startTime
:
this
.
startTime
,
endTime
:
this
.
endTime
,
pageSize
:
this
.
pageSize
,
currentPage
:
this
.
currentPage
,
status
:
this
.
status
},
callback
:
this
.
formatData
})
},
timeChange
(
value
)
{
console
.
log
(
2
)
console
.
log
(
value
)
this
.
startTime
=
value
[
0
]
this
.
endTime
=
value
[
1
]
...
...
@@ -92,7 +174,6 @@ export default {
endTime
:
this
.
endTime
,
pageSize
:
this
.
pageSize
,
currentPage
:
this
.
currentPage
,
total
:
this
.
total
,
status
:
this
.
status
},
callback
:
this
.
formatData
...
...
@@ -102,8 +183,11 @@ export default {
if
(
err
)
{
return
console
.
log
(
err
)
}
console
.
log
(
data
)
this
.
datas
=
data
.
datas
this
.
totat
=
data
.
total
if
(
data
.
total
<=
1000
)
{
this
.
total
=
data
.
total
}
}
}
}
...
...
src/components/dropDown.vue
View file @
8d26b437
<
template
>
<el-main>
<el-dropdown
style=
'float: right'
@
command=
'handleCommand'
>
<el-button
class=
"el-dropdown-link"
>
{{
choose
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
v-for=
"(value, key) in chooseArray"
:command=
'key'
>
{{
value
}}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</el-main>
<el-dropdown
style=
'float: right'
@
command=
'handleCommand'
>
<el-button
class=
"el-dropdown-link"
>
{{
choose
}}
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
v-for=
"(value, key) in chooseArray"
:command=
'key'
>
{{
value
}}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</
template
>
<
script
>
...
...
src/components/home.vue
View file @
8d26b437
...
...
@@ -80,6 +80,9 @@
<el-menu-item
index=
'/checkNote'
@
click=
"routeTo"
>
短信审核
</el-menu-item>
<el-menu-item
index=
'/checkUrl'
@
click=
"routeTo"
>
Url审核
</el-menu-item>
</el-submenu>
<el-submenu
index=
5
>
...
...
src/store/data.js
View file @
8d26b437
...
...
@@ -55,26 +55,9 @@ const actions = {
return
res
.
json
()
}).
then
(
data
=>
{
console
.
log
(
data
)
if
(
data
.
status
===
0
)
{
this
.
$message
({
message
:
data
.
message
,
type
:
'error'
})
}
if
(
data
.
status
===
1
)
{
this
.
$message
({
message
:
data
.
message
,
type
:
'success'
})
}
callback
(
null
,
data
)
}).
catch
(
err
=>
{
this
.
message
({
message
:
err
,
type
:
'error'
})
console
.
log
(
err
)
callback
(
err
,
null
)
})
},
...
...
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