From f0375e93a142f63ae03697f7ef47386e3e28b57b Mon Sep 17 00:00:00 2001
From: zx <604444282@qq.com>
Date: Thu, 23 Feb 2023 10:10:24 +0800
Subject: [PATCH] zx
---
src/views/HomePage/index.vue | 68 ++++++++++++++++---
src/views/ReviewManage/_transEffect/index.vue | 39 +++++++----
2 files changed, 83 insertions(+), 24 deletions(-)
diff --git a/src/views/HomePage/index.vue b/src/views/HomePage/index.vue
index e9d04a6..e52a4ae 100644
--- a/src/views/HomePage/index.vue
+++ b/src/views/HomePage/index.vue
@@ -132,16 +132,32 @@
-
-
- 本周
- 本月
- 全年
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 本周
+ 本月
+ 全年
+
+
+
+
+
+
+ 导出Excel
+
+
@@ -201,6 +217,8 @@ export default defineComponent({
dateCondition: 2
});
const playNumForm = reactive({
+ taskId: undefined,
+ userId: undefined,
dateCondition: 2,
beginTime: undefined,
endTime: undefined,
@@ -210,13 +228,16 @@ export default defineComponent({
const tableData = ref([]);
const selTime = ref([]);
const myChart = ref();
+ const userList = ref([]);
+ const taskList = ref([]);
const { proxy } = getCurrentInstance();
return {
form,playNumForm,proxy,playNumFormType,myChart,selTime,
- tableData,totalData
+ tableData,totalData,userList,taskList
}
},
mounted() {
+ this.getApi();
this.getTotal();
this.drawChart();
this.getRank();
@@ -225,6 +246,25 @@ export default defineComponent({
statusChange() {
this.drawChart();
},
+ getApi() {
+ let obj = {pageNum: 1, pageSize: 1000}
+ this.proxy.$post("/task/list", obj).then(res => {
+ if(res.code == 200) {
+ const data = res.data.records
+ this.taskList = data
+ } else {
+ this.$message.error(res.msg)
+ }
+ }).catch(() => {});
+ this.proxy.$post("/user/list", obj).then(res => {
+ if(res.code == 200) {
+ const data = res.data.records
+ this.userList = data
+ } else {
+ this.$message.error(res.msg)
+ }
+ }).catch(() => {});
+ },
getTotal() {
this.proxy.$post("/statistics/data1", {}).then(res => {
if(res.code == 200) {
@@ -314,6 +354,12 @@ export default defineComponent({
},
rankStatusChange() {
this.getRank()
+ },
+ toExcel() {
+ let date = new Date()
+ this.proxy.$download("/statistics/excel2", this.playNumForm, '播放量趋势'+date.toLocaleString()+'.xlsx').then(res => {
+ console.log(res);
+ }).catch(() => {});
}
}
})
diff --git a/src/views/ReviewManage/_transEffect/index.vue b/src/views/ReviewManage/_transEffect/index.vue
index 56d6306..db62273 100644
--- a/src/views/ReviewManage/_transEffect/index.vue
+++ b/src/views/ReviewManage/_transEffect/index.vue
@@ -67,7 +67,7 @@
:total="pagination.total"
/>
-
+
@@ -75,14 +75,6 @@
拒绝
-
@@ -105,7 +97,9 @@
{{transformValue}}
-
+
+
+
@@ -155,10 +149,14 @@ export default defineComponent({
const departmentList = ref([]);
const { proxy } = getCurrentInstance();
const reviewVisible = ref(false);
+ const reasonArr = ref([]);
+ const querySearch = (queryString, cb) => {
+ cb(reasonArr.value);
+ }
return {
form,reviewForm,pagination,proxy,platformType,transformValue,
- tableData,departmentList,selTime,
- statusFormatter,
+ tableData,departmentList,selTime,reasonArr,
+ statusFormatter,querySearch,
reviewVisible
}
},
@@ -179,6 +177,18 @@ export default defineComponent({
const data = res.data;
this.departmentList = data;
}).catch(() => {});
+ let o = {pageNum: 1,pageSize: 100};
+ this.proxy.$post("/commonWords/list", o).then(res => {
+ if(res.code == 200) {
+ let arr = [];
+ const data = res.data.records;
+ data.forEach(ele => {
+ let obj = {value: ele.title}
+ arr.push(obj);
+ })
+ this.reasonArr = arr;
+ }
+ }).catch(() => {});
},
getData() {
let obj = Object.assign(this.form,{pageNum: this.pagination.current,pageSize: this.pagination.pageSize})
@@ -277,7 +287,10 @@ export default defineComponent({
filename = '审核不通过列表.xlsx'
}
this.proxy.$download("/video/excel", obj, filename).then(() => {}).catch(() => {});
- }
+ },
+ reasonSelect(val) {
+
+ },
}
})