ZaiZai 1 jaar geleden
bovenliggende
commit
befea10f44
1 gewijzigde bestanden met toevoegingen van 40 en 26 verwijderingen
  1. 40 26
      src/views/tentative/detect/commission.vue

+ 40 - 26
src/views/tentative/detect/commission.vue

@@ -23,26 +23,36 @@
                 </div>
             </template>
             <template #extraToHeader>
-                <el-button hc-btn type="primary" @click="addFormData">
-                    <hc-icon name="add-circle" />
-                    <span>新增</span>
-                </el-button>
-                <el-button v-del-com:[delModalClick] :disabled="tableCheckedKeys.length <= 0" hc-btn type="danger">
-                    <hc-icon name="delete-bin-2" />
-                    <span>删除</span>
-                </el-button>
-                <el-button :disabled="tableCheckedKeys.length <= 0" hc-btn color="#567722" @click="batchPrinting">
-                    <hc-icon name="printer" />
-                    <span>批量打印</span>
-                </el-button>
-                <el-button :disabled="tableCheckedKeys.length <= 0" class="text-white" hc-btn color="#FF976A" @click="reportClick">
-                    <HcIcon name="send-plane-2" />
-                    <span>上报</span>
-                </el-button>
-                <el-button hc-btn color="#567722" @click="printerNull">
-                    <hc-icon name="printer" />
-                    <span>打印空表</span>
-                </el-button>
+                <hc-tooltip keys="tentative_detect_commission_add">
+                    <el-button hc-btn type="primary" @click="addFormData">
+                        <hc-icon name="add-circle" />
+                        <span>新增</span>
+                    </el-button>
+                </hc-tooltip>
+                <hc-tooltip keys="tentative_detect_commission_del">
+                    <el-button v-del-com:[delModalClick] :disabled="tableCheckedKeys.length <= 0" hc-btn type="danger">
+                        <hc-icon name="delete-bin-2" />
+                        <span>删除</span>
+                    </el-button>
+                </hc-tooltip>
+                <hc-tooltip keys="tentative_material_commission_prin">
+                    <el-button :disabled="tableCheckedKeys.length <= 0" hc-btn color="#567722" @click="batchPrinting">
+                        <hc-icon name="printer" />
+                        <span>批量打印</span>
+                    </el-button>
+                </hc-tooltip>
+                <hc-tooltip keys="tentative_detect_commission_report">
+                    <el-button :disabled="tableCheckedKeys.length <= 0" class="text-white" hc-btn color="#FF976A" @click="reportClick">
+                        <HcIcon name="send-plane-2" />
+                        <span>上报</span>
+                    </el-button>
+                </hc-tooltip>
+                <hc-tooltip keys="tentative_material_commission_null">
+                    <el-button hc-btn color="#567722" @click="printerNull">
+                        <hc-icon name="printer" />
+                        <span>打印空表</span>
+                    </el-button>
+                </hc-tooltip>
             </template>
             <hc-table
                 :column="tableColumn" :datas="tableData" :loading="tableLoading" is-check
@@ -55,11 +65,15 @@
                     <el-tag v-if="row.status === 4" type="success" effect="dark">委托完成</el-tag>
                 </template>
                 <template #action="{ row }">
-                    <el-link v-if="row.status === 1" type="primary" @click="rowEdit(row)">修改</el-link>
-                    <el-link v-else type="success" @click="rowView(row)">查看</el-link>
-                    <el-link v-if="row.status === 4" type="info" disabled>创建成功</el-link>
-                    <el-link v-else-if="!isNullES(row.testId)" type="danger" :disabled="row.status !== 3" @click="rowFillReports(row)">填写报告</el-link>
-                    <el-link v-else type="danger" :disabled="row.status !== 3" @click="rowReports(row)">创建报告</el-link>
+                    <hc-tooltip keys="tentative_material_commission_edit">
+                        <el-link v-if="row.status === 1" type="primary" @click="rowEdit(row)">修改</el-link>
+                        <el-link v-else type="success" @click="rowView(row)">查看</el-link>
+                    </hc-tooltip>
+                    <hc-tooltip keys="tentative_material_commission_fill">
+                        <el-link v-if="row.status === 4" type="info" disabled>创建成功</el-link>
+                        <el-link v-else-if="!isNullES(row.testId)" type="danger" :disabled="row.status !== 3" @click="rowFillReports(row)">填写报告</el-link>
+                        <el-link v-else type="danger" :disabled="row.status !== 3" @click="rowReports(row)">创建报告</el-link>
+                    </hc-tooltip>
                 </template>
             </hc-table>
             <template #action>
@@ -463,7 +477,7 @@ const rowActionSave = async () => {
     const { primaryKeyId } = nodeDataInfo.value
     setStoreValue('testTreeItem', nodeDataInfo.value)
     setStoreValue('prenodeDataInfo', nodeDataInfo.value)
-    const { error, code, msg } = await mainApi.update({ id, expCount})
+    const { error, code, msg } = await mainApi.update({ id, expCount })
     if (!error && code === 200) {
         window.$message.success('创建成功')
         rowActionLoading.value = false