Commit b5bb8cbb authored by 胡占生's avatar 胡占生 🇨🇳
Browse files

fix: bug 修复

parent a9485f95
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -300,14 +300,7 @@ export default {
            factor: "", //风险因素
            showFactor: false,
            columnsFactor: [],
            messageList: [
                {
                    title: '回显风险源名称',
                    time: '2022-12-12',
                    name: 'Mr.周',
                    state: 1
                }
            ],
            messageList: [],
            source: "", //风险源
            userPrefix: "", //风险源
            showSource: false,
+2 −2
Original line number Diff line number Diff line
@@ -190,8 +190,8 @@
                        </van-collapse-item>
                    </van-collapse>
                    <van-row type="flex" justify="center" style="margin-top:10px">
                        <van-col span="6"><van-button size="small" plain type="info" @click="showGradeDialog = false">取消</van-button></van-col>
                        <van-col span="6"><van-button size="small" type="info" @click="goResultPage">开始测评</van-button></van-col>
                        <van-col span="6"><van-button size="small" plain native-type="button" type="info"   @click="showGradeDialog = false">取消</van-button></van-col>
                        <van-col span="6"><van-button size="small"  type="info" native-type="button" @click="goResultPage">开始测评</van-button></van-col>
                    </van-row>
                </div>
            </van-dialog>
+2 −2
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
          <div class="con-list">
            <van-cell-group inset v-for="(item, index) in messageList" :key="index" @click="touchstart(index, item)">
              <div style="font-size: 0.45rem;padding: 5px 0;">
                {{ item.title }}
                {{ item.name }}
              </div>
              <van-row gutter="">
                <van-col span="17">
+24 −18
Original line number Diff line number Diff line
@@ -11,34 +11,29 @@
      >
      <van-tab title="排序">
        <template #title> 排序 <van-icon name="down" /></template>
         <div
            class="con-list"
          >
            <van-cell-group
              inset
               @click="touchstart(0)"
            >
              <div style="font-size: 0.45rem;padding: 5px 0;">项目评估任务单1</div>
         <div  class="con-list" >
            <van-cell-group v-for="(item,index) in taskList" :key="index" inset @click="touchstart(index, item)" >
              <div style="font-size: 0.45rem;padding: 5px 0;">{{item.name}}</div>

              <van-row gutter="">
                <van-col span="17">
                    <van-row gutter="">
                        <van-col span="9">发起时间:</van-col>
                        <van-col span="15">2023-07-05</van-col>
                        <van-col span="15">{{ timestampToTimes(item.startTime) }}</van-col>
                    </van-row>
                    <van-row gutter="">
                        <van-col span="9">处理人员:</van-col>
                        <van-col span="15">孔德龙</van-col>
                        <van-col span="15">{{item.leaderUserName}}</van-col>
                    </van-row>
                </van-col>
                <van-col span="7" :style="{'color':'#03b615'}">
                    发起
                  {{item.state}}
                </van-col>
              </van-row>
              <!-- 长按显示遮罩层 -->
              <van-overlay :show="showIndex == 0">
              <van-overlay :show="showIndex == index">
                <div class="wrapper"  @click.stop="showIndex = null">
                  <van-button round type="primary" @click="goDetail()"
                  <van-button round type="primary" @click="goDetail(item)"
                    >详情</van-button
                  >
                </div>
@@ -55,7 +50,8 @@

<script type="text/ecmascript-6">
import LHeader from "@/components/header.vue";

import { timestampToTime, generateId } from "@/utils/format";
import { getFun, postFun } from "@/service/table.js";
export default {
  name:'taskLedger',//任务台账
  data() {
@@ -63,15 +59,25 @@ export default {
      text:'任务台账',
      active: 0,
      showIndex: null, // 是否显示遮罩层,
      taskList: [], // 是否显示遮罩层,
    }
  },
  components: {
    LHeader,
  },
  mounted() {
    
    this.getList()
  },
  methods: {
    timestampToTimes(time) {
      return timestampToTime(new Date(time), "DT2", true);
    },
    getList(){
      getFun('/risk/plan/details/list').then(res=>{
        console.log('%c [ res ]-77', 'font-size:13px; background:pink; color:#bf2c9f;', res)
        this.taskList=res.data
      })
    },
    //点击列表
    touchstart(index, item) {
      if (this.showIndex != null) {
@@ -81,11 +87,11 @@ export default {
      this.showIndex = index;
    },
      // 详情
    goDetail(){
    goDetail(item){
      this.$router.push({
        name: "taskDetail",
        name: "riskTaskList",
        params: {
          id:'',
          id:item.id,
        },
      });
    }