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

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

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