瀏覽代碼

修改bug,需求变更

凉纪 1 年之前
父節點
當前提交
9ea8db6c7e

+ 1 - 1
src/components/dateCell/index.vue

@@ -74,7 +74,7 @@ export default {
         'date': {value: 'YYYY-MM-DD'},
         'year-month':{ value: 'YYYY-MM'},
         'month-day': {value: 'MM-DD'},
-        'datetime':{ value: 'YYYY-MM-DD HH:mm'},
+        'datetime':{ value: 'YYYY-MM-DD HH:mm:ss'},
       },
       label:'',
     }

+ 6 - 4
src/views/menu/safetyBook/detail.vue

@@ -3,19 +3,19 @@
     <nav-bar></nav-bar>
     <div class="page-container">
       <van-cell-group>
-        <van-cell class="item-cell" title="签署类型" :value="getDictLabel(dataInfo.type,'safety_book_type')" >
+        <van-cell class="item-cell" title="签署责任书类型" :value="getDictLabel(dataInfo.type,'safety_book_type')" >
         </van-cell>
-        <van-cell class="item-cell" title="签署人所在机构" :value="dataInfo.userName" >
+        <van-cell class="item-cell" title="签署人所在机构" :value="dataInfo.orgName" >
         </van-cell>
         <van-cell class="item-cell" title="所属年度" :value="`${dataInfo.year}年`" >
         </van-cell>
-        <van-cell class="item-cell" title="添加时间" :value="dataInfo.createTime">
+        <van-cell class="item-cell" title="添加时间" :value="dayjs(dataInfo.createTime).format('YYYY-MM-DD HH:mm')">
         </van-cell>
       </van-cell-group>
       <div class="book-list">
         <div class="card" v-for="(v,i) in bookList" :key="v.id">
           <van-cell  title="签署人" :value="v.userName"></van-cell>
-          <van-cell  title="签署时间" :value="v.time"></van-cell>
+          <van-cell  title="签署时间" :value="dayjs(v.time).format('YYYY-MM-DD')"></van-cell>
           <van-cell v-if="v.files && v.files.length > 0"  title="签署文件" >
             <template #label>
               <div class="file-list">
@@ -34,6 +34,7 @@
 import NavBar from '@/components/NavBar'
 import { detail } from './api.js'
 import {mapGetters} from 'vuex'
+import dayjs from 'dayjs'
 export default {
   data() {
     return {
@@ -51,6 +52,7 @@ export default {
     this.getInfo();
   },
   methods: {
+    dayjs,
     preview(file){
       this.openFilePreview(file);
     },

+ 3 - 1
src/views/menu/safetyBook/index.vue

@@ -19,7 +19,7 @@
               </van-cell>
               <van-cell class="item-cell" title="签署类型" :value="getDictLabel(v.type,'safety_book_type')" >
               </van-cell>
-              <van-cell class="item-cell" title="签署时间" :value="v.createTime">
+              <van-cell class="item-cell" title="添加时间" :value="dayjs(v.createTime).format('YYYY-MM-DD HH:mm')">
               </van-cell>
             </div>
           </card>
@@ -38,6 +38,7 @@ import Card from '@/components/card'
 import {dataList} from './api'
 import {formatDate} from "@/filters/filter";
 import {msgList} from "@/views/menu/message/api";
+import dayjs from "dayjs"
 export default {
   name: "safetyBook",
   components: {
@@ -67,6 +68,7 @@ export default {
     this.getDataList();
   },
   methods:{
+    dayjs,
     clickItem(item){
       this.$router.push({
         path:'/safetyBookDetail',query:{id:item.id}

+ 1 - 1
src/views/menu/securityCheckRegister/detail.vue

@@ -1,6 +1,6 @@
 <template>
   <div v-if="active" class="register-detail">
-    <nav-bar :go="go"></nav-bar>
+    <nav-bar></nav-bar>
     <div class="page-container">
       <!--   基本信息   -->
       <div class="card" v-if="taskInfo">