|
|
@@ -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);
|
|
|
},
|