Commit 993f0a2b authored by 张俊's avatar 张俊

修改首页table样式

parent e849a475
<template> <template>
<div class="out"> <div class="out">
<div class="box" v-for="(item,index) in data" :key="index+3000" :style="!(item.arr&&item.arr.length!==0)||item.result==='审批未通过'||item.result==='审批不通过'?{border:'none'}:(type&&type=='approval'&&index==data.length-1)?{borderLeft:'none',paddingBottom:'0px',}:{}" :class="data[index+1]&&data[index+1].result==='审批中'?'dashedbd':''"> <div class="box" v-for="(item,index) in data" :key="index+3000" :style="!(item.arr&&item.arr.length!==0)||item.result==='审批未通过'||item.result==='审批不通过'?{border:'none'}:(index==data.length-1)?{borderLeft:'none',paddingBottom:'0px',}:{}" :class="data[index+1]&&data[index+1].result==='审批中'?'dashedbd':''">
<div class="circle" :style="!(item.arr&&item.arr.length!==0)?{borderColor:'#ffc95c'}:item.result==='审批未通过'||item.result==='审批不通过'?{borderColor:'#de3b4b'}:{}"></div> <div class="circle" :style="!(item.arr&&item.arr.length!==0)?{borderColor:'#ffc95c'}:item.result==='审批未通过'||item.result==='审批不通过'?{borderColor:'#de3b4b'}:{}"></div>
<div class="card" :style="item.result==='审批未通过'||item.result==='审批不通过'?{backgroundColor:'#fcfafa'}:{}"> <div class="card" :style="item.result==='审批未通过'||item.result==='审批不通过'?{backgroundColor:'#fcfafa'}:{}">
<p class="card_title" :style="!(item.arr&&item.arr.length!==0)?{backgroundColor:'#fcefd6'}:item.result==='审批未通过'||item.result==='审批不通过'?{backgroundColor:'#f7d5d5'}:{}"> <p class="card_title" :style="!(item.arr&&item.arr.length!==0)?{backgroundColor:'#fcefd6'}:item.result==='审批未通过'||item.result==='审批不通过'?{backgroundColor:'#f7d5d5'}:{}">
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
:width="item.width" :width="item.width"
:align="item.align" :align="item.align"
:min-width="item.minWidth" :min-width="item.minWidth"
:show-overflow-tooltip="true"
:render-header="item.require ? renderHeader : null" :render-header="item.require ? renderHeader : null"
> >
<template slot-scope="scope"> <template slot-scope="scope">
......
<template> <template>
<div> <span>
<span v-if="this.row.id||ids" class="href" @click="goHref(baseVal)">{{ text }}</span> <span v-if="this.row.id||ids" class="href" @click="goHref(baseVal)">{{ text }}</span>
<span v-else>{{text}}</span> <span v-else>{{text}}</span>
</div> </span>
</template> </template>
<script> <script>
......
...@@ -2271,6 +2271,8 @@ export default { ...@@ -2271,6 +2271,8 @@ export default {
height: calc(100% + 2px); height: calc(100% + 2px);
cursor: pointer; cursor: pointer;
color: #8890a7; color: #8890a7;
font-weight: 600;
padding-top: 5px;
} }
.myservice_btn { .myservice_btn {
float: right; float: right;
......
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