|
|
@@ -1,133 +1,133 @@
|
|
|
|
|
|
<template type="text/x-template" id="content-main">
|
|
|
-<div id="main" class="ms-index" v-cloak>
|
|
|
- <el-header class="ms-header" height="50px">
|
|
|
- <el-col :span=12>
|
|
|
- <@shiro.hasPermission name="cms:content:save">
|
|
|
- <el-button v-if="isLeaf==true" type="primary" class="el-icon-plus" size="default" @click="openForm()">新增</el-button>
|
|
|
- </@shiro.hasPermission>
|
|
|
- <@shiro.hasPermission name="cms:content:del">
|
|
|
- <el-button type="danger" class="el-icon-delete" size="default" @click="del(selectionList)" :disabled="!selectionList.length">删除</el-button>
|
|
|
- </@shiro.hasPermission>
|
|
|
- </el-col>
|
|
|
- </el-header>
|
|
|
- <div class="ms-search">
|
|
|
- <el-row>
|
|
|
- <el-form :model="form" ref="searchForm" label-width="120px" size="default">
|
|
|
- <el-row>
|
|
|
- <el-col :span=8>
|
|
|
- <el-form-item label="文章标题" prop="contentTitle">
|
|
|
- <el-input v-model="form.contentTitle"
|
|
|
- :disabled="false"
|
|
|
- :style="{width: '100%'}"
|
|
|
- :clearable="true"
|
|
|
- placeholder="请输入文章标题">
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span=8>
|
|
|
- <el-form-item label="文章类型" prop="contentType">
|
|
|
- <el-select v-model="form.contentType"
|
|
|
- :style="{width: '100%'}"
|
|
|
- :filterable="false"
|
|
|
- :disabled="false"
|
|
|
- :multiple="true" :clearable="true"
|
|
|
- placeholder="请选择文章类型">
|
|
|
- <el-option v-for='item in contentTypeOptions' :key="item.dictValue" :value="item.dictValue"
|
|
|
- :label="item.dictLabel"></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span=8 style="display: flex;justify-content: end;padding-right: 10px;">
|
|
|
- <el-button type="primary" class="el-icon-search" size="default" @click="form.sqlWhere=null;currentPage=1;list()">查询</el-button>
|
|
|
- <el-button @click="rest" class="el-icon-refresh" size="default">重置</el-button>
|
|
|
- <ms-search ref="search" @search="search" :search-json="searchJson" :search-key="historyKey"></ms-search>
|
|
|
+ <div id="main" class="ms-index" v-cloak>
|
|
|
+ <el-header class="ms-header" height="50px">
|
|
|
+ <el-col :span=12>
|
|
|
+ <@shiro.hasPermission name="cms:content:save">
|
|
|
+ <el-button v-if="isLeaf==true" type="primary" class="el-icon-plus" size="default" @click="openForm()">新增</el-button>
|
|
|
+ </@shiro.hasPermission>
|
|
|
+ <@shiro.hasPermission name="cms:content:del">
|
|
|
+ <el-button type="danger" class="el-icon-delete" size="default" @click="del(selectionList)" :disabled="!selectionList.length">删除</el-button>
|
|
|
+ </@shiro.hasPermission>
|
|
|
+ </el-col>
|
|
|
+ </el-header>
|
|
|
+ <div class="ms-search">
|
|
|
+ <el-row>
|
|
|
+ <el-form :model="form" ref="searchForm" label-width="120px" size="default">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span=8>
|
|
|
+ <el-form-item label="文章标题" prop="contentTitle">
|
|
|
+ <el-input v-model="form.contentTitle"
|
|
|
+ :disabled="false"
|
|
|
+ :style="{width: '100%'}"
|
|
|
+ :clearable="true"
|
|
|
+ placeholder="请输入文章标题">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span=8>
|
|
|
+ <el-form-item label="文章类型" prop="contentType">
|
|
|
+ <el-select v-model="form.contentType"
|
|
|
+ :style="{width: '100%'}"
|
|
|
+ :filterable="false"
|
|
|
+ :disabled="false"
|
|
|
+ :multiple="true" :clearable="true"
|
|
|
+ placeholder="请选择文章类型">
|
|
|
+ <el-option v-for='item in contentTypeOptions' :key="item.dictValue" :value="item.dictValue"
|
|
|
+ :label="item.dictLabel"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span=8 style="display: flex;justify-content: end;padding-right: 10px;">
|
|
|
+ <el-button type="primary" class="el-icon-search" size="default" @click="form.sqlWhere=null;currentPage=1;list()">查询</el-button>
|
|
|
+ <el-button @click="rest" class="el-icon-refresh" size="default">重置</el-button>
|
|
|
+ <ms-search ref="search" @search="search" :search-json="searchJson" :search-key="historyKey"></ms-search>
|
|
|
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- </el-row>
|
|
|
- </div>
|
|
|
- <el-main class="ms-container">
|
|
|
- <el-table v-loading="loading" ref="multipleTable" class="ms-table-pagination" border :data="dataList" tooltip-effect="dark" @selection-change="handleSelectionChange">
|
|
|
- <template #empty>
|
|
|
- {{emptyText}}
|
|
|
- </template>
|
|
|
- <el-table-column type="selection" width="40"></el-table-column>
|
|
|
- <el-table-column label="编号" width="200" prop="id">
|
|
|
- <template #header>编号
|
|
|
- <el-popover placement="top-start" title="提示" trigger="hover" >
|
|
|
- 标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/wen-zhang-lie-biao-ms-arclist.html#%E6%96%87%E7%AB%A0%E5%88%97%E8%A1%A8-msarclist" target="_blank">${'$'}{field.id}</a>
|
|
|
- <template #reference>
|
|
|
- <i class="el-icon-question"></i>
|
|
|
- </template>
|
|
|
- </el-popover>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="栏目名" align="left" prop="categoryId" :formatter="contentCategoryIdFormat" width="180">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="文章标题" align="left" prop="contentTitle" show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="文章副标题" align="left" prop="contentShortTitle" show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="文章链接" align="left" prop="categoryId" :formatter="contentCategoryPathFormat" width="240">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="是否显示" width="100" align="center" prop="contentDisplay">
|
|
|
- <template #header>是否显示
|
|
|
- <el-popover placement="top-start" title="提示" trigger="hover" >
|
|
|
- 为否后,该文章将不会在前台显示。
|
|
|
- <template #reference>
|
|
|
- <i class="el-icon-question"></i>
|
|
|
- </template>
|
|
|
- </el-popover>
|
|
|
- </template>
|
|
|
- <template #default="scope">
|
|
|
- <el-tag :type="scope.row.contentDisplay==0?'success':'info'">{{scope.row.contentDisplay==0?'显示':'隐藏'}}</el-tag>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="作者" align="left" prop="contentAuthor" width="100" show-overflow-tooltip>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="排序" width="55" align="right" prop="contentSort">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="点击量" width="90" align="right" prop="contentHit">
|
|
|
- <template #header>点击量
|
|
|
- <el-popover placement="top-start" title="提示" trigger="hover" >
|
|
|
- 标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/wen-zhang-lie-biao-ms-arclist.html#%E6%96%87%E7%AB%A0%E5%88%97%E8%A1%A8-msarclist" target="_blank">${'$'}{field.hit}</a>
|
|
|
- <template #reference>
|
|
|
- <i class="el-icon-question"></i>
|
|
|
- </template>
|
|
|
- </el-popover>
|
|
|
- </template>
|
|
|
- <template #default="scope">
|
|
|
- {{scope.row.contentHit?scope.row.contentHit:0}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="发布时间" align="center" prop="contentDatetime" :formatter="dateFormat" width="120">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="操作" width="120" align="center" fixed="right">
|
|
|
- <template #default="scope">
|
|
|
- <@shiro.hasPermission name="cms:content:update">
|
|
|
- <el-link type="primary" :underline="false" @click="openForm(scope.row.id)">编辑</el-link>
|
|
|
- </@shiro.hasPermission>
|
|
|
- <@shiro.hasPermission name="cms:content:del">
|
|
|
- <el-link type="primary" :underline="false" @click="del([scope.row])">删除</el-link>
|
|
|
- </@shiro.hasPermission>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <el-main class="ms-container">
|
|
|
+ <el-table v-loading="loading" ref="multipleTable" class="ms-table-pagination" border :data="dataList" tooltip-effect="dark" @selection-change="handleSelectionChange">
|
|
|
+ <template #empty>
|
|
|
+ {{emptyText}}
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- :page-sizes="[10,20,30,40,50,100]"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :current-page="currentPage"
|
|
|
- :page-size="pageSize"
|
|
|
- :total="total"
|
|
|
- class="ms-pagination"
|
|
|
- @current-change='currentChange'
|
|
|
- @size-change="sizeChange">
|
|
|
- </el-pagination>
|
|
|
- </el-main>
|
|
|
-</div>
|
|
|
+ <el-table-column type="selection" width="40"></el-table-column>
|
|
|
+ <el-table-column label="编号" width="200" prop="id">
|
|
|
+ <template #header>编号
|
|
|
+ <el-popover placement="top-start" title="提示" trigger="hover" >
|
|
|
+ 标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/wen-zhang-lie-biao-ms-arclist.html#%E6%96%87%E7%AB%A0%E5%88%97%E8%A1%A8-msarclist" target="_blank">${'$'}{field.id}</a>
|
|
|
+ <template #reference>
|
|
|
+ <i class="el-icon-question"></i>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="栏目名" align="left" prop="categoryId" :formatter="contentCategoryIdFormat" width="180">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="文章标题" align="left" prop="contentTitle" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="文章副标题" align="left" prop="contentShortTitle" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="文章链接" align="left" prop="categoryId" :formatter="contentCategoryPathFormat" width="240">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="是否显示" width="100" align="center" prop="contentDisplay">
|
|
|
+ <template #header>是否显示
|
|
|
+ <el-popover placement="top-start" title="提示" trigger="hover" >
|
|
|
+ 为否后,该文章将不会在前台显示。
|
|
|
+ <template #reference>
|
|
|
+ <i class="el-icon-question"></i>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ <template #default="scope">
|
|
|
+ <el-tag :type="scope.row.contentDisplay==0?'success':'info'">{{scope.row.contentDisplay==0?'显示':'隐藏'}}</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="作者" align="left" prop="contentAuthor" width="100" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="排序" width="55" align="right" prop="contentSort">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="点击量" width="90" align="right" prop="contentHit">
|
|
|
+ <template #header>点击量
|
|
|
+ <el-popover placement="top-start" title="提示" trigger="hover" >
|
|
|
+ 标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/wen-zhang-lie-biao-ms-arclist.html#%E6%96%87%E7%AB%A0%E5%88%97%E8%A1%A8-msarclist" target="_blank">${'$'}{field.hit}</a>
|
|
|
+ <template #reference>
|
|
|
+ <i class="el-icon-question"></i>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ <template #default="scope">
|
|
|
+ {{scope.row.contentHit?scope.row.contentHit:0}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="发布时间" align="center" prop="contentDatetime" :formatter="dateFormat" width="120">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" width="120" align="center" fixed="right">
|
|
|
+ <template #default="scope">
|
|
|
+ <@shiro.hasPermission name="cms:content:update">
|
|
|
+ <el-link type="primary" :underline="false" @click="openForm(scope.row.id)">编辑</el-link>
|
|
|
+ </@shiro.hasPermission>
|
|
|
+ <@shiro.hasPermission name="cms:content:del">
|
|
|
+ <el-link type="primary" :underline="false" @click="del([scope.row])">删除</el-link>
|
|
|
+ </@shiro.hasPermission>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ :page-sizes="[10,20,30,40,50,100]"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :current-page="currentPage"
|
|
|
+ :page-size="pageSize"
|
|
|
+ :total="total"
|
|
|
+ class="ms-pagination"
|
|
|
+ @current-change='currentChange'
|
|
|
+ @size-change="sizeChange">
|
|
|
+ </el-pagination>
|
|
|
+ </el-main>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
@@ -143,124 +143,130 @@
|
|
|
return {
|
|
|
|
|
|
searchJson: [
|
|
|
- {
|
|
|
- action: 'and',
|
|
|
- field: 'content_title',
|
|
|
- el: 'eq',
|
|
|
- model: 'contentTitle',
|
|
|
- name: '文章标题',
|
|
|
- type: 'input'
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'content_short_title',
|
|
|
- el: 'eq',
|
|
|
- model: 'contentShortTitle',
|
|
|
- name: '文章副标题',
|
|
|
- type: 'input'
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'ct.category_id',
|
|
|
- el: 'eq',
|
|
|
- model: 'contentCategoryId',
|
|
|
- name: '所属栏目',
|
|
|
- key: 'id',
|
|
|
- title: 'categoryTitle',
|
|
|
- type: 'cascader',
|
|
|
- multiple: false
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'content_type',
|
|
|
- el: 'eq',
|
|
|
- model: 'contentType',
|
|
|
- name: '文章类型',
|
|
|
- key: 'dictValue',
|
|
|
- title: 'dictLabel',
|
|
|
- type: 'checkbox',
|
|
|
- label: false,
|
|
|
- multiple: true
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'content_display',
|
|
|
- el: 'eq',
|
|
|
- model: 'contentDisplay',
|
|
|
- name: '是否显示',
|
|
|
- key: 'value',
|
|
|
- title: 'label',
|
|
|
- type: 'radio',
|
|
|
- label: true,
|
|
|
- multiple: false
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'content_author',
|
|
|
- el: 'eq',
|
|
|
- model: 'contentAuthor',
|
|
|
- name: '文章作者',
|
|
|
- type: 'input'
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'content_source',
|
|
|
- el: 'eq',
|
|
|
- model: 'contentSource',
|
|
|
- name: '文章来源',
|
|
|
- type: 'input'
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'ct.content_datetime',
|
|
|
- model: 'contentDatetime',
|
|
|
- el: 'gt',
|
|
|
- name: '发布时间',
|
|
|
- type: 'date'
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'content_sort',
|
|
|
- el: 'eq',
|
|
|
- model: 'contentSort',
|
|
|
- name: '自定义顺序',
|
|
|
- type: 'number'
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'content_description',
|
|
|
- el: 'eq',
|
|
|
- model: 'contentDescription',
|
|
|
- name: '描述',
|
|
|
- type: 'textarea'
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'content_keyword',
|
|
|
- el: 'eq',
|
|
|
- model: 'contentKeyword',
|
|
|
- name: '关键字',
|
|
|
- type: 'textarea'
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'content_details',
|
|
|
- el: 'like',
|
|
|
- model: 'contentDetails',
|
|
|
- name: '文章内容',
|
|
|
- type: 'input'
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'content_url',
|
|
|
- el: 'eq',
|
|
|
- model: 'contentUrl',
|
|
|
- name: '文章跳转链接地址',
|
|
|
- type: 'input'
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'ct.create_date',
|
|
|
- el: 'eq',
|
|
|
- model: 'createDate',
|
|
|
- name: '创建时间',
|
|
|
- type: 'date'
|
|
|
- }, {
|
|
|
- action: 'and',
|
|
|
- field: 'ct.update_date',
|
|
|
- el: 'eq',
|
|
|
- model: 'updateDate',
|
|
|
- name: '修改时间',
|
|
|
- type: 'date'
|
|
|
- }],
|
|
|
+ {
|
|
|
+ action: 'and',
|
|
|
+ field: 'content_title',
|
|
|
+ el: 'eq',
|
|
|
+ model: 'contentTitle',
|
|
|
+ name: '文章标题',
|
|
|
+ type: 'input'
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'content_short_title',
|
|
|
+ el: 'eq',
|
|
|
+ model: 'contentShortTitle',
|
|
|
+ name: '文章副标题',
|
|
|
+ type: 'input'
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'ct.category_id',
|
|
|
+ el: 'eq',
|
|
|
+ model: 'contentCategoryId',
|
|
|
+ name: '所属栏目',
|
|
|
+ key: 'id',
|
|
|
+ title: 'categoryTitle',
|
|
|
+ type: 'tree'
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'content_type',
|
|
|
+ el: 'eq',
|
|
|
+ model: 'contentType',
|
|
|
+ name: '文章类型',
|
|
|
+ key: 'dictValue',
|
|
|
+ title: 'dictLabel',
|
|
|
+ type: 'checkbox',
|
|
|
+ label: false,
|
|
|
+ multiple: true
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'content_display',
|
|
|
+ el: 'eq',
|
|
|
+ model: 'contentDisplay',
|
|
|
+ name: '是否显示',
|
|
|
+ key: 'value',
|
|
|
+ title: 'label',
|
|
|
+ type: 'radio',
|
|
|
+ label: true,
|
|
|
+ multiple: false
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'content_author',
|
|
|
+ el: 'eq',
|
|
|
+ model: 'contentAuthor',
|
|
|
+ name: '文章作者',
|
|
|
+ type: 'input'
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'content_source',
|
|
|
+ el: 'eq',
|
|
|
+ model: 'contentSource',
|
|
|
+ name: '文章来源',
|
|
|
+ type: 'input'
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'ct.content_datetime',
|
|
|
+ model: 'contentDatetime',
|
|
|
+ el: 'gt',
|
|
|
+ name: '发布时间',
|
|
|
+ type: 'date'
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'content_sort',
|
|
|
+ el: 'eq',
|
|
|
+ model: 'contentSort',
|
|
|
+ name: '自定义顺序',
|
|
|
+ type: 'number'
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'content_description',
|
|
|
+ el: 'eq',
|
|
|
+ model: 'contentDescription',
|
|
|
+ name: '描述',
|
|
|
+ type: 'textarea'
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'content_keyword',
|
|
|
+ el: 'eq',
|
|
|
+ model: 'contentKeyword',
|
|
|
+ name: '关键字',
|
|
|
+ type: 'textarea'
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'content_details',
|
|
|
+ el: 'like',
|
|
|
+ model: 'contentDetails',
|
|
|
+ name: '文章内容',
|
|
|
+ type: 'input'
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'content_url',
|
|
|
+ el: 'eq',
|
|
|
+ model: 'contentUrl',
|
|
|
+ name: '文章跳转链接地址',
|
|
|
+ type: 'input'
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'ct.create_date',
|
|
|
+ el: 'eq',
|
|
|
+ model: 'createDate',
|
|
|
+ name: '创建时间',
|
|
|
+ type: 'date'
|
|
|
+ }, {
|
|
|
+ action: 'and',
|
|
|
+ field: 'ct.update_date',
|
|
|
+ el: 'eq',
|
|
|
+ model: 'updateDate',
|
|
|
+ name: '修改时间',
|
|
|
+ type: 'date'
|
|
|
+ }],
|
|
|
contentCategoryIdOptions: [],
|
|
|
+ contentCategoryIdTreeOptions: [],
|
|
|
+ contentCategoryIdTreeProps: {value: 'id',label: 'categoryTitle',children: 'children'},
|
|
|
+ contentCategoryIdProps:{
|
|
|
+ value: 'id',
|
|
|
+ categoryTitle: 'modelTitle',
|
|
|
+ children: 'modelChildList'
|
|
|
+ },
|
|
|
dataList: [],
|
|
|
//文章列表
|
|
|
selectionList: [],
|
|
|
@@ -432,7 +438,7 @@
|
|
|
});
|
|
|
if (data && data.categoryPath) {
|
|
|
// row.url /html/web/categoryPath/文章id.html categoryPath做占位符
|
|
|
- path = row.url.replace("categoryPath",data.categoryPath);
|
|
|
+ path = row.url.replace("categoryPath",data.categoryPath);
|
|
|
}else {
|
|
|
path = row.url;
|
|
|
}
|
|
|
@@ -489,6 +495,7 @@
|
|
|
ms.http.get(ms.manager + "/cms/category/list.do").then(function (res) {
|
|
|
if (res.result) {
|
|
|
that.contentCategoryIdOptions = res.data.rows;
|
|
|
+ that.contentCategoryIdTreeOptions = ms.util.treeData(res.data.rows, 'id', 'categoryId', 'children');
|
|
|
}else {
|
|
|
that.$notify({
|
|
|
title: '失败',
|
|
|
@@ -554,7 +561,7 @@
|
|
|
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
});
|
|
|
</script>
|
|
|
<style scoped>
|