linwei
2024-01-30 af9d7b07f1969beeb5f7d61af2fc4f09664919bf
src/views/userHouse/lable/categoryList.vue
@@ -20,7 +20,7 @@
<script>
  import {
    getTreeList,
    add,
    submit,
    update,
    remove
  } from '@/api/categoryLabel/category'
@@ -45,7 +45,7 @@
          menuWidth: 240,
          lazy: true,
          rowKey: 'id',
          // defaultExpandAll: true,
          defaultExpandAll: true,
          column: [{
            label: '名称',
            prop: 'name'
@@ -53,6 +53,14 @@
            label: 'ID',
            prop: 'id',
            display: false
          }, {
            label: '层级',
            prop: 'level',
            // display: false
          }, {
            label: '编码',
            prop: 'categoryNo',
            // display: false
          }, {
            label: '父级id',
            prop: 'parentId',
@@ -131,9 +139,9 @@
      },
      rowSave(row, done) {
        row.parentId = this.parentId
        row.labelName = row.name
        add(row).then(() => {
        // row.parentId = this.parentId
        row.categoryName = row.name
        submit(row).then(() => {
          this.initFlag = false
          this.onLoad(this.page)
          this.$message({
@@ -178,4 +186,4 @@
<style></style>
<style></style>