diff --git a/src/views/keyprojects/videomanager/components/video-list.vue b/src/views/keyprojects/videomanager/components/video-list.vue
index 49d7a24..7d8844d 100644
--- a/src/views/keyprojects/videomanager/components/video-list.vue
+++ b/src/views/keyprojects/videomanager/components/video-list.vue
@@ -50,9 +50,10 @@
未定位
-
+
播放
+ 查询绑定
定位
回放
获取rtsp地址
@@ -150,7 +151,49 @@
取 消
+
+
+
+
+
+
+
+
+ 未开工
+ 进行中
+ 已结束
+ 开工申请中
+ 结束申请中
+
+
+
+
+ 解绑
+
+
+
+
+
+
@@ -180,6 +223,9 @@ export default {
dialogImageUrl: '',
dialogVisible: false,
dialogSelect: false,
+ outsourcedListVisible: false,// 重点工程
+ controlRowTemp: null,// 正在操作的row,用于删除后刷新
+ outsourcedList: [],// 重点工程
add: true,
del: true,
edit: true,
@@ -735,7 +781,52 @@ export default {
goBack() {
this.$parent.activeName = 'List'
this.$parent.OUTSOURCED_ID = ''
- }
+ },
+ // 获取重点工程列表
+ async getOutsourced (row){
+ this.listLoading = true
+ this.outsourcedListVisible = true
+ this.controlRowTemp = row
+ this.outsourcedList = []
+ requestFN(
+ `/videoResources/getRelevanceOutsourced?VIDEO_ID=${row.VIDEO_RESOURCES_ID}`,
+ {
+
+ }
+ ).then((data) => {
+ this.listLoading = false
+ this.outsourcedList = data.varList
+ }).catch((e) => {
+ this.listLoading = false
+ })
+
+ },
+ async untie(id) {
+ this.$confirm('确定要删除吗?', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ this.listLoading = true
+ console.log(this.VIDEOMANAGER_ID)
+ requestFN(
+ '/videomanager/delete',
+ {
+ VIDEOMANAGER_ID: id
+ }
+ ).then(() => {
+ this.$message({
+ message: '删除成功',
+ type: 'success'
+ })
+ this.getOutsourced(this.controlRowTemp)
+ this.listLoading = false
+ }).catch((e) => {
+ this.listLoading = false
+ })
+ }).catch(() => {
+ })
+ },
}
}