Commit 6476a59a authored by 罗新东's avatar 罗新东
Browse files

工单状态

parent 1196c373
Loading
Loading
Loading
Loading
+4.64 KiB
Loading image diff...
+22 −5
Original line number Diff line number Diff line
@@ -607,15 +607,32 @@ const routes = [{
    component:()=>import('@/views/danger/insertDanger/list')
  },
  {
    path:'/video',
    name:'video-play',
    path:'/insert-risk',
    name:'insert-risk',
    meta:{
      title:'视屏播放',
      title:'我的风险上报',
      index:1
    },
    component:()=>import('@/components/video')
    component:()=>import('@/views/risk/my-insert/index')
  },
  {
    path:'/my-role',
    name:'my-role',
    meta:{
      title:'我的权限',
      index:1
    },
    component:()=>import('@/views/my/role')
  },
  {
    path:'/my-reset-pas',
    name:'my-reset-pas',
    meta:{
      title:'重置密码',
      index:1
    },
    component:()=>import('@/views/my/resetPas')
  },

  
]

+19 −0
Original line number Diff line number Diff line
<template>
  <div>
    <LHeader :text="text"></LHeader>
    <!-- 视屏 -->
     <div v-if="videoUrl">
        <custom-player :videoUrl="videoUrl" :videoImg="videoImg" @close="videoUrl=''"/>
    </div>
    <van-form
      @submit="onSubmit"
      :scroll-to-error="true"
@@ -280,6 +284,7 @@
            upload-text="最多上传五个"
            v-model="uploaderVideo"
            accept="video/*"
            @click-preview="clickPre"
          >
            <template slot="default">
              <!-- 11111111111 -->
@@ -362,6 +367,7 @@
import LHeader from "@/components/header.vue";
import { getFun, postFun } from "@/service/table.js";
import { timestampToTime } from "@/utils/format";
import customPlayer from "@/components/video"
import {
  getFormList,
  postHdTyp,
@@ -376,6 +382,7 @@ export default {
  name: "add-danger",
  components: {
    LHeader,
    customPlayer
  },
  activated() {
    this.taskId =
@@ -444,6 +451,9 @@ export default {

  data() {
    return {
      // 视频预览地址
      videoUrl:'',

      id: 0,
      text: "新增隐患",
      taskId: "",
@@ -486,6 +496,15 @@ export default {
  },

  methods: {
    // 点击预览图
    clickPre(e){
      console.log(e)
      if(e.filePath){
        this.videoUrl=e.filePath;
      }else{
        this.videoUrl=e.content;
      }
    },
    async deleteFile(val,detail,key){
      // console.log(val,detail)
      if(val.fileId){
+2 −2
Original line number Diff line number Diff line
@@ -31,10 +31,10 @@
        <van-col span="6">超期标识:</van-col>
        <van-col span="18">{{ item.dueDate | formatTime }}</van-col>
      </van-row>
      <van-row gutter="">
      <!-- <van-row gutter="">
        <van-col span="6">工单状态:</van-col>
        <van-col span="18">{{ item.taskName }}</van-col>
      </van-row>
      </van-row> -->
      <!-- 详情 -->
      <div class="detail">详情</div>
    </van-cell-group>
+4 −4
Original line number Diff line number Diff line
@@ -60,10 +60,10 @@
              <van-col span="6">超期标识:</van-col>
              <van-col span="18">{{ item.dueDate | formatTime }}</van-col>
            </van-row>
            <van-row gutter="">
            <!-- <van-row gutter="">
              <van-col span="6">工单状态:</van-col>
              <van-col span="18">{{ item.taskName }}</van-col>
            </van-row>
            </van-row> -->

            <!-- 长按显示遮罩层 -->
            <van-overlay :show="showIndex == index">
@@ -136,10 +136,10 @@
              <van-col span="6">超期标识:</van-col>
              <van-col span="18">{{ item.dueDate | formatTime }}</van-col>
            </van-row>
            <van-row gutter="">
            <!-- <van-row gutter="">
              <van-col span="6">工单状态:</van-col>
              <van-col span="18">{{ item.taskName }}</van-col>
            </van-row>
            </van-row> -->

            <!-- 长按显示遮罩层 -->
            <van-overlay :show="showIndex == index">
Loading