duy 2 сар өмнө
parent
commit
ef83f364d2

+ 9 - 1
src/views/transfer/components/examination/table-opinion.vue

@@ -1,7 +1,7 @@
 <template>
     <HcTable ui="no-border" is-new :index-style="{ width: 60 }" :column="tableColumn" :datas="tableData" :loading="tableLoading">
         <template #archiveName="{ row }">
-            <span class="text-blue text-hover" @click="tableRowClick(row)">{{ row.archiveName }}</span>
+            <span class="text-hover text-blue" @click="tableRowClick(row)">{{ row.archiveName }}</span>
         </template>
         <template #opinion="{ row }">
             <el-input v-if="row.isEdit" v-model="row.opinion" placeholder="请输入抽检意见" />
@@ -67,6 +67,14 @@ watch(() => [
     projectId.value = ProjectId
     currentId.value = Cid
 })
+
+watch(
+    () => searchLogForm.value,
+    () => {
+        getTableData()
+    },
+    { deep: true }, // 深度监听对象的变化
+)
 //表格数据
 const tableColumn = ref([
     { key:'unitName', name: '抽检所属', width: 180 },

+ 2 - 0
src/views/transfer/preliminary-examination.vue

@@ -312,6 +312,8 @@ const logShowClick = () => {
 
 const isLogModalClose = () => {
     isLogModal.value = false
+    searchLogForm.value.current = 1
+    searchLogForm.value.size = 20
 }
 
 //左右拖动,改变树形结构宽度