列表显示付费价格

This commit is contained in:
liuyuan
2025-01-02 15:45:39 +08:00
parent 514f26b3ad
commit 5ad43f13b7
2 changed files with 6 additions and 3 deletions

View File

@@ -462,9 +462,9 @@
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (valid) { if (valid) {
//价格逻辑 //价格逻辑
let abroadPrice = this.dataForm.abroadPrice; let abroadPrice = this.formatNumber(Number(this.dataForm.abroadPrice));
if(abroadPrice){ if(!abroadPrice&&abroadPrice!=0){
abroadPrice = this.formatNumber(Number(abroadPrice)); return
} }
this.$http({ this.$http({
url: this.$http.adornUrl(`/book/book/${!this.dataForm.id ? 'save' : 'update'}`), url: this.$http.adornUrl(`/book/book/${!this.dataForm.id ? 'save' : 'update'}`),

View File

@@ -33,6 +33,9 @@
</el-table-column> </el-table-column>
<el-table-column prop="authorName" header-align="center" align="center" label="作者姓名" width="120"> <el-table-column prop="authorName" header-align="center" align="center" label="作者姓名" width="120">
</el-table-column> </el-table-column>
<el-table-column prop="abroadPrice" header-align="center" align="center" label="付费价格" width="120">
<template slot-scope="scope">${{ scope.row.abroadPrice }}</template>
</el-table-column>
<el-table-column header-align="center" align="center" label="插图" width="100"> <el-table-column header-align="center" align="center" label="插图" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<img v-if="scope.row.images != ''" :src="scope.row.images" width="50" height="80" class="tableImg" /> <img v-if="scope.row.images != ''" :src="scope.row.images" width="50" height="80" class="tableImg" />