设备列表逻辑修改
This commit is contained in:
@ -118,7 +118,6 @@
|
||||
|
||||
<el-table-column label="操作" fixed="right" width="280" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" @click="handleDatails(scope.row)">详情</el-button>
|
||||
<el-tooltip v-if="scope.row.id !== 1 && scope.row.deviceStatus == 1" content="修改" placement="top">
|
||||
<el-button v-hasPermi="['equipment:devices:edit']" link type="primary" icon="Edit"
|
||||
@click="handleUpdate(scope.row)"></el-button>
|
||||
@ -514,12 +513,6 @@ const handleAdd = async () => {
|
||||
// 每次打开弹框时获取最新的设备类型数据
|
||||
getDeviceType();
|
||||
};
|
||||
// 详情
|
||||
const handleDatails = (row: any) => {
|
||||
console.log(row, 'row');
|
||||
const deviceId = row.deviceId;
|
||||
router.push('/equipmentManagement/deviceDetails/' + deviceId);
|
||||
}
|
||||
/** 修改按钮操作 */
|
||||
const handleUpdate = async (row?: deviceForm) => {
|
||||
reset();
|
||||
|
Reference in New Issue
Block a user