|
@@ -17,6 +17,15 @@
|
|
|
class="!w-200px"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
+<!-- <el-form-item :label="t('iotDevice.brand')" prop="brandName">-->
|
|
|
+<!-- <el-input-->
|
|
|
+<!-- v-model="queryParams.brandName"-->
|
|
|
+<!-- :placeholder="t('iotDevice.brandHolder')"-->
|
|
|
+<!-- clearable-->
|
|
|
+<!-- @keyup.enter="handleQuery"-->
|
|
|
+<!-- class="!w-200px"-->
|
|
|
+<!-- />-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
<el-form-item :label="t('common.createTime')" prop="createTime">
|
|
|
<el-date-picker
|
|
|
v-model="queryParams.createTime"
|
|
@@ -34,12 +43,12 @@
|
|
|
<el-button @click="handleConfirm" type="danger"
|
|
|
><Icon icon="ep:check" class="mr-5px" /> {{ t('workOrderMaterial.confirm') }}</el-button
|
|
|
>
|
|
|
- <el-button @click="toggleAll" type="primary"
|
|
|
- ><Icon icon="ep:refresh" class="mr-5px" />{{ t('chooseMaintain.selectAll') }}</el-button
|
|
|
- >
|
|
|
- <el-button @click="invertSelection" type="info"
|
|
|
- ><Icon icon="ep:refresh" class="mr-5px" />{{ t('chooseMaintain.cancelAllSelection') }}</el-button
|
|
|
- >
|
|
|
+<!-- <el-button @click="toggleAll" type="primary"-->
|
|
|
+<!-- ><Icon icon="ep:refresh" class="mr-5px" />{{ t('chooseMaintain.selectAll') }}</el-button-->
|
|
|
+<!-- >-->
|
|
|
+<!-- <el-button @click="invertSelection" type="info"-->
|
|
|
+<!-- ><Icon icon="ep:refresh" class="mr-5px" />{{ t('chooseMaintain.cancelAllSelection') }}</el-button-->
|
|
|
+<!-- >-->
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</ContentWrap>
|
|
@@ -89,6 +98,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column :label="t('inspect.InspectionItems')" align="center" prop="item" />
|
|
|
<el-table-column :label="t('inspect.InspectionStandards')" align="center" prop="standard" />
|
|
|
+ <el-table-column :label="t('iotDevice.brand')" align="center" prop="brandName" />
|
|
|
<el-table-column :label="t('fileInfo.appendix')" align="center" prop="urls">
|
|
|
<template #default="scope">
|
|
|
<el-button v-if="scope.row.urls" link type="primary" @click="openWeb(scope.row.urls)">
|
|
@@ -133,6 +143,7 @@ const queryParams = reactive({
|
|
|
item: undefined,
|
|
|
deptId: undefined,
|
|
|
deviceClassify: undefined,
|
|
|
+ brandName:undefined,
|
|
|
deviceId: undefined,
|
|
|
createTime: undefined
|
|
|
})
|
|
@@ -156,6 +167,11 @@ const removeTag = (route) => {
|
|
|
// 这里可以添加逻辑强制更新行状态(如果需要)
|
|
|
}
|
|
|
};
|
|
|
+const selectRow = (row) => {
|
|
|
+ selectedRow.value = selectedRow.value?.id === row.id ? null : row
|
|
|
+ emit('choose', row)
|
|
|
+ dialogVisible.value = false
|
|
|
+}
|
|
|
const toggleAll = () => {
|
|
|
list.value.forEach((row) => {
|
|
|
tableRef.value.toggleRowSelection(row, true)
|
|
@@ -188,7 +204,7 @@ const toggleRow = (row) => {
|
|
|
const handleRowClick = (row) => {
|
|
|
toggleRow(row)
|
|
|
}
|
|
|
-const open = async (classify, id) => {
|
|
|
+const open = async (classify, id, brandName) => {
|
|
|
dialogVisible.value = true
|
|
|
selectedRows.value = []
|
|
|
queryParams.createTime = undefined
|
|
@@ -209,6 +225,7 @@ const open = async (classify, id) => {
|
|
|
// }
|
|
|
queryParams.deviceId = id
|
|
|
queryParams.deviceClassify = classify
|
|
|
+ queryParams.brandName = brandName
|
|
|
await getList()
|
|
|
}
|
|
|
defineExpose({ open })
|