|
|
|
|
@ -327,13 +327,45 @@
|
|
|
|
|
<el-button type="primary" @click="submitBatchOperate">确 定</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<!-- 查看用户积分列表 -->
|
|
|
|
|
<el-dialog title="打卡记录" :visible.sync="userClockLogVisible" width="90%" :before-close="cancelUserClockLogDialog">
|
|
|
|
|
<template>
|
|
|
|
|
<el-table :data="userClockLogQuery.userClockLogList" :stripe="true" style="width: 100%">
|
|
|
|
|
<el-table-column type="index" width="50" label="序号" />
|
|
|
|
|
<el-table-column prop="instrumentName" label="仪器名称" width="300px" />
|
|
|
|
|
<el-table-column prop="wxClockImgList" label="打卡图片" width="100" style="display: flex">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-for="(val, index) in scope.row.wxClockImgList" :key="index">
|
|
|
|
|
<el-image :src="val.clockImg" style="width: 60px;height: 80px" :preview-src-list="[val.clockImg]">
|
|
|
|
|
<div slot="placeholder" class="image-slot"><span class="dot"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-image>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="clockContent" label="打卡心得" width="300" />
|
|
|
|
|
<el-table-column prop="updateTime" label="打卡时间" width="200" />
|
|
|
|
|
</el-table>
|
|
|
|
|
</template>
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="userClockLogQuery.total > 0"
|
|
|
|
|
:total="userClockLogQuery.total"
|
|
|
|
|
:page.sync="userClockLogQuery.pageNum"
|
|
|
|
|
:limit.sync="userClockLogQuery.pageSize"
|
|
|
|
|
@pagination="getClockLogDetail"
|
|
|
|
|
/>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
listClockLog, getClockLog, delClockLog, addClockLog, updateClockLog,
|
|
|
|
|
allAddMiniProgramTag, allDelMiniProgramTag
|
|
|
|
|
allAddMiniProgramTag, allDelMiniProgramTag, detail
|
|
|
|
|
} from "@/api/system/clockLog";
|
|
|
|
|
import {listInstrument} from "@/api/system/instrument";
|
|
|
|
|
import {
|
|
|
|
|
@ -417,7 +449,16 @@ export default {
|
|
|
|
|
memberRegisterDate: null,
|
|
|
|
|
instrumentName: null,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 打卡记录详情列表
|
|
|
|
|
userClockLogVisible: false,
|
|
|
|
|
userClockLogQuery: {
|
|
|
|
|
total: 0,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
userClockLogList: null,
|
|
|
|
|
userIdList: null,
|
|
|
|
|
clockDateRange: null,
|
|
|
|
|
},
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
|
|
|
|
@ -559,8 +600,17 @@ export default {
|
|
|
|
|
this.queryParams.clockNumEnd = undefined;
|
|
|
|
|
},
|
|
|
|
|
viewClockDetail(row) {
|
|
|
|
|
console.log(row)
|
|
|
|
|
console.log(this.queryParams.clockDateRange)
|
|
|
|
|
this.userClockLogQuery.userIdList = row.userId;
|
|
|
|
|
this.userClockLogQuery.clockDateRange = this.queryParams.clockDateRange
|
|
|
|
|
this.getClockLogDetail();
|
|
|
|
|
// 打开详情列表
|
|
|
|
|
this.userClockLogVisible = true;
|
|
|
|
|
},
|
|
|
|
|
getClockLogDetail() {
|
|
|
|
|
detail(this.userClockLogQuery).then(response => {
|
|
|
|
|
this.userClockLogQuery.total = response.total;
|
|
|
|
|
this.userClockLogQuery.userClockLogList = response.rows;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 批量操作按钮,显示批量操作弹窗 */
|
|
|
|
|
batchOperate() {
|
|
|
|
|
@ -770,8 +820,16 @@ export default {
|
|
|
|
|
this.exportFieldList.memberRegisterDate = null;
|
|
|
|
|
this.exportFieldList.instrumentName = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
cancelUserClockLogDialog() {
|
|
|
|
|
this.userClockLogVisible = false
|
|
|
|
|
this.userClockLogQuery = {
|
|
|
|
|
total: 0,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
userClockLogList: null,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|