提交代码
parent
9d96d2da6b
commit
0b63423b3b
|
@ -417,7 +417,7 @@ class MenuAPI {
|
|||
component: "manage/equipment/addNet",
|
||||
name: "equipmentAddNet",
|
||||
meta: {
|
||||
title: "计算网络设备",
|
||||
title: "计算网络设备新增",
|
||||
hidden: true,
|
||||
roles: ["ADMIN", "GUEST"],
|
||||
keepAlive: true,
|
||||
|
@ -425,9 +425,9 @@ class MenuAPI {
|
|||
},
|
||||
},
|
||||
{
|
||||
path: "equipmentView",
|
||||
path: "equipmentDetail",
|
||||
component: "manage/equipment/view",
|
||||
name: "equipmentView",
|
||||
name: "equipmentDetail",
|
||||
meta: {
|
||||
title: "计算设备查看",
|
||||
hidden: true,
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
text
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="openDialog3('user-form', scope.row.id)"
|
||||
@click="handleDetail(scope.row)"
|
||||
><i-ep-view />详细</el-button
|
||||
>
|
||||
<el-button text type="primary" size="small" @click="handleUpdate(scope.row)"
|
||||
|
@ -187,44 +187,15 @@ function handleAddNet() {
|
|||
|
||||
/** 修改设备信息 */
|
||||
function handleUpdate(row: { [key: string]: any }) {
|
||||
router.push({ path: "/tester/equipmentAddNet", query: { id: row.device_id } });
|
||||
router.push({ path: "/tester/equipmentEdit", query: { id: row.device_id } });
|
||||
}
|
||||
|
||||
/** 设备信息详情 */
|
||||
function handleDetail(type: string, id?: number) {
|
||||
router.push({ path: "/tester/equipmentDetail", query: { id: row.device_id } });
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
handleQuery();
|
||||
});
|
||||
|
||||
/**
|
||||
* 打开弹窗
|
||||
*
|
||||
* @param type 弹窗类型 用户表单:user-form | 用户导入:user-import
|
||||
* @param id 用户ID
|
||||
*/
|
||||
async function openDialog(type: string, id?: number) {
|
||||
router.push({ path: "/tester/equipmentEdit" });
|
||||
}
|
||||
|
||||
async function openDialog3(type: string, id?: number) {
|
||||
router.push({ path: "/tester/equipmentView" });
|
||||
}
|
||||
async function openDialog4(type: string, row) {
|
||||
if (row.sblx == "网络设备") {
|
||||
router.push({ path: "/tester/equipmentEditNet" });
|
||||
} else {
|
||||
router.push({ path: "/tester/equipmentEditPcie" });
|
||||
}
|
||||
}
|
||||
/** 下载导入模板 */
|
||||
function downloadTemplate() {
|
||||
ElMessage.success("下载模板成功");
|
||||
}
|
||||
|
||||
/** 导出用户 */
|
||||
function handleExport() {
|
||||
ElMessage.success("导出成功");
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
//handleQuery();
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue