Commit 3fd739cf authored by wei's avatar wei
Browse files

add

parent 4ef48267
Loading
Loading
Loading
Loading
+189 KiB
Loading image diff...
+38 −26
Original line number Original line Diff line number Diff line
@@ -151,18 +151,30 @@ export default {
    //任务执行结束
    //任务执行结束
    endTasks() {
    endTasks() {
      //toDo
      //toDo
      Dialog.confirm({
        title: '任务执行结束',
        message: '是否任务执行结束',
      })
        .then(() => {
          postFun(
          postFun(
            `/risk/plan/submit/${this.planId}/${this.buildingId}`
            `/risk/plan/submit/${this.planId}/${this.buildingId}`
          ).then(res => {
          ).then(res => {
        Dialog.alert({
            // Dialog.alert({
          title: '任务执行结束',
            //   title: '任务执行结束',
          message: res.msg,
            //   message: res.msg,
        }).then(() => {
            // }).then(() => {
            // resolve(res.data);
            this.$toast.success(res.msg)
            this.$router.push({
            this.$router.push({
              name: 'riskAssess'
              name: 'riskAssess'
            })
            })
        });
            // });
          })
          })
        })
        .catch(() => {
          // on cancel
        });

    },
    },
    handadd() {
    handadd() {
      this.$router.push({
      this.$router.push({
+57 −45
Original line number Original line Diff line number Diff line
@@ -3,8 +3,8 @@
        <LHeader :text="text"></LHeader>
        <LHeader :text="text"></LHeader>
        <div class="section">
        <div class="section">
            <p>该次测评风险值为:</p>
            <p>该次测评风险值为:</p>
                <div>
            <div class="resultScore">
                    <p style="font-weight: bold;font-size: 20px;">{{ score }}</p>
                <p style="font-weight: bold;font-size: 20px;">{{ this.$route.params.score }}</p>
            </div>
            </div>
            <p>本次评估结果评定为:{{ level }}</p>
            <p>本次评估结果评定为:{{ level }}</p>
            <van-divider></van-divider>
            <van-divider></van-divider>
@@ -12,10 +12,11 @@
            <van-field readonly label="风险发生可能性:" placeholder="一般情况不会发生" />
            <van-field readonly label="风险发生可能性:" placeholder="一般情况不会发生" />
            <van-field readonly label="后果严重程度" placeholder="轻微影响" />
            <van-field readonly label="后果严重程度" placeholder="轻微影响" />
            <van-field readonly label="判定标准:" placeholder="见下图" />
            <van-field readonly label="判定标准:" placeholder="见下图" />
            <van-image width="90vw" height="auto" :src="require('@/assets/workbench/sst.jpg')" />
        </div>
        </div>
        <div style="display: flex;margin: 10px 16px 0px; padding-bottom: 16px">
        <div style="display: flex;margin: 10px 16px 0px; padding-bottom: 16px">
            <van-button block type="info" @click="sureClose">确认本次测评结果</van-button>
            <van-button block type="info" @click="sureClose" style="margin-right: 4px;">确认本次测评结果</van-button>
            <van-button block plain type="info" @click="resetClose">取消</van-button>
            <van-button block plain type="info" @click="resetClose" style="margin-left: 4px;">取消</van-button>
        </div>
        </div>


    </div>
    </div>
@@ -72,6 +73,7 @@ import LHeader from "@/components/header.vue";
.wrapper {
.wrapper {
    width: 100%;
    width: 100%;
    height: 100%;
    height: 100%;

    .section {
    .section {
        width: 100%;
        width: 100%;
        height: 100%;
        height: 100%;
@@ -80,5 +82,15 @@ import LHeader from "@/components/header.vue";
        background: #fff;
        background: #fff;
        font-size: 14px;
        font-size: 14px;
    }
    }
    .resultScore{
        width: 48px;
        height: 48px;
        background: #ffc600;
        text-align: center;
        line-height: 48px;
        border-radius: 50%;
        margin: 0 auto;
    }
    
}
}
</style>
</style>
 No newline at end of file
+0 −1
Original line number Original line Diff line number Diff line
@@ -742,7 +742,6 @@ export default {
    },
    },
    //风险清单列表点击
    //风险清单列表点击
    toRiskDetail(item) {
    toRiskDetail(item) {
      console.log(item, "LLLL");
      this.$router.push({
      this.$router.push({
        name: "taskDetail",
        name: "taskDetail",
        params: {
        params: {
+1 −1
Original line number Original line Diff line number Diff line
@@ -51,7 +51,7 @@
          </div>
          </div>
        </van-tab>
        </van-tab>
        <van-tab title="四色图" name="c">
        <van-tab title="四色图" name="c">
          <drawCanvas />
          <drawCanvas :isView="true"/>
        </van-tab>
        </van-tab>
      </van-tabs>
      </van-tabs>
    </div>
    </div>