|
@ -46,6 +46,18 @@ const showDetail = (historyItem: Setting.History) => { |
|
|
visible.value = true |
|
|
visible.value = true |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
const printDetail = (historyItem: Setting.History) => { |
|
|
|
|
|
const detailParams = { |
|
|
|
|
|
className: 'DisinfectionLogsService', |
|
|
|
|
|
fnName: 'printRecord', |
|
|
|
|
|
params: { |
|
|
|
|
|
logName: historyItem.name, |
|
|
|
|
|
}, |
|
|
|
|
|
} |
|
|
|
|
|
syncSendCmd(detailParams).then(() => { |
|
|
|
|
|
visible.value = true |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
const onDelHistory = () => { |
|
|
const onDelHistory = () => { |
|
|
if (!selectedRecords.value.length) { |
|
|
if (!selectedRecords.value.length) { |
|
|
FtMessage.warning('请选择要删除的数据') |
|
|
FtMessage.warning('请选择要删除的数据') |
|
@ -115,12 +127,13 @@ const deleteBtnVisible = computed(() => { |
|
|
<el-table-column type="selection" width="55" /> |
|
|
<el-table-column type="selection" width="55" /> |
|
|
<el-table-column type="index" label="序号" width="80" /> |
|
|
<el-table-column type="index" label="序号" width="80" /> |
|
|
<el-table-column prop="name" label="消毒日期" /> |
|
|
<el-table-column prop="name" label="消毒日期" /> |
|
|
<el-table-column prop="detail" label="操作" width="100"> |
|
|
|
|
|
|
|
|
<el-table-column prop="detail" label="操作" width="100" header-align="center"> |
|
|
<template #default="scoped"> |
|
|
<template #default="scoped"> |
|
|
<div class="user-opera"> |
|
|
<div class="user-opera"> |
|
|
<el-button class="view-button" @click.stop="showDetail(scoped.row)"> |
|
|
<el-button class="view-button" @click.stop="showDetail(scoped.row)"> |
|
|
查看 |
|
|
查看 |
|
|
</el-button> |
|
|
</el-button> |
|
|
|
|
|
<el-button class="print-button" title="打印" @click.stop="printDetail(scoped.row)">打印</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
@ -135,6 +148,10 @@ const deleteBtnVisible = computed(() => { |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
|
|
|
.user-opera { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
} |
|
|
.main-content { |
|
|
.main-content { |
|
|
height: $main-container-height; |
|
|
height: $main-container-height; |
|
|
padding: 10px; |
|
|
padding: 10px; |
|
@ -147,7 +164,8 @@ const deleteBtnVisible = computed(() => { |
|
|
overflow: auto; |
|
|
overflow: auto; |
|
|
} |
|
|
} |
|
|
.view-button, |
|
|
.view-button, |
|
|
.delete-button { |
|
|
|
|
|
|
|
|
.delete-button, |
|
|
|
|
|
.print-button { |
|
|
border: none; |
|
|
border: none; |
|
|
padding: 4px 8px; |
|
|
padding: 4px 8px; |
|
|
border-radius: 3px; |
|
|
border-radius: 3px; |
|
@ -156,7 +174,10 @@ const deleteBtnVisible = computed(() => { |
|
|
transition: all 0.3s; |
|
|
transition: all 0.3s; |
|
|
font-family: serif; |
|
|
font-family: serif; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.print-button { |
|
|
|
|
|
background-color: #e6f0ff; |
|
|
|
|
|
color: #1890ff; |
|
|
|
|
|
} |
|
|
.view-button { |
|
|
.view-button { |
|
|
background-color: #e6f0ff; |
|
|
background-color: #e6f0ff; |
|
|
color: #1890ff; |
|
|
color: #1890ff; |
|
|