This commit is contained in:
2024-12-06 17:20:17 +08:00
parent 18c441cacf
commit 35a4592a74
2 changed files with 20 additions and 7 deletions

View File

@@ -44,15 +44,15 @@
</component> </component>
<!-- 获取内容 --> <!-- 获取内容 -->
<p> <!-- <p>
<el-button @click="getContent()">获得内容</el-button> <el-button @click="getContent()">获得内容</el-button>
</p> </p> -->
<el-dialog title="内容" :visible.sync="dialogVisible" :append-to-body="true"> <!-- <el-dialog title="内容" :visible.sync="dialogVisible" :append-to-body="true">
{{ dataForm.otherContent }} {{ dataForm.otherContent }}
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogVisible = false"> </el-button> <el-button type="primary" @click="dialogVisible = false"> </el-button>
</span> </span>
</el-dialog> </el-dialog> -->
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="排序" prop="sort"> <el-form-item label="排序" prop="sort">
@@ -173,9 +173,9 @@ export default {
}) })
}, },
// 表单提交 // 表单提交
dataFormSubmit() { async dataFormSubmit() {
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate(async(valid) => {
this.getContent() await this.getContent()
if (valid) { if (valid) {
this.$http({ this.$http({
url: this.$http.adornUrl(`/book/bookchaptercontent/${!this.dataForm.id ? 'save' : 'update'}`), url: this.$http.adornUrl(`/book/bookchaptercontent/${!this.dataForm.id ? 'save' : 'update'}`),

View File

@@ -69,6 +69,14 @@
</el-date-picker> </el-date-picker>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item>
<div class="block">
<el-checkbox size="mini"
align="right" v-model="dataForm.filterPresale"> 过滤预售书
</el-checkBox>
</div>
</el-form-item>
<el-form-item> <el-form-item>
<el-button @click="pageIndex = 1;getDataList()">查询</el-button> <el-button @click="pageIndex = 1;getDataList()">查询</el-button>
@@ -704,6 +712,10 @@
} }
}, },
methods: { methods: {
changeFilterPresale(){
this.pageIndex = 1
this.getDataList()
},
seeBooks(arr) { seeBooks(arr) {
this.currBookLIst = arr this.currBookLIst = arr
this.booksShow = true this.booksShow = true
@@ -954,6 +966,7 @@
"orderStatus": this.tabChange.tabActiveName, "orderStatus": this.tabChange.tabActiveName,
"pageIndex": this.pageIndex, "pageIndex": this.pageIndex,
"pageSize": this.pageSize, "pageSize": this.pageSize,
"filterPresale": this.dataForm.filterPresale?1:0,
}) })
}).then(({ }).then(({
data data