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

View File

@@ -69,6 +69,14 @@
</el-date-picker>
</div>
</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-button @click="pageIndex = 1;getDataList()">查询</el-button>
@@ -704,6 +712,10 @@
}
},
methods: {
changeFilterPresale(){
this.pageIndex = 1
this.getDataList()
},
seeBooks(arr) {
this.currBookLIst = arr
this.booksShow = true
@@ -954,6 +966,7 @@
"orderStatus": this.tabChange.tabActiveName,
"pageIndex": this.pageIndex,
"pageSize": this.pageSize,
"filterPresale": this.dataForm.filterPresale?1:0,
})
}).then(({
data