Browse Source

HL-5825变更记录增加查看数据按钮,没有记录的时候不显示按钮

hella_online_20240904
zhang_li 3 months ago
parent
commit
c0e3ac4b4e
  1. 2
      src/components/ChangeRecord/src/ChangeRecord.vue
  2. 4
      src/components/Distinction/src/Distinction.vue

2
src/components/ChangeRecord/src/ChangeRecord.vue

@ -24,7 +24,7 @@
<div class="dic color-#303133" >
{{ item.nickname }} {{ item.content }}
</div>
<el-button type="primary" bg text style="margin-top: 5px;" @click="seeDistinction(item)">查看变更数据</el-button>
<el-button type="primary" bg text style="margin-top: 5px;" @click="seeDistinction(item)" v-if='item.beforeContent||item.afterContent'>查看变更数据</el-button>
<!-- <div class="tips" v-if="item.type == 2">

4
src/components/Distinction/src/Distinction.vue

@ -2,11 +2,11 @@
<template>
<el-dialog v-model="dialogVisible" title="变更详情" width="80%" :before-close="handleClose">
<div style="display: flex">
<div style="flex: 1; width: 0px">
<div style="flex: 1; width: 0px" v-if="beforeContent">
<div style="font-size: 16px; font-weight: bold; margin-bottom: 10px"> 变更前 </div>
<Descriptions :data="beforeContent" :schema="schema" :columns="2" />
</div>
<div style="flex: 1; width: 0px; margin-left: 20px">
<div style="flex: 1; width: 0px; margin-left: 20px" v-if="afterContent">
<div style="font-size: 16px; font-weight: bold; margin-bottom: 10px"> 变更后 </div>
<Descriptions :data="afterContent" :schema="schema" :columns="2" />
</div>

Loading…
Cancel
Save