Ver código fonte

xiangguanxinxi

liuhj 4 meses atrás
pai
commit
f9dad80e3c
1 arquivos alterados com 17 adições e 3 exclusões
  1. 17 3
      src/components/OP/RequestAccess.vue

+ 17 - 3
src/components/OP/RequestAccess.vue

@@ -131,11 +131,25 @@
                         </el-input>
                     </template>
                 </el-table-column>
-                <!-- <el-table-column prop="name" label="相关信息" width="80">
+                <el-table-column label="相关信息" width="80">
                     <template slot-scope="scope">
-                        <el-button type="primary" @click="scope.row" size="mini">查看</el-button>
+                        <el-popover v-if="scope.row.postUrl.length>0" placement="right" width="400" trigger="hover">
+                            <div style="margin-bottom: 15px;" v-for="(item,index) in scope.row.postUrl" :key="index">
+                                <div>时间:{{ item.date }}</div>
+                                <div>内容:{{ item.description }}</div>
+                                <div>
+                                    链接:<el-link type="primary" :href="item.url" target="_blank">{{ item.url }}</el-link>
+                                </div>
+                            </div>
+                            <el-button slot="reference" type="primary" @click="scope.row" size="mini">查看</el-button>
+                        </el-popover>
+                        <div v-else>
+                            暂无信息
+                        </div>
+
+                        
                     </template>
-                </el-table-column> -->
+                </el-table-column>
                 <el-table-column prop="address" label="操作" width="100">
                     <template slot-scope="scope">
                         <div style="display: flex;flex-direction: column;align-items: center;">