修复打印预览里面 币种 默认不显示情况
This commit is contained in:
@@ -185,20 +185,26 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
loadCurrencyOptions()
|
||||||
|
// 设置默认币种
|
||||||
|
if (props.defaultCurrency) {
|
||||||
|
selectedCurrency.value = props.defaultCurrency
|
||||||
|
} else {
|
||||||
|
selectedCurrency.value = 'USD'
|
||||||
|
}
|
||||||
// 监听 visible 变化,加载币种选项
|
// 监听 visible 变化,加载币种选项
|
||||||
watch(
|
// watch(
|
||||||
() => props.visible,
|
// () => props.visible,
|
||||||
(newVisible) => {
|
// (newVisible) => {
|
||||||
if (newVisible) {
|
// if (newVisible) {
|
||||||
loadCurrencyOptions()
|
// loadCurrencyOptions()
|
||||||
// 设置默认币种
|
// // 设置默认币种
|
||||||
if (props.defaultCurrency) {
|
// if (props.defaultCurrency) {
|
||||||
selectedCurrency.value = props.defaultCurrency
|
// selectedCurrency.value = props.defaultCurrency
|
||||||
} else {
|
// } else {
|
||||||
selectedCurrency.value = 'USD'
|
// selectedCurrency.value = 'USD'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
)
|
// )
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -29,14 +29,14 @@
|
|||||||
>
|
>
|
||||||
<template #default>
|
<template #default>
|
||||||
<ElTableColumn label="编号" prop="id" width="100px" />
|
<ElTableColumn label="编号" prop="id" width="100px" />
|
||||||
<el-table-column prop="id" label="内容">
|
<el-table-column prop="id" label="内容" min-width="300px">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-html="scope.row.content" style="white-space: pre-line"></span>
|
<span v-html="scope.row.content" style="white-space: pre-line"></span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<ElTableColumn label="发布时间" prop="update_time" />
|
<ElTableColumn label="发布时间" prop="update_time" width="180px" />
|
||||||
<ElTableColumn label="备注" prop="remark" />
|
<ElTableColumn label="备注" prop="remark" />
|
||||||
<ElTableColumn fixed="right" label="操作" width="200px">
|
<ElTableColumn fixed="right" label="操作" width="120px">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<ElRow>
|
<ElRow>
|
||||||
<el-button
|
<el-button
|
||||||
|
|||||||
Reference in New Issue
Block a user