Commit 81a13ff3 authored by 赵啸非's avatar 赵啸非

修改时间

parent 3bf08578
......@@ -9,7 +9,7 @@ export default {
clearTimeout(this.loadingTimer);
},
methods: {
beforeFecth() {
beforeFecth() {
return Promise.resolve();
},
// 表格接收数据前
......@@ -18,12 +18,12 @@ export default {
afterRender(data){},
// 默认拉取数据
async getTreeData() {
},
handleNodeClick(node) {
},
renderContent: function (h, { node, data, store }) {
return (
......@@ -31,7 +31,7 @@ export default {
<i style="font-size:16px;color:#409EFF" class={data.icon}></i>
<span style="padding-left: 2px;font-size:14px">{node.label}</span>
<span style="padding-left: 2px;font-size:14px;margin-left:20px">
({data.children?data.children.length:0})
({data.personList?data.personList.length:0})
</span>
</span>
)
......@@ -57,11 +57,11 @@ export default {
node.expand(); // 主动调用展开节点方法,重新查询该节点下的所有子节点
this.toView(this.currentNode);
},
},
data() {
return {
return {
treeProps: {
id: "id",
label: "label",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment