Commit 3185bc10 authored by yaobeibei's avatar yaobeibei

change note default date

parent 596a5c2d
File added
This diff is collapsed.
File added
var xlsx = require('node-xlsx');
//读取文件内容
let onelevel = {}
let twolevel = {}
let twoOK = {}
function getXlsx () {
var obj = xlsx.parse(__dirname+'/hangye.xlsx');
var excelObj=obj[0].data;
var data = [];
for(var i in excelObj){
var arr=[];
var value=excelObj[i];
var obj = {}
for(var j in value){
if (value[j]) {
data.push(value[j]);
}
}
}
for (var x = 4; x < data.length; x++) {
if (x % 2 === 0) {
if (data[x] < 30) {
onelevel[data[x]] = data[x + 1]
} else {
twolevel[data[x]] = data[x + 1]
}
}
}
}
getXlsx()
function test (x, arr) {
let t = x
let tes = new RegExp('^' + t, 'i')
console.log(tes)
for (let i in arr) {
if (tes.test(i)) {
if (i.length === t.length + 2) {
twoOK[i] = arr[i]
}
}
}
console.log(twoOK)
}
test('21', twolevel)
#!/usr/bin/env bash
eval "npm run build"
echo -e '\033[44;39m npm build over \033[0m'
eval 'docker build -t reg.yunpro.cn/remarketing/yunying:latest .'
echo -e '\033[44;39m docker build over \033[0m'
eval 'docker push reg.yunpro.cn/remarketing/yunying:latest'
echo -e '\033[44;38m push over \033[0m'
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>list</title> <title>再营销运营审核平台</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -9464,6 +9464,22 @@ ...@@ -9464,6 +9464,22 @@
"which": "1.3.0" "which": "1.3.0"
} }
}, },
"node-xlsx": {
"version": "0.12.1",
"resolved": "https://registry.npmjs.org/node-xlsx/-/node-xlsx-0.12.1.tgz",
"integrity": "sha512-PMIv0Gs05zb+7ZUQIMA5Fw8eFHxT8fVieKUKMUXI5EBuCsZ56bYKeaMaBf7pBAH3cw8Xa+dGK/xaLWZaEuyfiw==",
"requires": {
"buffer-from": "1.1.0",
"xlsx": "0.12.11"
},
"dependencies": {
"buffer-from": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz",
"integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ=="
}
}
},
"nopt": { "nopt": {
"version": "3.0.6", "version": "3.0.6",
"resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
......
...@@ -21,17 +21,18 @@ ...@@ -21,17 +21,18 @@
"cookie-parser": "^1.4.3", "cookie-parser": "^1.4.3",
"element-ui": "^2.3.6", "element-ui": "^2.3.6",
"express": "^4.16.3", "express": "^4.16.3",
"file-saver": "^1.3.8",
"fs": "0.0.1-security", "fs": "0.0.1-security",
"http": "0.0.0", "http": "0.0.0",
"moment": "^2.22.1", "moment": "^2.22.1",
"mongo": "^0.1.0", "mongo": "^0.1.0",
"node-xlsx": "^0.12.1",
"path": "^0.12.7", "path": "^0.12.7",
"qs": "^6.5.1", "qs": "^6.5.1",
"server": "^1.0.18", "server": "^1.0.18",
"vue": "^2.5.16", "vue": "^2.5.16",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vuex": "^3.0.1", "vuex": "^3.0.1",
"file-saver": "^1.3.8",
"xlsx": "^0.12.10" "xlsx": "^0.12.10"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -24,6 +24,11 @@ ...@@ -24,6 +24,11 @@
<el-table-column label='公司名称' prop='company'></el-table-column> <el-table-column label='公司名称' prop='company'></el-table-column>
<el-table-column label='账户名称' prop='email'></el-table-column> <el-table-column label='账户名称' prop='email'></el-table-column>
<el-table-column label='电话' prop='phone'></el-table-column> <el-table-column label='电话' prop='phone'></el-table-column>
<el-table-column label="行业标签">
<template slot-scope='scope'>
<el-button type='text' @click='openForm(scope.row, scope.$index)' >公司标签</el-button>
</template>
</el-table-column>
<el-table-column label='自动备案'> <el-table-column label='自动备案'>
<template slot-scope='scope'> <template slot-scope='scope'>
<el-switch <el-switch
...@@ -62,6 +67,28 @@ ...@@ -62,6 +67,28 @@
style="float: right;margin-top: 15px"> style="float: right;margin-top: 15px">
</el-pagination> </el-pagination>
</el-main> </el-main>
<el-dialog title='行业标签' :visible.sync='dialogVisiable' width=60%>
<el-select v-model="oneChoose" filterable clearable placeholder="请选择一级标签" @change='chooseOne'>
<el-option
v-for="(value, key) in onelevel"
:key="key"
:label="value"
:value="key">
</el-option>
</el-select>
<el-select v-model="twoChoose" filterable clearable placeholder="请选择二级标签">
<el-option
v-for="(value, key) in twoOK"
:key="key"
:label="value"
:value="key">
</el-option>
</el-select>
<div slot="footer" class="dialog-footer">
<el-button @click="closeFrom()">取 消</el-button>
<el-button type="primary" @click="makeAccountTag()">确 定</el-button>
</div>
</el-dialog>
</el-container> </el-container>
</template> </template>
...@@ -78,12 +105,21 @@ ...@@ -78,12 +105,21 @@
currentPage: 1, currentPage: 1,
pageSize: 10, pageSize: 10,
total: 100, total: 100,
emailOptions: null emailOptions: null,
dialogVisiable: false,
onelevel: {},
twolevel: {},
twoOK: {},
oneChoose: null,
twoChoose: null,
currentdata: null,
currentIndex: null
} }
}, },
mounted () { mounted () {
this.sessionID = sessionStorage.getItem('sessionID') this.sessionID = sessionStorage.getItem('sessionID')
this.getData(this.currentPage, this.pageSize, this.inputValue) this.getData(this.currentPage, this.pageSize, this.inputValue)
this.getAccountTag()
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({
...@@ -91,6 +127,71 @@ ...@@ -91,6 +127,71 @@
}) })
}, },
methods: { methods: {
makeAccountTag () {
this.dialogVisiable = false
let onelevelTag = this.onelevel[this.oneChoose]
let twolevelTag = this.twolevel[this.twoChoose]
let currentdata = this.currentdata
let accountID = currentdata ? currentdata._id : row._id
console.log(onelevelTag, twolevelTag, accountID)
fetch('/api/makeAccountTag', {
method: 'POST',
headers: {'Content-Type': 'application/json;charset=UTF-8'},
body: JSON.stringify({accountID, onelevelTag, twolevelTag})
}).then(res => { return res.json() }).then(data => {
console.log(data)
})
},
chooseOne () {
let choose = this.oneChoose
this.fifterTag(choose, this.twolevel)
},
openForm (data, index) {
this.dialogVisiable = true
this.oneChoose = data.onelevelTag
this.twoChoose = data.twolevelTag
this.currentdata = data
this.currentIndex = index
},
closeFrom () {
this.dialogVisiable = false
this.onelvlist = []
this.twolvlist = []
},
fifterTag (x, arr) {
let self = this
let t = x
let dataArr = {}
let tes = new RegExp('^' + t, 'i')
console.log(tes)
for (let i in arr) {
if (tes.test(i)) {
if (i.length === t.length + 2) {
console.log(arr[i])
dataArr[i] = arr[i]
}
}
}
console.log(dataArr)
this.twoOK = dataArr
},
getAccountTag (choose) {
console.log('tag')
let self = this
let oneChoose = choose
this.dialogVisiable = false
fetch('/api/getTag', {
method: 'POST',
headers: {'Content-Type': 'application/json;charset=UTF-8'},
body: JSON.stringify()
}).then(res => {
return res.json()
}).then(data => {
console.log(data)
self.onelevel = data.onelevel
self.twolevel = data.twolevel
})
},
AutoChange (row) { AutoChange (row) {
console.log(row.isCloseAuto) console.log(row.isCloseAuto)
console.log(row) console.log(row)
...@@ -129,6 +230,9 @@ ...@@ -129,6 +230,9 @@
self.total = data.dataTotal self.total = data.dataTotal
self.emailOptions = data.emailArr self.emailOptions = data.emailArr
}) })
},
getTag() {
}, },
handleSizeChange (val) { handleSizeChange (val) {
this.pageSize = val this.pageSize = val
...@@ -189,5 +293,20 @@ ...@@ -189,5 +293,20 @@
</script> </script>
<style scoped> <style scoped>
.el-tag + .el-tag {
margin-left: 10px;
}
.button-new-tag {
margin-left: 10px;
height: 32px;
line-height: 30px;
padding-top: 0;
padding-bottom: 0;
}
.input-new-tag {
width: 90px;
margin-left: 10px;
vertical-align: bottom;
}
</style> </style>
...@@ -56,10 +56,10 @@ ...@@ -56,10 +56,10 @@
<p>平均流量: <span style='padding: 4px' v-for='item in scope.row.popover.flowlist'>{{item}}</span></p> <p>平均流量: <span style='padding: 4px' v-for='item in scope.row.popover.flowlist'>{{item}}</span></p>
<p>终端品牌: <span style='padding: 4px' v-for='item in scope.row.popover.phonelist'>{{item}}</span></p> <p>终端品牌: <span style='padding: 4px' v-for='item in scope.row.popover.phonelist'>{{item}}</span></p>
</div> </div>
<div> <!-- <div>
<h4>筛选条件:</h4> <h4>筛选条件:</h4>
<p><sapn>访问过以下标签:</sapn> <span style='padding: 4px' v-for='item in scope.row.popover.hobbylist'>{{mapHobby[item]}}({{item}}) |</span></p> <p><sapn>访问过以下标签:</sapn> <span style='padding: 4px' v-for='item in scope.row.popover.hobbylist'>{{mapHobby[item]}}({{item}}) |</span></p>
</div> </div> -->
<span slot="reference"> <span slot="reference">
查看详情 查看详情
</span> </span>
...@@ -97,7 +97,9 @@ ...@@ -97,7 +97,9 @@
:total="total" :total="total"
style="float: right;margin-top: 15px"> style="float: right;margin-top: 15px">
</el-pagination> </el-pagination>
<el-dialog title="请添加筛选条件" :visible.sync="dialogFormVisible"> <el-dialog :visible.sync="dialogFormVisible">
<p style="font-size: 16px;font-weight: 800">请添加筛选条件</p>
<p style='margin-left:10p'> 备注: {{meta}}</p>
<div> <div>
<el-tag <el-tag
:key="tag" :key="tag"
...@@ -141,6 +143,28 @@ ...@@ -141,6 +143,28 @@
</el-input> </el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput2">添加新域名</el-button> <el-button v-else class="button-new-tag" size="small" @click="showInput2">添加新域名</el-button>
</div> </div>
<br>
<div>
<el-tag
:key="tag"
v-for="tag in applist"
closable
:disable-transitions="false"
@close="handleClose3(tag)">
{{tag}}
</el-tag>
<el-input
class="input-new-tag"
v-if="inputVisible3"
v-model="inputValue3"
size="small"
ref="saveTagInput3"
@keyup.enter.native="handleInputConfirm"
@blur="handleInputConfirm"
>
</el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput3">添 加 A P P</el-button>
</div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="closeFrom()">取 消</el-button> <el-button @click="closeFrom()">取 消</el-button>
<el-button type="primary" @click="suerSend(1)">确 定</el-button> <el-button type="primary" @click="suerSend(1)">确 定</el-button>
...@@ -166,14 +190,18 @@ ...@@ -166,14 +190,18 @@
total: 0, total: 0,
pageSize: 100, pageSize: 100,
currentPage: 1, currentPage: 1,
meta: '',
visible1: false, visible1: false,
visibleInput: false, visibleInput: false,
interestlist: [], interestlist: [],
hostlist: [], hostlist: [],
applist: [],
inputVisible: false, inputVisible: false,
inputVisible2: false, inputVisible2: false,
inputVisible3: false,
inputValue: '', inputValue: '',
inputValue2: '', inputValue2: '',
inputValue3: '',
dialogFormVisible: false, dialogFormVisible: false,
valueRange: [], valueRange: [],
startTime: '', startTime: '',
...@@ -235,8 +263,10 @@ ...@@ -235,8 +263,10 @@
this.interestlist = [] this.interestlist = []
this.hostlist = [] this.hostlist = []
this.dialogFormVisible = true this.dialogFormVisible = true
this.interestlist = data.popover.interestlist this.interestlist = data.popover.interestlist || []
this.hostlist = data.popover.hostlist this.hostlist = data.popover.hostlist || []
this.applist = data.popover.applist || []
this.meta = data.popover.meta || ''
this.currentdata = data this.currentdata = data
this.currentIndex = index this.currentIndex = index
}, },
...@@ -244,6 +274,8 @@ ...@@ -244,6 +274,8 @@
this.dialogFormVisible = false this.dialogFormVisible = false
this.interestlist = [] this.interestlist = []
this.hostlist = [] this.hostlist = []
this.applist = []
this.meta = ''
}, },
handleClose (tag) { handleClose (tag) {
this.interestlist.splice(this.interestlist.indexOf(tag), 1) this.interestlist.splice(this.interestlist.indexOf(tag), 1)
...@@ -251,6 +283,9 @@ ...@@ -251,6 +283,9 @@
handleClose2 (tag) { handleClose2 (tag) {
this.hostlist.splice(this.hostlist.indexOf(tag), 1) this.hostlist.splice(this.hostlist.indexOf(tag), 1)
}, },
handleClose3 (tag) {
this.hobbylist.splice(this.hobbylist.indexOf(tag), 1)
},
showInput () { showInput () {
this.inputVisible = true this.inputVisible = true
this.$nextTick(_ => { this.$nextTick(_ => {
...@@ -264,19 +299,32 @@ ...@@ -264,19 +299,32 @@
this.$refs.saveTagInput2.$refs.input.focus() this.$refs.saveTagInput2.$refs.input.focus()
}) })
}, },
showInput3 () {
this.inputVisible3 = true
console.log(this.$refs)
this.$nextTick(_ => {
this.$refs.saveTagInput3.$refs.input.focus()
})
},
handleInputConfirm () { handleInputConfirm () {
let inputValue = this.inputValue let inputValue = this.inputValue
let inputValue2 = this.inputValue2 let inputValue2 = this.inputValue2
let inputValue3 = this.inputValue3
if (inputValue) { if (inputValue) {
this.interestlist.push(inputValue) this.interestlist.push(inputValue)
} }
if (inputValue2) { if (inputValue2) {
this.hostlist.push(inputValue2) this.hostlist.push(inputValue2)
} }
if (inputValue3) {
this.applist.push(inputValue3)
}
this.inputVisible = false this.inputVisible = false
this.inputVisible2 = false this.inputVisible2 = false
this.inputVisible3 = false
this.inputValue = '' this.inputValue = ''
this.inputValue2 = '' this.inputValue2 = ''
this.inputValue3 = ''
}, },
handleCommand (command) { handleCommand (command) {
console.log(command) console.log(command)
...@@ -349,6 +397,7 @@ ...@@ -349,6 +397,7 @@
let self = this let self = this
let interestlist = this.interestlist let interestlist = this.interestlist
let hostlist = this.hostlist let hostlist = this.hostlist
let applist = this.applist
let currentdata = this.currentdata let currentdata = this.currentdata
let oem = currentdata ? currentdata.oem : row.oem let oem = currentdata ? currentdata.oem : row.oem
let taskId = currentdata ? currentdata.name : row.name let taskId = currentdata ? currentdata.name : row.name
...@@ -357,7 +406,7 @@ ...@@ -357,7 +406,7 @@
fetch('/api/send', { fetch('/api/send', {
method: 'POST', method: 'POST',
headers: {'Content-Type': 'application/json;charset=UTF-8'}, headers: {'Content-Type': 'application/json;charset=UTF-8'},
body: JSON.stringify({taskId, groupId, interestlist, hostlist, status, oem}) body: JSON.stringify({taskId, groupId, interestlist, hostlist, applist, status, oem})
}).then(res => { }).then(res => {
return res.json() return res.json()
}).then(data => { }).then(data => {
......
This diff is collapsed.
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
methods: { methods: {
showExportContent (row) { showExportContent (row) {
console.log(row) console.log(row)
this.exprotContent = row.exportShowArr this.exprotContent = row.exportDataArr
this.exportContentVisible = true this.exportContentVisible = true
}, },
getData () { getData () {
......
...@@ -114,10 +114,10 @@ ...@@ -114,10 +114,10 @@
<el-submenu index=7 v-if=' sessionID === "admin" '> <el-submenu index=7 v-if=' sessionID === "admin" '>
<template slot='title'> <template slot='title'>
<i class='el-icon-setting'></i> <i class='el-icon-setting'></i>
<span>OEM运营账号</span> <span>代理商运营账号</span>
</template> </template>
<el-menu-item index='/OEM' @click="routeTo"> <el-menu-item index='/OEM' @click="routeTo">
创建OME运营账号 创建代理商运营账号
</el-menu-item> </el-menu-item>
</el-submenu> </el-submenu>
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<el-table-column label='公司名称' prop='company'></el-table-column> <el-table-column label='公司名称' prop='company'></el-table-column>
<el-table-column label='代码位名称' prop='slotName'></el-table-column> <el-table-column label='代码位名称' prop='slotName'></el-table-column>
<el-table-column label='代码位位置' prop='slot'></el-table-column> <el-table-column label='代码位位置' prop='slot'></el-table-column>
<el-table-column label='代码位创建时间' prop='time'></el-table-column>
<el-table-column label='代码位备案规则'> <el-table-column label='代码位备案规则'>
<template slot-scope='scope'> <template slot-scope='scope'>
<el-button type='text' @click='openDialog(scope)' >备案规则</el-button> <el-button type='text' @click='openDialog(scope)' >备案规则</el-button>
......
...@@ -6,6 +6,22 @@ ...@@ -6,6 +6,22 @@
<el-main> <el-main>
<el-row style='margin-bottom: 10px'> <el-row style='margin-bottom: 10px'>
<el-button type='primary' style='float: left' @click=' inDialogVisible = true'>导入任务</el-button> <el-button type='primary' style='float: left' @click=' inDialogVisible = true'>导入任务</el-button>
<el-select v-model="oneChoose" filterable clearable placeholder="请选择一级标签" @change='chooseOne' style="margin-left: 10px">
<el-option
v-for="(value, key) in onelevel"
:key="key"
:label="value"
:value="key">
</el-option>
</el-select>
<el-select v-model="twoChoose" filterable clearable placeholder="请选择二级标签" @change="chooseTwo">
<el-option
v-for="(value, key) in twoOK"
:key="key"
:label="value"
:value="key">
</el-option>
</el-select>
<el-button type='primary' style='float: right' @click='openExportDialog'>导出任务</el-button> <el-button type='primary' style='float: right' @click='openExportDialog'>导出任务</el-button>
</el-row> </el-row>
<el-table border <el-table border
...@@ -29,7 +45,16 @@ ...@@ -29,7 +45,16 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-sizes="[10, 20, 50, 100, 1000]"
:page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
style="float: right;margin-top: 15px">
</el-pagination>
<el-dialog title='新建导入任务' center :visible.sync="inDialogVisible"> <el-dialog title='新建导入任务' center :visible.sync="inDialogVisible">
<el-row style='margin-bottom: 10px'> <el-row style='margin-bottom: 10px'>
<el-col :span="4" style='line-height: 40px'>任务模式</el-col> <el-col :span="4" style='line-height: 40px'>任务模式</el-col>
...@@ -98,7 +123,7 @@ ...@@ -98,7 +123,7 @@
<el-col :span='2'><el-button type='text' size='mini' @click='deleteShow(index)'>删除</el-button></el-col> <el-col :span='2'><el-button type='text' size='mini' @click='deleteShow(index)'>删除</el-button></el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-select v-model="exportAccount" placeholder="请选择账户" @visible-change='selectSlot'> <el-select v-model="exportAccount" placeholder="请选择账户" filterable clearable @visible-change='selectSlot'>
<el-option <el-option
v-for="item in emailOptions" v-for="item in emailOptions"
:key="item.accountID" :key="item.accountID"
...@@ -106,7 +131,7 @@ ...@@ -106,7 +131,7 @@
:value="item.accountID"> :value="item.accountID">
</el-option> </el-option>
</el-select> </el-select>
<el-select v-model="exportSlot" placeholder="请选择代码位"> <el-select v-model="exportSlot" placeholder="请选择代码位" clearable filterable>
<el-option <el-option
v-for="item in slotOptions" v-for="item in slotOptions"
:key="item.slotID" :key="item.slotID"
...@@ -206,13 +231,22 @@ ...@@ -206,13 +231,22 @@
exportShowArr: [], exportShowArr: [],
showEmail: null, showEmail: null,
showSlot: null, showSlot: null,
exprotContent: [] exprotContent: [],
oneChoose: null,
twoChoose: null,
onelevel: {},
twolevel: {},
twoOK: {},
currentPage: 1,
pageSize: 10,
total: 1000
} }
}, },
mounted () { mounted () {
this.getTime() this.getTime()
this.getData() this.getData()
this.getEmail() this.getEmail()
this.getAccountTag()
}, },
methods: { methods: {
openExportDialog () { openExportDialog () {
...@@ -223,6 +257,32 @@ ...@@ -223,6 +257,32 @@
self.exportDialogVisible = true self.exportDialogVisible = true
} }
}, },
chooseOne () {
let choose = this.oneChoose
this.fifterTag(choose, this.twolevel)
this.twoChoose = null
this.getData(this.pageSize, this.currentPage, this.oneChoose, this.twoChoose)
},
chooseTwo () {
this.getData(this.pageSize, this.currentPage, this.oneChoose, this.twoChoose)
},
fifterTag (x, arr) {
let self = this
let t = x
let dataArr = {}
let tes = new RegExp('^' + t, 'i')
console.log(tes)
for (let i in arr) {
if (tes.test(i)) {
if (i.length === t.length + 2) {
console.log(arr[i])
dataArr[i] = arr[i]
}
}
}
console.log(dataArr)
this.twoOK = dataArr
},
showExportContent (row) { showExportContent (row) {
console.log(row) console.log(row)
this.exprotContent = row.exportDataArr this.exprotContent = row.exportDataArr
...@@ -251,9 +311,26 @@ ...@@ -251,9 +311,26 @@
} }
}) })
this.exportDataArr.push({accountID: this.exportAccount, slotID: this.exportSlot, accountName: this.showEmail, slotName: this.showSlot}) let noRepeat = true
this.exportAccount = null self.exportDataArr.forEach(x => {
this.exportSlot = null // console.log(x)
if (x.accountID === self.exportAccount && x.slotID === self.exportSlot) {
this.$message({
showClose: true,
message: '请不要向同一账号下同一代码位导入相同的用户',
type: 'error'
})
noRepeat = false
}
})
if (noRepeat) {
self.exportDataArr.push({accountID: self.exportAccount, slotID: self.exportSlot, accountName: self.showEmail, slotName: self.showSlot})
self.exportAccount = null
self.exportSlot = null
}
}, },
handleSelectionChange (valueArr) { handleSelectionChange (valueArr) {
console.log(valueArr) console.log(valueArr)
...@@ -306,17 +383,49 @@ ...@@ -306,17 +383,49 @@
}) })
} }
}, },
getData () { handleSizeChange (val) {
console.log('页容量改变')
console.log(val)
this.pageSize = val
this.getData(this.pageSize, this.currentPage, this.chooseOne, this.twoChoose)
},
handleCurrentChange (val) {
console.log('当前页码改变')
this.currentPage = val
console.log(val)
this.getData(this.pageSize, this.currentPage, this.chooseOne, this.twoChoose)
},
getData (pageSize = this.pageSize, currentPage = this.currentPage, oneChoose = this.oneChoose, twoChoose = this.twoChoose) {
let self = this let self = this
let onelevelTag = this.onelevel[oneChoose]
let twolevelTag = this.twolevel[twoChoose]
fetch('/api/poolData', { fetch('/api/poolData', {
method: 'POST', method: 'POST',
headers: {'Content-Type': 'application/json;charset=UTF-8'}, headers: {'Content-Type': 'application/json;charset=UTF-8'},
body: JSON.stringify({}) body: JSON.stringify({pageSize, currentPage, onelevelTag, twolevelTag})
}).then(res => { return res.json() }).then(data => { }).then(res => { return res.json() }).then(data => {
console.log(data) console.log(data)
self.datas = data.datas self.datas = data.datas
self.total = data.dataTotal
}) })
}, },
getAccountTag (choose) {
console.log('tag')
let self = this
let oneChoose = choose
this.dialogVisiable = false
fetch('/api/getTag', {
method: 'POST',
headers: {'Content-Type': 'application/json;charset=UTF-8'},
body: JSON.stringify()
}).then(res => {
return res.json()
}).then(data => {
console.log(data)
self.onelevel = data.onelevel
self.twolevel = data.twolevel
})
},
getEmail () { getEmail () {
let self = this let self = this
let accountID = self.exportAccount let accountID = self.exportAccount
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment