haoxuan
2023-09-25 a6c049ce564fe10a83b6f1759035a8c2803c6e18
src/components/AddIssue.vue
@@ -173,7 +173,8 @@
              <img src="../../public/btn1.png" />
          </div>
          <div class="btn" v-if="showBtn == 1" @click="confirmClick1">
            <img src="../../public/confirm1.png" />
            <img v-if='taskData&&taskData.canStarted' src="../../public/confirm1.png" />
            <img v-else src="../../public/confirm2.png" />
          </div>
          <div class="btn" v-if="showBtn == 2">
            <img src="../../public/confirm2.png" />
@@ -222,6 +223,12 @@
        return [];
      },
    },
    safeProduce:{
      type: [String],
      default: () => {
        return '';
      },
    }
  },
  data() {
    return {
@@ -229,17 +236,19 @@
      showBtn:1,
      num: 0,
      timer: null,
      message: "请确认生产安全!",
      message: this.safeProduce,
      messageError: "",
      resParams: {},
      isLoading:false,
    };
  },
  mounted() {
    this.message=this.safeProduce;
    this.getInfo();
  },
  watch: {
    taskData(val) {
      this.message=this.safeProduce;
      this.getInfo();
    },
    num() {
@@ -266,7 +275,7 @@
    confirmClick1() {
      this.num = 0;
      this.showBtn = 2;
      (this.message = "请确认生产安全!"),
      (this.message = this.safeProduce),
        (this.timer = setInterval(() => {
          this.num = this.num + 1;
        }, 1000));
@@ -326,7 +335,7 @@
    formatDate(value) {
      if (value) {
        const now = value ? new Date(value * 1000) : new Date();
        let time = this.getDateObj(now, "yyyy-MM-dd");
        let time = this.getDateObj(now, "MM-dd hh:mm");
        return time;
      } else {
        return "";
@@ -368,7 +377,7 @@
          clearInterval(this.timer);
          // this.num = 30;
          // this.showBtn = 2;
          this.message = "请确认生产安全!";
          this.message = this.safeProduce;
          this.num = 0;
          this.showBtn= 1
@@ -381,7 +390,7 @@
        clearInterval(this.timer);
        this.num = 30;
        this.showBtn = 2;
        this.message = "请确认生产安全!";
        this.message =this.safeProduce;
      }
    },
    shutdown() {
@@ -593,6 +602,7 @@
  .gif-box{
    width:230px;
    margin:0 auto;
    margin-bottom:5px;
    .gif-right{
      width:210px;
      font-size:14px;
@@ -605,7 +615,7 @@
    }
  }
  .gif{
    width:56px;
    width:55px;
    vertical-align: middle;
    float:left;
    margin-right:20px;
@@ -613,13 +623,13 @@
      width:100%;
    }
    .yuandian {
        width: 56px;
        height: 56px;
        display: inline-block;
        width: 55px;
        height: 55px;
        float:left;
        // background: #15d815;
        background:red;
        border-radius: 50%;
        margin-top:-5px;
        // margin-top:-5px;
        vertical-align: middle;
      }
  }