Browse Source

企业公告-更多-单击打开企业公告详情

jingbb 6 months ago
parent
commit
d1c68a86ef
1 changed files with 22 additions and 3 deletions
  1. 22 3
      src/views/dashboard/MyToDo.vue

+ 22 - 3
src/views/dashboard/MyToDo.vue

@@ -168,7 +168,7 @@
     </a-modal>
 
     <!-- 企业公告详情 弹框-->
-    <detAnn-modal ref="DetAnnModal" @ok="modalFormOk" :fatherData="annDetail"></detAnn-modal>
+    <detAnn-modal ref="DetAnnModal" @ok="modalFormOk" :fatherData="annDetail" style="z-index: 111;"></detAnn-modal>
     <!-- 企业公告更多 弹框-->
     <j-modal
       :visible.sync="modal.visible"
@@ -179,7 +179,7 @@
     >
     
     <!-- <dv-scroll-board class="board" :config="config" style="height:280px;" @click="getMethod" /> -->
-      <a-table :columns="columns" id="Notice" :dataSource="annList" style="height:280px;" :pagination ='false' :showHeader="false" :bordered="false"></a-table>
+      <a-table :columns="columns" id="Notice" :dataSource="annList" style="height:280px;" :customRow="clickRow" :pagination ='false' :showHeader="false" :bordered="false"></a-table>
       <!-- <template v-for="(i,k) of 30">
         <p :key="k">这是主体内容,高度是自适应的</p>
       </template> -->
@@ -728,7 +728,26 @@ export default {
       this.calendarApi.prev()
       console.log(this.calendarApi.prev)
     },
-    modalFormOk() {}
+    modalFormOk() {},
+    clickRow(record){
+      return {
+        on: {
+          click: () => {
+            this.$refs.DetAnnModal.annVisible = true
+            // console.log('轮播自带的数据', item)
+            this.$nextTick(() => {
+              enterpriseEQueryById({ id: record.id}).then(res => {
+                this.$refs.DetAnnModal.annVisible = true
+                if (res.success) {
+                  console.log(res.result)
+                  this.annDetail = res.result
+                }
+              })
+            })
+          }
+        }
+      }
+    }
   }
 }
 </script>