forked from integrated_whb/integrated_whb_vue
八项作业添加监控
parent
f74c51cbb7
commit
bc637b6fce
|
@ -418,6 +418,14 @@ export default [
|
|||
},
|
||||
component: "confined_space/job_data/view",
|
||||
},
|
||||
{
|
||||
path: "/confined_space/job_data/add_video",
|
||||
meta: {
|
||||
title: "添加监控",
|
||||
activeMenu: "/confined_space/job_data",
|
||||
},
|
||||
component: "eightwork_videomanager/index",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -463,6 +471,14 @@ export default [
|
|||
},
|
||||
component: "blind_plate_plugging/job_data/view",
|
||||
},
|
||||
{
|
||||
path: "/blind_plate_plugging/job_data/add_video",
|
||||
meta: {
|
||||
title: "添加监控",
|
||||
activeMenu: "/blind_plate_plugging/job_data",
|
||||
},
|
||||
component: "eightwork_videomanager/index",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -503,6 +519,14 @@ export default [
|
|||
},
|
||||
component: "groundbreaking/job_data/view",
|
||||
},
|
||||
{
|
||||
path: "/groundbreaking/job_data/add_video",
|
||||
meta: {
|
||||
title: "添加监控",
|
||||
activeMenu: "/groundbreaking/job_data",
|
||||
},
|
||||
component: "eightwork_videomanager/index",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -543,6 +567,14 @@ export default [
|
|||
},
|
||||
component: "high/job_data/view",
|
||||
},
|
||||
{
|
||||
path: "/high/job_data/add_video",
|
||||
meta: {
|
||||
title: "添加监控",
|
||||
activeMenu: "/high/job_data",
|
||||
},
|
||||
component: "eightwork_videomanager/index",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -583,6 +615,14 @@ export default [
|
|||
},
|
||||
component: "hoisting/job_data/view",
|
||||
},
|
||||
{
|
||||
path: "/hoisting/job_data/add_video",
|
||||
meta: {
|
||||
title: "添加监控",
|
||||
activeMenu: "/hoisting/job_data",
|
||||
},
|
||||
component: "eightwork_videomanager/index",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -623,6 +663,14 @@ export default [
|
|||
},
|
||||
component: "open_circuit/job_data/view",
|
||||
},
|
||||
{
|
||||
path: "/open_circuit/job_data/add_video",
|
||||
meta: {
|
||||
title: "添加监控",
|
||||
activeMenu: "/open_circuit/job_data",
|
||||
},
|
||||
component: "eightwork_videomanager/index",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -663,6 +711,14 @@ export default [
|
|||
},
|
||||
component: "temporary_electricity_usage/job_data/view",
|
||||
},
|
||||
{
|
||||
path: "/temporary_electricity_usage/job_data/add_video",
|
||||
meta: {
|
||||
title: "添加监控",
|
||||
activeMenu: "/temporary_electricity_usage/job_data",
|
||||
},
|
||||
component: "eightwork_videomanager/index",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -703,6 +759,14 @@ export default [
|
|||
},
|
||||
component: "hot_work/job_data/view",
|
||||
},
|
||||
{
|
||||
path: "/hot_work/job_data/add_video",
|
||||
meta: {
|
||||
title: "添加监控",
|
||||
activeMenu: "/hot_work/job_data",
|
||||
},
|
||||
component: "eightwork_videomanager/index",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
import { post } from "@/request/axios.js";
|
||||
|
||||
export const getVideoManagerList = (params) =>
|
||||
post("/videomanager/list", params); // 八项作业视频列表
|
||||
export const getEightWorkVideoManagerList = (params) =>
|
||||
post("/eightworkvideomanager/list", params); // 八项作业视频列表
|
||||
export const setEightWorkVideoManagerList = (params) => post("/eightworkvideomanager/add", params); // 台账列表
|
||||
|
||||
export const setVideoManagerList = (params) => post("/eightworkvideomanager/goEdit", params); // 台账添加
|
||||
export const setEightWorkVideoManagerDelete = (params) => post("/eightworkvideomanager/delete", params); // 删除
|
||||
export const setEightWorkVideoManagerDeleteAll = (params) => post("/eightworkvideomanager/deleteAll", params); // 删除
|
||||
|
|
@ -85,8 +85,25 @@
|
|||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="150">
|
||||
<el-table-column label="操作" width="250">
|
||||
<template v-slot="{ row }">
|
||||
<el-button
|
||||
v-if="entrance === 'job_data' && row.APPLY_STATUS !== '6'"
|
||||
type="primary"
|
||||
text
|
||||
link
|
||||
@click="
|
||||
router.push({
|
||||
path: '/blind_plate_plugging/job_data/add_video',
|
||||
query: {
|
||||
BLINDBOARD_ID: row.BLINDBOARD_ID,
|
||||
CHECK_NO: row.CHECK_NO,
|
||||
},
|
||||
})
|
||||
"
|
||||
>
|
||||
添加监控
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
text
|
||||
|
|
|
@ -64,8 +64,22 @@
|
|||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="150">
|
||||
<el-table-column label="操作" width="250">
|
||||
<template v-slot="{ row }">
|
||||
<el-button
|
||||
v-if="entrance === 'job_data' && row.APPLY_STATUS !== '6' && row.APPLY_STATUS !== '-99' && row.APPLY_STATUS !== '-98'"
|
||||
type="primary"
|
||||
text
|
||||
link
|
||||
@click="
|
||||
router.push({
|
||||
path: '/confined_space/job_data/add_video',
|
||||
query: { CONFINEDSPACE_ID: row.CONFINEDSPACE_ID,CHECK_NO :row.CHECK_NO },
|
||||
})
|
||||
"
|
||||
>
|
||||
添加监控
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
text
|
||||
|
|
|
@ -0,0 +1,97 @@
|
|||
<template>
|
||||
<el-dialog v-model="visible" title="视频列表" width="1200px">
|
||||
<el-form
|
||||
:model="searchForm"
|
||||
label-width="100px"
|
||||
@submit.prevent="fnResetPagination"
|
||||
>
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="关键字查询" prop="KEYWORDS">
|
||||
<el-input
|
||||
v-model="searchForm.KEYWORDS"
|
||||
placeholder="请输入关键字"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label-width="10px">
|
||||
<el-button type="primary" native-type="submit">搜索</el-button>
|
||||
<el-button native-type="reset" @click="fnResetPagination">
|
||||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<layout-table
|
||||
:data="list"
|
||||
v-model:pagination="pagination"
|
||||
@get-data="fnGetData"
|
||||
>
|
||||
<el-table-column label="序号" width="70">
|
||||
<template v-slot="{ $index }">
|
||||
{{ serialNumber(pagination, $index) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="GBS_NUM" label="视频设备编号" />
|
||||
<el-table-column prop="VIDEONAME" label="视频名称" />
|
||||
<el-table-column label="操作" width="80">
|
||||
<template v-slot="{ row }">
|
||||
<el-button type="primary" text link @click="fnSubmit(row)">
|
||||
加入
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</layout-table>
|
||||
|
||||
<template #footer>
|
||||
<el-button @click="visible = false">关闭</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { serialNumber } from "@/assets/js/utils";
|
||||
import useListData from "@/assets/js/useListData";
|
||||
import {
|
||||
getVideoManagerList, setEightWorkVideoManagerDelete,
|
||||
setEightWorkVideoManagerList,
|
||||
setVideoManagerList
|
||||
} from "@/request/eightwork_videomanager";
|
||||
import {useVModel} from "@vueuse/core";
|
||||
import {debounce} from "throttle-debounce";
|
||||
import {ElMessage, ElMessageBox} from "element-plus";
|
||||
const props = defineProps({
|
||||
visible: {
|
||||
type: Boolean,
|
||||
required: true,
|
||||
default: false,
|
||||
},
|
||||
checkNo: {
|
||||
type: String,
|
||||
required: true,
|
||||
default: '',
|
||||
},
|
||||
});
|
||||
const emits = defineEmits(["update:visible",'get-data']);
|
||||
const visible = useVModel(props, "visible", emits);
|
||||
const { list, pagination,searchForm, fnGetData, fnResetPagination } =
|
||||
useListData(getVideoManagerList);
|
||||
const fnSubmit = debounce(
|
||||
1000,
|
||||
async (row) => {
|
||||
const resData = await setVideoManagerList({VIDEOMANAGER_ID:row.VIDEOMANAGER_ID})
|
||||
if(resData.pd){
|
||||
await setEightWorkVideoManagerDelete({EIGHTWORKVIDEOMANAGER_ID:resData.pd.EIGHTWORKVIDEOMANAGER_ID})
|
||||
await ElMessageBox.confirm("该监控已绑定其他作业,是否更改?", { type: "warning" });
|
||||
}
|
||||
await setEightWorkVideoManagerList({...row, CHECK_NO: props.checkNo})
|
||||
ElMessage.success("操作成功");
|
||||
emits('get-data')
|
||||
},
|
||||
{ atBegin: true }
|
||||
);
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss"></style>
|
|
@ -0,0 +1,82 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-card>
|
||||
<el-form
|
||||
:model="searchForm"
|
||||
label-width="100px"
|
||||
@submit.prevent="fnResetPagination"
|
||||
>
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="关键字查询" prop="KEYWORDS">
|
||||
<el-input
|
||||
v-model="searchForm.KEYWORDS"
|
||||
placeholder="请输入关键字"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label-width="10px">
|
||||
<el-button type="primary" native-type="submit">搜索</el-button>
|
||||
<el-button native-type="reset" @click="fnResetPagination">
|
||||
重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
</el-card>
|
||||
<layout-card>
|
||||
<layout-table
|
||||
:data="list"
|
||||
v-model:pagination="pagination"
|
||||
@get-data="fnGetData"
|
||||
>
|
||||
<el-table-column label="序号" width="70">
|
||||
<template v-slot="{ $index }">
|
||||
{{ serialNumber(pagination, $index) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="GBS_NUM" label="视频设备编号" />
|
||||
<el-table-column prop="VIDEONAME" label="视频名称" />
|
||||
<template #button>
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="fnAdd"
|
||||
>
|
||||
新增
|
||||
</el-button>
|
||||
</template>
|
||||
</layout-table>
|
||||
</layout-card>
|
||||
<add v-model:visible="data.addDialog.Visible" :check-no="data.addDialog.checkNo" @get-data="fnResetPagination" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { serialNumber } from "@/assets/js/utils";
|
||||
import useListData from "@/assets/js/useListData.js";
|
||||
import { getEightWorkVideoManagerList } from "@/request/eightwork_videomanager";
|
||||
import { reactive } from "vue";
|
||||
import Add from "./components/add.vue";
|
||||
import { useRoute } from "vue-router";
|
||||
const route = useRoute();
|
||||
const { CHECK_NO } = route.query;
|
||||
|
||||
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
|
||||
useListData(getEightWorkVideoManagerList, {
|
||||
otherParams: { CHECK_NO },
|
||||
});
|
||||
const data = reactive({
|
||||
addDialog: {
|
||||
Visible: false,
|
||||
checkNo: "",
|
||||
},
|
||||
});
|
||||
const fnAdd = () => {
|
||||
data.addDialog.Visible = true;
|
||||
data.addDialog.checkNo = CHECK_NO;
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
|
@ -87,8 +87,25 @@
|
|||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="150">
|
||||
<el-table-column label="操作" width="250">
|
||||
<template v-slot="{ row }">
|
||||
<el-button
|
||||
v-if="entrance === 'job_data' && row.APPLY_STATUS !== '6'"
|
||||
type="primary"
|
||||
text
|
||||
link
|
||||
@click="
|
||||
router.push({
|
||||
path: '/groundbreaking/job_data/add_video',
|
||||
query: {
|
||||
BREAKGROUND_ID: row.BREAKGROUND_ID,
|
||||
CHECK_NO: row.CHECK_NO,
|
||||
},
|
||||
})
|
||||
"
|
||||
>
|
||||
添加监控
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
text
|
||||
|
|
|
@ -85,8 +85,25 @@
|
|||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="150">
|
||||
<el-table-column label="操作" width="250">
|
||||
<template v-slot="{ row }">
|
||||
<el-button
|
||||
v-if="entrance === 'job_data' && row.APPLY_STATUS !== '6'"
|
||||
type="primary"
|
||||
text
|
||||
link
|
||||
@click="
|
||||
router.push({
|
||||
path: '/high/job_data/add_video',
|
||||
query: {
|
||||
HIGHWORK_ID: row.HIGHWORK_ID,
|
||||
CHECK_NO: row.CHECK_NO,
|
||||
},
|
||||
})
|
||||
"
|
||||
>
|
||||
添加监控
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
text
|
||||
|
|
|
@ -85,8 +85,25 @@
|
|||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="150">
|
||||
<el-table-column label="操作" width="250">
|
||||
<template v-slot="{ row }">
|
||||
<el-button
|
||||
v-if="entrance === 'job_data' && row.APPLY_STATUS !== '6'"
|
||||
type="primary"
|
||||
text
|
||||
link
|
||||
@click="
|
||||
router.push({
|
||||
path: '/hoisting/job_data/add_video',
|
||||
query: {
|
||||
HOISTING_ID: row.HOISTING_ID,
|
||||
CHECK_NO: row.CHECK_NO,
|
||||
},
|
||||
})
|
||||
"
|
||||
>
|
||||
添加监控
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
text
|
||||
|
|
|
@ -80,8 +80,27 @@
|
|||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="150">
|
||||
<el-table-column label="操作" width="250">
|
||||
<template v-slot="{ row }">
|
||||
<el-button
|
||||
v-if="
|
||||
entrance === 'job_data' &&
|
||||
row.APPLY_STATUS !== '8' &&
|
||||
row.APPLY_STATUS !== '-99' &&
|
||||
row.APPLY_STATUS !== '-98'
|
||||
"
|
||||
type="primary"
|
||||
text
|
||||
link
|
||||
@click="
|
||||
router.push({
|
||||
path: '/hot_work/job_data/add_video',
|
||||
query: { HOTWORK_ID: row.HOTWORK_ID, CHECK_NO: row.CHECK_NO },
|
||||
})
|
||||
"
|
||||
>
|
||||
添加监控
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
text
|
||||
|
|
|
@ -89,8 +89,22 @@
|
|||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="150">
|
||||
<el-table-column label="操作" width="250">
|
||||
<template v-slot="{ row }">
|
||||
<el-button
|
||||
v-if="entrance === 'job_data' && row.APPLY_STATUS !== '6'"
|
||||
type="primary"
|
||||
text
|
||||
link
|
||||
@click="
|
||||
router.push({
|
||||
path: '/open_circuit/job_data/add_video',
|
||||
query: { CUTROAD_ID: row.CUTROAD_ID, CHECK_NO: row.CHECK_NO },
|
||||
})
|
||||
"
|
||||
>
|
||||
添加监控
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
text
|
||||
|
|
|
@ -65,8 +65,29 @@
|
|||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="150">
|
||||
<el-table-column label="操作" width="250">
|
||||
<template v-slot="{ row }">
|
||||
<el-button
|
||||
v-if="
|
||||
entrance === 'job_data' &&
|
||||
row.APPLY_STATUS !== '5' &&
|
||||
row.APPLY_STATUS !== '-99'
|
||||
"
|
||||
type="primary"
|
||||
text
|
||||
link
|
||||
@click="
|
||||
router.push({
|
||||
path: '/temporary_electricity_usage/job_data/add_video',
|
||||
query: {
|
||||
ELECTRICITY_ID: row.ELECTRICITY_ID,
|
||||
CHECK_NO: row.CHECK_NO,
|
||||
},
|
||||
})
|
||||
"
|
||||
>
|
||||
添加监控
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
text
|
||||
|
|
Loading…
Reference in New Issue