列表显示付费价格
This commit is contained in:
@@ -462,9 +462,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'}`),
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user