Commit 91bfac35 authored by Facius's avatar Facius

improve: 样式修改

parent 2a2f5530
Pipeline #3961 canceled with stages
...@@ -11,13 +11,13 @@ ...@@ -11,13 +11,13 @@
</view> </view>
<view class="detail-right"> <view class="detail-right">
<view class="detail-right-label">{{ detail.type.desc }}</view> <view class="detail-right-label">{{ detail.type.desc }}</view>
<view class="detail-right-value" :class="{ 'detail-right-status': redAmount }">{{ detail.amount }}</view> <view class="detail-right-value" :class="{ 'detail-right-status': redAmount }">{{ amount }}</view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import { workTypeOptions } from '@/utils/options/workpoint'; import { formatCount } from '@/utils/common.js';
export default { export default {
props: { props: {
detail: { detail: {
...@@ -36,6 +36,9 @@ export default { ...@@ -36,6 +36,9 @@ export default {
return false; return false;
} }
return parseFloat(amount) < 0; return parseFloat(amount) < 0;
},
amount() {
return formatCount(Number(this.detail.amount || 0))
} }
}, },
data() { data() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment