其他分享
首页 > 其他分享> > AVUE curd 有一个字段为tree时 无法使用拖动排序

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();
        });
      },

标签:loading,false,column,res,tree,curd,data,page,AVUE
来源: https://www.cnblogs.com/guxingy/p/14347837.html