ZaiZai 1 year ago
parent
commit
6ded12fcf0

+ 1 - 1
src/global/components/hc-tooltip/index.vue

@@ -26,7 +26,7 @@ const isBubble = ref(useAppState.getBubble)
 //监听
 watch(() => [
     props.keys, useAppState.getBubble, useAppState.getButtons,
-], ([keys, bubble, btns]) => {
+], ([keys, bubble]) => {
     btn_key.value = keys
     isBubble.value = bubble
     btn_Info.value = getButtonsVal(keys)

+ 6 - 4
src/views/tentative/material/sampling.vue

@@ -63,10 +63,12 @@
                         <span>导入</span>
                     </el-button>
                 </hc-tooltip>
-                <el-button hc-btn color="#E75643" :disabled="!nodeErTreeId" @click="delegationClick">
-                    <hc-icon name="slack" />
-                    <span>委托</span>
-                </el-button>
+                <hc-tooltip keys="tentative_material_sampling_delegation">
+                    <el-button hc-btn color="#E75643" :disabled="!nodeErTreeId" @click="delegationClick">
+                        <hc-icon name="slack" />
+                        <span>委托</span>
+                    </el-button>
+                </hc-tooltip>
             </template>
             <hc-table
                 ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading" is-check