|
|
|
@ -25,14 +25,6 @@
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="图片地址" prop="aboutUsInfoPic">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.aboutUsInfoPic"
|
|
|
|
|
placeholder="请输入图片地址"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
@ -88,13 +80,25 @@
|
|
|
|
|
<el-table v-loading="loading" :data="aboutUsInfoList" @selection-change="handleSelectionChange">
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<el-table-column label="主键标识" align="center" prop="aboutUsInfoId" />
|
|
|
|
|
<el-table-column label="类型" align="center" prop="aboutUsInfoType" />
|
|
|
|
|
<el-table-column label="类型" align="center" prop="aboutUsInfoType" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.hw_about_us_info_type" :value="scope.row.aboutUsInfoType"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="中文标题" align="center" prop="aboutUsInfoTitle" />
|
|
|
|
|
<el-table-column label="英文标题" align="center" prop="aboutUsInfoEtitle" />
|
|
|
|
|
<el-table-column label="内容" align="center" prop="aboutUsInfoDesc" />
|
|
|
|
|
<el-table-column label="顺序" align="center" prop="aboutUsInfoOrder" />
|
|
|
|
|
<el-table-column label="显示模式" align="center" prop="displayModal" />
|
|
|
|
|
<el-table-column label="图片地址" align="center" prop="aboutUsInfoPic" />
|
|
|
|
|
<el-table-column label="显示模式" align="center" prop="displayModal" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.hw_about_us_info_display_modal" :value="scope.row.displayModal"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="图片" align="center" prop="aboutUsInfoPic" >
|
|
|
|
|
<template slot-scope="scope" v-if="scope.row.aboutUsInfoPic && scope.row.aboutUsInfoPic!=null && scope.row.aboutUsInfoPic!=undefined && scope.row.aboutUsInfoPic!==''">
|
|
|
|
|
<img :src="scope.row.aboutUsInfoPic" alt="图片" style="width: 200px;height:150px;">
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
@ -140,19 +144,36 @@
|
|
|
|
|
<el-input v-model="form.aboutUsInfoEtitle" placeholder="请输入英文标题" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="类型" prop="aboutUsInfoType">
|
|
|
|
|
<el-input v-model="form.aboutUsInfoType" placeholder="请输入类型" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="内容" prop="aboutUsInfoDesc">
|
|
|
|
|
<el-input v-model="form.aboutUsInfoDesc" placeholder="请输入内容" />
|
|
|
|
|
<el-select v-model="form.aboutUsInfoType" placeholder="请选择类型" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.hw_about_us_info_type"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="顺序" prop="aboutUsInfoOrder">
|
|
|
|
|
<el-input v-model="form.aboutUsInfoOrder" placeholder="请输入顺序" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="显示模式" prop="displayModal">
|
|
|
|
|
<el-input v-model="form.displayModal" placeholder="请输入显示模式" />
|
|
|
|
|
<el-select v-model="form.displayModal" placeholder="请选择显示模式" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.hw_about_us_info_display_modal"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="内容" prop="aboutUsInfoDesc">
|
|
|
|
|
<el-input v-model="form.aboutUsInfoDesc" type="textarea" placeholder="请输入内容" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="图片" prop="aboutUsInfoPic">
|
|
|
|
|
<el-upload
|
|
|
|
|
single
|
|
|
|
@ -211,6 +232,7 @@ import {getToken} from "@/utils/auth";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "AboutUsInfo",
|
|
|
|
|
dicts: ['hw_about_us_info_type','hw_about_us_info_display_modal'],
|
|
|
|
|
props: {
|
|
|
|
|
value: [String, Object, Array],
|
|
|
|
|
// 图片数量限制
|
|
|
|
@ -271,6 +293,9 @@ export default {
|
|
|
|
|
aboutUsInfoTitle: [
|
|
|
|
|
{ required: true, message: "标题不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|
aboutUsInfoType: [
|
|
|
|
|
{ required: true, message: "类型不能为空", trigger: "change" }
|
|
|
|
|
],
|
|
|
|
|
aboutUsInfoDesc: [
|
|
|
|
|
{ required: true, message: "内容不能为空", trigger: "blur" }
|
|
|
|
|
],
|
|
|
|
|