|
@@ -10,7 +10,7 @@
|
|
@keydown.enter.prevent />
|
|
@keydown.enter.prevent />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-button type="primary" icon="Plus" v-hasPermi="['business:equipment:add']"
|
|
|
|
|
|
+ <el-button type="primary" icon="Plus" v-hasPermi="['business:equipmentCategory:add']"
|
|
@click="handleShowEquipmentCategoryDialog(null)">
|
|
@click="handleShowEquipmentCategoryDialog(null)">
|
|
新增
|
|
新增
|
|
</el-button>
|
|
</el-button>
|
|
@@ -33,10 +33,10 @@
|
|
<span>
|
|
<span>
|
|
<el-button link type="warning" icon="Edit"
|
|
<el-button link type="warning" icon="Edit"
|
|
@click="handleShowEquipmentCategoryDialog(data)"
|
|
@click="handleShowEquipmentCategoryDialog(data)"
|
|
- v-hasPermi="['business:equipment:edit']">编辑
|
|
|
|
|
|
+ v-hasPermi="['business:equipmentCategory:edit']">编辑
|
|
</el-button>
|
|
</el-button>
|
|
<el-button link type="danger" icon="Delete" @click="handleDeleteCategory(data)"
|
|
<el-button link type="danger" icon="Delete" @click="handleDeleteCategory(data)"
|
|
- v-hasPermi="['business:equipment:remove']">删除
|
|
|
|
|
|
+ v-hasPermi="['business:equipmentCategory:remove']">删除
|
|
</el-button>
|
|
</el-button>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
@@ -54,12 +54,12 @@
|
|
/> -->
|
|
/> -->
|
|
</section>
|
|
</section>
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
<!-- 设备类别表单 -->
|
|
<!-- 设备类别表单 -->
|
|
<equipment-category-form ref="categoryRef" @handleSaveSuccess="handleRefreshCategory" />
|
|
<equipment-category-form ref="categoryRef" @handleSaveSuccess="handleRefreshCategory" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
-
|
|
|
|
|
|
+
|
|
<script setup name="Equipment">
|
|
<script setup name="Equipment">
|
|
import equipmentCategoryForm from "./formCategory";
|
|
import equipmentCategoryForm from "./formCategory";
|
|
import equipmentDetailForm from "./formDetail";
|
|
import equipmentDetailForm from "./formDetail";
|
|
@@ -115,7 +115,7 @@ const getCategoryList = () => {
|
|
equipmentCategoryList.value = response.rows;
|
|
equipmentCategoryList.value = response.rows;
|
|
equipmentCategoryTotal.value = response.total;
|
|
equipmentCategoryTotal.value = response.total;
|
|
console.log(equipmentCategoryList.value.length);
|
|
console.log(equipmentCategoryList.value.length);
|
|
-
|
|
|
|
|
|
+
|
|
equipmentCategoryLoading.value = false;
|
|
equipmentCategoryLoading.value = false;
|
|
});
|
|
});
|
|
};
|
|
};
|
|
@@ -193,5 +193,4 @@ const handleShowEquipmentCategoryDialog = (data) => {
|
|
cursor: move;
|
|
cursor: move;
|
|
background-color: #eee;
|
|
background-color: #eee;
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
-
|
|
|
|
|
|
+</style>
|