diff --git a/src/pages/activity/activity_index.vue b/src/pages/activity/activity_index.vue
index c845355..cdbe16a 100644
--- a/src/pages/activity/activity_index.vue
+++ b/src/pages/activity/activity_index.vue
@@ -56,9 +56,9 @@
报名详情
新增题目
编辑题目
- 查看调查
- 捐赠详情
- 付费详情
+ 问卷统计
+ 捐赠详情
+ 付费详情
编辑
删除
@@ -75,7 +75,7 @@
>
-
+
+
+
+
总参与人数1人
+
+
+
+
+ 第{{ index + 1 }}题
+ (单选题)
+ (多选题)
+ (问答题)
+ |
+ {{item.title}} |
+ 票数 |
+ 答题数:{{item.quantity}} |
+
+
+
+
+ {{d.name}} |
+ {{d.val}} |
+ {{d.num}} |
+
+
+ - |
+ {{d.option}} |
+
+
+
+
+
+
+
+
+
+
+
+ {{getType==3?'捐赠人':'付费姓名'}}
+ |
+ 金额 |
+ {{getType==3?'捐赠时间':'付费时间'}} |
+
+
+
+
+ {{item.nikename}} |
+ {{item.money}}元 |
+ {{item.createtime}} |
+
+
+
+
+
+
+
+
@@ -339,6 +400,15 @@ export default {
questionnaire: [],//问题列表
questionnaireId:0,
questionnaireUpdateMode:false,
+ QuestionnaireMode:false,
+ QuestionnaireModeId:0,
+ questionnaireDaAnList:[],
+ JuanModeList:[],
+ JuanMode:false,
+ JuanPage:1,
+ JuanTotal:0,
+ JuanId:0,
+ getType:3,
}
},
beforeDestroy() {
@@ -350,6 +420,57 @@ export default {
this.getList();
},
methods: {
+ openJuanMode(d){
+ this.JuanModeList=[];
+ this.JuanMode=true;
+ this.JuanTotal=0;
+ this.JuanPage=1;
+ this.JuanId=d.id;
+ this.getType=d.activity_type;
+ this.openJuanModeList();
+ },
+ openJuanModeList(){
+ this.$request
+ .post("/money_log/find", {
+ activity_id: this.JuanId,
+ page:this.JuanPage,
+ size:15
+ })
+ .then((res) => {
+ console.log(res);
+ if(res.code==1){
+ this.JuanModeList=res.data.ret;
+ this.JuanTotal=res.data.count;
+ }
+ })
+ .catch((e) => {
+ console.log(e);
+ });
+ },
+ onJuanChange(d){
+ this.JuanPage=d;
+ this.openJuanModeList();
+ },
+ openQuestionnaireMode(d){
+ this.QuestionnaireMode=true;
+ this.QuestionnaireModeId=d.id;
+ this.openQuestionnaireModeDo();
+ },
+ openQuestionnaireModeDo(d){
+ this.$request
+ .post("/questionnaire/questionnaireStatistics", {
+ activity_id: this.QuestionnaireModeId
+ })
+ .then((res) => {
+ console.log(res);
+ if(res.code==1){
+ this.questionnaireDaAnList=res.data;
+ }
+ })
+ .catch((e) => {
+ console.log(e);
+ });
+ },
//删除编辑题目里的单条选项
delUpdateOptionTop(index,item){
console.log(item);
@@ -486,18 +607,16 @@ export default {
},
onCurrentChangeInfo(d) {
this.info_pagination.page = d;
- this.openInfo();
+ this.openInfoDo();
},
onCurrentChange(d) {
this.pagination.page = d;
this.getList();
},
- openInfo(d) {
- this.infoMode = true;
- this.infoId = d.id;
+ openInfoDo(){
this.$request
- .post("/application/find", {
- application_id: this.infoId,
+ .post("/application/getList", {
+ activity_id: this.infoId,
page: this.info_pagination.page,
size: this.info_pagination.size
})
@@ -513,6 +632,14 @@ export default {
console.log(e);
});
},
+ openInfo(d) {
+ this.info_list=[];
+ this.info_pagination.page=1;
+ this.info_pagination.total=0;
+ this.infoMode = true;
+ this.infoId = d.id;
+ this.openInfoDo();
+ },
formatResponse(res) {
console.log(res);
this.addForm.activity_image = res.data.url;
@@ -651,6 +778,8 @@ export default {
this.infoMode = false;
this.questionnaireMode = false;
this.questionnaireUpdateMode=false;
+ this.QuestionnaireMode=false;
+ this.JuanMode=false;
},
}
}
@@ -659,5 +788,23 @@ export default {
::-webkit-scrollbar {
display: none;
}
+.layui-table-mend, .layui-table-tool, .layui-table-patch, .layui-table-click, .layui-table-hover, .layui-table-header, .table-total-wrapper, .layui-table-total td, .layui-table thead tr, .layui-table tbody tr:hover td, .layui-table.layui-table-even tr:nth-child(2n) td{background-color: #fafafa!important;}
+.layui-table td, .layui-table th {
+ position: relative;
+ padding: 10px;
+ height: 50px;
+ line-height: 20px;
+ font-size: 14px;
+ border-width: 1px;
+ border-style: solid;
+ border-color: #eee;
+}
+.layui-table {
+ width: 100%;
+ background-color: #fff;
+ color: #666;
+ table-layout: fixed;
+ border-collapse: collapse;
+}
diff --git a/src/pages/dashboard/base/components/MiddleChart.vue b/src/pages/dashboard/base/components/MiddleChart.vue
index b1f5a35..a3852cc 100644
--- a/src/pages/dashboard/base/components/MiddleChart.vue
+++ b/src/pages/dashboard/base/components/MiddleChart.vue
@@ -21,7 +21,7 @@
-
+
@@ -27,23 +27,23 @@
-
- 导出数据
-
+
+
+
-
+
-
+