update template part
This commit is contained in:
parent
5b37798a20
commit
a438bcad2f
@ -9,7 +9,12 @@ t.brand.mini = '监控'
|
|||||||
|
|
||||||
// 1 代表 '' 号的替换完成
|
// 1 代表 '' 号的替换完成
|
||||||
// 2 代表 "" 号的替换完成
|
// 2 代表 "" 号的替换完成
|
||||||
|
// 3 代表不带引号,或 {{ }} 的替换,这三种替换需按顺序执行
|
||||||
// ? 代表需要单独review
|
// ? 代表需要单独review
|
||||||
|
// 基本上完成了template模板里的替换工作
|
||||||
|
|
||||||
|
// 对比 v2, v3 的结果,补充此文件和 en.js 文件
|
||||||
|
// 然后替换vue文件的内容
|
||||||
|
|
||||||
t.add = '新增' // 1
|
t.add = '新增' // 1
|
||||||
t.delete = '删除' // 1
|
t.delete = '删除' // 1
|
||||||
@ -78,27 +83,86 @@ t.addr = '地址' // 1
|
|||||||
t.planStop = '计划停机' // ?
|
t.planStop = '计划停机' // ?
|
||||||
t.startTime = '开始时间' // 1
|
t.startTime = '开始时间' // 1
|
||||||
t.endTime = '结束时间' // 1
|
t.endTime = '结束时间' // 1
|
||||||
|
t.to = '至' // 1
|
||||||
t.today = '今天' // 1
|
t.today = '今天' // 1
|
||||||
|
|
||||||
|
t.graph = '图形'
|
||||||
|
t.category = '分类'
|
||||||
|
t.categoryName = '分类名称'
|
||||||
|
t.categoryCode = '分类编码'
|
||||||
|
t.rate = '比例'
|
||||||
|
t.link = '链接地址'
|
||||||
|
t.refresh = '刷新'
|
||||||
|
t.abbr = '缩写'
|
||||||
|
t.detail = '详情'
|
||||||
|
t.edit = '编辑'
|
||||||
|
t.source = '来源'
|
||||||
|
t.auto = '自动'
|
||||||
|
t.manual = '手动'
|
||||||
|
t.loaddone = '加载完成'
|
||||||
|
t.produceTime = '生产日期'
|
||||||
|
t.enterTime = '进厂日期'
|
||||||
|
t.manufacturer = '制造商'
|
||||||
|
|
||||||
|
t.factory = {}
|
||||||
|
t.factory.title = '工厂'
|
||||||
|
t.factory.name = '工厂名称'
|
||||||
|
t.factory.code = '工厂编码'
|
||||||
|
|
||||||
|
t.prod = {}
|
||||||
|
t.prod.name = '产品名称'
|
||||||
|
t.prod.code = '产品编码'
|
||||||
|
|
||||||
t.alarm = {}
|
t.alarm = {}
|
||||||
t.alarm.info = '报警信息'
|
t.alarm.info = '报警信息'
|
||||||
t.alarm.eq = '报警设备'
|
t.alarm.eq = '报警设备'
|
||||||
|
t.alarm.type = '报警类型'
|
||||||
|
t.alarm.code = '报警编码'
|
||||||
|
t.alarm.level = '报警级别'
|
||||||
|
t.alarm.content = '报警内容'
|
||||||
|
t.alarm.source = '报警来源'
|
||||||
|
t.alarm.det = '报警详细内容'
|
||||||
|
|
||||||
t.report = {}
|
t.report = {}
|
||||||
t.report.name = '报表名称'
|
t.report.name = '报表名称'
|
||||||
|
t.report.det = '报表内容'
|
||||||
|
|
||||||
t.inspect = {}
|
t.inspect = {}
|
||||||
t.inspect.type = '检测类型'
|
t.inspect.type = '检测类型'
|
||||||
t.inspect.det = '检测内容'
|
t.inspect.det = '检测内容'
|
||||||
|
t.inspect.people = '检测人员'
|
||||||
|
t.inspect.time = '检测时间'
|
||||||
|
t.inspect.typetotal = '检测类型总数'
|
||||||
|
t.inspect.typename = '检测类型名称'
|
||||||
|
t.inspect.typecode = '检测类型编码'
|
||||||
|
t.inspect.ioTotal = '上下片及检测总数统计'
|
||||||
|
t.inspect.plTotal = '各产线检测类型统计'
|
||||||
|
|
||||||
|
|
||||||
|
t.realtime = {}
|
||||||
|
t.realtime.eq = '设备生产实时数据'
|
||||||
|
t.realtime.pl = '产线生产实时数据'
|
||||||
|
t.realtime.inspect = '质量检查实时数据'
|
||||||
|
t.realtime.in = '进数据'
|
||||||
|
t.realtime.out = '出数据'
|
||||||
|
t.realtime.rate = '报废比例'
|
||||||
|
|
||||||
|
|
||||||
t.ws = {}
|
t.ws = {}
|
||||||
t.ws.title = '工段'
|
t.ws.title = '工段'
|
||||||
t.ws.name = '工段名称'
|
t.ws.name = '工段名称'
|
||||||
|
t.ws.code = '工段编码'
|
||||||
|
t.ws.binded = '已绑定的设备'
|
||||||
|
t.ws.unbind = '选择一个设备进行绑定'
|
||||||
|
t.ws.sort = '排序'
|
||||||
|
t.ws.setorder = '请输入工段中设备的顺序'
|
||||||
|
t.ws.bind = '绑定'
|
||||||
|
|
||||||
t.file = {}
|
t.file = {}
|
||||||
t.file.title = '文件'
|
t.file.title = '文件'
|
||||||
t.file.name = '文件名称'
|
t.file.name = '文件名称'
|
||||||
|
t.file.code = '文件编号'
|
||||||
|
t.file.typeName = '文件类型名称'
|
||||||
t.file.typeCode = '文件类型编号'
|
t.file.typeCode = '文件类型编号'
|
||||||
|
|
||||||
t.eq = {}
|
t.eq = {}
|
||||||
@ -106,9 +170,18 @@ t.eq.title = '设备'
|
|||||||
t.eq.name = '设备名称'
|
t.eq.name = '设备名称'
|
||||||
t.eq.code = '设备编码'
|
t.eq.code = '设备编码'
|
||||||
t.eq.type = '设备类型'
|
t.eq.type = '设备类型'
|
||||||
|
t.eq.grade = '设备规格'
|
||||||
|
t.eq.group = '设备分组'
|
||||||
|
t.eq.groupname = '分组名称'
|
||||||
|
t.eq.groupcode = '分组编码'
|
||||||
|
t.eq.excode = '设备外部代码'
|
||||||
|
t.eq.input = '上片数据设备'
|
||||||
|
t.eq.output = '下片数据设备'
|
||||||
|
|
||||||
t.pl = {}
|
t.pl = {}
|
||||||
t.pl.title = '产线'
|
t.pl.title = '产线'
|
||||||
|
t.pl.name = '产线名称'
|
||||||
|
t.pl.belong = '所属产线'
|
||||||
|
|
||||||
t.prompt = {}
|
t.prompt = {}
|
||||||
t.prompt.title = '提示'
|
t.prompt.title = '提示'
|
||||||
|
@ -46,7 +46,7 @@ export default {
|
|||||||
}
|
}
|
||||||
list.push(newRouteItem)
|
list.push(newRouteItem)
|
||||||
} else {
|
} else {
|
||||||
console.log(menu.name, '是应该被隐藏的路由')
|
// console.log(menu.name, '是应该被隐藏的路由')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="设备名称/设备编码" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('eq.name') + ' / ' + $t('eq.code')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('search') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('search') }}</el-button>
|
||||||
@ -209,7 +209,7 @@ const addOrUpdateConfigs = {
|
|||||||
url: '/monitoring/equipmentAttr',
|
url: '/monitoring/equipmentAttr',
|
||||||
relatedField: 'equipmentId',
|
relatedField: 'equipmentId',
|
||||||
tableConfigs: [
|
tableConfigs: [
|
||||||
{ type: 'index', name: i18n.t('index') },
|
{ type: 'index', width: 100, name: i18n.t('index') },
|
||||||
{ prop: 'createTime', name: i18n.t('createTime'), filter: timeFilter },
|
{ prop: 'createTime', name: i18n.t('createTime'), filter: timeFilter },
|
||||||
{ prop: 'attrName', name: i18n.t('attrName'), formField: true },
|
{ prop: 'attrName', name: i18n.t('attrName'), formField: true },
|
||||||
{ prop: 'attrValue', name: i18n.t('attrValue'), formField: true },
|
{ prop: 'attrValue', name: i18n.t('attrValue'), formField: true },
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:equipmenalarmlog:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:equipmenalarmlog:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:equipmenfile:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:equipmenfile:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="分组编码/分组名称" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('eq.groupname')+' / '+$t('eq.groupcode')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:equipmentgroup:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:equipmentgroup:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item label="设备分组名称">
|
<el-form-item :label="$t('eq.groupname')">
|
||||||
<strong>{{ $route.params.groupName }}</strong></el-form-item
|
<strong>{{ $route.params.groupName }}</strong></el-form-item
|
||||||
>
|
>
|
||||||
|
|
||||||
<el-form-item label="设备分组编码">
|
<el-form-item :label="$t('eq.groupcode')">
|
||||||
<strong>{{ $route.params.groupCode }}</strong>
|
<strong>{{ $route.params.groupCode }}</strong>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item>
|
<!-- <el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<br />
|
<br />
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<!-- <el-button @click="getDataList()">{{ $t('query') }}</el-button> -->
|
<!-- <el-button @click="getDataList()">{{ $t('query') }}</el-button> -->
|
||||||
<el-button v-if="$hasPermission('monitoring:equipmentgroupalarm:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:equipmentgroupalarm:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
<!-- <el-button v-if="$hasPermission('monitoring:equipmentgroupalarm:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">
|
<!-- <el-button v-if="$hasPermission('monitoring:equipmentgroupalarm:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">
|
||||||
批量删除
|
批量删除
|
||||||
</el-button> -->
|
</el-button> -->
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="名称/编码" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('name') + ' / ' + $t('code')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:equipmentplc:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:equipmentplc:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ import TableOperateComponent from '@/components/base-table/components/operationC
|
|||||||
import TableTextComponent from '@/components/base-table/components/detailComponent'
|
import TableTextComponent from '@/components/base-table/components/detailComponent'
|
||||||
|
|
||||||
const tableConfigs = [
|
const tableConfigs = [
|
||||||
{ type: 'index', name: i18n.t('index') },
|
{ type: 'index', width: 100, name: i18n.t('index') },
|
||||||
{ prop: 'code', name: i18n.t('code') },
|
{ prop: 'code', name: i18n.t('code') },
|
||||||
{ prop: 'name', name: i18n.t('name') },
|
{ prop: 'name', name: i18n.t('name') },
|
||||||
{ prop: 'enName', name: i18n.t('enname') },
|
{ prop: 'enName', name: i18n.t('enname') },
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="设备名称/设备编码" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('eq.name') + ' / ' + $t('eq.code')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:equipmentplcconnect:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:equipmentplcconnect:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ import { dictFilter } from '@/utils/filters'
|
|||||||
// import axios from '@/utils/request.js'
|
// import axios from '@/utils/request.js'
|
||||||
|
|
||||||
const tableConfigs = [
|
const tableConfigs = [
|
||||||
{ type: 'index', name: i18n.t('index') },
|
{ type: 'index', width: 100, name: i18n.t('index') },
|
||||||
{ prop: 'lineName', name: '产线' },
|
{ prop: 'lineName', name: '产线' },
|
||||||
{ prop: 'sectionName', name: '工段' },
|
{ prop: 'sectionName', name: '工段' },
|
||||||
{ prop: 'equName', name: i18n.t('equipment') },
|
{ prop: 'equName', name: i18n.t('equipment') },
|
||||||
@ -73,7 +73,7 @@ const addOrUpdateConfigs = {
|
|||||||
url: '/monitoring/equipmentPlcParam',
|
url: '/monitoring/equipmentPlcParam',
|
||||||
relatedField: 'plcConId',
|
relatedField: 'plcConId',
|
||||||
tableConfigs: [
|
tableConfigs: [
|
||||||
{ type: 'index', name: i18n.t('index') },
|
{ type: 'index', width: 100, name: i18n.t('index') },
|
||||||
// { prop: 'plcConId', name: 'plc连接表ID' },
|
// { prop: 'plcConId', name: 'plc连接表ID' },
|
||||||
{ prop: 'paramCode', name: '参数编码', formField: true, rules: [{ required: true, message: i18n.t('required'), trigger: 'blur' }] },
|
{ prop: 'paramCode', name: '参数编码', formField: true, rules: [{ required: true, message: i18n.t('required'), trigger: 'blur' }] },
|
||||||
{ prop: 'paramName', name: '参数名称', formField: true, rules: [{ required: true, message: i18n.t('required'), trigger: 'blur' }] },
|
{ prop: 'paramName', name: '参数名称', formField: true, rules: [{ required: true, message: i18n.t('required'), trigger: 'blur' }] },
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:equipmenplcparam:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:equipmenplcparam:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ import { dictFilter } from '@/utils/filters'
|
|||||||
const UnitDictTypeId = '1557173812109242370'
|
const UnitDictTypeId = '1557173812109242370'
|
||||||
|
|
||||||
const tableConfigs = [
|
const tableConfigs = [
|
||||||
{ type: 'index', name: i18n.t('index') },
|
{ type: 'index', width: 100, name: i18n.t('index') },
|
||||||
{ prop: 'plcConId', name: 'plc连接表ID' },
|
{ prop: 'plcConId', name: 'plc连接表ID' },
|
||||||
{ prop: 'paramCode', name: '参数编码' },
|
{ prop: 'paramCode', name: '参数编码' },
|
||||||
{ prop: 'paramName', name: '参数名称' },
|
{ prop: 'paramName', name: '参数名称' },
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:equipmenquantity:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:equipmenquantity:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:equipmenstatuslog:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:equipmenstatuslog:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="设备类型" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('eq.type')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:equipmenttype:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:equipmenttype:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:equipmentypefile:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:equipmentypefile:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:equipmenattr:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:equipmenattr:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ import TableTextComponent from '@/components/base-table/components/detailCompone
|
|||||||
const tableConfigs = [
|
const tableConfigs = [
|
||||||
{ prop: 'createTime', name: i18n.t('createTime'), filter: timeFilter },
|
{ prop: 'createTime', name: i18n.t('createTime'), filter: timeFilter },
|
||||||
{ prop: 'equipmentId', name: '设备ID' },
|
{ prop: 'equipmentId', name: '设备ID' },
|
||||||
{ prop: 'attrName', name: '属性名' },
|
{ prop: 'attrName', name: '属性名称' },
|
||||||
{ prop: 'attrValue', name: i18n.t('attrValue') },
|
{ prop: 'attrValue', name: i18n.t('attrValue') },
|
||||||
{
|
{
|
||||||
prop: 'operations',
|
prop: 'operations',
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="工厂编码/工厂名称" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('factory.name') + ' / ' + $t('factory.code')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:factory:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:factory:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="产品编号/产品名称" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('prod.name') + ' / ' + $t('prod.code')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<!-- <el-button @click="addOrEdit()">测试</el-button> -->
|
<!-- <el-button @click="addOrEdit()">测试</el-button> -->
|
||||||
<!-- <el-button v-if="$hasPermission('monitoring:product:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> -->
|
<!-- <el-button v-if="$hasPermission('monitoring:product:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button> -->
|
||||||
<el-button v-if="$hasPermission('monitoring:product:save')" type="primary" @click="addOrEdit()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:product:save')" type="primary" @click="addOrEdit()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ import { dictFilter } from '@/utils/filters'
|
|||||||
const UnitDictTypeId = '1557173812109242370'
|
const UnitDictTypeId = '1557173812109242370'
|
||||||
const ProductTypeDictTypeId = '1557179530308616193'
|
const ProductTypeDictTypeId = '1557179530308616193'
|
||||||
const tableConfigs = [
|
const tableConfigs = [
|
||||||
{ type: 'index', name: i18n.t('index') },
|
{ type: 'index', width: 100, name: i18n.t('index') },
|
||||||
{ prop: 'createTime', name: i18n.t('createTime'), filter: timeFilter },
|
{ prop: 'createTime', name: i18n.t('createTime'), filter: timeFilter },
|
||||||
{ prop: 'name', name: '产品名称' },
|
{ prop: 'name', name: '产品名称' },
|
||||||
{ prop: 'code', name: '产品编码' },
|
{ prop: 'code', name: '产品编码' },
|
||||||
@ -116,9 +116,9 @@ const addOrUpdateConfigs = {
|
|||||||
url: '/monitoring/productArrt',
|
url: '/monitoring/productArrt',
|
||||||
relatedField: 'productId',
|
relatedField: 'productId',
|
||||||
tableConfigs: [
|
tableConfigs: [
|
||||||
{ type: 'index', name: i18n.t('index') },
|
{ type: 'index', width: 100, name: i18n.t('index') },
|
||||||
{ prop: 'createTime', name: i18n.t('createTime'), filter: val => (val ? moment(val).format('YYYY-MM-DD hh:mm:ss') : '-') },
|
{ prop: 'createTime', name: i18n.t('createTime'), filter: val => (val ? moment(val).format('YYYY-MM-DD hh:mm:ss') : '-') },
|
||||||
{ prop: 'name', name: '属性名', formField: true, rules: [{ required: true, message: i18n.t('required'), trigger: 'blur' }] },
|
{ prop: 'name', name: '属性名称', formField: true, rules: [{ required: true, message: i18n.t('required'), trigger: 'blur' }] },
|
||||||
{ prop: 'code', name: i18n.t('attrValue'), formField: true },
|
{ prop: 'code', name: i18n.t('attrValue'), formField: true },
|
||||||
{ prop: 'operations', name: i18n.t('handle'), fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
|
{ prop: 'operations', name: i18n.t('handle'), fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
|
||||||
]
|
]
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:productarrt:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:productarrt:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="产线名称" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('pl.name')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:productionline:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:productionline:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:productionlinerecsch:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:productionlinerecsch:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
type="daterange"
|
type="daterange"
|
||||||
v-model="datetime"
|
v-model="datetime"
|
||||||
value-format="yyyy-MM-ddTHH:mm:ss"
|
value-format="yyyy-MM-ddTHH:mm:ss"
|
||||||
start-placeholder="开始时间"
|
:start-placeholder="$t('startTime')"
|
||||||
end-placeholder="结束时间"
|
:end-placeholder="$t('endTime')"
|
||||||
range-separator="至"
|
:range-separator="$t('to')"
|
||||||
:default-time="['00:00:00', '23:59:59']"
|
:default-time="['00:00:00', '23:59:59']"
|
||||||
:picker-options="quickOptions"
|
:picker-options="quickOptions"
|
||||||
clearable
|
clearable
|
||||||
@ -17,14 +17,14 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<!-- <el-button v-if="$hasPermission('monitoring:qualityinspectionrecord:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> -->
|
<!-- <el-button v-if="$hasPermission('monitoring:qualityinspectionrecord:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button> -->
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<div class="quality-inspection-current base-container">
|
<div class="quality-inspection-current base-container">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col>
|
<el-col>
|
||||||
<small-title :size="'md'">上下片及检测总数统计</small-title>
|
<small-title :size="'md'">{{ $t('inspect.ioTotal') }}</small-title>
|
||||||
<el-row style="margin-top: 12px;">
|
<el-row style="margin-top: 12px;">
|
||||||
<base-table :data="dataListStatic" :table-head-configs="tableConfigStatic" :max-height="500" @operate-event="handleOperations" @refreshDataList="getDataList" />
|
<base-table :data="dataListStatic" :table-head-configs="tableConfigStatic" :max-height="500" @operate-event="handleOperations" @refreshDataList="getDataList" />
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -34,12 +34,12 @@
|
|||||||
<el-row style="margin-top: 28px;">
|
<el-row style="margin-top: 28px;">
|
||||||
<el-col>
|
<el-col>
|
||||||
<el-row>
|
<el-row>
|
||||||
<small-title :size="'md'">各产线检测类型统计</small-title>
|
<small-title :size="'md'">{{ $t('inspect.plTotal') }}</small-title>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row style="margin-top: 8px;">
|
<el-row style="margin-top: 8px;">
|
||||||
<el-radio-group v-model="dataType" size="medium" @change="handleDataTypeChange">
|
<el-radio-group v-model="dataType" size="medium" @change="handleDataTypeChange">
|
||||||
<el-radio-button label="表格"></el-radio-button>
|
<el-radio-button :label="$t('table2')"></el-radio-button>
|
||||||
<el-radio-button label="图形"></el-radio-button>
|
<el-radio-button :label="$t('graph')"></el-radio-button>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row style="margin-top: 12px;">
|
<el-row style="margin-top: 12px;">
|
||||||
@ -69,14 +69,14 @@ import SmallTitle from '@/components/small-title'
|
|||||||
import * as echarts from 'echarts'
|
import * as echarts from 'echarts'
|
||||||
|
|
||||||
const tableConfigStatic = [
|
const tableConfigStatic = [
|
||||||
{ type: 'index', name: i18n.t('index') },
|
{ type: 'index', width: 100, name: i18n.t('index') },
|
||||||
{ name: '上片总数', prop: 'sumUp' },
|
{ name: '上片总数', prop: 'sumUp' },
|
||||||
{ name: '下片总数', prop: 'sumDown' },
|
{ name: '下片总数', prop: 'sumDown' },
|
||||||
{ name: '检测总数', prop: 'sumCheck' },
|
{ name: '检测总数', prop: 'sumCheck' },
|
||||||
{ name: '比例', prop: 'scrapRatio', filter: val => (val || val === 0 ? `${val}%` : '-') }
|
{ name: '比例', prop: 'scrapRatio', filter: val => (val || val === 0 ? `${val}%` : '-') }
|
||||||
]
|
]
|
||||||
const tableConfigDynamic = [
|
const tableConfigDynamic = [
|
||||||
{ type: 'index', name: i18n.t('index') },
|
{ type: 'index', width: 100, name: i18n.t('index') },
|
||||||
{ name: '检测类型', prop: 'inspectionContent' },
|
{ name: '检测类型', prop: 'inspectionContent' },
|
||||||
/** dynamic */
|
/** dynamic */
|
||||||
{ name: '检测类型总数', prop: '' },
|
{ name: '检测类型总数', prop: '' },
|
||||||
@ -192,7 +192,7 @@ const FakeChart = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const dict = [i18n.t('table2'), '图形']
|
const dict = [i18n.t('table2'), i18n.t('graph')]
|
||||||
export default {
|
export default {
|
||||||
name: 'QualityInspectionCurrent',
|
name: 'QualityInspectionCurrent',
|
||||||
components: { BaseTable, SmallTitle, FakeChart },
|
components: { BaseTable, SmallTitle, FakeChart },
|
||||||
@ -280,7 +280,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.tableConfigDynamic = [
|
this.tableConfigDynamic = [
|
||||||
{ type: 'index', name: i18n.t('index') },
|
{ type: 'index', width: 100, name: i18n.t('index') },
|
||||||
{ name: '检测类型', prop: 'inspectionContent' },
|
{ name: '检测类型', prop: 'inspectionContent' },
|
||||||
...subProps,
|
...subProps,
|
||||||
{ name: '检测类型总数', prop: 'sumInput' },
|
{ name: '检测类型总数', prop: 'sumInput' },
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="检测内容" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('inspect.det')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:qualityinspectiondet:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:qualityinspectiondet:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<!-- <el-form-item>
|
<!-- <el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:qualityinspectionrecord:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:qualityinspectionrecord:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="检测类型名称" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('inspect.typename')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:qualityinspectiontype:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:qualityinspectiontype:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<small-title :size="'md'">设备生产实时数据</small-title>
|
<small-title :size="'md'">{{ $t('realtime.eq') }}</small-title>
|
||||||
<base-table v-if="loadTable" :table-head-configs="tableProps" :data="tableData.length ? tableData : []" :span-method="spanMethod" />
|
<base-table v-if="loadTable" :table-head-configs="tableProps" :data="tableData.length ? tableData : []" :span-method="spanMethod" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<small-title :size="'md'">产线生产实时数据</small-title>
|
<small-title :size="'md'">{{ $t('realtime.pl') }}</small-title>
|
||||||
<base-table v-if="loadTable" :table-head-configs="tableProps" :data="tableData.length ? tableData : []" />
|
<base-table v-if="loadTable" :table-head-configs="tableProps" :data="tableData.length ? tableData : []" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<small-title :size="'md'">质量检查实时数据</small-title>
|
<small-title :size="'md'">{{ $t('realtime.inspect') }}</small-title>
|
||||||
<base-table v-if="loadTable" :table-head-configs="tableProps" :data="tableData.length ? tableData : []" />
|
<base-table v-if="loadTable" :table-head-configs="tableProps" :data="tableData.length ? tableData : []" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.name" placeholder="分类名称" clearable></el-input>
|
<el-input v-model="dataForm.name" :placeholder="$t('categoryName')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:reportsheetcategory:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:reportsheetcategory:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -23,7 +23,6 @@ export default {
|
|||||||
const ifream = document.getElementById('zgboke')
|
const ifream = document.getElementById('zgboke')
|
||||||
|
|
||||||
ifream.onload = function() {
|
ifream.onload = function() {
|
||||||
console.log('加载完成')
|
|
||||||
vm.loading = false
|
vm.loading = false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.name" placeholder="报表名称" clearable></el-input>
|
<el-input v-model="dataForm.name" :placeholder="$t('report.name')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<!-- <el-button v-if="$hasPermission('')" type="primary" @click="addOrUpdateHandle()">新增(跳到设计)</el-button> -->
|
<!-- <el-button v-if="$hasPermission('')" type="primary" @click="addOrUpdateHandle()">新增(跳到设计)</el-button> -->
|
||||||
<el-button v-if="$hasPermission('monitoring:reportsheet:save')" type="primary" @click="handleAdd()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:reportsheet:save')" type="primary" @click="handleAdd()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ export default {
|
|||||||
if (res.data && res.data.list) {
|
if (res.data && res.data.list) {
|
||||||
const categories = res.data.list.map(item => ({ label: item.name, value: item.id }))
|
const categories = res.data.list.map(item => ({ label: item.name, value: item.id }))
|
||||||
this.tableConfigs = [
|
this.tableConfigs = [
|
||||||
{ type: 'index', name: i18n.t('index') },
|
{ type: 'index', width: 100, name: i18n.t('index') },
|
||||||
{ prop: 'createTime', name: i18n.t('createTime'), filter: timeFilter, width: 200 },
|
{ prop: 'createTime', name: i18n.t('createTime'), filter: timeFilter, width: 200 },
|
||||||
{ prop: 'fileName', name: '报表名称' },
|
{ prop: 'fileName', name: '报表名称' },
|
||||||
{ prop: 'category', name: '报表分类', subcomponent: CategoryList, options: categories },
|
{ prop: 'category', name: '报表分类', subcomponent: CategoryList, options: categories },
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div v-loading="loading" :class="$style.container">
|
<div v-loading="loading" :class="$style.container">
|
||||||
<small-title :size="'md'" style="margin-bottom: 10px">报表名称:{{ $route.query.name }}</small-title>
|
<small-title :size="'md'" style="margin-bottom: 10px">{{ $t('report.name') + ': ' + $route.query.name }}</small-title>
|
||||||
|
|
||||||
<iframe id="reportView" :class="$style.mainIframe" name="mainIframe" :src="url" frameborder="0" scrolling="auto" />
|
<iframe id="reportView" :class="$style.mainIframe" name="mainIframe" :src="url" frameborder="0" scrolling="auto" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:reporsheet:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:reporsheet:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:reporsheecategory:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:reporsheecategory:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
@ -37,8 +37,8 @@ import TableTextComponent from '@/components/base-table/components/detailCompone
|
|||||||
|
|
||||||
const tableConfigs = [
|
const tableConfigs = [
|
||||||
{ prop: 'createTime', name: i18n.t('createTime'), filter: timeFilter },
|
{ prop: 'createTime', name: i18n.t('createTime'), filter: timeFilter },
|
||||||
{ prop: 'name', name: '分类名称' },
|
{ prop: 'name', name: i18n.t('categoryName') },
|
||||||
{ prop: 'code', name: '分类编码' },
|
{ prop: 'code', name: i18n.t('categoryCode') },
|
||||||
{ prop: 'operations', name: i18n.t('handle'), fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
|
{ prop: 'operations', name: i18n.t('handle'), fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:sysfile:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:sysfile:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:sysfiletype:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:sysfiletype:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="工段名称" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('ws.name')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:workshopsection:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:workshopsection:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
<div class="mod-config">
|
<div class="mod-config">
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.key" placeholder="$t('parameter')" clearable></el-input>
|
<el-input v-model="dataForm.key" :placeholder="$t('parameter')" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
<el-button @click="getDataList()">{{ $t('query') }}</el-button>
|
||||||
<el-button v-if="$hasPermission('monitoring:workshopsectionequipment:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
<el-button v-if="$hasPermission('monitoring:workshopsectionequipment:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog class="super-flexible-dialog" :title="isDetail ? '详情' : !dataForm.id ? i18n.t('add') : '编辑'" :visible.sync="visible">
|
<el-dialog class="super-flexible-dialog" :title="isDetail ? $t('ws.detail') : !dataForm.id ? $t('add') : $t('ws.edit')" :visible.sync="visible">
|
||||||
<div style="max-height: 60vh; overflow-y: scroll; overflow-x: hidden;">
|
<div style="max-height: 60vh; overflow-y: scroll; overflow-x: hidden;">
|
||||||
<el-form ref="dataForm" :model="dataForm" :rules="dataFormRules">
|
<el-form ref="dataForm" :model="dataForm" :rules="dataFormRules">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12"
|
<el-col :span="12"
|
||||||
><el-form-item label="工段名称" prop="name"> <el-input v-model="dataForm.name" placeholder="请输入工段名称" /> </el-form-item
|
><el-form-item :label="$t('ws.name')" prop="name"> <el-input v-model="dataForm.name" :placeholder="$t('ws.name')" /> </el-form-item
|
||||||
></el-col>
|
></el-col>
|
||||||
<el-col :span="12"
|
<el-col :span="12"
|
||||||
><el-form-item label="工段编码" prop="code"> <el-input v-model="dataForm.code" placeholder="请输入工段编码" /> </el-form-item
|
><el-form-item :label="$t('ws.code')" prop="code"> <el-input v-model="dataForm.code" :placeholder="$t('ws.code')" /> </el-form-item
|
||||||
></el-col>
|
></el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
@ -19,7 +19,7 @@
|
|||||||
</el-select> </el-form-item
|
</el-select> </el-form-item
|
||||||
></el-col>
|
></el-col>
|
||||||
<el-col :span="12"
|
<el-col :span="12"
|
||||||
><el-form-item label=$t('desc') prop="description"> <el-input v-model="dataForm.description" placeholder="请输入描述" /> </el-form-item
|
><el-form-item :label="$t('desc')" prop="description"> <el-input v-model="dataForm.description" placeholder="请输入描述" /> </el-form-item
|
||||||
></el-col>
|
></el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
@ -33,7 +33,7 @@
|
|||||||
<section class="attr-form-section" v-if="dataForm.id">
|
<section class="attr-form-section" v-if="dataForm.id">
|
||||||
<h3>
|
<h3>
|
||||||
设备绑定
|
设备绑定
|
||||||
<el-button type="text" v-if="!showAttrForm" @click="addEq">新增</el-button>
|
<el-button type="text" v-if="!showAttrForm" @click="addEq">{{ $t('add') }}</el-button>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="table" v-if="!showAttrForm">
|
<div class="table" v-if="!showAttrForm">
|
||||||
<base-table :data="eqList" :table-head-configs="tableProps" :max-height="calcMaxHeight(8)" @operate-event="handleOperations" @refreshDataList="getDataList" />
|
<base-table :data="eqList" :table-head-configs="tableProps" :max-height="calcMaxHeight(8)" @operate-event="handleOperations" @refreshDataList="getDataList" />
|
||||||
|
@ -4,21 +4,21 @@
|
|||||||
<el-form ref="dataForm" :model="dataForm" :rules="dataFormRules">
|
<el-form ref="dataForm" :model="dataForm" :rules="dataFormRules">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item :label="edit ? '已绑定的设备' : '选择一个设备进行绑定'" prop="equipmentId">
|
<el-form-item :label="edit ? $t('ws.binded') : $t('ws.unbind')" prop="equipmentId">
|
||||||
<el-select v-if="!edit" clearable v-model="dataForm.equipmentId">
|
<el-select v-if="!edit" clearable v-model="dataForm.equipmentId">
|
||||||
<el-option v-for="eq in eqList" :key="eq.id" :label="eq.name" :value="eq.id" />
|
<el-option v-for="eq in eqList" :key="eq.id" :label="eq.name" :value="eq.id" />
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-input v-else disabled v-model="bindedEquipmentName" /> </el-form-item
|
<el-input v-else disabled v-model="bindedEquipmentName" /> </el-form-item
|
||||||
></el-col>
|
></el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="排序" prop="sort"> <el-input v-model="dataForm.sort" placeholder="请输入工段中设备的顺序" clearable /> </el-form-item
|
<el-form-item :label="$t('ws.sort')" prop="sort"> <el-input v-model="dataForm.sort" :placeholder="$t('ws.setorder')" clearable /> </el-form-item
|
||||||
></el-col>
|
></el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row style="text-align: right">
|
<el-row style="text-align: right">
|
||||||
<el-button size="small" @click="handleCancel">取消</el-button>
|
<el-button size="small" @click="handleCancel">{{ $t('cancel') }}</el-button>
|
||||||
<el-button size="small" type="success" @click="handleSave">{{ edit ? i18n.t('update') : '绑定' }}</el-button>
|
<el-button size="small" type="success" @click="handleSave">{{ edit ? $t('update') : $t('ws.bind') }}</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user