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

修改时间

parent 3bf08578
...@@ -9,7 +9,7 @@ export default { ...@@ -9,7 +9,7 @@ export default {
clearTimeout(this.loadingTimer); clearTimeout(this.loadingTimer);
}, },
methods: { methods: {
beforeFecth() { beforeFecth() {
return Promise.resolve(); return Promise.resolve();
}, },
// 表格接收数据前 // 表格接收数据前
...@@ -18,12 +18,12 @@ export default { ...@@ -18,12 +18,12 @@ export default {
afterRender(data){}, afterRender(data){},
// 默认拉取数据 // 默认拉取数据
async getTreeData() { async getTreeData() {
}, },
handleNodeClick(node) { handleNodeClick(node) {
}, },
renderContent: function (h, { node, data, store }) { renderContent: function (h, { node, data, store }) {
return ( return (
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
<i style="font-size:16px;color:#409EFF" class={data.icon}></i> <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">{node.label}</span>
<span style="padding-left: 2px;font-size:14px;margin-left:20px"> <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>
</span> </span>
) )
...@@ -57,11 +57,11 @@ export default { ...@@ -57,11 +57,11 @@ export default {
node.expand(); // 主动调用展开节点方法,重新查询该节点下的所有子节点 node.expand(); // 主动调用展开节点方法,重新查询该节点下的所有子节点
this.toView(this.currentNode); this.toView(this.currentNode);
}, },
}, },
data() { data() {
return { return {
treeProps: { treeProps: {
id: "id", id: "id",
label: "label", 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