|
@@ -72,11 +72,11 @@
|
|
|
<el-table-column type="selection" width="55" />
|
|
<el-table-column type="selection" width="55" />
|
|
|
<el-table-column v-for="item in columns.filter(i => i.visible)" :prop="item.prop"
|
|
<el-table-column v-for="item in columns.filter(i => i.visible)" :prop="item.prop"
|
|
|
:label="item.label"></el-table-column>
|
|
:label="item.label"></el-table-column>
|
|
|
- <el-table-column label="设备类型">
|
|
|
|
|
|
|
+ <!-- <el-table-column label="设备类型">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
{{ getTypeName(scope.row) }}
|
|
{{ getTypeName(scope.row) }}
|
|
|
</template>
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
|
|
|
|
+ </el-table-column> -->
|
|
|
<el-table-column label="操作">
|
|
<el-table-column label="操作">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<div>
|
|
<div>
|
|
@@ -87,6 +87,13 @@
|
|
|
</el-icon>
|
|
</el-icon>
|
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
+ <el-button link @click="goUpdate(scope.row)">
|
|
|
|
|
+ <el-tooltip effect="dark" content="修改">
|
|
|
|
|
+ <el-icon>
|
|
|
|
|
+ <Edit />
|
|
|
|
|
+ </el-icon>
|
|
|
|
|
+ </el-tooltip>
|
|
|
|
|
+ </el-button>
|
|
|
<el-popconfirm title="确定删除该标签?">
|
|
<el-popconfirm title="确定删除该标签?">
|
|
|
<template #reference>
|
|
<template #reference>
|
|
|
<el-button link><el-tooltip effect="dark" content="删除"><el-icon>
|
|
<el-button link><el-tooltip effect="dark" content="删除"><el-icon>
|
|
@@ -115,7 +122,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts" name="Units">
|
|
<script setup lang="ts" name="Units">
|
|
|
-import { ref,toRaw } from "vue";
|
|
|
|
|
|
|
+import { ref, toRaw } from "vue";
|
|
|
import { LayTree } from "@layui/layui-vue";
|
|
import { LayTree } from "@layui/layui-vue";
|
|
|
import "@layui/layui-vue/lib/index.css";
|
|
import "@layui/layui-vue/lib/index.css";
|
|
|
|
|
|
|
@@ -135,6 +142,14 @@ const goadd = () => {
|
|
|
router.push("/device/equipmentdash/add")
|
|
router.push("/device/equipmentdash/add")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+const goUpdate = (item) => {
|
|
|
|
|
+ // router.push({ name: 'EquipmentDashAdd', params: { userId: '123' }})
|
|
|
|
|
+ router.push({ path: '/device/equipmentdash/add', query:{id:item.id} })
|
|
|
|
|
+ // router.push({ name: "EquipmentDashAdd", params: { item } })
|
|
|
|
|
+ // router.push({path:"/device/equipmentdash/add",params:item})
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
const handleClick = (node) => {
|
|
const handleClick = (node) => {
|
|
|
//console.log("Click Node:" + JSON.stringify(node));
|
|
//console.log("Click Node:" + JSON.stringify(node));
|
|
|
searchform.value.equipmentTreeId = node.id
|
|
searchform.value.equipmentTreeId = node.id
|
|
@@ -154,7 +169,7 @@ const devicetabledata = ref([]);
|
|
|
const searchform = ref({
|
|
const searchform = ref({
|
|
|
name: "",
|
|
name: "",
|
|
|
sn: "",
|
|
sn: "",
|
|
|
- equipmentTreeId:""
|
|
|
|
|
|
|
+ equipmentTreeId: ""
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const columns = ref([
|
|
const columns = ref([
|
|
@@ -163,30 +178,30 @@ const columns = ref([
|
|
|
{ label: '设备编码', prop: 'sn', visible: true },
|
|
{ label: '设备编码', prop: 'sn', visible: true },
|
|
|
{ label: '备用编码', prop: 'spareSn', visible: true },
|
|
{ label: '备用编码', prop: 'spareSn', visible: true },
|
|
|
{ label: '设备名称', prop: 'name', visible: true },
|
|
{ label: '设备名称', prop: 'name', visible: true },
|
|
|
- { label: '设备信息', prop: 'equipment.name', visible: true },
|
|
|
|
|
|
|
+ { label: '设备模板', prop: 'equipment.name', visible: true },
|
|
|
//{label: '所属公司', prop: 'parity', visible: true},
|
|
//{label: '所属公司', prop: 'parity', visible: true},
|
|
|
- { label: '所属组织机构', prop: 'deptName', visible: true },
|
|
|
|
|
- // { label: '所属类型', prop: 'apiUrl', visible: true },
|
|
|
|
|
- { label: '负责人', prop: 'uuid', visible: true },
|
|
|
|
|
- { label: '安装日期', prop: 'installationDate', visible: true },
|
|
|
|
|
- { label: '安装地点地址', prop: 'address', visible: true },
|
|
|
|
|
- // {label: '关联设备Id', prop: 'protocolDesc', visible: true},
|
|
|
|
|
- { label: '标签', prop: 'tagids', visible: true },
|
|
|
|
|
- { label: '状态', prop: 'status', visible: true },
|
|
|
|
|
- { label: '保修期结束日期', prop: 'endOfWarrantyPeriod', visible: true },
|
|
|
|
|
- { label: '制造日期', prop: 'manufacturingDate', visible: true },
|
|
|
|
|
- { label: '资产编码', prop: 'assetNo', visible: true },
|
|
|
|
|
- { label: '资产编号', prop: 'serialNumber', visible: true },
|
|
|
|
|
- { label: '使用证编号', prop: 'useCertificateNo', visible: true },
|
|
|
|
|
- { label: '安全级别', prop: 'securityLevel', visible: true },
|
|
|
|
|
- { label: '使用年限', prop: 'usefulLife', visible: true },
|
|
|
|
|
- { label: '变动日期', prop: 'changeDate', visible: true },
|
|
|
|
|
- { label: '供货厂家', prop: 'supplier', visible: true },
|
|
|
|
|
- { label: '创建人', prop: 'createBy', visible: true },
|
|
|
|
|
- { label: '创建时间', prop: 'createTime', visible: true },
|
|
|
|
|
- { label: '更新人', prop: 'updateBy', visible: true },
|
|
|
|
|
- { label: '更新时间', prop: 'updateTime', visible: true },
|
|
|
|
|
- { label: '备注', prop: 'remark', visible: true },
|
|
|
|
|
|
|
+ // { label: '所属组织机构', prop: 'deptName', visible: true },
|
|
|
|
|
+ { label: '所属类型', prop: 'equipment.type', visible: true },
|
|
|
|
|
+ { label: '负责人', prop: 'uuid', visible: false },
|
|
|
|
|
+ { label: '安装日期', prop: 'installationDate', visible: false },
|
|
|
|
|
+ { label: '安装地点地址', prop: 'address', visible: false },
|
|
|
|
|
+ { label: '关联设备Id', prop: 'protocolDesc', visible: false },
|
|
|
|
|
+ { label: '标签', prop: 'tagids', visible: false },
|
|
|
|
|
+ { label: '状态', prop: 'status', visible: false },
|
|
|
|
|
+ { label: '保修期结束日期', prop: 'endOfWarrantyPeriod', visible: false },
|
|
|
|
|
+ { label: '制造日期', prop: 'manufacturingDate', visible: false },
|
|
|
|
|
+ { label: '资产编码', prop: 'assetNo', visible: false },
|
|
|
|
|
+ { label: '资产编号', prop: 'serialNumber', visible: false },
|
|
|
|
|
+ { label: '使用证编号', prop: 'useCertificateNo', visible: false },
|
|
|
|
|
+ { label: '安全级别', prop: 'securityLevel', visible: false },
|
|
|
|
|
+ { label: '使用年限', prop: 'usefulLife', visible: false },
|
|
|
|
|
+ { label: '变动日期', prop: 'changeDate', visible: false },
|
|
|
|
|
+ { label: '供货厂家', prop: 'supplier', visible: false },
|
|
|
|
|
+ { label: '创建人', prop: 'createBy', visible: false },
|
|
|
|
|
+ { label: '创建时间', prop: 'createTime', visible: false },
|
|
|
|
|
+ { label: '更新人', prop: 'updateBy', visible: false },
|
|
|
|
|
+ { label: '更新时间', prop: 'updateTime', visible: false },
|
|
|
|
|
+ { label: '备注', prop: 'remark', visible: false },
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
const onchangepage = (page) => {
|
|
const onchangepage = (page) => {
|
|
@@ -212,7 +227,7 @@ const requery = () => {
|
|
|
searchform.value = {
|
|
searchform.value = {
|
|
|
name: "",
|
|
name: "",
|
|
|
sn: "",
|
|
sn: "",
|
|
|
- equipmentTreeId:''
|
|
|
|
|
|
|
+ equipmentTreeId: ''
|
|
|
}
|
|
}
|
|
|
getlistEquipmentSbook();
|
|
getlistEquipmentSbook();
|
|
|
}
|
|
}
|