|
|
|
@ -4,12 +4,12 @@
|
|
|
|
|
* @Author: JC9527
|
|
|
|
|
* @Date: 2023-09-18 10:08:30
|
|
|
|
|
* @LastEditors: JC9527
|
|
|
|
|
* @LastEditTime: 2023-09-21 09:28:45
|
|
|
|
|
* @LastEditTime: 2023-09-22 15:00:11
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
|
<div class="plan-management">
|
|
|
|
|
<div class="plan-topBox">
|
|
|
|
|
<my-input @changeInput="changeInput"></my-input>
|
|
|
|
|
<my-input @changeInput="changeInput" placeholder="请输入活动内容" @changeValue="changeValue"></my-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="plan-bottomBox">
|
|
|
|
|
<div class="tables">
|
|
|
|
@ -29,31 +29,34 @@
|
|
|
|
|
width="70">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="content"
|
|
|
|
|
prop="name"
|
|
|
|
|
label="参与活动"
|
|
|
|
|
width="280"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<!-- <template slot-scope="scope">
|
|
|
|
|
<div class="activity">
|
|
|
|
|
<div>{{ scope.row.content.split(' ')[0] }}</div>
|
|
|
|
|
<div>{{ scope.row.content.split(' ')[1] }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</template> -->
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="person"
|
|
|
|
|
prop="uid"
|
|
|
|
|
label="参与人员"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
width="180"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="duration"
|
|
|
|
|
prop="activityTime"
|
|
|
|
|
label="服务活动时长"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>{{ scope.row.activityTime.split(' ')[0] }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="time"
|
|
|
|
|
prop="activityTime"
|
|
|
|
|
label="参与时间"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -67,7 +70,7 @@
|
|
|
|
|
<img src="@/assets/images/look.png" alt="">
|
|
|
|
|
<span>查看</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="score">评估评分:<span class="span" :class="scope.row.score < 60 ? 'pass':''">{{ scope.row.score }}</span></div>
|
|
|
|
|
<div class="score">评估评分:<span class="span" :class="Number(scope.row.points) < 60 ? 'pass':''">{{ scope.row.points }}</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -77,85 +80,41 @@
|
|
|
|
|
<my-pagination :total="total" @pagesChange="pagesChange"></my-pagination>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<my-dialog ref="conversion" width="45%">
|
|
|
|
|
<el-descriptions class="margin-top" :column="2" border>
|
|
|
|
|
<el-descriptions-item label="活动名称">{{ descriptions.name }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="活动时间">{{ descriptions.activityTime }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="活动举办方">{{ descriptions.publisher }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="积分">{{ descriptions.points }}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</my-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import myPagination from "@/views/components/myPagination/index.vue"
|
|
|
|
|
import myInput from "@/views/components/myInput/index.vue"
|
|
|
|
|
import myDialog from "@/views/components/dialog/index.vue"
|
|
|
|
|
export default {
|
|
|
|
|
components:{myPagination,myInput},
|
|
|
|
|
components:{myPagination,myInput,myDialog},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
tableData: [
|
|
|
|
|
{
|
|
|
|
|
content:'志愿活动协助指挥交通 我参加的志愿者活动,指挥交通',
|
|
|
|
|
person:'吴加好',
|
|
|
|
|
duration:'10',
|
|
|
|
|
time:'2023-08-14',
|
|
|
|
|
score:98,
|
|
|
|
|
},{
|
|
|
|
|
content:'志愿活动协助指挥交通 我参加的志愿者活动,指挥交通',
|
|
|
|
|
person:'吴加好',
|
|
|
|
|
duration:'10',
|
|
|
|
|
time:'2023-08-14',
|
|
|
|
|
score:98,
|
|
|
|
|
},{
|
|
|
|
|
content:'志愿活动协助指挥交通 我参加的志愿者活动,指挥交通',
|
|
|
|
|
person:'吴加好',
|
|
|
|
|
duration:'10',
|
|
|
|
|
time:'2023-08-14',
|
|
|
|
|
score:98,
|
|
|
|
|
},{
|
|
|
|
|
content:'志愿活动协助指挥交通 我参加的志愿者活动,指挥交通',
|
|
|
|
|
person:'吴加好',
|
|
|
|
|
duration:'10',
|
|
|
|
|
time:'2023-08-14',
|
|
|
|
|
score:98,
|
|
|
|
|
},{
|
|
|
|
|
content:'志愿活动协助指挥交通 我参加的志愿者活动,指挥交通',
|
|
|
|
|
person:'吴加好',
|
|
|
|
|
duration:'10',
|
|
|
|
|
time:'2023-08-14',
|
|
|
|
|
score:58,
|
|
|
|
|
},{
|
|
|
|
|
content:'志愿活动协助指挥交通 我参加的志愿者活动,指挥交通',
|
|
|
|
|
person:'吴加好',
|
|
|
|
|
duration:'10',
|
|
|
|
|
time:'2023-08-14',
|
|
|
|
|
score:98,
|
|
|
|
|
},{
|
|
|
|
|
content:'志愿活动协助指挥交通 我参加的志愿者活动,指挥交通',
|
|
|
|
|
person:'吴加好',
|
|
|
|
|
duration:'10',
|
|
|
|
|
time:'2023-08-14',
|
|
|
|
|
score:98,
|
|
|
|
|
},{
|
|
|
|
|
content:'志愿活动协助指挥交通 我参加的志愿者活动,指挥交通',
|
|
|
|
|
person:'吴加好',
|
|
|
|
|
duration:'10',
|
|
|
|
|
time:'2023-08-14',
|
|
|
|
|
score:98,
|
|
|
|
|
},{
|
|
|
|
|
content:'志愿活动协助指挥交通 我参加的志愿者活动,指挥交通',
|
|
|
|
|
person:'吴加好',
|
|
|
|
|
duration:'10',
|
|
|
|
|
time:'2023-08-14',
|
|
|
|
|
score:48,
|
|
|
|
|
},{
|
|
|
|
|
content:'志愿活动协助指挥交通 我参加的志愿者活动,指挥交通',
|
|
|
|
|
person:'吴加好',
|
|
|
|
|
duration:'10',
|
|
|
|
|
time:'2023-08-14',
|
|
|
|
|
score:98,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
input: '',
|
|
|
|
|
tableData: [],
|
|
|
|
|
input: {
|
|
|
|
|
name:''
|
|
|
|
|
},
|
|
|
|
|
pages:{
|
|
|
|
|
pageSize:10,
|
|
|
|
|
pageNum:1
|
|
|
|
|
},
|
|
|
|
|
total:0,
|
|
|
|
|
loading:false,
|
|
|
|
|
isClick:false,
|
|
|
|
|
descriptions:{
|
|
|
|
|
name:'',
|
|
|
|
|
activityTime:'',
|
|
|
|
|
publisher:'',
|
|
|
|
|
points:''
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods:{
|
|
|
|
@ -166,7 +125,25 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 输入框的值
|
|
|
|
|
changeInput(value){
|
|
|
|
|
this.input = value;
|
|
|
|
|
this.input.name = value;
|
|
|
|
|
this.isClick = true;
|
|
|
|
|
this.pages= {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
};
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
// 监听输入框是否清空
|
|
|
|
|
changeValue(value){
|
|
|
|
|
if(this.isClick && value == ''){
|
|
|
|
|
this.input.name = '';
|
|
|
|
|
this.pages= {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
};
|
|
|
|
|
this.getList();
|
|
|
|
|
this.isClick = false;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// tabs不同行给不同class
|
|
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
|
@ -183,9 +160,33 @@ export default {
|
|
|
|
|
return '';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 查看详情页
|
|
|
|
|
async look(row){
|
|
|
|
|
this.$refs.conversion.open();
|
|
|
|
|
let data = await this.$api.jifenhuoqu.selectall({id:row.id});
|
|
|
|
|
let { name,activityTime,publisher,points } = data.data.list[0];
|
|
|
|
|
this.descriptions = {
|
|
|
|
|
name,
|
|
|
|
|
activityTime,
|
|
|
|
|
publisher,
|
|
|
|
|
points
|
|
|
|
|
};
|
|
|
|
|
console.log(data)
|
|
|
|
|
},
|
|
|
|
|
// 积分获取列表
|
|
|
|
|
async getList(){
|
|
|
|
|
this.loading = true;
|
|
|
|
|
let obj = { ...this.pages,...this.input }
|
|
|
|
|
let data = await this.$api.jifenhuoqu.selectall(obj);
|
|
|
|
|
if(data.code == 200) {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.tableData = data.data.list;
|
|
|
|
|
this.total = data.data.total;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
async created() {
|
|
|
|
|
|
|
|
|
|
mounted(){
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|