Commit 1530b8ef authored by yaobeibei's avatar yaobeibei

masteroem

parent f11c0e21
This diff is collapsed.
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label='预计筛选用户数' prop='preNum' width=130></el-table-column> <el-table-column label='预计筛选用户数' prop='preNum' width=130></el-table-column>
<el-table-column label='oem' prop='oem' width=130></el-table-column>
<el-table-column label='状态' prop='status' :filters="[{ text: '审核未通过', value: '审核未通过' }, { text: '审核通过', value: '审核通过'}]" :filter-method='filterTag' filter-placement="bottom-end"></el-table-column> <el-table-column label='状态' prop='status' :filters="[{ text: '审核未通过', value: '审核未通过' }, { text: '审核通过', value: '审核通过'}]" :filter-method='filterTag' filter-placement="bottom-end"></el-table-column>
<el-table-column label='操作' width=180> <el-table-column label='操作' width=180>
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -231,12 +232,13 @@ ...@@ -231,12 +232,13 @@
}, },
methods: { methods: {
openForm (data, index) { openForm (data, index) {
this.interestlist = []
this.hostlist = []
this.dialogFormVisible = true this.dialogFormVisible = true
console.log(data) this.interestlist = data.popover.interestlist
this.hostlist = data.popover.hostlist
this.currentdata = data this.currentdata = data
this.currentIndex = index this.currentIndex = index
// scope.row.status = '审核通过'
// scope.row.disable = true
}, },
closeFrom () { closeFrom () {
this.dialogFormVisible = false this.dialogFormVisible = false
...@@ -348,14 +350,14 @@ ...@@ -348,14 +350,14 @@
let interestlist = this.interestlist let interestlist = this.interestlist
let hostlist = this.hostlist let hostlist = this.hostlist
let currentdata = this.currentdata let currentdata = this.currentdata
let sessionID = this.sessionID let oem = currentdata ? currentdata.name : row.oem
let taskId = currentdata ? currentdata.name : row.name let taskId = currentdata ? currentdata.name : row.name
let groupId = currentdata ? currentdata.groupID : row.groupID let groupId = currentdata ? currentdata.groupID : row.groupID
this.dialogFormVisible = false this.dialogFormVisible = false
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, sessionID}) body: JSON.stringify({taskId, groupId, interestlist, hostlist, status, oem})
}).then(res => { }).then(res => {
return res.json() return res.json()
}).then(data => { }).then(data => {
......
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
<el-table-column label='预计发送数量' prop='preSendNum'></el-table-column> <el-table-column label='预计发送数量' prop='preSendNum'></el-table-column>
<el-table-column label='短信内容' prop='msgContent'></el-table-column> <el-table-column label='短信内容' prop='msgContent'></el-table-column>
<el-table-column label='预计发送时间' prop='sendTime'></el-table-column> <el-table-column label='预计发送时间' prop='sendTime'></el-table-column>
<el-table-column label='oem' prop='oem'></el-table-column>
<el-table-column label='实际发送数量' prop='sendNum' v-if="operatorId !== '联通'"></el-table-column> <el-table-column label='实际发送数量' prop='sendNum' v-if="operatorId !== '联通'"></el-table-column>
<el-table-column label='审核状态' prop='status' :filters="[{ text: '未审核', value: '未审核' }, { text: '审核通过', value: '审核通过' }, { text: '审核不通过', value: '审核未通过'}]" :filter-method='filterTag' filter-placement="bottom-end"></el-table-column> <el-table-column label='审核状态' prop='status' :filters="[{ text: '未审核', value: '未审核' }, { text: '审核通过', value: '审核通过' }, { text: '审核不通过', value: '审核未通过'}]" :filter-method='filterTag' filter-placement="bottom-end"></el-table-column>
<el-table-column label='操作' width=150> <el-table-column label='操作' width=150>
...@@ -260,6 +261,7 @@ ...@@ -260,6 +261,7 @@
suerSend (row, taskId, status, sendNum) { suerSend (row, taskId, status, sendNum) {
let self = this let self = this
let operatorId = self.operatorId let operatorId = self.operatorId
let oem = row.oem
if (operatorId !== '联通') { if (operatorId !== '联通') {
if (sendNum === null || sendNum === undefined) { if (sendNum === null || sendNum === undefined) {
sendNum = row.preSendNum sendNum = row.preSendNum
...@@ -286,7 +288,7 @@ ...@@ -286,7 +288,7 @@
fetch('/api/sendCheckNote', { fetch('/api/sendCheckNote', {
method: 'POST', method: 'POST',
headers: {'Content-Type': 'application/json;charset=UTF-8'}, headers: {'Content-Type': 'application/json;charset=UTF-8'},
body: JSON.stringify({taskId, status, sendNum, operatorId, sessionID: self.sessionID}) body: JSON.stringify({taskId, status, sendNum, operatorId, oem})
}).then(res => { return res.json() }).then(data => { }).then(res => { return res.json() }).then(data => {
console.log(data) console.log(data)
self.$message({ self.$message({
...@@ -320,7 +322,7 @@ ...@@ -320,7 +322,7 @@
fetch('/api/sendCheckNote', { fetch('/api/sendCheckNote', {
method: 'POST', method: 'POST',
headers: {'Content-Type': 'application/json;charset=UTF-8'}, headers: {'Content-Type': 'application/json;charset=UTF-8'},
body: JSON.stringify({taskId, status, sendNum, operatorId, sessionID: self.sessionID}) body: JSON.stringify({taskId, status, sendNum, operatorId, oem})
}).then(res => { return res.json() }).then(data => { }).then(res => { return res.json() }).then(data => {
console.log(data) console.log(data)
self.$message({ self.$message({
......
<template> <template>
<el-container> <el-container>
<el-main> <el-main>
<div class="title">
<p>运营审核平台</p>
</div>
<div style='margin: 100px auto'> <div style='margin: 100px auto'>
<el-row type="flex" justify="center" style="width: 100%;height: 100%"> <el-row type="flex" justify="center" style="width: 100%;height: 100%">
<el-col :span="12"> <el-col :span="12">
...@@ -78,5 +81,12 @@ ...@@ -78,5 +81,12 @@
</script> </script>
<style scoped> <style scoped>
.title {
font-size: 24px;
font-weight: 800;
text-align: center;
width: 100%;
margin: 40px auto;
letter-spacing: 3px;
}
</style> </style>
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