瀏覽代碼

任务状态前移

duy 2 年之前
父節點
當前提交
e74ae31cd3
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/views/tentative/detect/test.vue

+ 5 - 1
src/views/tentative/detect/test.vue

@@ -100,6 +100,10 @@
                     <template #trialProjectName="{row}">
                         <span class="text-link font-bold" @click="tableRowPdf(row)">{{row?.trialProjectName}}</span>
                     </template>
+                    <template #taskStatus="{row}">
+                        <el-tag :type="`${row.status === 2 ? 'success' : row.status === 0 ? 'warning' : row.status === 1 ? 'danger' : 'info'}`"
+                                class="mx-1" effect="dark" v-if="row['taskStatus']">{{row['taskStatus']}}</el-tag>
+                    </template>
                     <template #detectionCategory="{row}">
                         <span>{{getArrKeyValue(categoryData, 'dictKey', 'dictValue', row.detectionCategory)}}</span>
                     </template>
@@ -312,6 +316,7 @@ const tableColumn = ref([
     {key:'reportNo', name: '报告编号', width: 220},
     {key:'samplingLocation', name: '取样地点', width: 220},
     {key:'trialProjectName', name: '试验项目名称', width: 220},
+     {key:'taskStatus', name: '任务状态', width: 140},
     {key:'detectionCategory', name: '检测类别', width: 120},
     {key:'isUploadCertificate', name: '是否上传合格证', width: 130},
     {key:'contractId', name: '合同段', width: 220},
@@ -323,7 +328,6 @@ const tableColumn = ref([
     {key:'projectPositionName', name: '工程部位及用途', width: 160},
     {key:'reportDate', name: '报告日期', width: 170},
     {key:'trialUserName', name: '试验人员', width: 170},
-    {key:'taskStatus', name: '任务状态', width: 140},
     {key:'action', name: '操作', width: 150, fixed: 'right', align: 'center'},
 ])
 const tableData = ref([])