添加录制计划设置页面

This commit is contained in:
648540858
2024-11-19 18:03:43 +08:00
parent ea2751e29b
commit 8b88a5e034
3 changed files with 113 additions and 0 deletions

View File

@@ -81,6 +81,12 @@
</div>
</template>
</el-table-column>
<el-table-column label="操作" width="200" fixed="right">
<template v-slot:default="scope">
<el-button size="medium" icon="el-icon-edit" type="text" v-if="scope.row.recordPlan" @click="edit(scope.row)">编辑</el-button>
<el-button size="medium" icon="el-icon-plus" type="text" v-else @click="edit(scope.row)">添加</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
style="text-align: right"
@@ -92,15 +98,18 @@
layout="total, sizes, prev, pager, next"
:total="total">
</el-pagination>
<editRecordPlan ref="editRecordPlan"></editRecordPlan>
</div>
</template>
<script>
import uiHeader from '../layout/UiHeader.vue'
import EditRecordPlan from "./dialog/editRecordPlan.vue";
export default {
name: 'recordPLan',
components: {
EditRecordPlan,
uiHeader,
},
data() {
@@ -182,6 +191,11 @@ export default {
onChannelChange: function (deviceId) {
//
},
edit: function (channel) {
this.$refs.editRecordPlan.openDialog(channel, ()=>{
this.initData()
})
},
}
};
</script>