|
|
@ -104,6 +104,12 @@ |
|
|
|
></el-image> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button v-show="scope.row.shieldFlag != 1" type="text" size="small" @click="upShieldFlag(scope.row.id)">未屏蔽</el-button> |
|
|
|
<el-button type="text" size="small" v-show="scope.row.shieldFlag == 1" :disabled="true">已屏蔽</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-pagination |
|
|
|
:current-page="page" |
|
|
@ -145,7 +151,8 @@ export default { |
|
|
|
latitude: '', |
|
|
|
longitude: '', |
|
|
|
radius: 200, |
|
|
|
clockPic: [] |
|
|
|
clockPic: [], |
|
|
|
shieldFlag: '' |
|
|
|
}, |
|
|
|
previewImgList: [], |
|
|
|
isAble: false |
|
|
@ -357,7 +364,37 @@ export default { |
|
|
|
}, |
|
|
|
1000, |
|
|
|
{ leading: true, trailing: false } |
|
|
|
) |
|
|
|
), |
|
|
|
// 屏蔽打卡记录 |
|
|
|
upShieldFlag (id) { |
|
|
|
this.$confirm('此操作将永久屏蔽该文件, 是否继续?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.dataForm.shieldFlag = 1 |
|
|
|
this.dataForm.id = id |
|
|
|
this.$http['post']('/heart/actuserclocklog/updateShieldFlag', this.dataForm).then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
this.$message({ |
|
|
|
message: this.$t('prompt.success'), |
|
|
|
type: 'success', |
|
|
|
duration: 500, |
|
|
|
onClose: () => { |
|
|
|
this.$emit('refreshDataList') |
|
|
|
this.$parent.selectComponent = 'ActUserClockLog' |
|
|
|
this.$router.push({ |
|
|
|
path: '/heart-actinfo', |
|
|
|
query: { id: this.dataForm.actId } |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => {}) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|