|
@@ -3,7 +3,11 @@
|
|
|
<div class="form-info">
|
|
|
<div class="work-flow">
|
|
|
<div class="work-flow-line"></div>
|
|
|
- <div :class="['work-flow-item', item.name == statu(form) ? 'active' : '']" v-for="(item, i) in svgarr" :key="i">
|
|
|
+ <div
|
|
|
+ :class="['work-flow-item', item.name == statu(form) ? 'active' : '']"
|
|
|
+ v-for="(item, i) in svgarr"
|
|
|
+ :key="i"
|
|
|
+ >
|
|
|
<div class="work-flow-icon-item">
|
|
|
<div class="work-flow-icon-o"></div>
|
|
|
<div class="work-flow-icon-i"></div>
|
|
@@ -19,104 +23,177 @@
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="风场:">
|
|
|
- <el-input v-model="form.wpName" placeholder="风场名称" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.wpName"
|
|
|
+ placeholder="风场名称"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="风机:">
|
|
|
- <el-input v-model="form.wtId" placeholder="风机名称" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.wtId"
|
|
|
+ placeholder="风机名称"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="推荐检修时间:">
|
|
|
- <el-input v-model="form.tjss" placeholder="推荐检修时间" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.tjss"
|
|
|
+ placeholder="推荐检修时间"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
<!-- <el-date-picker v-model="form.tjjxsj" type="datetime" placeholder="推荐检修时间" popper-class="date-select"></el-date-picker> -->
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="预计检修风速:">
|
|
|
- <el-input v-model="form.tjfs" placeholder="预计检修风速" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.tjfs"
|
|
|
+ placeholder="预计检修风速"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="推荐理由:">
|
|
|
- <el-input type="textarea" resize="none" :rows="3" v-model="form.description" placeholder="推荐理由"
|
|
|
- readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ resize="none"
|
|
|
+ :rows="3"
|
|
|
+ v-model="form.description"
|
|
|
+ placeholder="推荐理由"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="下单时间:">
|
|
|
- <el-input v-model="form.prodtdepttime" placeholder="下单时间" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.prodtdepttime"
|
|
|
+ placeholder="下单时间"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="主要负责人:">
|
|
|
- <el-input v-model="form.workleader" placeholder="主要负责人" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.workleader"
|
|
|
+ placeholder="主要负责人"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="出发时间:">
|
|
|
- <el-input v-model="form.departuretime" placeholder="出发时间" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.departuretime"
|
|
|
+ placeholder="出发时间"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="到达时间:">
|
|
|
- <el-input v-model="form.arrivaltime" placeholder="到达时间" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.arrivaltime"
|
|
|
+ placeholder="到达时间"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="排查方法:">
|
|
|
- <el-input type="textarea" resize="none" :rows="3" v-model="form.gzpc" placeholder="排查方法" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ resize="none"
|
|
|
+ :rows="3"
|
|
|
+ v-model="form.gzpc"
|
|
|
+ placeholder="排查方法"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="处理方法:">
|
|
|
- <el-input type="textarea" resize="none" :rows="3" v-model="form.repairedcomment" placeholder="处理方法"
|
|
|
- readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ resize="none"
|
|
|
+ :rows="3"
|
|
|
+ v-model="form.repairedcomment"
|
|
|
+ placeholder="处理方法"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="消缺时间:">
|
|
|
- <el-input v-model="form.repairedtime" placeholder="消缺时间" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.repairedtime"
|
|
|
+ placeholder="消缺时间"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="故障时长:">
|
|
|
- <el-input v-model="form.degradebugtype" placeholder="故障时长" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.degradebugtype"
|
|
|
+ placeholder="故障时长"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="验收人:">
|
|
|
- <el-input v-model="form.checkdeptlabornum" placeholder="验收人" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.checkdeptlabornum"
|
|
|
+ placeholder="验收人"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="验收时间:">
|
|
|
- <el-input v-model="form.checktime" placeholder="验收时间" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.checktime"
|
|
|
+ placeholder="验收时间"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="验收意见:">
|
|
|
- <el-input type="textarea" resize="none" :rows="3" v-model="form.checkdeptopinion" placeholder="验收意见"
|
|
|
- readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ resize="none"
|
|
|
+ :rows="3"
|
|
|
+ v-model="form.checkdeptopinion"
|
|
|
+ placeholder="验收意见"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -125,65 +202,142 @@
|
|
|
</div>
|
|
|
<div class="evaluate">
|
|
|
<div class="white">评价</div>
|
|
|
- <div class="evaluate-item" :class="(form.rwfpsc > form.rwfppjsc ? ' warColor' : '')">
|
|
|
+ <div
|
|
|
+ class="evaluate-item"
|
|
|
+ :class="form.rwfpsc > form.rwfppjsc ? ' warColor' : ''"
|
|
|
+ >
|
|
|
<div class="evaluate-label">任务分配时长</div>
|
|
|
- <el-input v-model="form.rwfpsc" style="width: 62px;text-align: center;" placeholder="" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.rwfpsc"
|
|
|
+ style="width: 62px; text-align: center"
|
|
|
+ placeholder=""
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
<div class="evaluate-unit">min</div>
|
|
|
</div>
|
|
|
<div class="evaluate-item">
|
|
|
<div class="evaluate-label">任务分配平均时长</div>
|
|
|
- <el-input v-model="form.rwfppjsc" style="width: 62px;text-align: center;" placeholder="" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.rwfppjsc"
|
|
|
+ style="width: 62px; text-align: center"
|
|
|
+ placeholder=""
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
<div class="evaluate-unit">min</div>
|
|
|
</div>
|
|
|
- <div class="evaluate-item" :class="(form.ddxcsc > form.ddxcpjsc ? ' warColor' : '')">
|
|
|
+ <div
|
|
|
+ class="evaluate-item"
|
|
|
+ :class="form.ddxcsc > form.ddxcpjsc ? ' warColor' : ''"
|
|
|
+ >
|
|
|
<div class="evaluate-label">到达现场时长</div>
|
|
|
- <el-input v-model="form.ddxcsc" style="width: 62px;text-align: center;" placeholder="" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.ddxcsc"
|
|
|
+ style="width: 62px; text-align: center"
|
|
|
+ placeholder=""
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
<div class="evaluate-unit">min</div>
|
|
|
</div>
|
|
|
<div class="evaluate-item">
|
|
|
<div class="evaluate-label">到达现场平均时长</div>
|
|
|
- <el-input v-model="form.ddxcpjsc" style="width: 62px;text-align: center;" placeholder="" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.ddxcpjsc"
|
|
|
+ style="width: 62px; text-align: center"
|
|
|
+ placeholder=""
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
<div class="evaluate-unit">min</div>
|
|
|
</div>
|
|
|
- <div class="evaluate-item" :class="(form.qxclsc > form.qxclpjsc ? ' warColor' : '')">
|
|
|
+ <div
|
|
|
+ class="evaluate-item"
|
|
|
+ :class="form.qxclsc > form.qxclpjsc ? ' warColor' : ''"
|
|
|
+ >
|
|
|
<div class="evaluate-label">缺陷处理时长</div>
|
|
|
- <el-input v-model="form.qxclsc" style="width: 62px;text-align: center;" placeholder="" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.qxclsc"
|
|
|
+ style="width: 62px; text-align: center"
|
|
|
+ placeholder=""
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
<div class="evaluate-unit">min</div>
|
|
|
</div>
|
|
|
<div class="evaluate-item">
|
|
|
<div class="evaluate-label">缺陷处理平均时长</div>
|
|
|
- <el-input v-model="form.qxclpjsc" style="width: 62px;text-align: center;" placeholder="" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.qxclpjsc"
|
|
|
+ style="width: 62px; text-align: center"
|
|
|
+ placeholder=""
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
<div class="evaluate-unit">min</div>
|
|
|
</div>
|
|
|
- <div class="evaluate-item" :class="(form.yssc > form.yspjsc ? ' warColor' : '')">
|
|
|
+ <div
|
|
|
+ class="evaluate-item"
|
|
|
+ :class="form.yssc > form.yspjsc ? ' warColor' : ''"
|
|
|
+ >
|
|
|
<div class="evaluate-label">验收时长</div>
|
|
|
- <el-input v-model="form.yssc" style="width: 62px;text-align: center;" placeholder="" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.yssc"
|
|
|
+ style="width: 62px; text-align: center"
|
|
|
+ placeholder=""
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
<div class="evaluate-unit">min</div>
|
|
|
</div>
|
|
|
<div class="evaluate-item">
|
|
|
<div class="evaluate-label">验收平均时长</div>
|
|
|
- <el-input v-model="form.yspjsc" style="width: 62px;text-align: center;" placeholder="" readonly></el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="form.yspjsc"
|
|
|
+ style="width: 62px; text-align: center"
|
|
|
+ placeholder=""
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
<div class="evaluate-unit">min</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="tabs">
|
|
|
<div class="tab-box">
|
|
|
- <div class="tab-item" v-for="(tab, index) of tabs" :key="index" :class="{ active: activeTab == index }" @click="selectTab(tab,index)">
|
|
|
- <span class="svg-icon svg-icon-md" :class="activeTab == index ? 'svg-icon-green' : 'svg-icon-write'">
|
|
|
+ <div
|
|
|
+ class="tab-item"
|
|
|
+ v-for="(tab, index) of tabs"
|
|
|
+ :key="index"
|
|
|
+ :class="{ active: activeTab == index }"
|
|
|
+ @click="selectTab(tab, index)"
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ class="svg-icon svg-icon-md"
|
|
|
+ :class="activeTab == index ? 'svg-icon-green' : 'svg-icon-write'"
|
|
|
+ >
|
|
|
<SvgIcon :svgid="tab.icon"></SvgIcon>
|
|
|
</span>
|
|
|
<span>{{ tab.text }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <defect-elimination-tracking ref="det" :show="false" :formdata="formdata"></defect-elimination-tracking>
|
|
|
+ <defect-elimination-tracking
|
|
|
+ ref="det"
|
|
|
+ :show="false"
|
|
|
+ :formdata="formdata"
|
|
|
+ ></defect-elimination-tracking>
|
|
|
<div class="dialog-box">
|
|
|
- <el-dialog title="消缺历史" v-model="dialogVisible" width="1200px" height='800px' custom-class="modal"
|
|
|
- :close-on-click-modal="false">
|
|
|
+ <el-dialog
|
|
|
+ title="消缺历史"
|
|
|
+ v-model="dialogVisible"
|
|
|
+ width="1200px"
|
|
|
+ height="800px"
|
|
|
+ custom-class="modal"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ >
|
|
|
<div class="diamain">
|
|
|
<div class="left">
|
|
|
- <el-tree :data="data" :props="defaultProps" node-key="id" :default-expand-all="true" custom-class="modal"
|
|
|
- @node-click="handleNodeClick"></el-tree>
|
|
|
+ <el-tree
|
|
|
+ :data="data"
|
|
|
+ :props="defaultProps"
|
|
|
+ node-key="id"
|
|
|
+ :default-expand-all="true"
|
|
|
+ custom-class="modal"
|
|
|
+ @node-click="handleNodeClick"
|
|
|
+ ></el-tree>
|
|
|
</div>
|
|
|
<div class="right">
|
|
|
<div class="table-box">
|
|
@@ -193,12 +347,37 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
- <el-dialog title="查看监控视频" v-model="videoBoxShow" width="80%" height='800px' custom-class="modal"
|
|
|
- :close-on-click-modal="true">
|
|
|
- <video class="videoPlayer" id="videoPlayer" muted autoplay webkit-playsinline playsinline></video>
|
|
|
+ <el-dialog
|
|
|
+ title="查看监控视频"
|
|
|
+ v-model="videoBoxShow"
|
|
|
+ width="80%"
|
|
|
+ height="800px"
|
|
|
+ custom-class="modal"
|
|
|
+ :close-on-click-modal="true"
|
|
|
+ >
|
|
|
+ <video
|
|
|
+ class="videoPlayer"
|
|
|
+ id="videoPlayer"
|
|
|
+ muted
|
|
|
+ autoplay
|
|
|
+ webkit-playsinline
|
|
|
+ playsinline
|
|
|
+ ></video>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="GIS地貌" v-model="gisBoxShow" top="100px" width="95%" custom-class="modal gisBox" :close-on-click-modal="true">
|
|
|
- <iframe width="100%" height="100%" src="http://10.155.32.4:8070/gisweb/ditujiankang.html?LAT=106.23507&LNG=38.48989&userid=1500" sryle="width:100%;height:100%;"></iframe>
|
|
|
+ <el-dialog
|
|
|
+ title="GIS地貌"
|
|
|
+ v-model="gisBoxShow"
|
|
|
+ top="100px"
|
|
|
+ width="95%"
|
|
|
+ custom-class="modal gisBox"
|
|
|
+ :close-on-click-modal="true"
|
|
|
+ >
|
|
|
+ <iframe
|
|
|
+ width="100%"
|
|
|
+ height="100%"
|
|
|
+ src="http://10.155.32.4:8070/gisweb/ditujiankang.html?LAT=106.23507&LNG=38.48989&userid=1500"
|
|
|
+ sryle="width:100%;height:100%;"
|
|
|
+ ></iframe>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -207,93 +386,116 @@
|
|
|
import ComTable from "@com/coms/table/table.vue";
|
|
|
import SvgIcon from "@com/coms/icon/svg-icon.vue";
|
|
|
import DefectEliminationTracking from "../HealthControl/defect-elimination-tracking.vue"; //手环监控
|
|
|
-import $ from 'jquery';
|
|
|
+import $ from "jquery";
|
|
|
export default {
|
|
|
components: {
|
|
|
- SvgIcon, ComTable,
|
|
|
+ SvgIcon,
|
|
|
+ ComTable,
|
|
|
DefectEliminationTracking,
|
|
|
},
|
|
|
props: {
|
|
|
formdata: Object,
|
|
|
},
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
gisBoxShow: false,
|
|
|
videoBoxShow: false,
|
|
|
- location: '',
|
|
|
+ location: "",
|
|
|
tableData: {
|
|
|
column: [
|
|
|
{
|
|
|
name: "消缺描述",
|
|
|
field: "xqms",
|
|
|
- is_light: false
|
|
|
+ is_light: false,
|
|
|
},
|
|
|
{
|
|
|
name: "消缺人员",
|
|
|
field: "xqry",
|
|
|
- is_light: false
|
|
|
+ is_light: false,
|
|
|
},
|
|
|
{
|
|
|
name: "消缺时间",
|
|
|
field: "xqsj",
|
|
|
- is_light: false
|
|
|
+ is_light: false,
|
|
|
},
|
|
|
{
|
|
|
name: "更换部件",
|
|
|
field: "ghbj",
|
|
|
- is_light: false
|
|
|
+ is_light: false,
|
|
|
},
|
|
|
{
|
|
|
name: "更换原因",
|
|
|
field: "ghyy",
|
|
|
- is_light: false
|
|
|
+ is_light: false,
|
|
|
},
|
|
|
{
|
|
|
name: "更换数量",
|
|
|
field: "ghsl",
|
|
|
- is_light: false
|
|
|
+ is_light: false,
|
|
|
},
|
|
|
],
|
|
|
data: [],
|
|
|
},
|
|
|
- data: [{
|
|
|
- label: '一级 1',
|
|
|
- children: [{
|
|
|
- label: '二级 1-1',
|
|
|
- children: [{
|
|
|
- label: '三级 1-1-1'
|
|
|
- }]
|
|
|
- }]
|
|
|
- }, {
|
|
|
- label: '一级 2',
|
|
|
- children: [{
|
|
|
- label: '二级 2-1',
|
|
|
- children: [{
|
|
|
- label: '三级 2-1-1'
|
|
|
- }]
|
|
|
- }, {
|
|
|
- label: '二级 2-2',
|
|
|
- children: [{
|
|
|
- label: '三级 2-2-1'
|
|
|
- }]
|
|
|
- }]
|
|
|
- }, {
|
|
|
- label: '一级 3',
|
|
|
- children: [{
|
|
|
- label: '二级 3-1',
|
|
|
- children: [{
|
|
|
- label: '三级 3-1-1'
|
|
|
- }]
|
|
|
- }, {
|
|
|
- label: '二级 3-2',
|
|
|
- children: [{
|
|
|
- label: '三级 3-2-1'
|
|
|
- }]
|
|
|
- }]
|
|
|
- }],
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ label: "一级 1",
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ label: "二级 1-1",
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ label: "三级 1-1-1",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "一级 2",
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ label: "二级 2-1",
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ label: "三级 2-1-1",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "二级 2-2",
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ label: "三级 2-2-1",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "一级 3",
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ label: "二级 3-1",
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ label: "三级 3-1-1",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "二级 3-2",
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ label: "三级 3-2-1",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
defaultProps: {
|
|
|
- children: 'children',
|
|
|
- label: 'label'
|
|
|
+ children: "children",
|
|
|
+ label: "label",
|
|
|
},
|
|
|
dialogVisible: false,
|
|
|
tabs: [
|
|
@@ -364,31 +566,31 @@ export default {
|
|
|
gzpc: null,
|
|
|
gzjx: null,
|
|
|
prodtdepttime: null,
|
|
|
- checkdeptopinion: null
|
|
|
+ checkdeptopinion: null,
|
|
|
},
|
|
|
|
|
|
- videoConfigHost: '10.155.32.4:9984', // 视频 host
|
|
|
+ videoConfigHost: "10.155.32.4:9984", // 视频 host
|
|
|
// videoConfigHost: 'localhost:9984', // 视频 host
|
|
|
- videoConfigToken: 'stream-1', // 视频 token
|
|
|
- videoConfigStreamprofile: 'Profile_1', // 视频流文件
|
|
|
- videoPlayer: null // 视频播放实例
|
|
|
+ videoConfigToken: "stream-1", // 视频 token
|
|
|
+ videoConfigStreamprofile: "Profile_1", // 视频流文件
|
|
|
+ videoPlayer: null, // 视频播放实例
|
|
|
};
|
|
|
},
|
|
|
- created () {
|
|
|
+ created() {
|
|
|
this.setData();
|
|
|
},
|
|
|
|
|
|
- updated () {
|
|
|
+ updated() {
|
|
|
this.setData();
|
|
|
},
|
|
|
|
|
|
- onmounted () {
|
|
|
+ onmounted() {
|
|
|
this.cancelPlay();
|
|
|
},
|
|
|
|
|
|
// 函数
|
|
|
methods: {
|
|
|
- setData () {
|
|
|
+ setData() {
|
|
|
this.form = this.formdata;
|
|
|
this.form.tjss = this.form.tjss
|
|
|
? new Date(this.form.tjss).formatDate("yyyy-MM-dd hh:mm:ss")
|
|
@@ -409,17 +611,17 @@ export default {
|
|
|
? new Date(this.form.checktime).formatDate("yyyy-MM-dd hh:mm:ss")
|
|
|
: null;
|
|
|
},
|
|
|
- handleNodeClick (data) {
|
|
|
- this.location = data.id
|
|
|
- this.searchTab(data.id)
|
|
|
+ handleNodeClick(data) {
|
|
|
+ this.location = data.id;
|
|
|
+ this.searchTab(data.id);
|
|
|
},
|
|
|
- DateformatDate (val) {
|
|
|
+ DateformatDate(val) {
|
|
|
return new Date(val).formatDate("yyyy-MM-dd hh:mm:ss");
|
|
|
},
|
|
|
- showDet () {
|
|
|
+ showDet() {
|
|
|
this.$refs.det.show();
|
|
|
},
|
|
|
- statu (data) {
|
|
|
+ statu(data) {
|
|
|
if (null != data.checktime) {
|
|
|
return "消缺验收";
|
|
|
} else if (
|
|
@@ -445,20 +647,20 @@ export default {
|
|
|
return "流程未启动";
|
|
|
}
|
|
|
},
|
|
|
- async searchH () {
|
|
|
+ async searchH() {
|
|
|
const { data } = await this.API.requestData({
|
|
|
method: "POST",
|
|
|
subUrl: "/recommen/findLocationTreeByWtId",
|
|
|
data: {
|
|
|
wtId: this.form.wtId,
|
|
|
},
|
|
|
- })
|
|
|
- this.dialogVisible = true
|
|
|
- this.data = data.data
|
|
|
- this.location = data.data[0].id
|
|
|
- this.searchTab()
|
|
|
+ });
|
|
|
+ this.dialogVisible = true;
|
|
|
+ this.data = data.data;
|
|
|
+ this.location = data.data[0].id;
|
|
|
+ this.searchTab();
|
|
|
},
|
|
|
- async searchTab () {
|
|
|
+ async searchTab() {
|
|
|
const { data } = await this.API.requestData({
|
|
|
method: "POST",
|
|
|
subUrl: "/recommen/findWobugeqByLocation",
|
|
@@ -467,12 +669,13 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
},
|
|
|
- location: this.location
|
|
|
+ location: this.location,
|
|
|
},
|
|
|
- })
|
|
|
- this.tableData.data = data.data
|
|
|
+ });
|
|
|
+ this.tableData.data = data.data;
|
|
|
+ console.log(123123,data)
|
|
|
},
|
|
|
- showVideoBox () {
|
|
|
+ showVideoBox() {
|
|
|
this.videoBoxShow = true;
|
|
|
this.$nextTick(() => {
|
|
|
this.listenEvent();
|
|
@@ -480,22 +683,24 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 销毁播放实例
|
|
|
- cancelPlay () {
|
|
|
- $('.videoPlayer').attr('poster', "").attr('src', "");
|
|
|
- this.videoPlayer && this.videoPlayer.disconnect() && (this.videoPlayer = null);
|
|
|
+ cancelPlay() {
|
|
|
+ $(".videoPlayer").attr("poster", "").attr("src", "");
|
|
|
+ this.videoPlayer &&
|
|
|
+ this.videoPlayer.disconnect() &&
|
|
|
+ (this.videoPlayer = null);
|
|
|
},
|
|
|
|
|
|
// 监听视频被暂停和被播放
|
|
|
- listenEvent () {
|
|
|
+ listenEvent() {
|
|
|
let that = this;
|
|
|
|
|
|
//判断设备
|
|
|
if (H5siOS() === true || H5sSafariBrowser() === true) {
|
|
|
- $('.videoPlayer').prop('controls', true);
|
|
|
+ $(".videoPlayer").prop("controls", true);
|
|
|
}
|
|
|
|
|
|
//如果是暂停状态,就让它开始;如果是开始就让他暂停。每次开始之前都先清空参数
|
|
|
- $('.videoPlayer').on('click', function () {
|
|
|
+ $(".videoPlayer").on("click", function () {
|
|
|
if ($(this).get(0).paused) {
|
|
|
that.resetVideo();
|
|
|
} else {
|
|
@@ -503,24 +708,24 @@ export default {
|
|
|
$(this).get(0).pause();
|
|
|
this.BASE.showMsg({
|
|
|
type: "success",
|
|
|
- msg: "暂停播放"
|
|
|
+ msg: "暂停播放",
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
|
|
|
// 重置视频播放状态
|
|
|
- resetVideo () {
|
|
|
+ resetVideo() {
|
|
|
this.$nextTick(() => {
|
|
|
let videoConfig = {
|
|
|
- videoid: 'videoPlayer',//跟上面video标签的id一致
|
|
|
- protocol: 'http:', //'http:' or 'https:'
|
|
|
+ videoid: "videoPlayer", //跟上面video标签的id一致
|
|
|
+ protocol: "http:", //'http:' or 'https:'
|
|
|
host: this.videoConfigHost, //'localhost:8080'自己内部的网址
|
|
|
- rootpath: '/', // '/' or window.location.pathname
|
|
|
- token: this.videoConfigToken,//可变参数
|
|
|
+ rootpath: "/", // '/' or window.location.pathname
|
|
|
+ token: this.videoConfigToken, //可变参数
|
|
|
// streamprofile: this.videoConfigStreamprofile, // {string} - stream profile, main/sub or other predefine transcoding profile
|
|
|
- hlsver: 'v1', //v1 is for ts, v2 is for fmp4
|
|
|
- session: 'e312287e-d809-4b4b-a5d6-336e5006199f' //session got from login可变参数
|
|
|
+ hlsver: "v1", //v1 is for ts, v2 is for fmp4
|
|
|
+ session: "e312287e-d809-4b4b-a5d6-336e5006199f", //session got from login可变参数
|
|
|
};
|
|
|
|
|
|
this.cancelPlay();
|
|
@@ -529,9 +734,8 @@ export default {
|
|
|
|
|
|
this.BASE.showMsg({
|
|
|
type: "success",
|
|
|
- msg: "播放组件初始化中...请稍后..."
|
|
|
+ msg: "播放组件初始化中...请稍后...",
|
|
|
});
|
|
|
-
|
|
|
});
|
|
|
},
|
|
|
selectTab: function (tab, index) {
|
|
@@ -543,8 +747,8 @@ export default {
|
|
|
} else if (index === 2) {
|
|
|
this.showVideoBox();
|
|
|
}
|
|
|
- if (tab.text == '消缺历史') {
|
|
|
- this.searchH()
|
|
|
+ if (tab.text == "消缺历史") {
|
|
|
+ this.searchH();
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -560,6 +764,8 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
.left {
|
|
|
width: 30%;
|
|
|
+ height: 100%;
|
|
|
+ background: rgba(96, 103, 105, 0.2);
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
.right {
|
|
@@ -741,7 +947,7 @@ export default {
|
|
|
position: relative;
|
|
|
background-image: @greenLinearTop;
|
|
|
&::after {
|
|
|
- content: '';
|
|
|
+ content: "";
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: 5px;
|