|
|
|
|
@ -13,7 +13,9 @@ |
|
|
|
|
<el-button type="primary" icon="el-icon-plus" size="mini" @click="save()">新增</el-button> |
|
|
|
|
</@shiro.hasPermission> |
|
|
|
|
<@shiro.hasPermission name="cms:category:del"> |
|
|
|
|
<el-button type="danger" icon="el-icon-delete" size="mini" @click="del(selectionList)" :disabled="!selectionList.length">删除</el-button> |
|
|
|
|
<el-button type="danger" icon="el-icon-delete" size="mini" @click="del(selectionList)" |
|
|
|
|
:disabled="!selectionList.length">删除 |
|
|
|
|
</el-button> |
|
|
|
|
</@shiro.hasPermission> |
|
|
|
|
</el-col> |
|
|
|
|
</el-header> |
|
|
|
|
@ -34,12 +36,14 @@ |
|
|
|
|
<el-table-column label="编号" width="100" prop="id" show-overflow-tooltip> |
|
|
|
|
<template slot='header'>编号 |
|
|
|
|
<el-popover placement="top-start" title="提示" trigger="hover"> |
|
|
|
|
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.html" target="_blank">${'$'}{field.id}</a> |
|
|
|
|
标签:<a href="http://doc.mingsoft.net/mcms/biao-qian/lan-mu-lie-biao-ms-channel.html" |
|
|
|
|
target="_blank">${'$'}{field.id}</a> |
|
|
|
|
<i class="el-icon-question" slot="reference"></i> |
|
|
|
|
</el-popover> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span style="cursor: pointer" class="copyBtn" :data-clipboard-text="scope.row.id" @click="copyContent(true)">{{scope.row.id}}</span> |
|
|
|
|
<span style="cursor: pointer" class="copyBtn" :data-clipboard-text="scope.row.id" |
|
|
|
|
@click="copyContent(true)">{{scope.row.id}}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="标题" align="left" prop="categoryTitle"> |
|
|
|
|
@ -50,8 +54,11 @@ |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="链接地址" align="left" prop="categoryPath" min-width="200" show-overflow-tooltip> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span v-if="scope.row.categoryType == '1' || scope.row.categoryType == '2'" style="cursor: pointer" class="copyBtn" :data-clipboard-text="'{ms:global.url/}'+scope.row.categoryPath+'/index.html'" @click="copyContent">{{"{ms:global.url/}"+scope.row.categoryPath+"/index.html"}}</span> |
|
|
|
|
<span v-if="scope.row.categoryType == '3'" style="cursor: pointer" class="copyBtn" :data-clipboard-text="scope.row.categoryDiyUrl" @click="copyContent">{{scope.row.categoryDiyUrl}}</span> |
|
|
|
|
<span v-if="scope.row.categoryType == '1' || scope.row.categoryType == '2'" style="cursor: pointer" |
|
|
|
|
class="copyBtn" :data-clipboard-text="'{ms:global.url/}'+scope.row.url" |
|
|
|
|
@click="copyContent">{{"{ms:global.url/}"+scope.row.url}}</span> |
|
|
|
|
<span v-if="scope.row.categoryType == '3'" style="cursor: pointer" class="copyBtn" |
|
|
|
|
:data-clipboard-text="scope.row.categoryDiyUrl" @click="copyContent">{{scope.row.categoryDiyUrl}}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="列表地址" align="left" prop="categoryListUrl" width="100" show-overflow-tooltip> |
|
|
|
|
@ -62,15 +69,18 @@ |
|
|
|
|
{{scope.row.categoryType == '2'?scope.row.categoryUrl:''}} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="栏目属性" align="left" prop="categoryFlag" width="100" show-overflow-tooltip> |
|
|
|
|
<el-table-column label="栏目属性" align="left" prop="categoryFlag" width="80" show-overflow-tooltip> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
{{getDictLabel(scope.row.categoryFlag)}} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作" width="180" align="center"> |
|
|
|
|
<el-table-column label="操作" width="240" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-link type="primary" :underline="false" v-if="scope.row.categoryType != '3'" @click="preview(scope.row)">预览</el-link> |
|
|
|
|
<@shiro.hasPermission name="cms:category:save"> |
|
|
|
|
<el-link type="primary" :underline="false" @click="save(scope.row.id, scope.row.id)"><i class="el-icon-plus"></i>子栏目</el-link> |
|
|
|
|
<el-link type="primary" :underline="false" @click="save(scope.row.id, scope.row.id)"><i |
|
|
|
|
class="el-icon-plus"></i>子栏目 |
|
|
|
|
</el-link> |
|
|
|
|
</@shiro.hasPermission> |
|
|
|
|
<@shiro.hasPermission name="cms:category:save"> |
|
|
|
|
<el-link type="primary" :underline="false" @click="copyCategory(scope.row.id)">克隆</el-link> |
|
|
|
|
@ -287,6 +297,10 @@ |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//预览栏目 |
|
|
|
|
preview: function (row) { |
|
|
|
|
window.open(row["url"]); |
|
|
|
|
}, |
|
|
|
|
//获取categoryFlag数据源 |
|
|
|
|
categoryFlagOptionsGet: function () { |
|
|
|
|
var that = this; |
|
|
|
|
|