AVUE curd 有一个字段为tree时 无法使用拖动排序

列的配置

            {
              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();
        });
      },
上一篇:Elasticsearch基本CURD操作语法讲解


下一篇:laravel 使用简介 curd