|
@@ -4,9 +4,15 @@
|
|
|
<el-form-item label="巨量账户ID">
|
|
|
<el-input placeholder="请输入巨量账户ID" class="input" icon="search" v-model="query.account_id" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="巨量账户">
|
|
|
+ <el-form-item label="回传配置ID">
|
|
|
+ <el-input placeholder="请输入回传配置ID" class="input" icon="search" v-model="query.id" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="关联推广ID">
|
|
|
+ <el-input placeholder="关联推广ID" class="input" icon="search" v-model="query.promotion_id" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <!-- <el-form-item label="巨量账户">
|
|
|
<el-input placeholder="请输入巨量账户" class="input" icon="search" v-model="query.account_name" clearable></el-input>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
</template>
|
|
|
</Search>
|
|
|
<div class="table-default">
|
|
@@ -15,11 +21,10 @@
|
|
|
<el-button type="primary" size="default" @click="mulSet">批量设置</el-button>
|
|
|
</div>
|
|
|
<el-table :data="tableData" class="mt-3" v-loading="loading" @selection-change="handleSelectionChange">
|
|
|
- <el-table-column type="selection" width="80">
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column type="selection" width="80"></el-table-column>
|
|
|
+ <el-table-column label="回传配置ID" width="260" prop="id"></el-table-column>
|
|
|
<el-table-column label="巨量账户ID" width="260" prop="adv_account_id"></el-table-column>
|
|
|
- <el-table-column label="巨量账户" width="260" prop="adv_account_name">
|
|
|
- </el-table-column>
|
|
|
+ <!-- <el-table-column label="巨量账户" width="260" prop="adv_account_name"></el-table-column> -->
|
|
|
<el-table-column label="回传开关" width="150" v-action="'callback.JuliangAccount.turnCallbackState'">
|
|
|
<template #default="scope">
|
|
|
<div>
|
|
@@ -31,6 +36,9 @@
|
|
|
<el-table-column label="关联推广名称" width="260" prop="promotion_name">
|
|
|
</el-table-column>
|
|
|
<el-table-column label="关联推广ID" width="260" prop="promotion_id">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button link type="primary" size="small" @click="goToPromotion( scope.row)" >{{scope.row.promotion_id}}</el-button>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作">
|
|
|
<template #default="scope">
|
|
@@ -61,7 +69,8 @@ import create from './form/create.vue';
|
|
|
import paybackConfig from './form/paybackConfig.vue';
|
|
|
import { useGetList } from '@/hook/curd/useGetList';
|
|
|
import { callbackJuliangAccountTurnCallbackState, callbackJuliangAccountUnbindPromotion } from '@/api/backConfig/index'
|
|
|
-
|
|
|
+const router = useRouter();
|
|
|
+const route = useRoute();
|
|
|
const api = 'callback/juliangAccount/list';
|
|
|
|
|
|
const { data, query, search, reset, loading } = useGetList(api, true);
|
|
@@ -91,6 +100,11 @@ const switchStatus = (data: object) => {
|
|
|
search()
|
|
|
})
|
|
|
}
|
|
|
+const goToPromotion = (row: object) =>{
|
|
|
+ router.push({ path: '/promotion/promotionList', query: { tab: 1,id:row.promotion_id } })
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
const handleCancel = (row: object) => {
|
|
|
ElMessageBox.confirm(
|
|
|
`解绑后此回传账户所有数据重新计算(包括比例/保护数),确定要取消 ${row.adv_account_name} 推广回传关联吗?`,
|
|
@@ -102,7 +116,7 @@ const handleCancel = (row: object) => {
|
|
|
}
|
|
|
)
|
|
|
.then(() => {
|
|
|
- callbackJuliangAccountUnbindPromotion({ id: row.id }).then(res => {
|
|
|
+ callbackJuliangAccountUnbindPromotion({ id: row.promotion_id }).then(res => {
|
|
|
ElMessage.success(res.message)
|
|
|
search()
|
|
|
})
|
|
@@ -177,6 +191,7 @@ const openForm = (data: any) => {
|
|
|
addAccountVisible.value = true
|
|
|
};
|
|
|
onMounted(() => {
|
|
|
+query.value.id = route.query.id
|
|
|
search();
|
|
|
});
|
|
|
</script>
|