瀏覽代碼

金融机构信息页

reloaded 5 年之前
父節點
當前提交
0d04fe12d1
共有 2 個文件被更改,包括 71 次插入8 次删除
  1. 36 0
      src/layout/institution/newsInfo.vue
  2. 35 8
      src/views/financial/index.vue

+ 36 - 0
src/layout/institution/newsInfo.vue

@@ -0,0 +1,36 @@
+<template>
+  <div id="newsInfo">
+    <el-row>
+      <el-col :span="24">
+        <el-table ref="debtTable" :data="debtTable" style="width: 100%" border>
+          <el-table-column type="index" label="序号" width="50" align="center"> </el-table-column>
+          <el-table-column property="name" label="姓名" align="center"> </el-table-column>
+          <el-table-column property="date" label="日期" align="center"> </el-table-column>
+          <el-table-column property="status" label="状态" align="center"> </el-table-column>
+          <el-table-column fixed="right" label="操作" align="center">
+            <template slot-scope="scope">
+              <el-button @click="handleClick(scope.row)" type="text"><i class="el-icon-edit"></i></el-button>
+              <el-button @click.native.prevent="deleteRow(scope.$index, debtTable)" type="text"><i class="el-icon-delete"></i></el-button>
+            </template>
+          </el-table-column>
+        </el-table>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'newsInfo',
+  props: {
+    debtTable: null,
+  },
+  components: {},
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped></style>

+ 35 - 8
src/views/financial/index.vue

@@ -1,15 +1,15 @@
 <template>
   <div id="index">
     <el-row>
-      <el-col :span="24">
+      <el-col :span="24" class="debt">
         <el-col :span="24" class="top">
-          头部
+          <topInfo :topTitle="topTitle" @clickBtn="clickBtn"></topInfo>
         </el-col>
         <el-col :span="24" class="search">
-          搜索
+          <searchInfo></searchInfo>
         </el-col>
         <el-col :span="24" class="main">
-          主题
+          <newsInfo :debtTable="debtTable"></newsInfo>
         </el-col>
       </el-col>
     </el-row>
@@ -17,15 +17,42 @@
 </template>
 
 <script>
+import topInfo from '@/layout/common/topInfo.vue';
+import searchInfo from '@/layout/common/searchInfo.vue';
+import newsInfo from '@/layout/institution/newsInfo.vue';
 export default {
   name: 'index',
   props: {},
-  components: {},
-  data: () => ({}),
+  components: {
+    topInfo, //头部导航
+    searchInfo, //搜素
+    newsInfo, //
+  },
+  data: () => ({
+    topTitle: '金融机构',
+    debtTable: [
+      {
+        name: '名字',
+        date: '2020-12-12',
+        status: '通过',
+      },
+    ],
+  }),
   created() {},
   computed: {},
-  methods: {},
+  methods: {
+    clickBtn() {
+      console.log('添加');
+    },
+  },
 };
 </script>
 
-<style lang="less" scoped></style>
+<style lang="less" scoped>
+.debt {
+  padding: 20px;
+}
+.top {
+  border-bottom: 1px solid #ccc;
+}
+</style>