Commit b158c9ff authored by youjie's avatar youjie

no message

parent a5a18199
<template> <template>
<div class="customerManage" style="display:flex;height:calc(100% - 20px);flex-direction:column;"> <div class="customerManage padding0" style="display:flex;height:calc(100% - 20px);flex-direction:column;">
<div class="tools" style="border:none;"> <div class="tools" style="border:none;">
<div class="tools-item"> <div class="tools-item">
<h1>{{title}}引流汇总统计</h1> <h1>{{title}}引流汇总统计</h1>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</el-row> </el-row>
</div> </div>
<div class="activeBox"> <div class="activeBox">
<div v-for="item in activeList" @click="msg.PlatformType=item.Id,init()" <div v-for="item in activeList" @click="clickActive(item)"
:class="{'active':msg.PlatformType==item.Id}"> :class="{'active':msg.PlatformType==item.Id}">
{{item.Name}} {{item.Name}}
</div> </div>
...@@ -471,8 +471,8 @@ ...@@ -471,8 +471,8 @@
</el-form> </el-form>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" class="add-box-btn" @click="submitForm('formEdit')">确 定</el-button> <el-button type="primary" class="add-box-btn" @click="submitForm">确 定</el-button>
<el-button class="add-box-btn add-box-cancel" @click="dialogTableVisibleEdit = false, resetFormEdit('formEdit')">取 消</el-button> <el-button class="add-box-btn add-box-cancel" @click="dialogTableVisibleEdit = false">取 消</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -552,18 +552,51 @@ ...@@ -552,18 +552,51 @@
}; };
}, },
mounted() { mounted() {
// var fileUrl = "https://imgfile.oytour.com" var fileUrl = "https://imgfile.oytour.com"
// if (this.importType == 1) { if (this.msg.PlatformType == 1) {
// this.downloadUrl = fileUrl + "/static/引流模板.xlsx"; this.downloadUrl = fileUrl + "/ExportFile/小红书导入模板.xlsx";
// } else { } if (this.msg.PlatformType == 2) {
// this.downloadUrl = fileUrl + "/static/引流模板.xlsx"; this.downloadUrl = fileUrl + "/static/微博导入模板.xlsx";
// } } if (this.msg.PlatformType == 3) {
this.downloadUrl = fileUrl + "/static/抖音导入模板.xlsx";
}
this.getEnumerate() this.getEnumerate()
}, },
methods: { methods: {
clickActive(item){
this.msg.PlatformType = item.Id
this.init()
var fileUrl = "https://imgfile.oytour.com"
if (this.msg.PlatformType == 1) {
this.downloadUrl = fileUrl + "/ExportFile/小红书导入模板.xlsx";
} if (this.msg.PlatformType == 2) {
this.downloadUrl = fileUrl + "/static/微博导入模板.xlsx";
} if (this.msg.PlatformType == 3) {
this.downloadUrl = fileUrl + "/static/抖音导入模板.xlsx";
}
},
delAccount(row){ delAccount(row){
this.$confirm('此操作将删除该账号数量是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let msg = {
DetailId: row.Id
}
this.apipost('/api/IntroduceFlowStat/DelFlowPeriodsDetial', msg, res=>{
if (res.data.resultCode == 1) {
this.$message.success('操作成功')
this.init()
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
});
}, },
// 修改引流账号 // 修改引流账号
editAccount(row){ editAccount(row){
...@@ -571,20 +604,26 @@ ...@@ -571,20 +604,26 @@
this.dialogTableVisibleEdit = true this.dialogTableVisibleEdit = true
}, },
submitForm(addMsg) { submitForm(addMsg) {
this.$refs[addMsg].validate(valid => { this.$confirm('此操作将修改该账号数量是否继续?', '提示', {
if (valid) { confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.addData(); this.addData();
} else { }).catch(() => {
return false; this.$message({
} type: 'info',
message: '已取消'
});
}); });
}, },
addData(){ addData(){
if (!this.formEdit.Name) { if (!this.formEdit.Id) {
return this.$message.error('请输入账号名称') return
} }
let datas = { let datas = {
Id:'',// :'',//明细ID(以小红书为蓝本) 是 [string] 查看 Id:this.formEdit.Id,// :'',//明细ID(以小红书为蓝本) 是 [string] 查看
FansNum:this.formEdit.FansNum,// 粉丝数量 是 [string] 查看 FansNum:this.formEdit.FansNum,// 粉丝数量 是 [string] 查看
AddFansNum:this.formEdit.AddFansNum,// 添加分数数量 是 [string] 查看 AddFansNum:this.formEdit.AddFansNum,// 添加分数数量 是 [string] 查看
CollectNum:this.formEdit.CollectNum,// 收藏数量 是 [string] 查看 CollectNum:this.formEdit.CollectNum,// 收藏数量 是 [string] 查看
...@@ -598,8 +637,8 @@ ...@@ -598,8 +637,8 @@
this.apipost('/api/IntroduceFlowStat/SetFlowPeriodsDetial',datas, res=>{ this.apipost('/api/IntroduceFlowStat/SetFlowPeriodsDetial',datas, res=>{
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.init() this.init()
this.resetForm("form"); this.resetForm("formEdit");
this.dialogTableVisible = false; this.dialogTableVisibleEdit = false;
this.$message.success(res.data.message) this.$message.success(res.data.message)
} else { } else {
...@@ -609,7 +648,6 @@ ...@@ -609,7 +648,6 @@
}, },
closedDialogEdit(){ closedDialogEdit(){
this.dialogTableVisibleEdit = false this.dialogTableVisibleEdit = false
this.resetFormEdit('formEdit')
}, },
closedDialog() { closedDialog() {
this.dialogTableVisible = false this.dialogTableVisible = false
...@@ -782,9 +820,11 @@ ...@@ -782,9 +820,11 @@
}, },
}; };
</script> </script>
<style> <style>
@import "../../assets/css/customerManage.css"; @import "../../assets/css/customerManage.css";
.customerManage.padding0 .el-table td{
padding: 1px 0 !important;
}
.activeRed{ .activeRed{
color: red; color: red;
} }
......
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