tangzy
2021-09-03 8e68b3cefdf22c2eb37e02e2bafa06013bab5053
src/views/zc/zc.vue
@@ -79,6 +79,7 @@
              label: "账号",
              searchSpan:4,
              display: false,
              search: true,
              disabled:true,
              prop: "username",
            },
@@ -92,6 +93,7 @@
            {
              label: "姓名",
              display: false,
              search: true,
              searchSpan:4,
              disabled:true,
              prop: "sname",
@@ -105,7 +107,17 @@
            {
              label: "部门",
              editDisplay: false,
              prop: "deptid",
              prop: "deptName",
            },
            {
              label: "角色",
              prop: "parentId",
              hide: true,
              dicData: [],
              type: "tree",
              props: {
                label: "title"
              },
            },
            {
              label: "审核状态",
@@ -154,7 +166,14 @@
      }
    },
    methods: {
      initData(){
        getRoleTree().then(res => {
          const column = this.findObject(this.option.column, "parentId");
          column.dicData = res.data.data;
        });
      },
      handleEdit (row, index) {
        this.initData();
        this.$refs.crud.rowEdit(row, index);
      },
      rowSave(row, done, loading) {