提交 788ff862 编写于 作者: guangjun.yang's avatar guangjun.yang

代码优化、接口请求优化等

上级 97a26759
......@@ -56,9 +56,10 @@ export default {
},
},
filters: {
// 将秒转换成分钟
convert: function (value, unitName = '分钟') {
if(!value) return 0 + unitName;
return Math.ceil(value / 60)
if(!value) return 0;
return Math.ceil(value / 60);
},
},
components: {
......
......@@ -59,20 +59,20 @@ export default {
height: 100%;
left: 0;
top: 0;
z-index: 2110;
z-index: 10000001;
font-size: 20px;
.mask {
position: absolute;
background: rgba(0, 0, 0, 0.5);
width: 100%;
height: 100%;
z-index: 2111;
z-index: 10000002;
}
.content {
position: absolute;
left: 50%;
top: 50%;
z-index: 2112;
z-index: 10000003;
width: 300px;
// height: 185px;
margin: -150px 0 0 -150px;
......
<!-- Tabs组件 -->
<template>
<div class="common-process">
<span class="bar" :style="{'width': maxPocessWidth, 'background': barColor}"></span><span class="desc">{{value}}</span>
<span class="bar" :style="{'width': maxPocessWidth, 'background': barColor}"></span><span class="desc">{{value}}{{unitName}}</span>
</div>
</template>
<script>
......
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册