提交 d0bd61bd 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 5e31f035
......@@ -147,7 +147,7 @@ export default {
tip: "Copy {0}",
},
},
channeltree_treeview: {
channelcontent_treeview: {
nodes: {
root: "默认根节点",
},
......
......@@ -146,7 +146,7 @@ export default {
tip: "拷贝",
},
},
channeltree_treeview: {
channelcontent_treeview: {
nodes: {
root: "默认根节点",
},
......
<studio-view-style2 viewName="websitechannelcontenttreeview" viewTitle="频道内容" class='detreeexpview web-site-channel-content-tree-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_treeexpbar
:viewState="viewState"
:viewparams="viewparams"
......
/**
* ChannelContent 部件模型
*
* @export
* @class ChannelContentModel
*/
export default class ChannelContentModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof ChannelContentModel
*/
public getDataItems(): any[] {
return [
{
name: 'websitechannel',
prop: 'websitechannelid',
},
{
name: 'createman',
},
{
name: 'websitechannelname',
},
{
name: 'updatedate',
},
{
name: 'createdate',
},
{
name: 'updateman',
},
{
name: 'websiteid',
},
{
name: 'pwebsitechannelid',
},
{
name: 'pwebsitechannelname',
},
{
name: 'websitename',
},
{
name: 'channeltype',
},
{
name: 'channelcode',
},
{
name: 'sn',
},
{
name: 'memo',
},
{
name: 'validflag',
},
]
}
}
\ No newline at end of file
<div class="design-tree-container">
<context-menu-container>
<el-tree
v-if="inited"
ref="treeexpbar_tree"
class="design-tree"
node-key="id"
lazy
:show-checkbox="!isSingleSelect"
:check-on-click-node="!isSingleSelect"
:default-expanded-keys="expandedKeys"
:props="{
label: 'text',
isLeaf: 'leaf',
children: 'children'
}"
:load="load.bind(_self)"
:highlight-current="true"
:expand-on-click-node="false"
@check="onCheck.apply(_self, arguments)"
@current-change="selectionChange.apply(_self, arguments)"
:filter-node-method="filterNode"
>
<template slot-scope="{ node, data }">
<context-menu :contextMenuStyle="{width: '100%'}" :data="node" :renderContent="renderContextMenu.bind(_self)">
<tooltip transfer style="width: 100%;" max-width="2000" placement="right">
<div class="tree-node" @dblclick="doDefaultAction(node)">
<span class="icon">
<i v-if=" data.iconcls && !Object.is(data.iconcls, '')" :class="data.iconcls"></i>
<img v-else-if="data.icon && !Object.is(data.icon, '')" :src="data.icon" />
<icon v-else-if="isOutputIconDefault" type="ios-paper-outline"></icon>&nbsp;
</span>
<span class="text">
<span v-if="data.html" v-html="data.html"></span>
<span v-else>{{ data.isUseLangRes ? $t(data.text) : data.text }}</span>
</span>
</div>
<template slot="content">
<span v-if="data.html" v-html="data.html"></span>
<span v-else>{{ data.isUseLangRes ? $t(data.text) : data.text }}</span>
</template>
</tooltip>
</context-menu>
</template>
</el-tree>
</context-menu-container>
</div>
\ No newline at end of file
<template src="./channel-content-treeview.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { ChannelContentTreeBase } from './channel-content-treeview-base';
/**
* treeexpbar_tree部件
*
* @export
* @class ChannelContentTree
* @extends {ChannelContentTreeBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class ChannelContentTree extends ChannelContentTreeBase { }
</script>
......@@ -3,7 +3,7 @@
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { ContentTreeViewtreeexpbarTreeExpBarBase } from './content-tree-viewtreeexpbar-treeexpbar-base';
import view_treeexpbar_tree from '@widgets/web-site-channel/channel-tree-treeview/channel-tree-treeview.vue';
import view_treeexpbar_tree from '@widgets/web-site-channel/channel-content-treeview/channel-content-treeview.vue';
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册