|
@@ -28,10 +28,17 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="关联推广名称" width="260" prop="promotion_name">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="关联推广ID" width="260" prop="promotion_id">
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="操作">
|
|
|
<template #default="scope">
|
|
|
- <el-button link type="primary" size="default" @click="handleEdit(scope.$index, scope.row)"
|
|
|
+ <el-button link type="primary" size="small" @click="handleEdit(scope.$index, scope.row)"
|
|
|
v-action="'callback.JuliangAccount.updateCallbackConfig'">回传配置</el-button>
|
|
|
+ <br />
|
|
|
+ <el-button link type="primary" size="small" @click="handleCancel(scope.row)"
|
|
|
+ v-action="'callback.JuliangAccount.unbindPromotion'">取消推广回传关联</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -53,7 +60,7 @@ import { computed, onMounted, ref } from 'vue';
|
|
|
import create from './form/create.vue';
|
|
|
import paybackConfig from './form/paybackConfig.vue';
|
|
|
import { useGetList } from '@/hook/curd/useGetList';
|
|
|
-import { callbackJuliangAccountTurnCallbackState } from '@/api/backConfig/index'
|
|
|
+import { callbackJuliangAccountTurnCallbackState, callbackJuliangAccountUnbindPromotion } from '@/api/backConfig/index'
|
|
|
|
|
|
const api = 'callback/juliangAccount/list';
|
|
|
|
|
@@ -84,7 +91,26 @@ const switchStatus = (data: object) => {
|
|
|
search()
|
|
|
})
|
|
|
}
|
|
|
+const handleCancel = (row: object) => {
|
|
|
+ ElMessageBox.confirm(
|
|
|
+ `解绑后此回传账户所有数据重新计算(包括比例/保护数),确定要取消 ${row.adv_account_name} 推广回传关联吗?`,
|
|
|
+ '提示',
|
|
|
+ {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(() => {
|
|
|
+ callbackJuliangAccountUnbindPromotion({ id: row.id }).then(res => {
|
|
|
+ ElMessage.success(res.message)
|
|
|
+ search()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
|
|
|
+ })
|
|
|
+}
|
|
|
// 批量设置
|
|
|
const mulSet = () => {
|
|
|
if (multipleSelection.value.length <= 0) {
|