|
@@ -2,24 +2,10 @@
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
<el-form-item label="字典类型id(1.要闻咨询,2.政策法规,3.通知公告,4.政策解读)" prop="type">
|
|
|
- <el-select v-model="queryParams.type" placeholder="请选择字典类型id(1.要闻咨询,2.政策法规,3.通知公告,4.政策解读)" clearable filterable>
|
|
|
- <el-option
|
|
|
- v-for="dict in dict.type.${dictType}"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ <el-select v-model="queryParams.type" placeholder="请选择字典类型id(1.要闻咨询,2.政策法规,3.通知公告,4.政策解读)" clearable filterable/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="状态(0.草稿,1.下架,2.审核中,3.审核驳回,4.已发布,5.已上报)" prop="status">
|
|
|
- <el-select v-model="queryParams.status" placeholder="请选择状态(0.草稿,1.下架,2.审核中,3.审核驳回,4.已发布,5.已上报)" clearable filterable>
|
|
|
- <el-option
|
|
|
- v-for="dict in dict.type.${dictType}"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
- :value="dict.value"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
+ <el-select v-model="queryParams.status" placeholder="请选择状态(0.草稿,1.下架,2.审核中,3.审核驳回,4.已发布,5.已上报)" clearable filterable/>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
@@ -75,76 +61,20 @@
|
|
|
|
|
|
<el-table v-loading="loading" :data="NEWSList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="主键" align="center" prop="id">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.id"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="创建时间" align="center" prop="createTime">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.createTime"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="创建人" align="center" prop="createBy">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.createBy"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="修改时间" align="center" prop="updateTime">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.updateTime"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="修改人" align="center" prop="updateBy">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.updateBy"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="删除标志" align="center" prop="delFlag">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.delFlag"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="部门ID" align="center" prop="deptId">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.deptId"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="标题" align="center" prop="title">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.title"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="内容" align="center" prop="content">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.content"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="附件" align="center" prop="fileUrl">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.fileUrl"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="字典类型id(1.要闻咨询,2.政策法规,3.通知公告,4.政策解读)" align="center" prop="type">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.type"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="字典类型名称" align="center" prop="typeName">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.typeName"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="图片" align="center" prop="picture">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.picture"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="状态(0.草稿,1.下架,2.审核中,3.审核驳回,4.已发布,5.已上报)" align="center" prop="status">
|
|
|
- <template slot-scope="scope">
|
|
|
- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.status"/>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column label="主键" align="center" prop="id"/>
|
|
|
+ <el-table-column label="创建时间" align="center" prop="createTime"/>
|
|
|
+ <el-table-column label="创建人" align="center" prop="createBy"/>
|
|
|
+ <el-table-column label="修改时间" align="center" prop="updateTime"/>
|
|
|
+ <el-table-column label="修改人" align="center" prop="updateBy"/>
|
|
|
+ <el-table-column label="删除标志" align="center" prop="delFlag"/>
|
|
|
+ <el-table-column label="部门ID" align="center" prop="deptId"/>
|
|
|
+ <el-table-column label="标题" align="center" prop="title"/>
|
|
|
+ <el-table-column label="内容" align="center" prop="content"/>
|
|
|
+ <el-table-column label="附件" align="center" prop="fileUrl"/>
|
|
|
+ <el-table-column label="字典类型id(1.要闻咨询,2.政策法规,3.通知公告,4.政策解读)" align="center" prop="type"/>
|
|
|
+ <el-table-column label="字典类型名称" align="center" prop="typeName"/>
|
|
|
+ <el-table-column label="图片" align="center" prop="picture"/>
|
|
|
+ <el-table-column label="状态(0.草稿,1.下架,2.审核中,3.审核驳回,4.已发布,5.已上报)" align="center" prop="status"/>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -180,24 +110,9 @@
|
|
|
<editor v-model="form.content" :min-height="192"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="字典类型id(1.要闻咨询,2.政策法规,3.通知公告,4.政策解读)" prop="type">
|
|
|
- <el-select v-model="form.type" placeholder="请选择字典类型id(1.要闻咨询,2.政策法规,3.通知公告,4.政策解读)" filterable>
|
|
|
- <el-option
|
|
|
- v-for="dict in dict.type.${dictType}"
|
|
|
- :key="dict.value"
|
|
|
- :label="dict.label"
|
|
|
-:value="dict.value"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="状态(0.草稿,1.下架,2.审核中,3.审核驳回,4.已发布,5.已上报)">
|
|
|
- <el-radio-group v-model="form.status">
|
|
|
- <el-radio
|
|
|
- v-for="dict in dict.type.${dictType}"
|
|
|
- :key="dict.value"
|
|
|
-:label="dict.value"
|
|
|
- >{{dict.label}}</el-radio>
|
|
|
- </el-radio-group>
|
|
|
+ <el-select v-model="form.type" placeholder="请选择字典类型id(1.要闻咨询,2.政策法规,3.通知公告,4.政策解读)" filterable/>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="状态(0.草稿,1.下架,2.审核中,3.审核驳回,4.已发布,5.已上报)"/>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
@@ -208,7 +123,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listNEWS, getNEWS, delNEWS, addNEWS, updateNEWS } from "@/api/business/NEWS";
|
|
|
+import { listNEWS, getNEWS, delNEWS, addNEWS, updateNEWS } from "@/api/news/NEWS";
|
|
|
|
|
|
export default {
|
|
|
name: "NEWS",
|