Merge branch 'ly-branch'

This commit is contained in:
liuyuan
2025-01-02 15:47:41 +08:00
2 changed files with 6 additions and 3 deletions

View File

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

View File

@@ -33,6 +33,9 @@
</el-table-column>
<el-table-column prop="authorName" header-align="center" align="center" label="作者姓名" width="120">
</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">
<template slot-scope="scope">
<img v-if="scope.row.images != ''" :src="scope.row.images" width="50" height="80" class="tableImg" />