|
@@ -23,7 +23,8 @@
|
|
|
:teleported="false"
|
|
|
style="width: 150px; margin-left: 10px"
|
|
|
>
|
|
|
-<!-- <el-option v-for="item in district_type2" :key="item.value" :label="item.label" :value="item.value" />-->
|
|
|
+ <el-option label="全部" value="" />
|
|
|
+ <el-option v-for="item in videoFromList" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="实景视频" prop="video_tag" label-width="70px">
|
|
@@ -76,7 +77,7 @@
|
|
|
<span class="label">{{ item.name }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <HKVideo v-else :dot_data="item" autoplay :is-index="item.isUserVideos" />
|
|
|
+ <HKVideo v-else :dot_data="item" autoplay :is-index="item.isUserVideos" @change="(data) => handleUpdateTags(item, data)" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -97,7 +98,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { getUserVideoPoints, getVideoListNew, updateUserVideoPoints } from '@/api/videoMonitor';
|
|
|
+import { getUserVideoPoints, getVideoFromList, getVideoListNew, updateUserVideoPoints } from '@/api/videoMonitor';
|
|
|
import { deepClone } from '@/utils';
|
|
|
import useAppStore from '@/store/modules/app';
|
|
|
import useMapStore from '@/store/modules/map';
|
|
@@ -119,7 +120,7 @@ const props = defineProps({
|
|
|
}
|
|
|
});
|
|
|
const mapStore = useMapStore();
|
|
|
-const emits = defineEmits(['update:modelValue']);
|
|
|
+const emits = defineEmits(['update:modelValue', 'change']);
|
|
|
const proxy = getCurrentInstance()?.proxy;
|
|
|
const { district_type2, video_type } = toRefs<any>(proxy?.useDict('district_type2', 'video_type'));
|
|
|
//查看更多数据
|
|
@@ -135,6 +136,7 @@ const queryParams = reactive({
|
|
|
});
|
|
|
let total = ref(0);
|
|
|
let editVideo = ref(false);
|
|
|
+let videoFromList = ref([]);
|
|
|
// 选中的视频
|
|
|
let editData = ref([]);
|
|
|
let dialogListData = ref([]);
|
|
@@ -222,10 +224,22 @@ const handleSave = () => {
|
|
|
handleCancel();
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
+// 更新tag
|
|
|
+const handleUpdateTags = (item, data) => {
|
|
|
+ let labels = [];
|
|
|
+ data.forEach((item) => {
|
|
|
+ labels.push(item.dict_label);
|
|
|
+ });
|
|
|
+ item.tag = data;
|
|
|
+ item.tagLabels = labels.toString();
|
|
|
+ emits('change');
|
|
|
+};
|
|
|
onMounted(() => {
|
|
|
getList();
|
|
|
getVideoInfoList();
|
|
|
+ getVideoFromList().then((res) => {
|
|
|
+ videoFromList.value = res.rows;
|
|
|
+ });
|
|
|
});
|
|
|
</script>
|
|
|
|