|
@@ -27,9 +27,12 @@
|
|
|
</template>
|
|
|
|
|
|
<template #budget="{ text, record }">
|
|
|
-
|
|
|
<editable-cell
|
|
|
- :text="record.budget_mode=='BUDGET_MODE_INFINITE'?'不限':record.budget"
|
|
|
+ :text="
|
|
|
+ record.budget_mode == 'BUDGET_MODE_INFINITE'
|
|
|
+ ? '不限'
|
|
|
+ : record.budget
|
|
|
+ "
|
|
|
title="预算"
|
|
|
:minValue="1000"
|
|
|
:muliteType="true"
|
|
@@ -48,7 +51,7 @@ import ToolBar from "@/components/tool-bar/index.vue";
|
|
|
import moment from "moment";
|
|
|
import { AdCoundCloumn } from "../_pageOptions/table-put";
|
|
|
|
|
|
-import { getAdgroupData, setGroupStatus,setGroupDay } from "@/api";
|
|
|
+import { getAdgroupData, setGroupStatus, setGroupDay } from "@/api";
|
|
|
import usePagination from "@/hooks/usePagination";
|
|
|
import EditableCell from "@/components/edit-cell/index.vue";
|
|
|
import { AdgroupList, PageOptions } from "@/types/api";
|
|
@@ -125,16 +128,17 @@ const Adgroup = defineComponent({
|
|
|
},
|
|
|
methods: {
|
|
|
moment,
|
|
|
- onCellChange(record: any, dataIndex: string, value: string){
|
|
|
- let data = {
|
|
|
- advertiser_id:record.advertiser_id,
|
|
|
- budget_mode: value == '不限'?'BUDGET_MODE_INFINITE' :'BUDGET_MODE_DAY',
|
|
|
- budget: value == '不限'?'0' :Number(value)
|
|
|
- }
|
|
|
- setGroupDay(data).then(res=>{
|
|
|
- this.$message.success("修改成功!");
|
|
|
- })
|
|
|
- }
|
|
|
+ onCellChange(record: any, dataIndex: string, value: string) {
|
|
|
+ let data = {
|
|
|
+ advertiser_id: record.advertiser_id,
|
|
|
+ budget_mode:
|
|
|
+ value == "不限" ? "BUDGET_MODE_INFINITE" : "BUDGET_MODE_DAY",
|
|
|
+ budget: value == "不限" ? "0" : Number(value),
|
|
|
+ };
|
|
|
+ setGroupDay(data).then((res) => {
|
|
|
+ this.$message.success("修改成功!");
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
});
|
|
|
|