|
|
@ -1,13 +1,18 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container">
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<p>配置产品中心和案例的分类,其中顶级类型需配置首页显示的名称,类型备注和显示的图片,子级分类用来配置产品中心和案例与客户中的分类信息</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
<el-form-item label="大类(1产品中心,2案例)" prop="configTypeClassfication">
|
|
|
|
<el-form-item label="大类" prop="configTypeClassfication">
|
|
|
|
<el-input
|
|
|
|
<el-select v-model="queryParams.configTypeClassfication" placeholder="请选择大类" clearable>
|
|
|
|
v-model="queryParams.configTypeClassfication"
|
|
|
|
<el-option
|
|
|
|
placeholder="请输入大类(1产品中心,2案例)"
|
|
|
|
v-for="dict in dict.type.hw_portal_config_type_classfication"
|
|
|
|
clearable
|
|
|
|
:key="dict.value"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
:label="dict.label"
|
|
|
|
/>
|
|
|
|
:value="dict.value"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="类型名称" prop="configTypeName">
|
|
|
|
<el-form-item label="类型名称" prop="configTypeName">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
@ -54,12 +59,22 @@
|
|
|
|
:default-expand-all="isExpandAll"
|
|
|
|
:default-expand-all="isExpandAll"
|
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column label="首页名称" align="center" prop="homeConfigTypeName" />
|
|
|
|
<el-table-column label="类型名称" align="left" prop="configTypeName" />
|
|
|
|
<el-table-column label="类型名称" align="center" prop="configTypeName" />
|
|
|
|
<el-table-column label="首页显示名称" align="center" prop="homeConfigTypeName" />
|
|
|
|
<el-table-column label="大类(1产品中心,2案例)" prop="configTypeClassfication" />
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="大类" prop="configTypeClassfication" >
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag :options="dict.type.hw_portal_config_type_classfication" :value="scope.row.configTypeClassfication"/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="类型备注" align="center" prop="configTypeDesc" />
|
|
|
|
<el-table-column label="类型备注" align="center" prop="configTypeDesc" />
|
|
|
|
<el-table-column label="图片地址" align="center" prop="homeConfigTypePic" />
|
|
|
|
<el-table-column label="图片" align="center" prop="homeConfigTypePic" >
|
|
|
|
<el-table-column label="父级ID" align="center" prop="parentId" />
|
|
|
|
<template slot-scope="scope" v-if="scope.row.homeConfigTypePic && scope.row.homeConfigTypePic!=null && scope.row.homeConfigTypePic!=undefined && scope.row.homeConfigTypePic!==''">
|
|
|
|
|
|
|
|
<img :src="scope.row.homeConfigTypePic" alt="图片" style="width: 200px;height:150px;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="祖级列表" align="center" prop="ancestors" />
|
|
|
|
<el-table-column label="祖级列表" align="center" prop="ancestors" />
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
@ -89,15 +104,22 @@
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改门户网站配置类型对话框 -->
|
|
|
|
<!-- 添加或修改门户网站配置类型对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-form-item label="父级" prop="parentId">
|
|
|
|
<el-form-item label="父级" prop="parentId">
|
|
|
|
<treeselect v-model="form.parentId" :options="portalConfigTypeOptions" :normalizer="normalizer" placeholder="请选择父级ID" />
|
|
|
|
<treeselect v-model="form.parentId" :options="portalConfigTypeOptions" :normalizer="normalizer" placeholder="请选择父级ID" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="大类(1产品中心,2案例)" prop="configTypeClassfication">
|
|
|
|
<el-form-item label="大类" prop="configTypeClassfication" v-if="form.parentId==null || form.parentId===0">
|
|
|
|
<el-input v-model="form.configTypeClassfication" placeholder="请输入大类(1产品中心,2案例)" />
|
|
|
|
<el-select v-model="form.configTypeClassfication" placeholder="请选择大类" clearable>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="dict in dict.type.hw_portal_config_type_classfication"
|
|
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="首页显示名称" prop="homeConfigTypeName">
|
|
|
|
<el-form-item label="首页显示名称" prop="homeConfigTypeName" v-if="form.parentId==null || form.parentId===0">
|
|
|
|
<el-input v-model="form.homeConfigTypeName" placeholder="请输入类型名称" />
|
|
|
|
<el-input v-model="form.homeConfigTypeName" placeholder="请输入类型名称" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="类型名称" prop="configTypeName">
|
|
|
|
<el-form-item label="类型名称" prop="configTypeName">
|
|
|
@ -108,7 +130,14 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="图标" prop="configTypeIcon">
|
|
|
|
<el-form-item prop="configTypeIcon">
|
|
|
|
|
|
|
|
<span slot="label">
|
|
|
|
|
|
|
|
<el-tooltip content="上方菜单显示的图标" placement="top">
|
|
|
|
|
|
|
|
<i class="el-icon-question"></i>
|
|
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
|
|
图标
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
<el-upload
|
|
|
|
<el-upload
|
|
|
|
single
|
|
|
|
single
|
|
|
|
:action="iconUploadImgUrl"
|
|
|
|
:action="iconUploadImgUrl"
|
|
|
@ -153,7 +182,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="图片" prop="homeConfigTypePic">
|
|
|
|
<el-form-item prop="homeConfigTypePic">
|
|
|
|
|
|
|
|
<span slot="label">
|
|
|
|
|
|
|
|
<el-tooltip content="首页显示的图片" placement="top">
|
|
|
|
|
|
|
|
<i class="el-icon-question"></i>
|
|
|
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
|
|
|
图片
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
<el-upload
|
|
|
|
<el-upload
|
|
|
|
single
|
|
|
|
single
|
|
|
|
:action="uploadImgUrl"
|
|
|
|
:action="uploadImgUrl"
|
|
|
@ -213,6 +249,7 @@ import {getToken} from "@/utils/auth";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "PortalConfigType",
|
|
|
|
name: "PortalConfigType",
|
|
|
|
|
|
|
|
dicts: ['hw_portal_config_type_classfication'],
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
|
value: [String, Object, Array],
|
|
|
|
value: [String, Object, Array],
|
|
|
|
// 图片数量限制
|
|
|
|
// 图片数量限制
|
|
|
|