|
@@ -20,6 +20,7 @@
|
|
|
<!-- ------------- 检索参数 ------------- -->
|
|
|
<div class="c-title">检索参数</div>
|
|
|
<el-form ref="form" :model='p' @submit.native.prevent>
|
|
|
+<<<<<<< HEAD
|
|
|
<!-- <sa-item type="num" name="主键" v-model="p.id"></sa-item> -->
|
|
|
<sa-item type="text" name="标题" v-model="p.title"></sa-item>
|
|
|
<!-- 未识别类型:链接地址: p.url 请检查配置 -->
|
|
@@ -35,17 +36,19 @@
|
|
|
<sa-item type="text" name="创建者名称" v-model="p.createName"></sa-item>
|
|
|
<sa-item type="text" name="更新者id" v-model="p.updateBy"></sa-item>
|
|
|
<sa-item type="text" name="更新者名称" v-model="p.updateName"></sa-item> -->
|
|
|
+=======
|
|
|
+ <sa-item type="text" name="标题" v-model="p.title"></sa-item>
|
|
|
+>>>>>>> a082fcdfd1d171778f087c2f8149498ff709ce7a
|
|
|
<el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
|
|
|
+ <el-button type="info" icon="el-icon-refresh" @click="sa.f5()">重置</el-button>
|
|
|
</el-form>
|
|
|
<div class="fast-btn">
|
|
|
<el-button v-if="sa.isAuth('tb-port-news-add')" size="mini" type="primary" @click="add()">新增</el-button>
|
|
|
<el-button size="mini" type="success" @click="getBySelect()">查看</el-button>
|
|
|
- <el-button size="mini" type="info" @click="sa.f5()">重置</el-button>
|
|
|
</div>
|
|
|
<!-- ------------- 数据列表 ------------- -->
|
|
|
<el-table class="data-table" ref="data-table" :data="dataList" >
|
|
|
<sa-td type="selection"></sa-td>
|
|
|
- <sa-td name="主键" prop="id" type="num"></sa-td>
|
|
|
<sa-td name="标题" prop="title" ></sa-td>
|
|
|
<sa-td name="封面图片" prop="cover" type="img"></sa-td>
|
|
|
<sa-td name="链接地址" prop="url" type="link"></sa-td>
|
|
@@ -55,12 +58,6 @@
|
|
|
<sa-td name="发布状态" prop="isRelease" type="switch" :jv="{0: '未发布', 1: '发布'}" @change="s => updateIsRelease(s.row)"></sa-td>
|
|
|
<sa-td name="发布时间" prop="releaseTime" ></sa-td>
|
|
|
<sa-td name="状态" prop="status" type="switch" :jv="{0: '禁用', 1: '启用'}" @change="s => updateStatus(s.row)"></sa-td>
|
|
|
- <sa-td name="创建者id" prop="createBy" ></sa-td>
|
|
|
- <sa-td name="创建者名称" prop="createName" ></sa-td>
|
|
|
- <sa-td name="创建时间" prop="createTime" type="datetime"></sa-td>
|
|
|
- <sa-td name="更新者id" prop="updateBy" ></sa-td>
|
|
|
- <sa-td name="更新者名称" prop="updateName" ></sa-td>
|
|
|
- <sa-td name="更新时间" prop="updateTime" type="datetime"></sa-td>
|
|
|
<el-table-column label="操作" fixed="right" width="240px">
|
|
|
<template slot-scope="s">
|
|
|
<el-button class="c-btn" type="success" icon="el-icon-view" @click="get(s.row)">查看</el-button>
|
|
@@ -82,7 +79,7 @@
|
|
|
el: '.vue-box',
|
|
|
data: {
|
|
|
p: { // 查询参数
|
|
|
- id: '', // 主键
|
|
|
+
|
|
|
title: '', // 标题
|
|
|
url: '', // 链接地址
|
|
|
content: '', // 内容
|
|
@@ -91,10 +88,6 @@
|
|
|
isRelease: '', // 发布状态(0=未发布,1=发布)
|
|
|
releaseTime: '', // 发布时间
|
|
|
status: '', // 状态(0=禁用,1=启用)
|
|
|
- createBy: '', // 创建者id
|
|
|
- createName: '', // 创建者名称
|
|
|
- updateBy: '', // 更新者id
|
|
|
- updateName: '', // 更新者名称
|
|
|
pageNo: 1, // 当前页
|
|
|
pageSize: 10, // 页大小
|
|
|
sortType: 0 // 排序方式
|