|
@@ -51,12 +51,15 @@
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 非编辑态操作 -->
|
|
<!-- 非编辑态操作 -->
|
|
|
<div v-else class="flex-align-center flex-row" style="color: #2d8cf0">
|
|
<div v-else class="flex-align-center flex-row" style="color: #2d8cf0">
|
|
|
- <a-tooltip title="设备日志">
|
|
|
|
|
- <CloudServerOutlined style="margin-right: 10px;" @click="onClickDeviceLog(record)" />
|
|
|
|
|
|
|
+ <a-tooltip title="异常反馈" v-if="record.domain === 3">
|
|
|
|
|
+ <CloudServerOutlined style="margin-right: 10px;" @click="onClickFeedback(record)" />
|
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
|
- <a-tooltip title="告警信息">
|
|
|
|
|
|
|
+ <a-tooltip title="告警信息" v-if="record.domain === 3">
|
|
|
<FileSearchOutlined style="margin-right: 10px;" @click="onClickDeviceHms(record)" />
|
|
<FileSearchOutlined style="margin-right: 10px;" @click="onClickDeviceHms(record)" />
|
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
|
|
|
+ <a-tooltip title="设备运维" v-if="record.domain === 3">
|
|
|
|
|
+ <SettingOutlined style="margin-right: 10px;" />
|
|
|
|
|
+ </a-tooltip>
|
|
|
<a-tooltip title="编辑">
|
|
<a-tooltip title="编辑">
|
|
|
<EditOutlined style="margin-right: 10px;" @click="onClickEdit(record)" />
|
|
<EditOutlined style="margin-right: 10px;" @click="onClickEdit(record)" />
|
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
@@ -68,8 +71,9 @@
|
|
|
</a-table>
|
|
</a-table>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <!-- 设备日志 -->
|
|
|
|
|
- <DeviceLogUploadRecordDrawer v-model:visible="state.deviceLogDrawerVisible" :device="state.currentDevice" />
|
|
|
|
|
|
|
+ <!-- 异常反馈 -->
|
|
|
|
|
+ <FeedbackDrawer :visible="state.feedbackDrawerVisible" :device="state.currentDevice"
|
|
|
|
|
+ :onClose="() => state.feedbackDrawerVisible = false" />
|
|
|
<!-- 告警信息 -->
|
|
<!-- 告警信息 -->
|
|
|
<DeviceHmsDrawer v-model:visible="state.deviceHmsDrawerVisible" :device="state.currentDevice" />
|
|
<DeviceHmsDrawer v-model:visible="state.deviceHmsDrawerVisible" :device="state.currentDevice" />
|
|
|
</template>
|
|
</template>
|
|
@@ -77,11 +81,11 @@
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
import { reactive, onMounted, onUnmounted } from 'vue';
|
|
import { reactive, onMounted, onUnmounted } from 'vue';
|
|
|
import { Modal } from 'ant-design-vue';
|
|
import { Modal } from 'ant-design-vue';
|
|
|
-import { EditOutlined, CheckOutlined, CloseOutlined, DeleteOutlined, FileSearchOutlined, CloudServerOutlined } from '@ant-design/icons-vue';
|
|
|
|
|
|
|
+import { EditOutlined, CheckOutlined, CloseOutlined, SettingOutlined, DeleteOutlined, FileSearchOutlined, CloudServerOutlined } from '@ant-design/icons-vue';
|
|
|
import Search from './components/Search.vue';
|
|
import Search from './components/Search.vue';
|
|
|
import CustomCell from './components/CustomCell.vue';
|
|
import CustomCell from './components/CustomCell.vue';
|
|
|
import DeviceFirmwareUpgrade from '/@/components/devices/device-upgrade/DeviceFirmwareUpgrade.vue';
|
|
import DeviceFirmwareUpgrade from '/@/components/devices/device-upgrade/DeviceFirmwareUpgrade.vue';
|
|
|
-import DeviceLogUploadRecordDrawer from '/@/components/devices/device-log/DeviceLogUploadRecordDrawer.vue';
|
|
|
|
|
|
|
+import FeedbackDrawer from './components/FeedbackDrawer.vue';
|
|
|
import DeviceHmsDrawer from '/@/components/devices/device-hms/DeviceHmsDrawer.vue';
|
|
import DeviceHmsDrawer from '/@/components/devices/device-hms/DeviceHmsDrawer.vue';
|
|
|
import { getBindingDevices, updateDevice, unbindDevice } from '/@/api/manage';
|
|
import { getBindingDevices, updateDevice, unbindDevice } from '/@/api/manage';
|
|
|
import { apis } from '/@/api/custom';
|
|
import { apis } from '/@/api/custom';
|
|
@@ -98,7 +102,7 @@ interface State {
|
|
|
editableData: {
|
|
editableData: {
|
|
|
[key: string]: any,
|
|
[key: string]: any,
|
|
|
},
|
|
},
|
|
|
- deviceLogDrawerVisible: boolean,
|
|
|
|
|
|
|
+ feedbackDrawerVisible: boolean,
|
|
|
deviceHmsDrawerVisible: boolean,
|
|
deviceHmsDrawerVisible: boolean,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -111,7 +115,7 @@ const state: State = reactive({
|
|
|
selectedRowKeys: [],
|
|
selectedRowKeys: [],
|
|
|
currentDevice: {},
|
|
currentDevice: {},
|
|
|
editableData: {},
|
|
editableData: {},
|
|
|
- deviceLogDrawerVisible: false,
|
|
|
|
|
|
|
+ feedbackDrawerVisible: false,
|
|
|
deviceHmsDrawerVisible: false,
|
|
deviceHmsDrawerVisible: false,
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -257,7 +261,7 @@ const columns = [
|
|
|
title: '操作',
|
|
title: '操作',
|
|
|
dataIndex: 'actions',
|
|
dataIndex: 'actions',
|
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
|
- width: 120,
|
|
|
|
|
|
|
+ width: 140,
|
|
|
slots: { customRender: 'action' },
|
|
slots: { customRender: 'action' },
|
|
|
},
|
|
},
|
|
|
]
|
|
]
|
|
@@ -299,9 +303,9 @@ const onClickReset = async (query: any) => {
|
|
|
await fetchList();
|
|
await fetchList();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 点击设备日志
|
|
|
|
|
-const onClickDeviceLog = (record: any) => {
|
|
|
|
|
- state.deviceLogDrawerVisible = true;
|
|
|
|
|
|
|
+// 点击异常反馈
|
|
|
|
|
+const onClickFeedback = (record: any) => {
|
|
|
|
|
+ state.feedbackDrawerVisible = true;
|
|
|
state.currentDevice = record;
|
|
state.currentDevice = record;
|
|
|
}
|
|
}
|
|
|
|
|
|