能源监控
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
<el-input v-model="plcTableName" size='small' readonly></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="对象">
|
||||
<el-input v-model="bindObjectType" size='small' readonly></el-input>
|
||||
<el-input v-model="objName" size='small' readonly></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="showBtn&&this.$auth.hasPermi('base:energy-plc-param:create')">
|
||||
<el-form-item v-if="showBtn">
|
||||
<el-button type="success" size='small' plain @click="addNew">新增</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -105,7 +105,7 @@ export default {
|
||||
connectId: null
|
||||
},
|
||||
plcTableName: '',
|
||||
bindObjectType: '',
|
||||
objName: '',
|
||||
// 弹出层标题
|
||||
addOrEditTitle: "",
|
||||
// 是否显示弹出层
|
||||
@@ -128,7 +128,7 @@ export default {
|
||||
this.visible = true
|
||||
this.queryParams.connectId = data.id
|
||||
this.plcTableName = data.plcTableName
|
||||
this.bindObjectType = data.bindObjectType
|
||||
this.objName = data.objName
|
||||
this.getList()
|
||||
if (title === 'view') {
|
||||
this.showBtn = false
|
||||
@@ -136,19 +136,15 @@ export default {
|
||||
} else {
|
||||
this.showBtn = true
|
||||
this.tableBtn = [
|
||||
this.$auth.hasPermi('base:energy-plc-param:update')
|
||||
? {
|
||||
type: 'edit',
|
||||
btnName: '编辑'
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi('base:energy-plc-param:delete')
|
||||
? {
|
||||
type: 'delete',
|
||||
btnName: '删除'
|
||||
}
|
||||
: undefined
|
||||
].filter((v) => v)
|
||||
{
|
||||
type: 'edit',
|
||||
btnName: '编辑'
|
||||
},
|
||||
{
|
||||
type: 'delete',
|
||||
btnName: '删除'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
getList() {
|
||||
|
||||
Reference in New Issue
Block a user