| | |
| | | </ul> |
| | | <el-table row-key="id" :tree-props="{ children: 'childCategoryList' }" v-loading="isWorking.search" |
| | | :data="dataList" stripe @selection-change="handleSelectionChange"> |
| | | <el-table-column prop="name" label="设备分类" min-width="100px"></el-table-column> |
| | | <el-table-column prop="name" label="资产分类" min-width="100px"></el-table-column> |
| | | <!-- <el-table-column prop="parentName" label="所属分类" min-width="100px"></el-table-column> --> |
| | | <el-table-column prop="sortnum" label="排序码" min-width="100px"></el-table-column> |
| | | <el-table-column v-if="containPermissions(['business:category:update', 'business:category:delete'])" label="操作" |
| | |
| | | methods: { |
| | | handleEdit(row) { |
| | | this.isShowEdit = true |
| | | let str = row && row.id ? '编辑设备分类' : '新建设备分类' |
| | | let str = row && row.id ? '编辑资产分类' : '新建资产分类' |
| | | this.$nextTick(() => { |
| | | this.$refs.CateEditRef.open(str) |
| | | this.$refs.CateEditRef.getList() |