|
@@ -16,28 +16,28 @@
|
|
:inline="true"
|
|
:inline="true"
|
|
label-width="68px"
|
|
label-width="68px"
|
|
>
|
|
>
|
|
- <el-form-item label="资产编码" prop="deviceCode">
|
|
|
|
|
|
+ <el-form-item :label="t('devicePerson.deviceCode')" prop="deviceCode" style="margin-left: 25px">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.deviceCode"
|
|
v-model="queryParams.deviceCode"
|
|
- placeholder="请输入资产编码"
|
|
|
|
|
|
+ :placeholder="t('devicePerson.codeHolder')"
|
|
clearable
|
|
clearable
|
|
@keyup.enter="handleQuery"
|
|
@keyup.enter="handleQuery"
|
|
class="!w-200px"
|
|
class="!w-200px"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="设备名称" prop="deviceName">
|
|
|
|
|
|
+ <el-form-item :label="t('devicePerson.deviceName')" prop="deviceName">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.deviceName"
|
|
v-model="queryParams.deviceName"
|
|
- placeholder="请输入设备名称"
|
|
|
|
|
|
+ :placeholder="t('devicePerson.nameHolder')"
|
|
clearable
|
|
clearable
|
|
@keyup.enter="handleQuery"
|
|
@keyup.enter="handleQuery"
|
|
class="!w-200px"
|
|
class="!w-200px"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="是否发生过调拨" prop="setFlag" label-width="140px">
|
|
|
|
|
|
+ <el-form-item :label="t('deviceStatus.transfer')" prop="setFlag" label-width="140px">
|
|
<el-select
|
|
<el-select
|
|
v-model="queryParams.setFlag"
|
|
v-model="queryParams.setFlag"
|
|
- placeholder="请选择"
|
|
|
|
|
|
+ :placeholder="t('deviceStatus.choose')"
|
|
clearable
|
|
clearable
|
|
class="!w-240px"
|
|
class="!w-240px"
|
|
>
|
|
>
|
|
@@ -49,10 +49,10 @@
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item v-show="ifShow" label="设备状态" label-width="85px" prop="deviceStatus">
|
|
|
|
|
|
+ <el-form-item v-show="ifShow" :label="t('devicePerson.status')" label-width="85px" prop="deviceStatus">
|
|
<el-select
|
|
<el-select
|
|
v-model="queryParams.deviceStatus"
|
|
v-model="queryParams.deviceStatus"
|
|
- placeholder="设备状态"
|
|
|
|
|
|
+ :placeholder="t('devicePerson.status')"
|
|
clearable
|
|
clearable
|
|
class="!w-240px"
|
|
class="!w-240px"
|
|
>
|
|
>
|
|
@@ -65,10 +65,10 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item v-show="ifShow" label="资产性质" prop="assetProperty">
|
|
|
|
|
|
+ <el-form-item v-show="ifShow" :label="t('devicePerson.assets')" prop="assetProperty">
|
|
<el-select
|
|
<el-select
|
|
v-model="queryParams.assetProperty"
|
|
v-model="queryParams.assetProperty"
|
|
- placeholder="资产性质"
|
|
|
|
|
|
+ :placeholder="t('devicePerson.assets')"
|
|
clearable
|
|
clearable
|
|
class="!w-240px"
|
|
class="!w-240px"
|
|
>
|
|
>
|
|
@@ -81,10 +81,10 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item v-show="ifShow" label="品牌" prop="brand">
|
|
|
|
|
|
+ <el-form-item v-show="ifShow" :label="t('devicePerson.brand')" prop="brand">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.brand"
|
|
v-model="queryParams.brand"
|
|
- placeholder="请输入品牌"
|
|
|
|
|
|
+ :placeholder="t('devicePerson.brandHolder')"
|
|
clearable
|
|
clearable
|
|
@keyup.enter="handleQuery"
|
|
@keyup.enter="handleQuery"
|
|
class="!w-200px"
|
|
class="!w-200px"
|
|
@@ -93,16 +93,16 @@
|
|
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button v-if="!ifShow" @click="moreQuery(true)" type="warning"
|
|
<el-button v-if="!ifShow" @click="moreQuery(true)" type="warning"
|
|
- ><Icon icon="ep:search" class="mr-5px" /> 更多查询</el-button
|
|
|
|
|
|
+ ><Icon icon="ep:search" class="mr-5px" /> {{ t('devicePerson.moreSearch') }}</el-button
|
|
>
|
|
>
|
|
<el-button v-if="ifShow" @click="moreQuery(false)" type="danger"
|
|
<el-button v-if="ifShow" @click="moreQuery(false)" type="danger"
|
|
- ><Icon icon="ep:search" class="mr-5px" /> 收起查询</el-button
|
|
|
|
|
|
+ ><Icon icon="ep:search" class="mr-5px" /> {{ t('devicePerson.closeSearch') }}</el-button
|
|
>
|
|
>
|
|
<el-button @click="handleQuery"
|
|
<el-button @click="handleQuery"
|
|
- ><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button
|
|
|
|
|
|
+ ><Icon icon="ep:search" class="mr-5px" /> {{ t('devicePerson.search') }}</el-button
|
|
>
|
|
>
|
|
<el-button @click="resetQuery"
|
|
<el-button @click="resetQuery"
|
|
- ><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button
|
|
|
|
|
|
+ ><Icon icon="ep:refresh" class="mr-5px" /> {{ t('devicePerson.reset') }}</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
@@ -110,7 +110,7 @@
|
|
@click="openForm('create', undefined, queryParams.deptId)"
|
|
@click="openForm('create', undefined, queryParams.deptId)"
|
|
v-hasPermi="['rq:iot-device:create']"
|
|
v-hasPermi="['rq:iot-device:create']"
|
|
>
|
|
>
|
|
- <Icon icon="ep:plus" class="mr-5px" /> 设备调拨
|
|
|
|
|
|
+ <Icon icon="ep:plus" class="mr-5px" /> {{ t('devicePerson.setUp') }}
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
type="success"
|
|
type="success"
|
|
@@ -128,21 +128,21 @@
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<ContentWrap>
|
|
<ContentWrap>
|
|
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
|
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
|
- <el-table-column label="序号" width="60" align="center">
|
|
|
|
|
|
+ <el-table-column :label="t('monitor.serial')" width="70" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
{{ scope.$index + 1 }}
|
|
{{ scope.$index + 1 }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="资产编码" align="center" prop="deviceCode" />
|
|
|
|
- <el-table-column label="设备名称" align="center" prop="deviceName">
|
|
|
|
|
|
+ <el-table-column :label="t('monitor.deviceCode')" align="center" prop="deviceCode" />
|
|
|
|
+ <el-table-column :label="t('monitor.deviceName')" align="center" prop="deviceName">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-link :underline="false" type="primary" @click="handleDetail(scope.row.id)">
|
|
<el-link :underline="false" type="primary" @click="handleDetail(scope.row.id)">
|
|
{{ scope.row.deviceName }}
|
|
{{ scope.row.deviceName }}
|
|
</el-link>
|
|
</el-link>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="所在部门" align="center" prop="deptName" />
|
|
|
|
- <el-table-column label="设备状态" align="center" prop="deviceStatus">
|
|
|
|
|
|
+ <el-table-column :label="t('devicePerson.dept')" align="center" prop="deptName" />
|
|
|
|
+ <el-table-column :label="t('deviceStatus.status')" align="center" prop="deviceStatus">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<dict-tag :type="DICT_TYPE.PMS_DEVICE_STATUS" :value="scope.row.deviceStatus" />
|
|
<dict-tag :type="DICT_TYPE.PMS_DEVICE_STATUS" :value="scope.row.deviceStatus" />
|
|
</template>
|
|
</template>
|
|
@@ -155,7 +155,7 @@
|
|
:formatter="dateFormatter"
|
|
:formatter="dateFormatter"
|
|
width="180px"
|
|
width="180px"
|
|
/> -->
|
|
/> -->
|
|
- <el-table-column label="操作" align="center" min-width="120px">
|
|
|
|
|
|
+ <el-table-column :label="t('deviceStatus.operation')" align="center" min-width="120px">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-button
|
|
<el-button
|
|
link
|
|
link
|
|
@@ -163,7 +163,7 @@
|
|
@click="handleView(scope.row.id)"
|
|
@click="handleView(scope.row.id)"
|
|
v-hasPermi="['rq:iot-device:query']"
|
|
v-hasPermi="['rq:iot-device:query']"
|
|
>
|
|
>
|
|
- 调拨记录
|
|
|
|
|
|
+ {{ t('deviceStatus.adjustmentRecords') }}
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|