|
@@ -15,15 +15,6 @@
|
|
|
@keyup.enter="filterNode"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item>
|
|
|
- <el-button
|
|
|
- type="info"
|
|
|
- icon="Search"
|
|
|
- @keydown.enter.prevent
|
|
|
- @click="handleRefreshEquipmentCategory"
|
|
|
- >搜索</el-button
|
|
|
- >
|
|
|
- </el-form-item> -->
|
|
|
<el-form-item>
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -38,21 +29,6 @@
|
|
|
<!-- 设备类别列表区域 -->
|
|
|
<div class="el-table-container">
|
|
|
<div class="el-table-inner-container" >
|
|
|
- <!-- <el-table v-loading="equipmentCategoryLoading" ref="categoryTable" :data="equipmentCategoryList" height="100%" row-key="id" :indent="20" highlight-current-row default-expand-all @current-change="handleCurrentCategoryChange">
|
|
|
- <el-table-column type="index" label="序号" width="50" align="center" />
|
|
|
- <el-table-column prop="name" label="设备类别名称" width="100" header-align="center" />
|
|
|
- <el-table-column prop="remark" label="备注" header-align="center" />
|
|
|
- <el-table-column label="操作" width="140" align="center">
|
|
|
- <template #default="scope">
|
|
|
- <el-button link type="warning" icon="Edit" @click="handleShowEquipmentCategoryDialog(scope.row.id)" v-hasPermi="['business:equipment:edit']">
|
|
|
- 编辑
|
|
|
- </el-button>
|
|
|
- <el-button link type="danger" icon="Delete" @click="handleDeleteCategory(scope.row.id)" v-hasPermi="['business:equipment:remove']">
|
|
|
- 删除
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table> -->
|
|
|
<el-tree
|
|
|
ref="categoryTable"
|
|
|
v-loading="equipmentCategoryLoading"
|
|
@@ -129,7 +105,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="info" icon="Search" @click="handleRefreshEquipment"
|
|
|
+ <el-button type="info" icon="Search" :disabled="equipmentCategoryList.length == 0" @click="handleRefreshEquipment"
|
|
|
>搜索</el-button
|
|
|
>
|
|
|
</el-form-item>
|
|
@@ -137,6 +113,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
icon="Plus"
|
|
|
+ :disabled="equipmentCategoryList.length == 0"
|
|
|
@click="handleShowEquipmentDetailDialog(null)"
|
|
|
v-hasPermi="['business:equipment:add']"
|
|
|
>新增</el-button
|
|
@@ -383,8 +360,8 @@ const handleDeleteCategory = (data) => {
|
|
|
.confirm("确定删除数据项?")
|
|
|
.then(() => {
|
|
|
delCategory(data.id).then(() => {
|
|
|
- proxy.$modal.msgSuccess("操作成功!");
|
|
|
handleRefreshCategory();
|
|
|
+ proxy.$modal.msgSuccess("操作成功!");
|
|
|
});
|
|
|
})
|
|
|
.catch(() => {});
|