|
@@ -226,6 +226,19 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <!-- <el-table-column
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ align="center"
|
|
|
+ label="状态"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div v-if="scope.row.numCount" class="taskArea">
|
|
|
+ <div v-if="scope.row.numCount == scope.row.isReviewCount" class="isComputedTask">已完成</div>
|
|
|
+ <div v-if="scope.row.numCount != scope.row.isReviewCount" class="waitComputedTask">代办</div>
|
|
|
+ </div>
|
|
|
+ <span v-else>/</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column> -->
|
|
|
<el-table-column
|
|
|
:sortable="true"
|
|
|
:sort-method="sortCogMethod"
|
|
@@ -1657,6 +1670,8 @@ export default {
|
|
|
for (const e of this.tableData) {
|
|
|
if (e.orgData.length > 0) {
|
|
|
e.orgData = await this.computedScoTest(e.orgData, e.userid);
|
|
|
+ e.isReviewCount = e.orgData.reduce((sum, i) => sum + (i.isReviewNum || 0), 0)
|
|
|
+ e.numCount = e.orgData.reduce((sum, i) => sum + (i.num || 0), 0)
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -2181,4 +2196,25 @@ input[type="number"] {
|
|
|
-webkit-appearance: none;
|
|
|
margin: 0;
|
|
|
}
|
|
|
+
|
|
|
+.taskArea{
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
+
|
|
|
+.waitComputedTask{
|
|
|
+ padding: 10px 20px;
|
|
|
+ background: #FEF5EC;
|
|
|
+ border: solid 1px #FAD0A1;
|
|
|
+ color: #F7933B;
|
|
|
+ border-radius: 4px;
|
|
|
+}
|
|
|
+
|
|
|
+.isComputedTask{
|
|
|
+ padding: 10px 20px;
|
|
|
+ background: #E6F9EA;
|
|
|
+ border: solid 1px #A6E9B6;
|
|
|
+ color: #21ba45;
|
|
|
+ border-radius: 4px;
|
|
|
+}
|
|
|
</style>
|