Commit c22f5fa6 by zhangxw

bug修复

1 parent a5b91cca
...@@ -110,7 +110,7 @@ export const handleGradeData = (dataFromApi, salePeriodList = []) => { ...@@ -110,7 +110,7 @@ export const handleGradeData = (dataFromApi, salePeriodList = []) => {
_gradeObj.gradeConfigList.push({ _gradeObj.gradeConfigList.push({
maxPrice: NP.divide(maxPrice || 0, 1000000), maxPrice: NP.divide(maxPrice || 0, 1000000),
minPrice: NP.divide(minPrice || 0, 1000000), minPrice: NP.divide(minPrice || 0, 1000000),
priceCoefficient, priceCoefficient: priceCoefficient.toFixed(16).replace(/\.?0+$/, ''),
computeFlag, computeFlag,
id id
}) })
...@@ -126,7 +126,7 @@ export const handleGradeData = (dataFromApi, salePeriodList = []) => { ...@@ -126,7 +126,7 @@ export const handleGradeData = (dataFromApi, salePeriodList = []) => {
let arr = [] let arr = []
salePeriodList?.forEach(it => { salePeriodList?.forEach(it => {
let _obj = gradeConfigList.find(o => o.servicePeriod == it && NP.divide(o.minPrice || 0, 1000000) == item.minPrice && NP.divide(o.maxPrice || 0, 1000000) == item.maxPrice) let _obj = gradeConfigList.find(o => o.servicePeriod == it && NP.divide(o.minPrice || 0, 1000000) == item.minPrice && NP.divide(o.maxPrice || 0, 1000000) == item.maxPrice)
arr.push({ id: _obj?.id, servicePeriod: it, shelfCost: _obj?.shelfCost, salesCost: _obj?.salesCost }) arr.push({ id: _obj?.id, servicePeriod: it, shelfCost: _obj?.shelfCost.toFixed(16).replace(/\.?0+$/, ''), salesCost: _obj?.salesCost.toFixed(16).replace(/\.?0+$/, '') })
}) })
item.childSalePeriodData = arr item.childSalePeriodData = arr
}) })
......
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
{{ item.content }} {{ item.content }}
</el-timeline-item> </el-timeline-item>
</el-timeline> </el-timeline>
<div class="noData" v-if="operationRecordData.length == 0">
<img class="noDataImg" :src="url" v-if="url" alt="" />
<div>暂无数据</div>
</div>
</div> </div>
</GLDialog> </GLDialog>
</div> </div>
...@@ -34,11 +38,13 @@ ...@@ -34,11 +38,13 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import utils from '../../util/util' import utils from '../../util/util'
import url from '@/assets/empty.png'
export default { export default {
name: 'equityList', name: 'equityList',
components: {}, components: {},
data() { data() {
return { return {
url,
isdestroy: true, isdestroy: true,
size: 'small', size: 'small',
buttonList: [ buttonList: [
...@@ -344,5 +350,12 @@ export default { ...@@ -344,5 +350,12 @@ export default {
background: #5850ff !important; background: #5850ff !important;
} }
} }
.noData{
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
padding: 104px;
}
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!