|
@@ -15,7 +15,7 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="section">
|
|
<view class="section">
|
|
- <uni-table >
|
|
|
|
|
|
+ <uni-table>
|
|
<uni-tr class="section-title" v-for="(item,index) in titleList" :key="index">
|
|
<uni-tr class="section-title" v-for="(item,index) in titleList" :key="index">
|
|
<uni-td class="grid-text">{{item.title1}}</uni-td>
|
|
<uni-td class="grid-text">{{item.title1}}</uni-td>
|
|
<uni-td class="grid-text">{{item.title2}}</uni-td>
|
|
<uni-td class="grid-text">{{item.title2}}</uni-td>
|
|
@@ -24,13 +24,16 @@
|
|
<uni-tr class="section-title" v-for="(taskProcess : TaskProcess,index2 : number) in taskProcessList"
|
|
<uni-tr class="section-title" v-for="(taskProcess : TaskProcess,index2 : number) in taskProcessList"
|
|
:key="index2" @click="enterProcess(taskProcess.id)">
|
|
:key="index2" @click="enterProcess(taskProcess.id)">
|
|
<uni-td class="grid-text">{{taskProcess.name}}</uni-td>
|
|
<uni-td class="grid-text">{{taskProcess.name}}</uni-td>
|
|
- <uni-td class="grid-text my-radius"
|
|
|
|
- :class="{
|
|
|
|
- 'bg-green': taskProcess.state === 'done',
|
|
|
|
- 'bg-yellow': taskProcess.state === 'doing',
|
|
|
|
- 'bg-black': taskProcess.state === 'waiting',
|
|
|
|
- 'bg-red': taskProcess.state === 'error'
|
|
|
|
- }">{{taskProcess.step}}/{{taskProcess.num}}</uni-td>
|
|
|
|
|
|
+ <uni-td class="grid-text">
|
|
|
|
+ <text :class="{
|
|
|
|
+ 'bg-green bg-text': taskProcess.state === 'done',
|
|
|
|
+ 'bg-yellow bg-text': taskProcess.state === 'doing',
|
|
|
|
+ 'bg-black bg-text': taskProcess.state === 'waiting',
|
|
|
|
+ 'bg-red bg-text': taskProcess.state === 'error'
|
|
|
|
+ }">
|
|
|
|
+ {{taskProcess.step}}/{{taskProcess.num}}
|
|
|
|
+ </text>
|
|
|
|
+ </uni-td>
|
|
<uni-td class="grid-text">
|
|
<uni-td class="grid-text">
|
|
<text :class="{
|
|
<text :class="{
|
|
'ft-red': taskProcess.state === 'error'
|
|
'ft-red': taskProcess.state === 'error'
|
|
@@ -39,7 +42,7 @@
|
|
</uni-tr>
|
|
</uni-tr>
|
|
</uni-table>
|
|
</uni-table>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<!-- #ifdef APP -->
|
|
<!-- #ifdef APP -->
|
|
</scroll-view>
|
|
</scroll-view>
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
@@ -208,28 +211,33 @@
|
|
border-radius: 10rpx;
|
|
border-radius: 10rpx;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ .bg-text {
|
|
|
|
+ width: 100rpx;
|
|
|
|
+ min-width: 80rpx;
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+
|
|
.bg-green {
|
|
.bg-green {
|
|
background-color: seagreen;
|
|
background-color: seagreen;
|
|
color: #fff;
|
|
color: #fff;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.bg-yellow {
|
|
.bg-yellow {
|
|
background-color: yellow;
|
|
background-color: yellow;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.bg-black {
|
|
.bg-black {
|
|
background-color: #102a43;
|
|
background-color: #102a43;
|
|
color: #fff;
|
|
color: #fff;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.bg-red {
|
|
.bg-red {
|
|
background-color: red;
|
|
background-color: red;
|
|
color: #fff;
|
|
color: #fff;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.ft-red {
|
|
.ft-red {
|
|
color: red;
|
|
color: red;
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
</style>
|
|
</style>
|