lb #1
@ -43,7 +43,7 @@ export default {
|
||||
let btns = []
|
||||
for (const optionStr of this.injectData.head?.options) {
|
||||
// btns.push(h('el-button', { props: { type: this.btnTypes[optionStr] } }, optionStr))
|
||||
btns.push(h('el-button', { props: { type: 'text' }, style: { color: this.colors[optionStr] || '#0b58ff' } }, this.text[optionStr]))
|
||||
btns.push(h('el-button', { props: { type: 'text' }, style: { color: this.colors[optionStr] || '#409EFF' } }, this.text[optionStr]))
|
||||
}
|
||||
return h('span', null, btns)
|
||||
}
|
||||
|
@ -36,7 +36,7 @@
|
||||
</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
|
||||
@size-change="sizeChangeHandle"
|
||||
@current-change="currentChangeHandle"
|
||||
@ -59,28 +59,30 @@ import TableOperateComponent from '@/components/base-table/components/operationC
|
||||
import TableTextComponent from '@/components/base-table/components/detailComponent'
|
||||
|
||||
const tableConfigs = [
|
||||
{ "prop": "id", "name": "" },
|
||||
{ "prop": "equipmentId", "name": "设备ID" },
|
||||
{ "prop": "fileId", "name": "文件ID" },
|
||||
{ "prop": "description", "name": "描述" },
|
||||
{ "prop": "enabled", "name": "启用状态:0 、停用,1、启用" },
|
||||
{ "prop": "remark", "name": "备注" },
|
||||
{ "prop": "valid", "name": "删除标志,是否有效:1 可用 0不可用" },
|
||||
{ "prop": "creatorId", "name": "创建人" },
|
||||
{ "prop": "creatorName", "name": "创建人姓名" },
|
||||
{ "prop": "createTime", "name": "添加时间" },
|
||||
{ "prop": "updaterId", "name": "更新人" },
|
||||
{ "prop": "updaterName", "name": "更新人姓名" },
|
||||
{ "prop": "updateTime", "name": "更新时间" },
|
||||
{ "prop": "version", "name": "版本号" },
|
||||
{ "prop": "typeCode", "name": "文件类型编号" },
|
||||
{ "prop": "fileName", "name": "文件名字" },
|
||||
{ "prop": "fileUrl", "name": "下载地址" }, { prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
|
||||
{ prop: 'id', name: '' },
|
||||
{ prop: 'equipmentId', name: '设备ID' },
|
||||
{ prop: 'fileId', name: '文件ID' },
|
||||
{ prop: 'description', name: '描述' },
|
||||
{ prop: 'enabled', name: '启用状态:0 、停用,1、启用' },
|
||||
{ prop: 'remark', name: '备注' },
|
||||
{ prop: 'valid', name: '删除标志,是否有效:1 可用 0不可用' },
|
||||
{ prop: 'creatorId', name: '创建人' },
|
||||
{ prop: 'creatorName', name: '创建人姓名' },
|
||||
{ prop: 'createTime', name: '添加时间' },
|
||||
{ prop: 'updaterId', name: '更新人' },
|
||||
{ prop: 'updaterName', name: '更新人姓名' },
|
||||
{ prop: 'updateTime', name: '更新时间' },
|
||||
{ prop: 'version', name: '版本号' },
|
||||
{ prop: 'typeCode', name: '文件类型编号' },
|
||||
{ prop: 'fileName', name: '文件名字' },
|
||||
{ prop: 'fileUrl', name: '下载地址' },
|
||||
{ prop: 'operations', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
|
||||
]
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {tableConfigs,
|
||||
return {
|
||||
tableConfigs,
|
||||
dataForm: {
|
||||
key: ''
|
||||
},
|
||||
@ -94,7 +96,8 @@ export default {
|
||||
}
|
||||
},
|
||||
components: {
|
||||
AddOrUpdate,BaseTable
|
||||
AddOrUpdate,
|
||||
BaseTable
|
||||
},
|
||||
activated() {
|
||||
this.getDataList()
|
||||
|
@ -33,7 +33,7 @@
|
||||
</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
|
||||
@size-change="sizeChangeHandle"
|
||||
@current-change="currentChangeHandle"
|
||||
@ -56,26 +56,28 @@ import TableOperateComponent from '@/components/base-table/components/operationC
|
||||
import TableTextComponent from '@/components/base-table/components/detailComponent'
|
||||
|
||||
const tableConfigs = [
|
||||
{ "prop": "id", "name": "ID" },
|
||||
{ "prop": "code", "name": "分组编码" },
|
||||
{ "prop": "name", "name": "分组名字" },
|
||||
{ "prop": "typeId", "name": "设备类型id" },
|
||||
{ "prop": "description", "name": "描述" },
|
||||
{ "prop": "remark", "name": "备注" },
|
||||
{ "prop": "valid", "name": "删除标志,是否有效:1 可用 0不可用" },
|
||||
{ "prop": "creatorId", "name": "创建人" },
|
||||
{ "prop": "creatorName", "name": "创建人姓名" },
|
||||
{ "prop": "createTime", "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: 'createTime', name: '添加时间' },
|
||||
{ prop: 'name', name: '分组名称' },
|
||||
{ prop: 'code', name: '分组编码' },
|
||||
{ prop: 'remark', name: '备注' },
|
||||
{ prop: 'alarm', name: '报警', buttonContent: '查看报警', subcomponent: TableTextComponent },
|
||||
// { "prop": "typeId", "name": "设备类型id" },
|
||||
// { "prop": "id", "name": "ID" },
|
||||
// { "prop": "description", "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'] }
|
||||
]
|
||||
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {tableConfigs,
|
||||
return {
|
||||
tableConfigs,
|
||||
dataForm: {
|
||||
key: ''
|
||||
},
|
||||
@ -89,7 +91,8 @@ export default {
|
||||
}
|
||||
},
|
||||
components: {
|
||||
AddOrUpdate,BaseTable
|
||||
AddOrUpdate,
|
||||
BaseTable
|
||||
},
|
||||
activated() {
|
||||
this.getDataList()
|
||||
|
@ -1,7 +1,14 @@
|
||||
<template>
|
||||
<div class="mod-config">
|
||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||
<el-form-item>
|
||||
<el-form-item label="设备分组名称">
|
||||
<el-label><strong>111</strong></el-label>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="设备分组编码">
|
||||
<el-label><strong>111</strong></el-label>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item>
|
||||
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@ -10,7 +17,7 @@
|
||||
<el-button v-if="$hasPermission('monitoring:equipmengroupalarm:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">
|
||||
批量删除
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form-item> -->
|
||||
</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>
|
||||
@ -40,7 +47,7 @@
|
||||
</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
|
||||
@size-change="sizeChangeHandle"
|
||||
@current-change="currentChangeHandle"
|
||||
@ -63,31 +70,34 @@ import TableOperateComponent from '@/components/base-table/components/operationC
|
||||
import TableTextComponent from '@/components/base-table/components/detailComponent'
|
||||
|
||||
const tableConfigs = [
|
||||
{ "prop": "id", "name": "ID" },
|
||||
{ "prop": "equipmentGroupId", "name": "设备分组ID,关联t_equipment_group" },
|
||||
{ "prop": "code", "name": "编码" },
|
||||
{ "prop": "typeDictValue", "name": "报警类型 字典表关联label_value" },
|
||||
{ "prop": "gradeDictValue", "name": "报警级别 字典表关联label_value" },
|
||||
{ "prop": "alarmContent", "name": "报警内容" },
|
||||
{ "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": "createTime", "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'] }
|
||||
{ prop: 'createTime', name: '添加时间' },
|
||||
{ prop: 'code', name: '报警编码' },
|
||||
{ prop: 'typeDictValue', name: '报警类型' },
|
||||
{ prop: 'gradeDictValue', name: '报警级别' },
|
||||
{ prop: 'alarmContent', name: '报警内容' }
|
||||
// { prop: 'typeDictValue', name: '报警类型 字典表关联label_value' },
|
||||
// { prop: 'gradeDictValue', name: '报警级别 字典表关联label_value' },
|
||||
// { "prop": "id", "name": "ID" },
|
||||
// { "prop": "equipmentGroupId", "name": "设备分组ID,关联t_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'] }
|
||||
]
|
||||
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {tableConfigs,
|
||||
return {
|
||||
tableConfigs,
|
||||
dataForm: {
|
||||
key: ''
|
||||
},
|
||||
@ -101,7 +111,8 @@ export default {
|
||||
}
|
||||
},
|
||||
components: {
|
||||
AddOrUpdate,BaseTable
|
||||
AddOrUpdate,
|
||||
BaseTable
|
||||
},
|
||||
activated() {
|
||||
this.getDataList()
|
||||
|
@ -35,7 +35,7 @@
|
||||
</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
|
||||
@size-change="sizeChangeHandle"
|
||||
@current-change="currentChangeHandle"
|
||||
@ -57,29 +57,30 @@ import BaseTable from '@/components/base-table'
|
||||
import TableOperateComponent from '@/components/base-table/components/operationComponent'
|
||||
import TableTextComponent from '@/components/base-table/components/detailComponent'
|
||||
|
||||
const tableConfigs =[
|
||||
{ "prop": "id", "name": "ID" },
|
||||
{ "prop": "code", "name": "编码" },
|
||||
{ "prop": "name", "name": "名称" },
|
||||
{ "prop": "parentId", "name": "父类ID" },
|
||||
{ "prop": "parentName", "name": "父类名称" },
|
||||
{ "prop": "description", "name": "描述" },
|
||||
{ "prop": "enabled", "name": "启用状态:0 、停用,1、启用" },
|
||||
{ "prop": "remark", "name": "备注" },
|
||||
{ "prop": "valid", "name": "删除标志,是否有效:1 可用 0不可用" },
|
||||
{ "prop": "creatorId", "name": "创建人" },
|
||||
{ "prop": "creatorName", "name": "创建人姓名" },
|
||||
{ "prop": "createTime", "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'] }
|
||||
const tableConfigs = [
|
||||
{ prop: 'createTime', name: '添加时间' },
|
||||
{ prop: 'name', name: '类型名称' },
|
||||
{ prop: 'code', name: '类型编码' },
|
||||
{ prop: 'remark', name: '备注' },
|
||||
// { "prop": "id", "name": "ID" },
|
||||
// { "prop": "parentId", "name": "父类ID" },
|
||||
// { "prop": "parentName", "name": "父类名称" },
|
||||
// { "prop": "description", "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'] }
|
||||
]
|
||||
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {tableConfigs,
|
||||
return {
|
||||
tableConfigs,
|
||||
dataForm: {
|
||||
key: ''
|
||||
},
|
||||
@ -93,7 +94,8 @@ export default {
|
||||
}
|
||||
},
|
||||
components: {
|
||||
AddOrUpdate,BaseTable
|
||||
AddOrUpdate,
|
||||
BaseTable
|
||||
},
|
||||
activated() {
|
||||
this.getDataList()
|
||||
|
@ -32,7 +32,7 @@
|
||||
</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
|
||||
@size-change="sizeChangeHandle"
|
||||
@current-change="currentChangeHandle"
|
||||
@ -55,24 +55,26 @@ import TableOperateComponent from '@/components/base-table/components/operationC
|
||||
import TableTextComponent from '@/components/base-table/components/detailComponent'
|
||||
|
||||
const tableConfigs = [
|
||||
{ "prop": "id", "name": "ID" },
|
||||
{ "prop": "equipmentId", "name": "设备ID" },
|
||||
{ "prop": "attrName", "name": "属性名称" },
|
||||
{ "prop": "attrValue", "name": "属性值" },
|
||||
{ "prop": "remark", "name": "备注" },
|
||||
{ "prop": "valid", "name": "删除标志,是否有效:1 可用 0不可用" },
|
||||
{ "prop": "creatorId", "name": "创建人" },
|
||||
{ "prop": "creatorName", "name": "创建人姓名" },
|
||||
{ "prop": "createTime", "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: 'createTime', name: '添加时间' },
|
||||
{ prop: 'equipmentId', name: '设备ID' },
|
||||
{ prop: 'attrName', 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', name: '操作', fixed: 'right', width: 180, subcomponent: TableOperateComponent, options: ['edit', 'delete'] }
|
||||
]
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {tableConfigs,
|
||||
return {
|
||||
tableConfigs,
|
||||
dataForm: {
|
||||
key: ''
|
||||
},
|
||||
@ -86,7 +88,8 @@ export default {
|
||||
}
|
||||
},
|
||||
components: {
|
||||
AddOrUpdate,BaseTable
|
||||
AddOrUpdate,
|
||||
BaseTable
|
||||
},
|
||||
activated() {
|
||||
this.getDataList()
|
||||
|
@ -57,19 +57,19 @@ import TableOperateComponent from '@/components/base-table/components/operationC
|
||||
import TableTextComponent from '@/components/base-table/components/detailComponent'
|
||||
|
||||
const tableConfigs = [
|
||||
{ prop: 'id', name: 'ID' },
|
||||
{ prop: 'createTime', name: '添加时间' },
|
||||
{ prop: 'workshopSectionId', name: '工段ID' },
|
||||
{ prop: 'equipmentId', name: '设备ID' },
|
||||
{ prop: 'sort', name: '排序' },
|
||||
{ prop: 'remark', name: '备注' },
|
||||
{ prop: 'valid', name: '删除标志,是否有效:1 可用 0不可用' },
|
||||
{ prop: 'creatorId', name: '创建人' },
|
||||
{ prop: 'creatorName', name: '创建人姓名' },
|
||||
{ prop: 'createTime', name: '创建时间' },
|
||||
{ prop: 'updaterId', name: '更新人' },
|
||||
{ prop: 'updaterName', name: '更新人姓名' },
|
||||
{ prop: 'updateTime', name: '更新时间' },
|
||||
{ prop: 'version', 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'] }
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user