Browse Source

前端-附件

armg 1 year ago
parent
commit
3dad6505ea

+ 44 - 0
ruoyi-ui/src/api/invest/information.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询文件资料列表
+export function listInformation(query) {
+  return request({
+    url: '/invest/information/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询文件资料详细
+export function getInformation(id) {
+  return request({
+    url: '/invest/information/' + id,
+    method: 'get'
+  })
+}
+
+// 新增文件资料
+export function addInformation(data) {
+  return request({
+    url: '/invest/information',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改文件资料
+export function updateInformation(data) {
+  return request({
+    url: '/invest/information',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除文件资料
+export function delInformation(id) {
+  return request({
+    url: '/invest/information/' + id,
+    method: 'delete'
+  })
+}

+ 44 - 0
ruoyi-ui/src/api/system/file.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询附件列表
+export function listFile(query) {
+  return request({
+    url: '/system/file/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询附件详细
+export function getFile(id) {
+  return request({
+    url: '/system/file/' + id,
+    method: 'get'
+  })
+}
+
+// 新增附件
+export function addFile(data) {
+  return request({
+    url: '/system/file',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改附件
+export function updateFile(data) {
+  return request({
+    url: '/system/file',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除附件
+export function delFile(id) {
+  return request({
+    url: '/system/file/' + id,
+    method: 'delete'
+  })
+}

+ 6 - 0
ruoyi-ui/src/main.js

@@ -114,3 +114,9 @@ new Vue({
   store,
   render: h => h(App)
 })
+
+router.beforeEach((to, from, next) => {
+  console.log("=====",to, from)
+  // 全局前置守卫逻辑
+  next()
+});

+ 48 - 28
ruoyi-ui/src/router/index.js

@@ -68,35 +68,55 @@ export const constantRoutes = [
   //   hidden: true
   // },
   {
-    path: "/invest/pool/index",
-    name: 'investPoolIndex',
-    component: () => import('../views/invest/pool/index.vue')
-  },
-  {
-    path: "/invest/record/index",
-    name: 'investRecordIndex',
-    component: () => import('../views/invest/record/index.vue')
-  },
-  {
-    path: "/invest/channel/index",
-    name: 'investChannelIndex',
-    component: () => import('../views/invest/channel/index.vue')
-  },
-  {
-    path: "/invest/contacts/index",
-    name: 'investContactsIndex',
-    component: () => import('../views/invest/contacts/index.vue')
-  },
-  {
-    path: "/invest/company/index",
-    name: 'investCompanyctsIndex',
-    component: () => import('../views/invest/company/index.vue')
-  },
-  {
-    path: "/invest/meeting/index",
-    name: 'investMeetingmpanyctsIndex',
-    component: () => import('../views/invest/meeting/index.vue')
+    path: '/invest',
+    component: Layout,
+    hidden: true,
+    // redirect: 'noredirect',
+    children: [
+      {
+        path: 'pool/index',
+        component: () => import('@/views/invest/pool/index.vue'),
+        name: 'investPoolIndex',
+      },
+      {
+        path: "pool/add",
+        name: 'investPoolAdd',
+        component: () => import('@/views/invest/pool/add.vue'),
+        meta: { title: '项目' }
+      },
+      {
+        path: "record/index",
+        name: 'investRecordIndex',
+        component: () => import('@/views/invest/record/index.vue')
+      },
+      {
+        path: "channel/index",
+        name: 'investChannelIndex',
+        component: () => import('@/views/invest/channel/index.vue')
+      },
+      {
+        path: "contacts/index",
+        name: 'investContactsIndex',
+        component: () => import('@/views/invest/contacts/index.vue')
+      },
+      {
+        path: "company/index",
+        name: 'investCompanyctsIndex',
+        component: () => import('@/views/invest/company/index.vue')
+      },
+      {
+        path: "meeting/index",
+        name: 'investMeetingmpanyctsIndex',
+        component: () => import('@/views/invest/meeting/index.vue')
+      },
+      {
+        path: 'information/index',
+        component: () => import('@/views/invest/information/index'),
+        name: 'investInformationIndex',
+      }
+    ]
   },
+  
   {
     // path: '/index',
     path: '/',

+ 296 - 0
ruoyi-ui/src/views/invest/information/index.vue

@@ -0,0 +1,296 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="文件名称" prop="fileName">
+        <el-input
+          v-model="queryParams.fileName"
+          placeholder="请输入文件名称"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="项目阶段" prop="projectStage">
+        <el-input
+          v-model="queryParams.projectStage"
+          placeholder="请输入项目阶段"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="会议编号" prop="meetingCode">
+        <el-input
+          v-model="queryParams.meetingCode"
+          placeholder="请输入会议编号"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['invest:information:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['invest:information:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['invest:information:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['invest:information:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="informationList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="主键ID" align="center" prop="id" />
+      <el-table-column label="文件名称" align="center" prop="fileName" />
+      <el-table-column label="文件类别" align="center" prop="fileType" />
+      <el-table-column label="项目阶段" align="center" prop="projectStage" />
+      <el-table-column label="会议编号" align="center" prop="meetingCode" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['invest:information:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['invest:information:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改文件资料对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="文件名称" prop="fileName">
+          <el-input v-model="form.fileName" placeholder="请输入文件名称" />
+        </el-form-item>
+        <el-form-item label="项目ID" prop="projectPoolId">
+          <el-input v-model="form.projectPoolId" placeholder="请输入项目ID" />
+        </el-form-item>
+        <el-form-item label="项目阶段" prop="projectStage">
+          <el-input v-model="form.projectStage" placeholder="请输入项目阶段" />
+        </el-form-item>
+        <el-form-item label="会议编号" prop="meetingCode">
+          <el-input v-model="form.meetingCode" placeholder="请输入会议编号" />
+        </el-form-item>
+        <el-form-item label="附件业务ID" prop="fileBusinessId">
+          <el-input v-model="form.fileBusinessId" placeholder="请输入附件业务ID" />
+        </el-form-item>
+        <el-form-item label="状态" prop="delFlag">
+          <el-input v-model="form.delFlag" placeholder="请输入状态" />
+        </el-form-item>
+        <el-form-item label="备注" prop="remark">
+          <el-input v-model="form.remark" placeholder="请输入备注" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listInformation, getInformation, delInformation, addInformation, updateInformation } from "@/api/invest/information";
+
+export default {
+  name: "Information",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 文件资料表格数据
+      informationList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        fileName: null,
+        fileType: null,
+        projectStage: null,
+        meetingCode: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询文件资料列表 */
+    getList() {
+      this.loading = true;
+      listInformation(this.queryParams).then(response => {
+        this.informationList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        fileName: null,
+        fileType: null,
+        projectPoolId: null,
+        projectStage: null,
+        meetingCode: null,
+        fileBusinessId: null,
+        delFlag: null,
+        remark: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加文件资料";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getInformation(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改文件资料";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateInformation(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addInformation(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除文件资料编号为"' + ids + '"的数据项?').then(function() {
+        return delInformation(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('invest/information/export', {
+        ...this.queryParams
+      }, `information_${new Date().getTime()}.xlsx`)
+    }
+  }
+};
+</script>

+ 149 - 9
ruoyi-ui/src/views/invest/pool/add.vue

@@ -1,14 +1,154 @@
 <template>
-    <div>
-
-    </div>
+  <div>
+    <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+      <el-form-item label="项目名称" prop="porjectName">
+        <el-input v-model="form.porjectName" placeholder="请输入项目名称" />
+      </el-form-item>
+      <el-form-item label="所属组别" prop="porjectGroup">
+        <el-select v-model="form.porjectGroup" placeholder="请选择所属组别">
+          <el-option
+            v-for="dict in dict.type.porject_group"
+            :key="dict.value"
+            :label="dict.label"
+            :value="dict.value"
+          ></el-option>
+        </el-select>
+      </el-form-item>
+      <el-form-item label="录入日期" prop="recordDate">
+        <el-date-picker
+          clearable
+          v-model="form.recordDate"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="请选择录入日期"
+        >
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="项目编号" prop="porjectCode">
+        <el-input v-model="form.porjectCode" placeholder="请输入项目编号" />
+      </el-form-item>
+      <el-form-item label="渠道" prop="channel">
+        <el-input v-model="form.channel" placeholder="请输入渠道" />
+      </el-form-item>
+      <el-form-item label="初次接触日期" prop="contactDate">
+        <el-date-picker
+          clearable
+          v-model="form.contactDate"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="请选择初次接触日期"
+        >
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="立项通过日期" prop="projectDate">
+        <el-date-picker
+          clearable
+          v-model="form.projectDate"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="请选择立项通过日期"
+        >
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="投决通过日期" prop="decisionDate">
+        <el-date-picker
+          clearable
+          v-model="form.decisionDate"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="请选择投决通过日期"
+        >
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="项目所属公司" prop="company">
+        <el-input v-model="form.company" placeholder="请输入项目所属公司" />
+      </el-form-item>
+      <el-form-item label="项目情况描述" prop="description">
+        <el-input v-model="form.description" placeholder="请输入项目情况描述" />
+      </el-form-item>
+      <el-form-item label="项目联系人" prop="projectContacts">
+        <el-input
+          v-model="form.projectContacts"
+          placeholder="请输入项目联系人"
+        />
+      </el-form-item>
+      <el-form-item label="投资负责人" prop="investHead">
+        <el-input v-model="form.investHead" placeholder="请输入投资负责人" />
+      </el-form-item>
+      <el-form-item label="历次融资" prop="previousFinancing">
+        <el-input
+          v-model="form.previousFinancing"
+          placeholder="请输入历次融资"
+        />
+      </el-form-item>
+      <el-form-item label="项目融资阶段" prop="financingStage">
+        <el-input
+          v-model="form.financingStage"
+          placeholder="请输入项目融资阶段"
+        />
+      </el-form-item>
+      <el-form-item label="融资条件" prop="financingCondition">
+        <el-input
+          v-model="form.financingCondition"
+          placeholder="请输入融资条件"
+        />
+      </el-form-item>
+      <el-form-item label="预期融资金额" prop="financingMoney">
+        <el-input
+          v-model="form.financingMoney"
+          placeholder="请输入预期融资金额"
+        />
+      </el-form-item>
+      <el-form-item label="预期融资时间" prop="financingDate">
+        <el-date-picker
+          clearable
+          v-model="form.financingDate"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="请选择预期融资时间"
+        >
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="投资亮点" prop="investSparkle">
+        <el-input v-model="form.investSparkle" placeholder="请输入投资亮点" />
+      </el-form-item>
+      <el-form-item label="投前估值" prop="investValuation">
+        <el-input v-model="form.investValuation" placeholder="请输入投前估值" />
+      </el-form-item>
+      <el-form-item label="预计投资金额" prop="investMoney">
+        <el-input v-model="form.investMoney" placeholder="请输入预计投资金额" />
+      </el-form-item>
+      <el-form-item label="投资价值" prop="investWorth">
+        <el-input v-model="form.investWorth" placeholder="请输入投资价值" />
+      </el-form-item>
+      <el-form-item label="股权架构" prop="shareholding">
+        <el-input v-model="form.shareholding" placeholder="请输入股权架构" />
+      </el-form-item>
+      <el-form-item label="备注" prop="mark">
+        <el-input v-model="form.mark" placeholder="请输入备注" />
+      </el-form-item>
+      <el-form-item label="状态" prop="delFlag">
+        <el-input v-model="form.delFlag" placeholder="请输入状态" />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </el-form-item>
+    </el-form>
+  </div>
 </template>
 <script>
 export default {
-    data(){
-        return{
-            
-        }
-    }
-}
+  name:"investPoolAdd",
+  dicts: ['porject_group'],
+  data() {
+    return {
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+};
 </script>

+ 8 - 11
ruoyi-ui/src/views/invest/pool/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="app-container">
-    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="120px">
       <el-form-item label="项目名称" prop="porjectName">
         <el-input
           v-model="queryParams.porjectName"
@@ -265,7 +265,7 @@
     />
 
     <!-- 添加或修改项目池对话框 -->
-    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+    <!-- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
       <el-form ref="form" :model="form" :rules="rules" label-width="80px">
         <el-form-item label="项目名称" prop="porjectName">
           <el-input v-model="form.porjectName" placeholder="请输入项目名称" />
@@ -376,7 +376,7 @@
         <el-button type="primary" @click="submitForm">确 定</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>
-    </el-dialog>
+    </el-dialog> -->
   </div>
 </template>
 
@@ -433,11 +433,6 @@ export default {
         projectStage: null,
         projectState: null,
       },
-      // 表单参数
-      form: {},
-      // 表单校验
-      rules: {
-      }
     };
   },
   created() {
@@ -516,9 +511,11 @@ export default {
     },
     /** 新增按钮操作 */
     handleAdd() {
-      this.reset();
-      this.open = true;
-      this.title = "添加项目池";
+      // this.reset();
+      // this.open = true;
+      // this.title = "添加项目池";
+      
+      this.$router.push({ path: '/invest/pool/add',query: { id: 1 }})
     },
     /** 修改按钮操作 */
     handleUpdate(row) {

+ 326 - 0
ruoyi-ui/src/views/system/file/index.vue

@@ -0,0 +1,326 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="文件ID" prop="fileId">
+        <el-input
+          v-model="queryParams.fileId"
+          placeholder="请输入文件ID"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="文件名称" prop="uploadName">
+        <el-input
+          v-model="queryParams.uploadName"
+          placeholder="请输入文件名称"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="文件地址" prop="uploadPath">
+        <el-input
+          v-model="queryParams.uploadPath"
+          placeholder="请输入文件地址"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="文件格式" prop="uploadFormat">
+        <el-input
+          v-model="queryParams.uploadFormat"
+          placeholder="请输入文件格式"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="新文件名称" prop="newUploadName">
+        <el-input
+          v-model="queryParams.newUploadName"
+          placeholder="请输入新文件名称"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="附件业务ID" prop="fileBusinessId">
+        <el-input
+          v-model="queryParams.fileBusinessId"
+          placeholder="请输入附件业务ID"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+
+    <el-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['system:file:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['system:file:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['system:file:remove']"
+        >删除</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['system:file:export']"
+        >导出</el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="fileList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="主键ID" align="center" prop="id" />
+      <el-table-column label="文件ID" align="center" prop="fileId" />
+      <el-table-column label="文件名称" align="center" prop="uploadName" />
+      <el-table-column label="文件类别" align="center" prop="uploadType" />
+      <el-table-column label="文件地址" align="center" prop="uploadPath" />
+      <el-table-column label="文件格式" align="center" prop="uploadFormat" />
+      <el-table-column label="新文件名称" align="center" prop="newUploadName" />
+      <el-table-column label="附件业务ID" align="center" prop="fileBusinessId" />
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['system:file:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['system:file:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+    
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改附件对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="文件ID" prop="fileId">
+          <el-input v-model="form.fileId" placeholder="请输入文件ID" />
+        </el-form-item>
+        <el-form-item label="文件名称" prop="uploadName">
+          <el-input v-model="form.uploadName" placeholder="请输入文件名称" />
+        </el-form-item>
+        <el-form-item label="文件地址" prop="uploadPath">
+          <el-input v-model="form.uploadPath" placeholder="请输入文件地址" />
+        </el-form-item>
+        <el-form-item label="文件格式" prop="uploadFormat">
+          <el-input v-model="form.uploadFormat" placeholder="请输入文件格式" />
+        </el-form-item>
+        <el-form-item label="新文件名称" prop="newUploadName">
+          <el-input v-model="form.newUploadName" placeholder="请输入新文件名称" />
+        </el-form-item>
+        <el-form-item label="状态" prop="delFlag">
+          <el-input v-model="form.delFlag" placeholder="请输入状态" />
+        </el-form-item>
+        <el-form-item label="附件业务ID" prop="fileBusinessId">
+          <el-input v-model="form.fileBusinessId" placeholder="请输入附件业务ID" />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listFile, getFile, delFile, addFile, updateFile } from "@/api/system/file";
+
+export default {
+  name: "File",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 附件表格数据
+      fileList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        fileId: null,
+        uploadName: null,
+        uploadType: null,
+        uploadPath: null,
+        uploadFormat: null,
+        newUploadName: null,
+        fileBusinessId: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询附件列表 */
+    getList() {
+      this.loading = true;
+      listFile(this.queryParams).then(response => {
+        this.fileList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        fileId: null,
+        uploadName: null,
+        uploadType: null,
+        uploadPath: null,
+        uploadFormat: null,
+        newUploadName: null,
+        delFlag: null,
+        fileBusinessId: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null
+      };
+      this.resetForm("form");
+    },
+    /** 搜索按钮操作 */
+    handleQuery() {
+      this.queryParams.pageNum = 1;
+      this.getList();
+    },
+    /** 重置按钮操作 */
+    resetQuery() {
+      this.resetForm("queryForm");
+      this.handleQuery();
+    },
+    // 多选框选中数据
+    handleSelectionChange(selection) {
+      this.ids = selection.map(item => item.id)
+      this.single = selection.length!==1
+      this.multiple = !selection.length
+    },
+    /** 新增按钮操作 */
+    handleAdd() {
+      this.reset();
+      this.open = true;
+      this.title = "添加附件";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getFile(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改附件";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateFile(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addFile(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除附件编号为"' + ids + '"的数据项?').then(function() {
+        return delFile(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {});
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('system/file/export', {
+        ...this.queryParams
+      }, `file_${new Date().getTime()}.xlsx`)
+    }
+  }
+};
+</script>