咨询管理
This commit is contained in:
parent
d97af31c58
commit
7ae7f9df44
@ -20,7 +20,7 @@ export function getCategory(id) {
|
|||||||
// 新增资讯分类
|
// 新增资讯分类
|
||||||
export function addCategory(data) {
|
export function addCategory(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/manage/category',
|
url: '/manage/category/add',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@ -29,7 +29,7 @@ export function addCategory(data) {
|
|||||||
// 修改资讯分类
|
// 修改资讯分类
|
||||||
export function updateCategory(data) {
|
export function updateCategory(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/manage/category',
|
url: '/manage/category/edit',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
|
|||||||
@ -20,7 +20,7 @@ export function getInfo(id) {
|
|||||||
// 新增资讯信息
|
// 新增资讯信息
|
||||||
export function addInfo(data) {
|
export function addInfo(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/manage/info',
|
url: '/manage/info/add',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@ -29,7 +29,7 @@ export function addInfo(data) {
|
|||||||
// 修改资讯信息
|
// 修改资讯信息
|
||||||
export function updateInfo(data) {
|
export function updateInfo(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/manage/info',
|
url: '/manage/info/edit',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
|
|||||||
@ -150,7 +150,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="资讯分类类型"
|
label="资讯分类类型"
|
||||||
align="center"
|
align="center"
|
||||||
prop="infoCatrgoryType"
|
prop="infoCategoryType"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="资讯分类排序"
|
label="资讯分类排序"
|
||||||
@ -204,7 +204,7 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 添加或修改资讯分类对话框 -->
|
<!-- 添加或修改资讯分类对话框 -->
|
||||||
<el-dialog :title="title" :visible.sync="addopen" width="1100px" append-to-body>
|
<el-dialog :title="title" :visible.sync="addopen" width="750px" append-to-body>
|
||||||
<el-form
|
<el-form
|
||||||
ref="form"
|
ref="form"
|
||||||
:model="form"
|
:model="form"
|
||||||
@ -213,14 +213,14 @@
|
|||||||
:inline="true"
|
:inline="true"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-for="(item, index) in form.infoCategory"
|
v-for="(item, index) in form.infoCategoryList"
|
||||||
:key="index"
|
:key="index"
|
||||||
style="margin-top: 20px; border-bottom: 1px solid #f3f3f3"
|
style="margin-top: 20px; border-bottom: 1px solid #f3f3f3"
|
||||||
>
|
>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="资讯分类名称"
|
label="资讯分类名称"
|
||||||
:rules="rules.infoCategory.infoCategoryName"
|
:rules="rules.infoCategoryList.infoCategoryName"
|
||||||
:prop="`infoCategory.${index}.infoCategoryName`"
|
:prop="`infoCategoryList.${index}.infoCategoryName`"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
maxlength="100"
|
maxlength="100"
|
||||||
@ -231,8 +231,8 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="资讯分类排序"
|
label="资讯分类排序"
|
||||||
:rules="rules.infoCategory.infoCategorySort"
|
:rules="rules.infoCategoryList.infoCategorySort"
|
||||||
:prop="`infoCategory.${index}.infoCategorySort`"
|
:prop="`infoCategoryList.${index}.infoCategorySort`"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model.number="item.infoCategorySort"
|
v-model.number="item.infoCategorySort"
|
||||||
@ -242,24 +242,7 @@
|
|||||||
placeholder="请输入资讯分类排序"
|
placeholder="请输入资讯分类排序"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item
|
|
||||||
label="资讯分类类型"
|
|
||||||
:rules="rules.infoCategory.infoCatrgoryType"
|
|
||||||
:prop="`infoCategory.${index}.infoCatrgoryType`"
|
|
||||||
>
|
|
||||||
<el-select
|
|
||||||
v-model="item.infoCatrgoryType"
|
|
||||||
placeholder="请选择"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in options"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
>
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item> -->
|
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
circle
|
circle
|
||||||
@ -279,39 +262,6 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
<!-- <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
||||||
<el-form-item label="资讯分类编码" prop="infoCategoryCode">
|
|
||||||
<el-input v-model="form.infoCategoryCode" placeholder="请输入资讯分类编码" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯分类名称" prop="infoCategoryName">
|
|
||||||
<el-input v-model="form.infoCategoryName" placeholder="请输入资讯分类名称" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯分类排序" prop="infoCategorySort">
|
|
||||||
<el-input v-model="form.infoCategorySort" placeholder="请输入资讯分类排序" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯创建人" prop="infoCategoryCreator">
|
|
||||||
<el-input v-model="form.infoCategoryCreator" placeholder="请输入资讯创建人" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯创建时间" prop="infoCategoryCreateTime">
|
|
||||||
<el-date-picker clearable
|
|
||||||
v-model="form.infoCategoryCreateTime"
|
|
||||||
type="date"
|
|
||||||
value-format="yyyy-MM-dd"
|
|
||||||
placeholder="请选择资讯创建时间">
|
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="修改人" prop="infoCategoryReviser">
|
|
||||||
<el-input v-model="form.infoCategoryReviser" placeholder="请输入修改人" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="修改时间" prop="infoCategoryModifyTime">
|
|
||||||
<el-date-picker clearable
|
|
||||||
v-model="form.infoCategoryModifyTime"
|
|
||||||
type="date"
|
|
||||||
value-format="yyyy-MM-dd"
|
|
||||||
placeholder="请选择修改时间">
|
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form> -->
|
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
<el-button @click="cancel">取 消</el-button>
|
<el-button @click="cancel">取 消</el-button>
|
||||||
@ -338,21 +288,7 @@
|
|||||||
maxlength="5"
|
maxlength="5"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="资讯分类类型" prop="infoCatrgoryType">
|
|
||||||
<el-select
|
|
||||||
v-model="form.infoCatrgoryType"
|
|
||||||
placeholder="请选择"
|
|
||||||
style="width: 250px"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in options"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"
|
|
||||||
>
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
@ -393,7 +329,6 @@ export default {
|
|||||||
total: 0,
|
total: 0,
|
||||||
// 资讯分类表格数据
|
// 资讯分类表格数据
|
||||||
categoryList: [],
|
categoryList: [],
|
||||||
infoCategory: [],
|
|
||||||
// 弹出层标题
|
// 弹出层标题
|
||||||
title: "",
|
title: "",
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
@ -413,10 +348,13 @@ export default {
|
|||||||
infoCategoryModifyTime: null
|
infoCategoryModifyTime: null
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {
|
||||||
|
infoCategoryList: [],
|
||||||
|
|
||||||
|
},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
infoCategory: {
|
infoCategoryList: {
|
||||||
infoCategoryName: [
|
infoCategoryName: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
@ -487,7 +425,7 @@ export default {
|
|||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
this.form = {
|
this.form = {
|
||||||
infoCategory: [
|
infoCategoryList: [
|
||||||
{
|
{
|
||||||
|
|
||||||
infoCategoryName: null,
|
infoCategoryName: null,
|
||||||
@ -534,7 +472,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//删除deldisease
|
//删除deldisease
|
||||||
deldisease(index) {
|
deldisease(index) {
|
||||||
this.form.infoCategory.splice(index, 1);
|
this.form.infoCategoryList.splice(index, 1);
|
||||||
},
|
},
|
||||||
adddisease() {
|
adddisease() {
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -542,10 +480,10 @@ export default {
|
|||||||
// infoCatrgoryType: "",
|
// infoCatrgoryType: "",
|
||||||
infoCategorySort: "",
|
infoCategorySort: "",
|
||||||
};
|
};
|
||||||
if (this.form.infoCategory.length == 5) {
|
if (this.form.infoCategoryList.length == 5) {
|
||||||
this.$message.error("最多只能5条");
|
this.$message.error("最多只能5条");
|
||||||
} else {
|
} else {
|
||||||
this.form.infoCategory.push(obj);
|
this.form.infoCategoryList.push(obj);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
<el-form-item label="资讯分类" prop="infoCategoryId">
|
<el-form-item label="资讯分类" prop="infoCategoryId">
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type=""
|
||||||
v-if="queryParams.infoCategoryName == '请选择资讯分类'"
|
v-if="infoCategoryName == '请选择资讯分类'"
|
||||||
@click="clickitem()"
|
@click="clickitem()"
|
||||||
style="
|
style="
|
||||||
width: 250px;
|
width: 250px;
|
||||||
@ -30,7 +30,7 @@
|
|||||||
color: #c0c4cc;
|
color: #c0c4cc;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
"
|
"
|
||||||
>{{ queryParams.infoCategoryName }}</el-button
|
>{{ infoCategoryName }}</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
@click="clickitem()"
|
@click="clickitem()"
|
||||||
@ -43,7 +43,7 @@
|
|||||||
padding-left: -10px;
|
padding-left: -10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
"
|
"
|
||||||
>{{ queryParams.infoCategoryName }}</el-button
|
>{{ infoCategoryName }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- </el-form-item> -->
|
<!-- </el-form-item> -->
|
||||||
@ -56,126 +56,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<!-- <el-form-item label="资讯所属分类id" prop="infoCategoryId">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.infoCategoryId"
|
|
||||||
placeholder="请输入资讯所属分类id"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯标题" prop="infoTitle">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.infoTitle"
|
|
||||||
placeholder="请输入资讯标题"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯编码" prop="infoCode">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.infoCode"
|
|
||||||
placeholder="请输入资讯编码"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="咨询点击次数" prop="infoClickCount">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.infoClickCount"
|
|
||||||
placeholder="请输入咨询点击次数"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯跳转路径" prop="infoJumpLink">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.infoJumpLink"
|
|
||||||
placeholder="请输入资讯跳转路径"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯来源" prop="infoSource">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.infoSource"
|
|
||||||
placeholder="请输入资讯来源"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯缩略图地址" prop="infoMainThumbnailUrl">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.infoMainThumbnailUrl"
|
|
||||||
placeholder="请输入资讯缩略图地址"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯负缩略图1地址" prop="infoNegativeOneThumbnailUrl">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.infoNegativeOneThumbnailUrl"
|
|
||||||
placeholder="请输入资讯负缩略图1地址"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯负缩略图2地址" prop="infoNegativeTwoThumbnailUrl">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.infoNegativeTwoThumbnailUrl"
|
|
||||||
placeholder="请输入资讯负缩略图2地址"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯大图地址" prop="infoLargePictureUrl">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.infoLargePictureUrl"
|
|
||||||
placeholder="请输入资讯大图地址"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯排序" prop="infoSort">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.infoSort"
|
|
||||||
placeholder="请输入资讯排序"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯创建人" prop="infoCreator">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.infoCreator"
|
|
||||||
placeholder="请输入资讯创建人"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯创建时间" prop="infoCreateTime">
|
|
||||||
<el-date-picker clearable
|
|
||||||
v-model="queryParams.infoCreateTime"
|
|
||||||
type="date"
|
|
||||||
value-format="yyyy-MM-dd"
|
|
||||||
placeholder="请选择资讯创建时间">
|
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯修改人" prop="infoReviser">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.infoReviser"
|
|
||||||
placeholder="请输入资讯修改人"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯修改时间" prop="infoModifyTime">
|
|
||||||
<el-date-picker clearable
|
|
||||||
v-model="queryParams.infoModifyTime"
|
|
||||||
type="date"
|
|
||||||
value-format="yyyy-MM-dd"
|
|
||||||
placeholder="请选择资讯修改时间">
|
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item> -->
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -251,28 +132,10 @@
|
|||||||
<!-- <el-table-column label="主键id" align="center" prop="id" /> -->
|
<!-- <el-table-column label="主键id" align="center" prop="id" /> -->
|
||||||
<el-table-column label="资讯标题" align="center" prop="infoTitle" />
|
<el-table-column label="资讯标题" align="center" prop="infoTitle" />
|
||||||
<el-table-column label="资讯编码" align="center" prop="infoCode" />
|
<el-table-column label="资讯编码" align="center" prop="infoCode" />
|
||||||
<el-table-column label="资讯分类" align="center" prop="infoCategoryId" />
|
<el-table-column label="资讯分类" align="center" prop="infoCategoryName" />
|
||||||
<!-- <el-table-column label="资讯图文内容,富文本" align="center" prop="infoContent" />
|
|
||||||
<el-table-column label="咨询点击次数" align="center" prop="infoClickCount" />
|
|
||||||
<el-table-column label="资讯跳转路径" align="center" prop="infoJumpLink" />
|
|
||||||
<el-table-column label="资讯来源" align="center" prop="infoSource" />
|
|
||||||
<el-table-column label="资讯缩略图地址" align="center" prop="infoMainThumbnailUrl" />
|
|
||||||
<el-table-column label="资讯负缩略图1地址" align="center" prop="infoNegativeOneThumbnailUrl" />
|
|
||||||
<el-table-column label="资讯负缩略图2地址" align="center" prop="infoNegativeTwoThumbnailUrl" />
|
|
||||||
<el-table-column label="资讯大图地址" align="center" prop="infoLargePictureUrl" /> -->
|
|
||||||
<el-table-column label="资讯排序" align="center" prop="infoSort" />
|
<el-table-column label="资讯排序" align="center" prop="infoSort" />
|
||||||
<!-- <el-table-column label="资讯创建人" align="center" prop="infoCreator" />
|
|
||||||
<el-table-column label="资讯创建时间" align="center" prop="infoCreateTime" width="180">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ parseTime(scope.row.infoCreateTime, '{y}-{m}-{d}') }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="资讯修改人" align="center" prop="infoReviser" />
|
|
||||||
<el-table-column label="资讯修改时间" align="center" prop="infoModifyTime" width="180">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{ parseTime(scope.row.infoModifyTime, '{y}-{m}-{d}') }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column> -->
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
@ -308,73 +171,6 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 添加或修改资讯信息对话框 -->
|
<!-- 添加或修改资讯信息对话框 -->
|
||||||
<!-- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
||||||
<el-form-item label="资讯所属分类id" prop="infoCategoryId">
|
|
||||||
<el-input v-model="form.infoCategoryId" placeholder="请输入资讯所属分类id" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯标题" prop="infoTitle">
|
|
||||||
<el-input v-model="form.infoTitle" placeholder="请输入资讯标题" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯编码" prop="infoCode">
|
|
||||||
<el-input v-model="form.infoCode" placeholder="请输入资讯编码" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯图文内容,富文本">
|
|
||||||
<editor v-model="form.infoContent" :min-height="192"/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="咨询点击次数" prop="infoClickCount">
|
|
||||||
<el-input v-model="form.infoClickCount" placeholder="请输入咨询点击次数" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯跳转路径" prop="infoJumpLink">
|
|
||||||
<el-input v-model="form.infoJumpLink" placeholder="请输入资讯跳转路径" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯来源" prop="infoSource">
|
|
||||||
<el-input v-model="form.infoSource" placeholder="请输入资讯来源" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯缩略图地址" prop="infoMainThumbnailUrl">
|
|
||||||
<el-input v-model="form.infoMainThumbnailUrl" placeholder="请输入资讯缩略图地址" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯负缩略图1地址" prop="infoNegativeOneThumbnailUrl">
|
|
||||||
<el-input v-model="form.infoNegativeOneThumbnailUrl" placeholder="请输入资讯负缩略图1地址" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯负缩略图2地址" prop="infoNegativeTwoThumbnailUrl">
|
|
||||||
<el-input v-model="form.infoNegativeTwoThumbnailUrl" placeholder="请输入资讯负缩略图2地址" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯大图地址" prop="infoLargePictureUrl">
|
|
||||||
<el-input v-model="form.infoLargePictureUrl" placeholder="请输入资讯大图地址" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯排序" prop="infoSort">
|
|
||||||
<el-input v-model="form.infoSort" placeholder="请输入资讯排序" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯创建人" prop="infoCreator">
|
|
||||||
<el-input v-model="form.infoCreator" placeholder="请输入资讯创建人" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯创建时间" prop="infoCreateTime">
|
|
||||||
<el-date-picker clearable
|
|
||||||
v-model="form.infoCreateTime"
|
|
||||||
type="date"
|
|
||||||
value-format="yyyy-MM-dd"
|
|
||||||
placeholder="请选择资讯创建时间">
|
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯修改人" prop="infoReviser">
|
|
||||||
<el-input v-model="form.infoReviser" placeholder="请输入资讯修改人" />
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="资讯修改时间" prop="infoModifyTime">
|
|
||||||
<el-date-picker clearable
|
|
||||||
v-model="form.infoModifyTime"
|
|
||||||
type="date"
|
|
||||||
value-format="yyyy-MM-dd"
|
|
||||||
placeholder="请选择资讯修改时间">
|
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
|
||||||
</el-form>
|
|
||||||
<div slot="footer" class="dialog-footer">
|
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
||||||
<el-button @click="cancel">取 消</el-button>
|
|
||||||
</div>
|
|
||||||
</el-dialog> -->
|
|
||||||
|
|
||||||
<el-dialog :title="title" :visible.sync="open" width="900px" append-to-body>
|
<el-dialog :title="title" :visible.sync="open" width="900px" append-to-body>
|
||||||
<el-form
|
<el-form
|
||||||
ref="form"
|
ref="form"
|
||||||
@ -390,7 +186,7 @@
|
|||||||
placeholder="请输入资讯标题"
|
placeholder="请输入资讯标题"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="资讯分类" prop="infoCategoryName">
|
<el-form-item label="资讯分类" prop="infoCategoryId">
|
||||||
<el-button
|
<el-button
|
||||||
type=""
|
type=""
|
||||||
v-if="form.infoCategoryName == '请选择资讯分类'"
|
v-if="form.infoCategoryName == '请选择资讯分类'"
|
||||||
@ -419,11 +215,11 @@
|
|||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="资讯图标" prop="infoMainThumbnailUrl">
|
<el-form-item label="资讯图标" prop="infoLargePictureUrl">
|
||||||
<stationAcatar
|
<stationAcatar
|
||||||
style="width: 208px"
|
style="width: 208px"
|
||||||
@imgUrl="imgUrl"
|
@imgUrl="imgUrl"
|
||||||
:img="form.infoMainThumbnailUrl"
|
:img="form.infoLargePictureUrl"
|
||||||
:type="'infoMainThumbnailUrl'"
|
:type="'infoMainThumbnailUrl'"
|
||||||
/>
|
/>
|
||||||
<!-- <el-input v-model="form.leadThumbnailUrl" placeholder="请输入资讯主缩略图地址" /> -->
|
<!-- <el-input v-model="form.leadThumbnailUrl" placeholder="请输入资讯主缩略图地址" /> -->
|
||||||
@ -438,14 +234,14 @@
|
|||||||
maxLength="5"
|
maxLength="5"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="资讯图文内容" prop="content">
|
<el-form-item label="资讯图文内容" prop="infoContent">
|
||||||
<editor
|
<editor
|
||||||
@imgs="imgs"
|
@imgs="imgs"
|
||||||
maxlength="300"
|
maxlength="300"
|
||||||
:min-height="102"
|
:min-height="102"
|
||||||
placeholder="请输入资讯图文内容"
|
placeholder="请输入资讯图文内容"
|
||||||
style="width: 80%; margin-left: 18%; margin-top: -5%"
|
style="width: 80%; margin-left: 18%; margin-top: -5%"
|
||||||
v-model="form.content"
|
v-model="form.infoContent"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -465,7 +261,6 @@
|
|||||||
<el-form
|
<el-form
|
||||||
ref="queryForm"
|
ref="queryForm"
|
||||||
:model="informationqueryParams"
|
:model="informationqueryParams"
|
||||||
:rules="rules"
|
|
||||||
label-width="80px"
|
label-width="80px"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
>
|
>
|
||||||
@ -482,7 +277,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="资讯分类名称"
|
label="资讯分类名称"
|
||||||
prop="infoCategoryName"
|
|
||||||
label-width="120"
|
label-width="120"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
@ -518,7 +313,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
style="width: 15px; height: 15px"
|
style="width: 15px; height: 15px"
|
||||||
v-if="form.informationCategoryId == scope.row.id"
|
v-if="form.infoCategoryId == scope.row.id"
|
||||||
circle
|
circle
|
||||||
@click="nurseclick(scope.row)"
|
@click="nurseclick(scope.row)"
|
||||||
></el-button>
|
></el-button>
|
||||||
@ -584,7 +379,6 @@
|
|||||||
<el-form
|
<el-form
|
||||||
ref="queryForm"
|
ref="queryForm"
|
||||||
:model="informationqueryParams"
|
:model="informationqueryParams"
|
||||||
:rules="rules"
|
|
||||||
label-width="80px"
|
label-width="80px"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
>
|
>
|
||||||
@ -601,7 +395,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="资讯分类名称"
|
label="资讯分类名称"
|
||||||
prop="infoCategoryName"
|
|
||||||
label-width="120"
|
label-width="120"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
@ -637,7 +430,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
style="width: 15px; height: 15px"
|
style="width: 15px; height: 15px"
|
||||||
v-if="queryParams.informationCategoryId == scope.row.id"
|
v-if="queryParams.infoCategoryId == scope.row.id"
|
||||||
circle
|
circle
|
||||||
@click="nurseclickzx(scope.row)"
|
@click="nurseclickzx(scope.row)"
|
||||||
></el-button>
|
></el-button>
|
||||||
@ -694,12 +487,13 @@ export default {
|
|||||||
innerVisible: false,
|
innerVisible: false,
|
||||||
innerVisiblezx: false,
|
innerVisiblezx: false,
|
||||||
imgs:'',
|
imgs:'',
|
||||||
|
infoCategoryName:'请选择资讯分类',
|
||||||
informationqueryParams: {
|
informationqueryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
infoCategoryCode: "",
|
infoCategoryCode: "",
|
||||||
infoCategoryName: "",
|
infoCategoryName: "",
|
||||||
informationCategoryId: "",
|
infoCategoryId: "",
|
||||||
},
|
},
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
@ -725,6 +519,7 @@ export default {
|
|||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
|
infoCategoryName:"",
|
||||||
|
|
||||||
infoCategoryId: null,
|
infoCategoryId: null,
|
||||||
infoTitle: null,
|
infoTitle: null,
|
||||||
@ -733,9 +528,7 @@ export default {
|
|||||||
infoClickCount: null,
|
infoClickCount: null,
|
||||||
infoJumpLink: null,
|
infoJumpLink: null,
|
||||||
infoSource: null,
|
infoSource: null,
|
||||||
infoMainThumbnailUrl: null,
|
|
||||||
infoNegativeOneThumbnailUrl: null,
|
|
||||||
infoNegativeTwoThumbnailUrl: null,
|
|
||||||
infoLargePictureUrl: null,
|
infoLargePictureUrl: null,
|
||||||
infoSort: null,
|
infoSort: null,
|
||||||
infoCreator: null,
|
infoCreator: null,
|
||||||
@ -751,7 +544,7 @@ export default {
|
|||||||
// infoTitle: [
|
// infoTitle: [
|
||||||
// { required: true, message: "角色名称不能为空", trigger: "blur" }
|
// { required: true, message: "角色名称不能为空", trigger: "blur" }
|
||||||
// ],
|
// ],
|
||||||
infoCategoryName: [
|
infoCategoryId: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: "请选择资讯分类",
|
message: "请选择资讯分类",
|
||||||
@ -765,7 +558,7 @@ export default {
|
|||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
infoMainThumbnailUrl: [
|
infoLargePictureUrl: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
@ -779,7 +572,7 @@ export default {
|
|||||||
message: "请输入显示顺序",
|
message: "请输入显示顺序",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
content: [
|
infoContent: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: "请输入资讯图文内容",
|
message: "请输入资讯图文内容",
|
||||||
@ -800,7 +593,7 @@ export default {
|
|||||||
},
|
},
|
||||||
imgUrl(imgUrl) {
|
imgUrl(imgUrl) {
|
||||||
console.log(imgUrl,'imgUrl')
|
console.log(imgUrl,'imgUrl')
|
||||||
this.form.infoMainThumbnailUrl = imgUrl;
|
this.form.infoLargePictureUrl = imgUrl;
|
||||||
},
|
},
|
||||||
// imgs(item) {
|
// imgs(item) {
|
||||||
// this.imgsurl.pictureUrlList.push(item);
|
// this.imgsurl.pictureUrlList.push(item);
|
||||||
@ -821,6 +614,8 @@ export default {
|
|||||||
infoCategoryCode: "",
|
infoCategoryCode: "",
|
||||||
informationTitle: "",
|
informationTitle: "",
|
||||||
infoCategoryName: "",
|
infoCategoryName: "",
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
@ -845,13 +640,14 @@ export default {
|
|||||||
this.innerVisiblezx = true;
|
this.innerVisiblezx = true;
|
||||||
},
|
},
|
||||||
nurseclick(row) {
|
nurseclick(row) {
|
||||||
// this.form.informationCategoryId = row.id;
|
this.form.infoCategoryId = row.id;
|
||||||
this.form.infoCategoryName = row.infoCategoryName;
|
this.form.infoCategoryName = row.infoCategoryName;
|
||||||
this.innerVisible = false;
|
this.innerVisible = false;
|
||||||
},
|
},
|
||||||
nurseclickzx(row) {
|
nurseclickzx(row) {
|
||||||
// this.queryParams.informationCategoryId = row.id;
|
this.queryParams.infoCategoryId = row.id;
|
||||||
this.queryParams.infoCategoryName = row.infoCategoryName;
|
this.queryParams.infoCategoryName = row.infoCategoryName;
|
||||||
|
this.infoCategoryName = this.queryParams.infoCategoryName;
|
||||||
this.innerVisiblezx = false;
|
this.innerVisiblezx = false;
|
||||||
},
|
},
|
||||||
/** 查询资讯信息列表 */
|
/** 查询资讯信息列表 */
|
||||||
@ -878,10 +674,7 @@ export default {
|
|||||||
infoContent: null,
|
infoContent: null,
|
||||||
infoClickCount: null,
|
infoClickCount: null,
|
||||||
infoJumpLink: null,
|
infoJumpLink: null,
|
||||||
infoSource: null,
|
|
||||||
infoMainThumbnailUrl: null,
|
|
||||||
infoNegativeOneThumbnailUrl: null,
|
|
||||||
infoNegativeTwoThumbnailUrl: null,
|
|
||||||
infoLargePictureUrl: null,
|
infoLargePictureUrl: null,
|
||||||
infoSort: null,
|
infoSort: null,
|
||||||
infoCreator: null,
|
infoCreator: null,
|
||||||
@ -893,13 +686,39 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.queryParams.pageNum = 1;
|
|
||||||
|
this.queryParams.pageNum= 1
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.handleQuery();
|
this.queryParams= {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
infoCategoryName:null,
|
||||||
|
infoCategoryId:null,
|
||||||
|
|
||||||
|
infoCategoryId: null,
|
||||||
|
infoTitle: null,
|
||||||
|
infoCode: null,
|
||||||
|
infoContent: null,
|
||||||
|
infoClickCount: null,
|
||||||
|
infoJumpLink: null,
|
||||||
|
infoSource: null,
|
||||||
|
|
||||||
|
infoLargePictureUrl: null,
|
||||||
|
infoSort: null,
|
||||||
|
infoCreator: null,
|
||||||
|
infoCreateTime: null,
|
||||||
|
infoReviser: null,
|
||||||
|
infoModifyTime: null
|
||||||
|
}
|
||||||
|
this.infoCategoryName="请选择资讯分类"
|
||||||
|
this.getList();
|
||||||
|
|
||||||
|
|
||||||
|
// this.handleQuery();
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
@ -928,6 +747,7 @@ export default {
|
|||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
console.log(this.form,'this.form')
|
console.log(this.form,'this.form')
|
||||||
|
// return
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user