Config: resourceConfig overwrites the style of this.gantt.config.columns = this.tasks.columns

when i use the Pro version, i want to make a resource chart
but the config: resourceConfig doesn’t work . config: resourceConfig overwrites the style of this.gantt.config.columns = this.tasks.columns。
It uses the same column style for both.
I wrote it according to the example on the official website, but I still can’t get it out。How to implement it correctly?
7.0.13 Pro version

tasks: {
data: [],
links: [],
columns: [
name: ‘sort’,
label: ‘Sort’,
min_width: 66,
template: function (obj) {
if (obj.parent === 0) {
return (‘’ + obj.sort + ‘’)
{ name: ‘car’, label: ‘Car’, tree: true, width: ‘*’, min_width: 150 },
{ name: ‘project_name’, label: ‘Name’, align: ‘center’ },
{ name: ‘duration’, label: ‘Duration’, align: ‘center’ },
{ name: ‘start_date’, label: ‘Start’, align: ‘center’, min_width: 150 },
{ name: ‘end_date’, label: ‘End’, align: ‘center’, min_width: 150 },
// 底部关联table数据
name: “name”, label: “Name1”, tree:true, template: function (resource) {
return resource.text;
{id: 1, text:‘first’,parent:null},
{id: 2, text:‘decond’,parent:null},

this.gantt.config.columns = this.tasks.columns

      this.gantt.templates.resource_cell_value = function (start_date, end_date, resource, tasks) {
        return "<div>" + tasks.length * 8 + "</div>";
        this.gantt.config.resource_store = "resource"
      this.gantt.config.resource_property = "owner_id"
      this.gantt.config.order_branch = true

      let resourceConfig={
      this.gantt.config.layout = {
        css: "gantt_container",
        rows: [
            cols: [
              {view: "grid", scrollable: true,group:"grids",scrollY: "scrollVer",gravity:1},
              {resizer: true, width: 1},
              {view: "timeline",gravity:3, scrollX: "scrollHor", scrollY: "scrollVer"},
              {view: "scrollbar", id: "scrollVer", group:"vertical"}
          {resizer: true, width: 1},
            cols: [
              {view: "resourceGrid",config: resourceConfig, group:"grids",scrollY: "resourceVScroll" },
              {resizer: true, width: 1},
              {view: "resourceTimeline", gravity:3,scrollX: "scrollHor", scrollY: "resourceVScroll"},
              {view: "scrollbar", id: "resourceVScroll", group:"vertical"}
          {view: "scrollbar", id: "scrollHor"}

var resourcesStore = this.gantt.createDatastore({
name: _this.gantt.config.resource_store,
type: “treeDatastore”,
initItem: function (item) {
item.parent = item.parent || _this.gantt.config.root_id;
item[_this.gantt.config.resource_property] = item.parent;
// = true;
return item;
this.resourcesStore = resourcesStore

The display effect is

Hello Qian,
I added your configuration to the sample, but I couldn’t reproduce the issue:

Probably, it is related to the Gantt configuration, but it is hard to suggest what might be wrong as I don’t see your code.
Please, add your configuration in the following snippet and make sure that the issue is reproduced there:
Then, click on the Share button and send me the link.
Or send me a ready demo with all the necessary Javascript and CSS files so that I can reproduce the issue locally.

I wrote an example using our company’s Pro version and put it on github. Please read the first.
Can you download it and run it?

Hello Qian,
Thank you for sending the demo. I was able to reproduce the issue.
It seems that at some point the config property is removed from the resource grid, so Gantt obtains the main grid config object and continues using it.
That issue occurs only if Gantt is attached to the this object. As soon as I detach Gantt from this and make it a separate variable, everything works correctly. You can test how it works if you use the following file:

I will inform the dev team about that issue.

Hi Qian,

the issue seems to only happen when gantt.config contains reactive objects. In your app it happens when you pass columns config from the page to the gantt component, vuejs wraps the config into its own objects. Turns out our implementation of nested configs didn’t work correctly when properties of config had getters and setters.

We did some changes and all seems working correctly in the latest dev build,
I’ve sent you a PM with the download link, can you please check?

If it works well on your end, you can just use the build I’ve sent until we publish a bugfix (probably later this week)

Thank you very much for your help, I also use it as you said “detach Gantt from this and make it a separate variable, everything works correctly.”.
Otherwise it can’t be displayed normally

Thank you for your help. I saw the link you sent me. I’ll download it and try it.

I used the version you sent me, and now it displays normally, thank you very much


For everyone else: the issue was fixed in the 7.1.5 version: