列的配置
{
label: "分类",
prop: "categoryId",
rules: [{
required: false,
message: "请输入分类id",
trigger: "blur"
}],
dicData: [],
type: "tree",
hide: true,
props: {// 字典的全局key配置,https://www.bookstack.cn/read/avue-2.x/842c519c6de7eada.md#Props%20Attributes
label: "title"// 字典的名称 属性值
},
},
这里面的那段代码注释掉就好了
onl oad(page, params = {}) {
this.loading = true;
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;
// getTreeCategory().then(res => {
// const column = this.findObject(this.option.column, "categoryId");
// column.dicData = res.data.data;
// });
this.loading = false;
this.selectionClear();
});
},