Browse Source

案卷查询年份更改

duy 2 năm trước cách đây
mục cha
commit
6d8d9e1bf0
1 tập tin đã thay đổi với 12 bổ sung6 xóa
  1. 12 6
      src/views/using/query.vue

+ 12 - 6
src/views/using/query.vue

@@ -87,7 +87,7 @@
                 <HcCardItem ui="hc-card-item-main">
                     <HcTable ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading" isCurrentRow isCheck @selection-change="tableSelection" @row-click="tableRowClick"   :ui="hoverHand?'hover-hand':''">
                         <template #action="{row,index}">
-                            <el-button type="primary" size="small" @click.stop="consultFileClick">查阅案卷</el-button>
+                            <el-button type="primary" size="small" @click.stop="consultFileClick(row)">查阅案卷</el-button>
                         </template>
                     
                     </HcTable>
@@ -103,7 +103,7 @@
                     </template>
                     <HcTable ref="tableFileRef" :column="tableFileColumn" :datas="tableFileData" :loading="tableFileLoading" isCheck @selection-change="tableFileSelection">
                         <template #action="{row,index}">
-                            <el-button type="primary" size="small" @click.stop="consultFileClick">查阅文件</el-button>
+                            <el-button type="primary" size="small" @click.stop="consultFileClick(row)">查阅文件</el-button>
                         </template>
                     </HcTable>
                     <template #action>
@@ -316,7 +316,7 @@ const setAnnuals = () => {
 const annual = ref([{key: 'all', name: '所有'}])
 const annualClick = (item) => {
     annual.value = setQueryFiltering(annual.value, item)
-    searchForm.value.year=item.name;
+    searchForm.value.year=item.key;
     annuals.value.forEach((ele)=>{
         ele.select=false
     })
@@ -492,7 +492,12 @@ const pageChange = ({current, size}) => {
     searchForm.value.size = size
     getTableData()
 }
-
+//分页被点击
+const InpageChange = ({current, size}) => {
+    InsearchForm.value.current = current
+    InsearchForm.value.size = size
+    // getTableData()
+}
 //表头
 const tableRef = ref(null)
 const tableColumn = ref([
@@ -570,9 +575,10 @@ const tableFileCloseClick = () => {
     tableFileShow.value = false;
 }
 
-const consultFileClick = ({row}) => {
+const consultFileClick = (row) => {
     isCarrySpotChecksDrawer.value = true
-    pdfUrl.value=row['pdfFileUrl']
+    console.log(row,'row');
+    pdfUrl.value=row['pdfFileUrl']||''
    
 
 }