|
@@ -15,45 +15,45 @@
|
|
:inline="true"
|
|
:inline="true"
|
|
label-width="68px"
|
|
label-width="68px"
|
|
>
|
|
>
|
|
- <el-form-item label="计划名称" prop="planTitle">
|
|
|
|
|
|
+ <el-form-item :label="t('main.planName')" prop="planTitle" style="margin-left: 25px">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.planTitle"
|
|
v-model="queryParams.planTitle"
|
|
- placeholder="请输入计划名称"
|
|
|
|
|
|
+ :placeholder="t('main.nameHolder')"
|
|
clearable
|
|
clearable
|
|
@keyup.enter="handleQuery"
|
|
@keyup.enter="handleQuery"
|
|
class="!w-240px"
|
|
class="!w-240px"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="计划编号" prop="planCode">
|
|
|
|
|
|
+ <el-form-item :label="t('main.planCode')" prop="planCode">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.planCode"
|
|
v-model="queryParams.planCode"
|
|
- placeholder="请输入计划编号"
|
|
|
|
|
|
+ :placeholder="t('main.codeHolder')"
|
|
clearable
|
|
clearable
|
|
@keyup.enter="handleQuery"
|
|
@keyup.enter="handleQuery"
|
|
class="!w-240px"
|
|
class="!w-240px"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="创建时间" prop="createTime">
|
|
|
|
|
|
+ <el-form-item :label="t('common.createTime')" prop="createTime">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="queryParams.createTime"
|
|
v-model="queryParams.createTime"
|
|
value-format="YYYY-MM-DD HH:mm:ss"
|
|
value-format="YYYY-MM-DD HH:mm:ss"
|
|
type="daterange"
|
|
type="daterange"
|
|
- start-placeholder="开始日期"
|
|
|
|
- end-placeholder="结束日期"
|
|
|
|
|
|
+ :start-placeholder="t('info.start')"
|
|
|
|
+ :end-placeholder="t('info.end')"
|
|
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
|
:default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
|
class="!w-220px"
|
|
class="!w-220px"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
|
|
- <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
|
|
|
|
+ <el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> {{ t('operationFill.search') }}</el-button>
|
|
|
|
+ <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> {{ t('operationFill.reset') }}</el-button>
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
plain
|
|
plain
|
|
@click="openForm('create')"
|
|
@click="openForm('create')"
|
|
v-hasPermi="['rq:iot-inspect-plan:create']"
|
|
v-hasPermi="['rq:iot-inspect-plan:create']"
|
|
>
|
|
>
|
|
- <Icon icon="ep:plus" class="mr-5px" /> 新增
|
|
|
|
|
|
+ <Icon icon="ep:plus" class="mr-5px" /> {{ t('action.add') }}
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
type="success"
|
|
type="success"
|
|
@@ -71,22 +71,22 @@
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<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('iotDevice.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="planTitle" />
|
|
|
|
- <el-table-column label="计划编号" align="center" prop="planCode" />
|
|
|
|
- <el-table-column label="周期" align="center" prop="planCycle" />
|
|
|
|
- <el-table-column label="单位" align="center" prop="planUnit" >
|
|
|
|
|
|
+ <el-table-column :label="t('route.planTitle')" align="center" prop="planTitle" />
|
|
|
|
+ <el-table-column :label="t('route.planNumber')" align="center" prop="planCode" />
|
|
|
|
+ <el-table-column :label="t('route.cycle')" align="center" prop="planCycle" />
|
|
|
|
+ <el-table-column :label="t('workOrderMaterial.unit')" align="center" prop="planUnit" >
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<dict-tag :type="DICT_TYPE.PMS_INSPECT_UNIT" :value="scope.row.planUnit" />
|
|
<dict-tag :type="DICT_TYPE.PMS_INSPECT_UNIT" :value="scope.row.planUnit" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="负责人" align="center" prop="chargeName" />
|
|
|
|
|
|
+ <el-table-column :label="t('iotMaintain.PersonInCharge')" align="center" prop="chargeName" />
|
|
<!-- <el-table-column label="设备" align="center" prop="deviceIds" />-->
|
|
<!-- <el-table-column label="设备" align="center" prop="deviceIds" />-->
|
|
- <el-table-column label="状态" key="status">
|
|
|
|
|
|
+ <el-table-column :label="t('bomList.status')" key="status">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-switch
|
|
<el-switch
|
|
v-model="scope.row.status"
|
|
v-model="scope.row.status"
|
|
@@ -96,16 +96,16 @@
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
|
|
+ <el-table-column :label="t('form.remark')" align="center" prop="remark" />
|
|
<el-table-column
|
|
<el-table-column
|
|
- label="创建时间"
|
|
|
|
|
|
+ :label="t('table.createTime')"
|
|
align="center"
|
|
align="center"
|
|
prop="createTime"
|
|
prop="createTime"
|
|
:formatter="dateFormatter"
|
|
:formatter="dateFormatter"
|
|
width="180px"
|
|
width="180px"
|
|
/>
|
|
/>
|
|
<!-- <el-table-column label="部门id" align="center" prop="deptId" />-->
|
|
<!-- <el-table-column label="部门id" align="center" prop="deptId" />-->
|
|
- <el-table-column label="操作" align="center" min-width="120px">
|
|
|
|
|
|
+ <el-table-column :label="t('operationFill.operation')" align="center" min-width="120px">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-button
|
|
<el-button
|
|
link
|
|
link
|
|
@@ -113,7 +113,7 @@
|
|
@click="openForm('update', scope.row.id)"
|
|
@click="openForm('update', scope.row.id)"
|
|
v-hasPermi="['rq:iot-inspect-plan:update']"
|
|
v-hasPermi="['rq:iot-inspect-plan:update']"
|
|
>
|
|
>
|
|
- 编辑
|
|
|
|
|
|
+ {{ t('fault.edit') }}
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
link
|
|
link
|
|
@@ -121,7 +121,7 @@
|
|
@click="handleDelete(scope.row.id)"
|
|
@click="handleDelete(scope.row.id)"
|
|
v-hasPermi="['rq:iot-inspect-plan:delete']"
|
|
v-hasPermi="['rq:iot-inspect-plan:delete']"
|
|
>
|
|
>
|
|
- 删除
|
|
|
|
|
|
+ {{ t('fault.del') }}
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|