代码优化
This commit is contained in:
parent
f20f9a5a8b
commit
cb7b8d7ad4
@ -5,30 +5,30 @@
|
||||
<div class="container">
|
||||
<el-form inline size="small" label-width="110px">
|
||||
<el-form-item label="审核状态">
|
||||
<el-select v-model="tableFrom.status" placeholder="请选择" class="filter-item selWidth" clearable @change="getList(1)">
|
||||
<el-select v-model="tableFrom.status" placeholder="请选择" class="filter-item selWidth" clearable @change="getList()">
|
||||
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="分类名称:" style="display: inline-block;">
|
||||
<el-select v-model="tableFrom.category_id" clearable filterable placeholder="请选择" class="selWidth" @change="getList(1)">
|
||||
<el-select v-model="tableFrom.category_id" clearable filterable placeholder="请选择" class="selWidth" @change="getList()">
|
||||
<el-option v-for="item in cateSelect" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="是否显示">
|
||||
<el-select v-model="tableFrom.is_show" placeholder="请选择" class="filter-item selWidth" clearable @change="getList(1)">
|
||||
<el-select v-model="tableFrom.is_show" placeholder="请选择" class="filter-item selWidth" clearable @change="getList()">
|
||||
<el-option label="显示" value="1" />
|
||||
<el-option label="不显示" value="0" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="发布者:">
|
||||
<el-input v-model="tableFrom.username" @keyup.enter.native="getList(1)" placeholder="请输入文章作者" class="selWidth">
|
||||
<el-button slot="append" icon="el-icon-search" class="el-button-solt" @click="getList(1)" />
|
||||
<el-input v-model="tableFrom.username" @keyup.enter.native="getList()" placeholder="请输入文章作者" class="selWidth">
|
||||
<el-button slot="append" icon="el-icon-search" class="el-button-solt" @click="getList()" />
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="关键字:">
|
||||
<el-input v-model="tableFrom.keyword" @keyup.enter.native="getList(1)" placeholder="请输入文章标题" class="selWidth">
|
||||
<el-button slot="append" icon="el-icon-search" class="el-button-solt" @click="getList(1)" />
|
||||
<el-input v-model="tableFrom.keyword" @keyup.enter.native="getList()" placeholder="请输入文章标题" class="selWidth">
|
||||
<el-button slot="append" icon="el-icon-search" class="el-button-solt" @click="getList()" />
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
|
||||
@ -215,7 +215,7 @@ export default {
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.getList(1)
|
||||
this.getList()
|
||||
|
||||
|
||||
|
||||
@ -254,6 +254,7 @@ export default {
|
||||
this.dialogVisible = false
|
||||
this.ruleForm.float_rate = ''
|
||||
this.formData = res.data
|
||||
this.getList()
|
||||
}).catch(({ message }) => {
|
||||
this.$message.error(message)
|
||||
})
|
||||
@ -283,6 +284,7 @@ export default {
|
||||
resaleDetail(id).then((res) => {
|
||||
|
||||
this.formData = res.data
|
||||
this.getList()
|
||||
}).catch(({ message }) => {
|
||||
this.$message.error(message)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user