Browse Source

专题加筛选

master
chenke 3 years ago
parent
commit
5fe4048354
  1. 33
      src/views/article/subject/article.vue
  2. 26
      src/views/article/subject/index.vue

33
src/views/article/subject/article.vue

@ -1,5 +1,37 @@
<template>
<div class="app-container">
<el-form
ref="queryForm"
:model="listQuery"
:inline="true"
label-width="68px"
>
<el-form-item label="专题" prop="special_id">
<el-select
v-model="listQuery.special_id"
placeholder="专题"
clearable
size="small"
style="width: 160px"
>
<el-option
v-for="dict in subject"
:key="dict.special_id"
:label="dict.title"
:value="dict.special_id"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="getList"
>搜索</el-button
>
</el-form-item>
</el-form>
<div class="filter-container">
<el-button
class="filter-item el-button el-button--primary el-button--mini"
@ -260,7 +292,6 @@ export default {
type: "warning",
})
.then(function () {
console.log("del11");
return delSubjectArticle({ article_id, special_id });
})
.then((response) => {

26
src/views/article/subject/index.vue

@ -1,5 +1,31 @@
<template>
<div class="app-container">
<el-form
ref="queryForm"
:model="listQuery"
:inline="true"
label-width="68px"
>
<el-form-item label="专题名称" prop="title">
<el-input
v-model="listQuery.title"
placeholder="请输入专题名称"
clearable
size="small"
style="width: 160px"
@keyup.enter.native="getList"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="getList"
>搜索</el-button
>
</el-form-item>
</el-form>
<div class="filter-container">
<el-button
class="filter-item el-button el-button--primary el-button--mini"

Loading…
Cancel
Save