fzq #31

Closed
fanzhiqin wants to merge 215 commits from fzq into test
15 changed files with 7 additions and 139 deletions
Showing only changes of commit 3668f92731 - Show all commits

5
TODO.md Normal file
View File

@ -0,0 +1,5 @@
# TODO List
1. 按钮加权限
2. 国际化
3. 表格高度

View File

@ -187,9 +187,6 @@ const addOrUpdateConfigs = {
}, },
{ name: 'remark', label: '备注 ' } { name: 'remark', label: '备注 ' }
], ],
// TODO:
// TODO:
// TODO:
extraComponents: [ extraComponents: [
{ {
name: 'description', name: 'description',

View File

@ -9,29 +9,7 @@
<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()">新增</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;">
<el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column>
<el-table-column prop="id" header-align="center" align="center" label="ID"> </el-table-column>
<el-table-column prop="alarmId" header-align="center" align="center" label="报警信息ID关联T_equipment_group_alarm表"> </el-table-column>
<el-table-column prop="alarmSource" header-align="center" align="center" label="报警来源"> </el-table-column>
<el-table-column prop="alarmContent" header-align="center" align="center" label="报警详细内容"> </el-table-column>
<el-table-column prop="alarmEquipmentId" header-align="center" align="center" label="报警设备id 关联equipment表"> </el-table-column>
<el-table-column prop="remark" header-align="center" align="center" label="备注"> </el-table-column>
<el-table-column prop="valid" header-align="center" align="center" label="删除标志,是否有效:1 可用 0不可用"> </el-table-column>
<el-table-column prop="creatorId" header-align="center" align="center" label="创建人"> </el-table-column>
<el-table-column prop="creatorName" header-align="center" align="center" label="创建人姓名"> </el-table-column>
<el-table-column prop="createTime" header-align="center" align="center" label="创建时间"> </el-table-column>
<el-table-column prop="updaterId" header-align="center" align="center" label="更新人"> </el-table-column>
<el-table-column prop="updaterName" header-align="center" align="center" label="更新人姓名"> </el-table-column>
<el-table-column prop="updateTime" header-align="center" align="center" label="更新时间"> </el-table-column>
<el-table-column prop="version" header-align="center" align="center" label="版本号"> </el-table-column>
<el-table-column fixed="right" header-align="center" align="center" width="150" label="操作">
<template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
</template>
</el-table-column>
</el-table> -->
<base-table :data="dataList" :table-head-configs="tableConfigs" :max-height="500" /> <base-table :data="dataList" :table-head-configs="tableConfigs" :max-height="500" />
<el-pagination <el-pagination
@size-change="sizeChangeHandle" @size-change="sizeChangeHandle"

View File

@ -86,23 +86,6 @@ const tableConfigs = [
{ prop: 'gradeDictValue', name: '报警级别' }, { prop: 'gradeDictValue', name: '报警级别' },
{ prop: 'alarmContent', name: '报警内容' }, { prop: 'alarmContent', name: '报警内容' },
{ prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] } { prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
// { prop: 'typeDictValue', name: ' label_value' },
// { prop: 'gradeDictValue', name: ' label_value' },
// { "prop": "id", "name": "ID" },
// { "prop": "equipmentGroupId", "name": "IDt_equipment_group" },
// { "prop": "description", "name": "" },
// { "prop": "externalCode", "name": "" },
// { "prop": "enabled", "name": ":0 1" },
// { "prop": "remark", "name": "" },
// { "prop": "valid", "name": ":1 0" },
// { "prop": "creatorId", "name": "" },
// { "prop": "creatorName", "name": "" },
// { "prop": "updaterId", "name": "" },
// { "prop": "updaterName", "name": "" },
// { "prop": "updateTime", "name": "" },
// { "prop": "version", "name": "" },
// { prop: 'alarmNotify', name: ' 0 1' },
// { prop: 'operations', name: '', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
] ]
const addOrUpdateConfigs = { const addOrUpdateConfigs = {

View File

@ -76,19 +76,6 @@ const addOrUpdateConfigs = {
{ name: 'save', url: '/monitoring/equipmentPlc', permission: '', showOnEdit: false }, { name: 'save', url: '/monitoring/equipmentPlc', permission: '', showOnEdit: false },
{ name: 'update', url: '/monitoring/equipmentPlc', permission: '', showOnEdit: true } { name: 'update', url: '/monitoring/equipmentPlc', permission: '', showOnEdit: true }
] ]
// subtable: {
// // for i18n
// title: '',
// url: '/monitoring/productArrt',
// relatedField: 'productId',
// tableConfigs: [
// { type: 'index', name: '' },
// { prop: 'createTime', name: '', filter: val => (val ? moment(val).format('YYYY-MM-DD hh:mm:ss') : '-') },
// { prop: 'name', name: '', formField: true, rules: [{ required: true, message: '', trigger: 'blur' }] },
// { prop: 'code', name: '', formField: true },
// { prop: 'operations', name: '', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
// ]
// }
} }
export default { export default {

View File

@ -108,10 +108,6 @@ const addOrUpdateConfigs = {
{ value: 1, label: '采集' } { value: 1, label: '采集' }
] ]
}, },
// { prop: 'collectionCycle', name: 's 使' },
// { prop: 'reportingCycle', name: 's 使' },
// { prop: 'reportingMethod', name: ' 使' },
// { prop: 'reportingCode', name: ' 使' },
{ prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] } { prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
] ]
} }

View File

@ -48,15 +48,8 @@ const tableConfigs = [
{ prop: 'defaultValue', name: '参数设定标准值' }, { prop: 'defaultValue', name: '参数设定标准值' },
{ prop: 'description', name: '描述' }, { prop: 'description', name: '描述' },
{ prop: 'enabled', name: '启用状态', filter: val => ['停用', '启用'][+val] }, { prop: 'enabled', name: '启用状态', filter: val => ['停用', '启用'][+val] },
// { prop: 'enabled', name: ':0 1' },
{ prop: 'remark', name: '备注' }, { prop: 'remark', name: '备注' },
// { prop: 'createTime', name: '' },
{ prop: 'collection', name: '是否采集', filter: val => ['不采集', '采集'][+val] } { prop: 'collection', name: '是否采集', filter: val => ['不采集', '采集'][+val] }
// { prop: 'collectionCycle', name: 's 使' },
// { prop: 'reportingCycle', name: 's 使' },
// { prop: 'reportingMethod', name: ' 使' },
// { prop: 'reportingCode', name: ' 使' },
// { prop: 'operations', name: '', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
] ]
export default { export default {

View File

@ -59,15 +59,6 @@ const tableConfigs = [
{ prop: 'equipmentId', name: '设备ID' }, { prop: 'equipmentId', name: '设备ID' },
{ prop: 'attrName', name: '属性名' }, { prop: 'attrName', name: '属性名' },
{ prop: 'attrValue', name: '属性值' }, { prop: 'attrValue', name: '属性值' },
// { "prop": "id", "name": "ID" },
// { "prop": "remark", "name": "" },
// { "prop": "valid", "name": ":1 0" },
// { "prop": "creatorId", "name": "" },
// { "prop": "creatorName", "name": "" },
// { "prop": "updaterId", "name": "" },
// { "prop": "updaterName", "name": "" },
// { "prop": "updateTime", "name": "" },
// { prop: 'version', name: '' },
{ {
prop: 'operations', prop: 'operations',
name: '操作', name: '操作',

View File

@ -48,15 +48,12 @@ const tableConfigs = [
{ {
prop: 'inspectionDetContent', prop: 'inspectionDetContent',
name: '检测内容' name: '检测内容'
// "name": "id"
}, },
{ prop: 'checkTime', name: '检测时间' }, { prop: 'checkTime', name: '检测时间' },
{ prop: 'productionId', name: '产线id' }, { prop: 'productionId', name: '产线id' },
{ prop: 'sectionId', name: '工段id' }, { prop: 'sectionId', name: '工段id' },
{ prop: 'checkPerson', name: '检测人员' }, { prop: 'checkPerson', name: '检测人员' },
// { prop: 'checkPerson', name: '' },
{ prop: 'source', name: '来源', filter: val => ({ 1: '手动', 2: '自动' }[val]) }, { prop: 'source', name: '来源', filter: val => ({ 1: '手动', 2: '自动' }[val]) },
// { prop: 'source', name: ' 1 2' },
{ prop: 'explainText', name: '描述' }, { prop: 'explainText', name: '描述' },
{ prop: 'remark', name: '备注' }, { prop: 'remark', name: '备注' },
{ prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] } { prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }

View File

@ -37,9 +37,6 @@ import { calcMaxHeight } from '@/utils'
const tableConfigs = [ const tableConfigs = [
{ prop: 'createTime', name: '添加时间' }, { prop: 'createTime', name: '添加时间' },
{ prop: 'name', name: '分类名称' }, { prop: 'name', name: '分类名称' },
// { prop: 'code', name: '' },
// 'description',
// 'remark',
{ prop: 'operations', name: '操作', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] } { prop: 'operations', name: '操作', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
] ]
@ -48,9 +45,6 @@ const addOrUpdateConfigs = {
infoUrl: '/monitoring/reportSheetCategory', infoUrl: '/monitoring/reportSheetCategory',
fields: [ fields: [
{ name: 'name', label: '分类名称', required: true, span: 24 } { name: 'name', label: '分类名称', required: true, span: 24 }
// { name: 'code', label: '', required: true },
// { name: 'description', label: '' },
// { name: 'remark', label: '' }
], ],
operations: [ operations: [
{ name: 'cancel', url: true, showAlways: true }, { name: 'cancel', url: true, showAlways: true },

View File

@ -22,7 +22,6 @@ export default {
this.url += name ? '?_u=db:' + this.$route.query.name : '' this.url += name ? '?_u=db:' + this.$route.query.name : ''
const ifream = document.getElementById('zgboke') const ifream = document.getElementById('zgboke')
console.log('url: ', this.url)
ifream.onload = function() { ifream.onload = function() {
console.log('加载完成') console.log('加载完成')
vm.loading = false vm.loading = false

View File

@ -38,21 +38,11 @@ const tableConfigs = [
{ prop: 'name', name: '报表名称' }, { prop: 'name', name: '报表名称' },
{ prop: 'code', name: '报表编码' }, { prop: 'code', name: '报表编码' },
{ prop: 'category', name: '报表分类' }, { prop: 'category', name: '报表分类' },
// { prop: 'id', name: 'ID' },
// { prop: 'category', name: 'report_sheet_category' },
{ prop: 'fileName', name: '文件名称' }, { prop: 'fileName', name: '文件名称' },
{ prop: 'url', name: '链接地址' }, { prop: 'url', name: '链接地址' },
{ prop: 'description', name: '描述' }, { prop: 'description', name: '描述' },
{ prop: 'remark', name: '备注' }, { prop: 'remark', name: '备注' },
{ prop: 'content', name: '报表内容' }, { prop: 'content', name: '报表内容' },
// { prop: 'enabled', name: ':0 1' },
// { prop: 'valid', name: ':1 0' },
// { prop: 'creatorId', name: '' },
// { prop: 'creatorName', name: '' },
// { prop: 'updaterId', name: '' },
// { prop: 'updaterName', name: '' },
// { prop: 'updateTime', name: '' },
// { prop: 'version', name: '' },
{ prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] } { prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
] ]

View File

@ -60,18 +60,6 @@ const tableConfigs = [
{ prop: 'createTime', name: '添加时间' }, { prop: 'createTime', name: '添加时间' },
{ prop: 'name', name: '分类名称' }, { prop: 'name', name: '分类名称' },
{ prop: 'code', name: '分类编码' }, { prop: 'code', name: '分类编码' },
// { "prop": "id", "name": "ID" },
// { "prop": "description", "name": "" },
// { "prop": "externalCode", "name": "" },
// { "prop": "enabled", "name": ":0 1" },
// { "prop": "remark", "name": "" },
// { "prop": "valid", "name": ":1 0" },
// { "prop": "creatorId", "name": "" },
// { "prop": "creatorName", "name": "" },
// { "prop": "updaterId", "name": "" },
// { "prop": "updaterName", "name": "" },
// { "prop": "updateTime", "name": "" },
// { prop: 'version', name: '' },
{ prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] } { prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
] ]

View File

@ -38,7 +38,6 @@ const tableConfigs = [
{ prop: 'createTime', name: '添加时间' }, { prop: 'createTime', name: '添加时间' },
{ prop: 'name', name: '工段名称' }, { prop: 'name', name: '工段名称' },
{ prop: 'code', name: '工段编码' }, { prop: 'code', name: '工段编码' },
// { prop: 'productionLineId', name: '线ID' },
{ prop: 'productionLineName', name: '产线' }, { prop: 'productionLineName', name: '产线' },
{ prop: 'remark', name: '备注' }, { prop: 'remark', name: '备注' },
{ prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] } { prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }

View File

@ -9,28 +9,7 @@
<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()">新增</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- <el-table :data="dataList" border v-loading="dataListLoading" @selection-change="selectionChangeHandle" style="width: 100%;">
<el-table-column type="selection" header-align="center" align="center" width="50"> </el-table-column>
<el-table-column prop="id" header-align="center" align="center" label="ID"> </el-table-column>
<el-table-column prop="workshopSectionId" header-align="center" align="center" label="工段ID"> </el-table-column>
<el-table-column prop="equipmentId" header-align="center" align="center" label="设备ID"> </el-table-column>
<el-table-column prop="sort" header-align="center" align="center" label="排序"> </el-table-column>
<el-table-column prop="remark" header-align="center" align="center" label="备注"> </el-table-column>
<el-table-column prop="valid" header-align="center" align="center" label="删除标志,是否有效:1 可用 0不可用"> </el-table-column>
<el-table-column prop="creatorId" header-align="center" align="center" label="创建人"> </el-table-column>
<el-table-column prop="creatorName" header-align="center" align="center" label="创建人姓名"> </el-table-column>
<el-table-column prop="createTime" header-align="center" align="center" label="创建时间"> </el-table-column>
<el-table-column prop="updaterId" header-align="center" align="center" label="更新人"> </el-table-column>
<el-table-column prop="updaterName" header-align="center" align="center" label="更新人姓名"> </el-table-column>
<el-table-column prop="updateTime" header-align="center" align="center" label="更新时间"> </el-table-column>
<el-table-column prop="version" header-align="center" align="center" label="版本号"> </el-table-column>
<el-table-column fixed="right" header-align="center" align="center" width="150" label="操作">
<template slot-scope="scope">
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
</template>
</el-table-column>
</el-table> -->
<base-table :data="dataList" :table-head-configs="tableConfigs" :max-height="500" /> <base-table :data="dataList" :table-head-configs="tableConfigs" :max-height="500" />
<el-pagination <el-pagination
@size-change="sizeChangeHandle" @size-change="sizeChangeHandle"
@ -59,14 +38,6 @@ const tableConfigs = [
{ prop: 'equipmentId', name: '设备ID' }, { prop: 'equipmentId', name: '设备ID' },
{ prop: 'sort', name: '排序' }, { prop: 'sort', name: '排序' },
{ prop: 'remark', name: '备注' }, { prop: 'remark', name: '备注' },
// { prop: 'id', name: 'ID' },
// { prop: 'valid', name: ':1 0' },
// { prop: 'creatorId', name: '' },
// { prop: 'creatorName', name: '' },
// { prop: 'updaterId', name: '' },
// { prop: 'updaterName', name: '' },
// { prop: 'updateTime', name: '' },
// { prop: 'version', name: '' },
{ prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] } { prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
] ]