|
@@ -47,9 +47,7 @@
|
|
|
:max="120"
|
|
|
/>
|
|
|
</div>
|
|
|
- <a-button type="primary" @click="changeNumber">
|
|
|
- 修改天数
|
|
|
- </a-button>
|
|
|
+ <a-button type="primary" @click="changeNumber"> 修改天数 </a-button>
|
|
|
</div>
|
|
|
|
|
|
<a-table
|
|
@@ -61,7 +59,12 @@
|
|
|
size="small"
|
|
|
bordered
|
|
|
>
|
|
|
- <template #opertate="{ text, record }">
|
|
|
+ <template #gzh="{ record }">
|
|
|
+ <a href="javascript:;" @click="goPlan(record)">{{
|
|
|
+ record.official_name
|
|
|
+ }}</a>
|
|
|
+ </template>
|
|
|
+ <template #opertate="{ record }">
|
|
|
<p @click="goPlan(record)"><a>查看广告计划</a></p>
|
|
|
</template>
|
|
|
</a-table>
|
|
@@ -75,7 +78,7 @@ import {
|
|
|
reactive,
|
|
|
toRefs,
|
|
|
ref,
|
|
|
- onMounted
|
|
|
+ onMounted,
|
|
|
} from "vue";
|
|
|
import { picker } from "@/helper/config/range";
|
|
|
import ToolBar from "@/components/tool-bar/index.vue";
|
|
@@ -83,13 +86,13 @@ import moment from "moment";
|
|
|
import router from "@/router";
|
|
|
import {
|
|
|
TableColumnOfPutData,
|
|
|
- TableColumnOfMoreStat
|
|
|
+ TableColumnOfMoreStat,
|
|
|
} from "../_pageOptions/table-put";
|
|
|
import { MutationType } from "@/store/modules/app/_type";
|
|
|
import {
|
|
|
getDeliveryStatList,
|
|
|
getDeliveryMoreStatList,
|
|
|
- getDesignList
|
|
|
+ getDesignList,
|
|
|
} from "@/api";
|
|
|
import usePagination from "@/hooks/usePagination";
|
|
|
|
|
@@ -99,7 +102,7 @@ import useAuthUser from "@/hooks/composable/useAuthUser";
|
|
|
|
|
|
const PutData = defineComponent({
|
|
|
components: {
|
|
|
- ToolBar
|
|
|
+ ToolBar,
|
|
|
},
|
|
|
setup() {
|
|
|
const { router, route, store } = useApp();
|
|
@@ -114,7 +117,7 @@ const PutData = defineComponent({
|
|
|
store.getters.selectTime.length > 0
|
|
|
? [
|
|
|
moment(store.getters.selectTime[0]),
|
|
|
- moment(store.getters.selectTime[1])
|
|
|
+ moment(store.getters.selectTime[1]),
|
|
|
]
|
|
|
: [moment().subtract(30, "d"), moment()]
|
|
|
),
|
|
@@ -129,14 +132,14 @@ const PutData = defineComponent({
|
|
|
drawermeta: {},
|
|
|
filterNumber: 7,
|
|
|
show: false,
|
|
|
- uids: ref<number[]>([])
|
|
|
+ uids: ref<number[]>([]),
|
|
|
});
|
|
|
if (route.query && route.query.official_name) {
|
|
|
state.defaultToolvalue = {
|
|
|
- official_name: route.query.official_name
|
|
|
+ official_name: route.query.official_name,
|
|
|
};
|
|
|
state.fields = {
|
|
|
- official_name: route.query.official_name
|
|
|
+ official_name: route.query.official_name,
|
|
|
};
|
|
|
}
|
|
|
const getList = (query: any) => {
|
|
@@ -187,7 +190,7 @@ const PutData = defineComponent({
|
|
|
title: item.desc,
|
|
|
dataIndex: item.name,
|
|
|
ellipsis: true,
|
|
|
- width: 120
|
|
|
+ width: 120,
|
|
|
};
|
|
|
if (whiteList.includes(item.name)) {
|
|
|
lolumnItem.fixed = "left";
|
|
@@ -201,9 +204,14 @@ const PutData = defineComponent({
|
|
|
ellipsis: true,
|
|
|
width: 120,
|
|
|
fixed: "right",
|
|
|
- slots: { customRender: "opertate" }
|
|
|
+ slots: { customRender: "opertate" },
|
|
|
};
|
|
|
columns.push(column);
|
|
|
+ columns.forEach((item) => {
|
|
|
+ if (item.title === "公众号") {
|
|
|
+ item.slots = { customRender: "gzh" };
|
|
|
+ }
|
|
|
+ });
|
|
|
state.columns = columns;
|
|
|
});
|
|
|
};
|
|
@@ -211,7 +219,7 @@ const PutData = defineComponent({
|
|
|
const { current, pageSize, total } = pagination;
|
|
|
let data = Object.assign(state.fields, {
|
|
|
page: current,
|
|
|
- day_num: state.filterNumber
|
|
|
+ day_num: state.filterNumber,
|
|
|
});
|
|
|
getList(data);
|
|
|
};
|
|
@@ -224,7 +232,7 @@ const PutData = defineComponent({
|
|
|
getList({
|
|
|
page: 1,
|
|
|
day_num: state.filterNumber,
|
|
|
- official_name: route.query?.official_name ?? ""
|
|
|
+ official_name: route.query?.official_name ?? "",
|
|
|
});
|
|
|
});
|
|
|
return {
|
|
@@ -235,7 +243,7 @@ const PutData = defineComponent({
|
|
|
meta,
|
|
|
handleTableChange,
|
|
|
changeNumber,
|
|
|
- changeTime
|
|
|
+ changeTime,
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -244,10 +252,10 @@ const PutData = defineComponent({
|
|
|
const { date, channel_id, book_id } = record;
|
|
|
router.push({
|
|
|
path: "/put/datas/ad-plan",
|
|
|
- query: { channel_id, begin_date: date, end_date: date, book_id }
|
|
|
+ query: { channel_id, begin_date: date, end_date: date, book_id },
|
|
|
});
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ },
|
|
|
});
|
|
|
|
|
|
export default PutData;
|