|
|
@ -40,6 +40,16 @@ |
|
|
|
@keyup.enter.native="getList" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="文章标签" prop="label_name"> |
|
|
|
<el-input |
|
|
|
v-model="listQuery.label_name" |
|
|
|
placeholder="请输入文章标签" |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
style="width: 160px" |
|
|
|
@keyup.enter.native="getList" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="状态" prop="is_offline"> |
|
|
|
<el-select |
|
|
|
v-model="listQuery.is_offline" |
|
|
@ -60,6 +70,16 @@ |
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="getList">搜索</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-row :gutter="10" class="mb8"> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
icon="el-icon-plus" |
|
|
|
size="mini" |
|
|
|
@click="handleCreate" |
|
|
|
>新增</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-table |
|
|
|
v-loading="listLoading" |
|
|
|
:data="list" |
|
|
@ -278,7 +298,9 @@ export default { |
|
|
|
page: 1, |
|
|
|
limit: 20, |
|
|
|
is_offline: 2, |
|
|
|
title: '' |
|
|
|
title: '', |
|
|
|
label_name: '', |
|
|
|
category_id: undefined |
|
|
|
}, |
|
|
|
// accountRules: { |
|
|
|
// phone: [{ required: true, trigger: 'blur', validator: RulePhone }], |
|
|
@ -452,6 +474,7 @@ export default { |
|
|
|
}, |
|
|
|
handleCreate() { |
|
|
|
this.resetTemp() |
|
|
|
this.temp.category_id = this.listQuery.category_id |
|
|
|
this.dialogStatus = 'create' |
|
|
|
this.dialogFormVisible = true |
|
|
|
this.$nextTick(() => { |
|
|
|