suxinshuo

Results 17 comments of suxinshuo

@CalvinKirs I would like to pick up the plugins of ClickHouse-sink.

> @CalvinKirs I would like to pick up the plugins of ClickHouse-sink. I tested it in local mode and yarn mode, everything works fine.

Organization: Qunar Location: Beijing China Contact: [email protected] Purpose: Export data from hive to Clickhouse.

Can I try this? The similar system I used before was sorted by first letter. I can first implement a version that is sorted by first letter.

> > Can I try this? The similar system I used before was sorted by first letter. I can first implement a version that is sorted by first letter. >...

@Zzm0809 Yes, your idea is better. I will give the design tomorrow.

> > @Zzm0809 Yes, your idea is better. I will give the design tomorrow. > > note: Drag and drop sorting is not considered for the time being. > >...

> 我认为前端使用 menu 组件即可 可以设置 children 属性,改变时 拿到 key 更新状态,触发后端接口调用(入参) 用级联组件不是特别合适 不好意思,我之前没写过前端,不太清楚 menu 和 cascader 的区别,我这里是认为 menu 适用于导航链接类的,cascader 适用于分类选择类的,所以选用的 cascader。方便请教一下他们各自的适用场景,以及这里为什么 menu 比 cascader 更合适的原因吗?

> 为什么会新增一个`getCatalogueSortType`接口呢? 我认为直接复用之前的,加上入参即可,前端在状态中给默认就可以,一些拿不到状态的 比如 service.ts 中,入参直接默认 ,前端可以将排序类型定义为枚举, 如下(仅参考,可以结合你的思路): > > ``` > export enum CatalogueTreeSortEnum { > FIRST_LETTER_ASC = "FirstLetterSortingAscending", > FIRST_LETTER_DESC = "FirstLetterSortingDescending", > DIRECTORY_CREATION_TIME_ASC = "DirectoryCreationTimeSorting", > DIRECTORY_CREATION_TIME_DESC...

综合上面说的,我把前端的 cascader 组件改为 menu 组件,同时修改对应的接口 getCatalogueSortType 的返回值结构。 后端新增的 getCatalogueSortType 接口(获取当前的排序类型枚举)以及目录树接口新增的入参,仍然保留,看看怎么样? @Zzm0809