|
@@ -388,8 +388,10 @@
|
|
|
//点击树获取数据
|
|
|
onChangeTree(e : any) {
|
|
|
this.categoryIds = e.id;
|
|
|
+ var ids:any = e.id;
|
|
|
+ if(e.id[0]==0) ids = 0;
|
|
|
let loading = this.$loading({ target: '.main-container' });
|
|
|
- api.byCategoryPage({ categoryId: e.id, type: 2 }, 'maindataOrganizationCategory').then((res : any) => {
|
|
|
+ api.byCategoryPage({ categoryId: ids, type: 2 }, 'maindataOrganizationCategory').then((res : any) => {
|
|
|
if (res.code === 200) {
|
|
|
(this.$refs.moduleView as any).setTableValue(res.data.records);
|
|
|
let page = {
|