提交 734e9d2d 编写于 作者: neko's avatar neko

delete

上级 6434e651
/**
* Gradation 部件模型
*
* @export
* @class GradationModel
*/
export default class GradationModel {
/**
* 日历项类型
*
* @returns {any[]}
* @memberof GradationTreegridexMode
*/
public itemType: string = "";
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof GradationTreegridexMode
*/
public getDataItems(): any[] {
let dataItems: any = [
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'style',
},
{
name: 'textColor',
},
{
name: 'itemType',
},
{
name: 'parentId'
},
{
name: 'query',
prop: 'query',
},
];
switch(this.itemType){
case "RootAccount":
dataItems = [...dataItems,
{
name: 'id',
prop: 'accountid'
},
];
break;
case "ChildAccount":
dataItems = [...dataItems,
{
name: 'id',
prop: 'accountid'
},
];
break;
}
return dataItems;
}
}
\ No newline at end of file
!!!!模版产生代码错误:----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${srfclassname(ctrl.getRootPSDETreeNo... [in template "TEMPLCODE_zh_CN" at line 198, column 28]
----
\ No newline at end of file
<el-table ref="treegridex"
:data="items"
row-key="id"
border
lazy
height="100%"
:row-class-name="setRowClass"
:load="loadTreeNode.bind(_self)"
:tree-props="{ children: 'children', hasChildren: 'leaf' }"
:select-on-indeterminate="isSingleSelect"
@current-change="select.apply(_self, arguments)"
>
<el-table-column show-overflow-tooltip prop="accountname" label="客户名称" :width="50" :align="''">
<template v-slot="{ row }">
<span>{{ getColumnValue(row, 'accountname') }}</span>
</template>
</el-table-column>
<el-table-column show-overflow-tooltip prop="telephone1" label="主要电话" :width="100" :align="''">
<template v-slot="{ row }">
<span>{{ getColumnValue(row, 'telephone1') }}</span>
</template>
</el-table-column>
</el-table>
\ No newline at end of file
<template src="./gradation-treegridex.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { GradationTreegridexBase } from './gradation-treegridex-base';
/**
* treegridex部件
*
* @export
* @class GradationTreegridex
* @extends {GradationTreegridexBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class GradationTreegridex extends GradationTreegridexBase { }
</script>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册