Browse Source

个人文档的分享界面完成

yxc 2 years ago
parent
commit
bab6f45bb0

+ 5 - 1
lzga-ui/src/router/index.js

@@ -121,6 +121,10 @@ export const constantRoutes = [{
         component: () => import('@/views1/File/Individual/IndividualView.vue')
       },
       {
+        path: '/home/file/individual/share/user/:docId(\\d+)',
+        component: () => import('@/views1/File/Individual/Share/ShareView.vue'),
+      },
+      {
         path: "/home/file/set",
         component: () => import('@/views1/File/Set/SetView.vue')
       },
@@ -207,7 +211,7 @@ export const constantRoutes = [{
       {
         path: "/home/group/subgroup/:groupId",
         component: () => import('@/views1/Group/Subgroup/SubgroupView.vue')
-      }
+      },
     ],
   },
   {

+ 2 - 1
lzga-ui/src/styles1/element-ui1.scss

@@ -206,4 +206,5 @@
 }
 ::-webkit-scrollbar-thumb:hover {
   background: #2e8aec;
-}
+}
+

+ 18 - 65
lzga-ui/src/views1/File/Individual/IndividualView.vue

@@ -209,11 +209,12 @@
                 <el-dropdown size="mini">
                 <el-button size="mini" type="text" icon="el-icon-d-arrow-right">更多</el-button>
                 <el-dropdown-menu slot="dropdown">
-                  <el-dropdown-item icon="el-icon-view" @click="handleShare(scope.row)" v-if="checkLevel(scope.row, 'share')">分享</el-dropdown-item>
-                  <el-dropdown-item icon="el-icon-view" @click="handleDownload(scope.row)" v-if="checkLevel(scope.row, 'download')">下载</el-dropdown-item>
-                  <el-dropdown-item   icon="el-icon-view" @click="handleEdit(scope.row)" v-if="checkLevel(scope.row, 'edit')">在线编辑</el-dropdown-item>
-                  <el-dropdown-item icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['doc:info:edit']" v-if="checkLevel(scope.row, 'modify')">修改</el-dropdown-item>
-                  <el-dropdown-item   icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['doc:info:remove']" v-if="checkLevel(scope.row, 'del')">删除</el-dropdown-item>
+                  <el-dropdown-item icon="el-icon-view" @click.native="handleShare(scope.row)" v-if="checkLevel(scope.row, 'share')">分享</el-dropdown-item>
+                  <el-dropdown-item icon="el-icon-view" @click.native="handleDownload(scope.row)" v-if="checkLevel(scope.row, 'download')">下载</el-dropdown-item>
+                  <el-dropdown-item   icon="el-icon-view" @click.native="handleEdit(scope.row)" v-if="checkLevel(scope.row, 'edit')">在线编辑</el-dropdown-item>
+                  <el-dropdown-item icon="el-icon-edit" @click.native="handleUpdate(scope.row)" v-hasPermi="['doc:info:edit']"
+                    v-if="checkLevel(scope.row, 'modify')">修改</el-dropdown-item>
+                  <el-dropdown-item   icon="el-icon-delete" @click.native="handleDelete(scope.row)" v-hasPermi="['doc:info:remove']" v-if="checkLevel(scope.row, 'del')">删除</el-dropdown-item>
                 </el-dropdown-menu>
               </el-dropdown>
                   <!-- <el-button
@@ -394,11 +395,11 @@ export default {
     return {
     //标签列表
     tags: [
-          { name: '十四大',id:0},
-          { name: '领导讲话',id:1},
-          { name: '会议精神',id:2},
-          { name: '党章',id:3},
-          { name: '212专案',id:4}
+          { name: '十四大', id:0 },
+          { name: '领导讲话', id:1 },
+          { name: '会议精神', id:2 },
+          { name: '党章', id:3 },
+          { name: '212专案', id:4 }
         ],
 
       //选择标签
@@ -546,12 +547,7 @@ export default {
     },
     //分享
     handleShare(row) {
-      row.isEdit = false;
-      this.$tab.openPage(
-        "文件[" + row.docName + "]预览",
-        "/doc/oo-edit/index/" + row.docId,
-        row
-      );
+      this.$router.push("/home/file/individual/share/user/" + row.docId);
     },
     /**下载按钮操作*/
     handleDownload(row) {
@@ -560,11 +556,7 @@ export default {
     //预览
     handlePreview(row) {
       row.isEdit = false;
-      this.$tab.openPage(
-        "文件[" + row.docName + "]预览",
-        "/doc/oo-edit/index/" + row.docId,
-        row
-      );
+      this.$tab.openPage("文件[" + row.docName + "]预览", '/doc/oo-edit/index/' + row.docId, row);
     },
     //在线编辑
     handleEdit(row) {
@@ -687,7 +679,7 @@ export default {
     handleUpdate(row) {
       this.reset();
       const docId = row.docId || this.ids;
-      getInfo(docId, row.createYear).then((response) => {
+      getInfo(docId, row.createYear).then(response => {
         this.form = response.data;
         this.open = true;
         this.title = "修改文件基本信息";
@@ -695,8 +687,8 @@ export default {
     },
     /** 提交按钮 */
     submitForm() {
-      console.log(this.form);
-      console.log(this.dynamicTags);
+      // console.log(this.form);
+      // console.log(this.dynamicTags);
       this.$refs["form"].validate((valid) => {
         if (valid) {
           if (this.form.docId != null) {
@@ -832,6 +824,8 @@ export default {
         margin-top: calc(100vw * (25 / 1920));
         .reset1 {
           color: #2e8aecff;
+          background: transparent;
+          border: 1px solid #2E8AECFF;
         }
       }
       .mb8 {
@@ -932,47 +926,6 @@ export default {
   border: none;
   color: #2e8aec;
 }
-// ::v-deep .el-button--success.is-plain.is-disabled,
-// .el-button--danger.is-plain.is-disabled,
-// .el-button{
-//   background-color: #002a5cff;
-//   color: #1890ff;
-//   border: none;
-// }
-
-// ::v-deep .el-progress-bar__outer {
-//   border-radius: 0;
-// }
-// ::v-deep .el-progress-bar__inner {
-//   border-radius: 0;
-// }
-// ::v-deep [data-v-f3e82ab8] .el-tree {
-//   margin-left: 0;
-// }
-
-// ::v-deep .el-date-editor .el-range-input {
-//   background: transparent;
-// }
-
-// ::v-deep .el-pagination.is-background .btn-prev {
-//   background: transparent;
-//   border: 1px dashed grey;
-// }
-// ::v-deep .el-pagination.is-background .btn-next {
-//   background: transparent;
-//   border: 1px dashed grey;
-// }
-
-// ::v-deep .el-breadcrumb__item:last-child .el-breadcrumb__inner {
-//   color: #006C9AFF;
-// }
-// ::v-deep .el-breadcrumb__inner {
-//   color: #006C9AFF;
-// }
-// ::v-deep .el-input__inner {
-//   color: black;
-// }
-
 //新增/修改弹窗样式
 ::v-deep .el-dialog__title {
   color: white;

+ 382 - 0
lzga-ui/src/views1/File/Individual/Share/ShareView.vue

@@ -0,0 +1,382 @@
+<template>
+  <div class="containe">
+    <div class="header">
+      <span>文档管理</span>
+      <img src="../../../../assets/img/chevron-down.png" alt="" />
+      <img src="../../../../assets/img/slash.png" alt="" />
+      <span>个人文档</span>
+      <img src="../../../../assets/img/chevron-down.png" alt="" class="top2" />
+      <img src="../../../../assets/img/slash.png" alt="" />
+      <span class="top1">分享</span>
+      <img src="../../../../assets/img/chevron-up.png" alt="" class="top2" />
+      <img src="../../../../assets/img/slash.png" alt="" />
+    </div>
+    <div class="top">
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item prop="isSecret" label="是否机密">
+          <el-switch v-model="form.isSecret" active-value="1" inactive-value="0" @change="shareChange()" active-color="red"> </el-switch>
+         <span>(如果选择机密,则共享用户打开时需要输入自己的用户密码才能查看)</span>
+        </el-form-item>
+        <el-form-item prop="onlyOneTime" label="阅后即焚">
+          <el-switch v-model="form.onlyOneTime" active-value="1" inactive-value="0" @change="shareChange()" active-color="red"> </el-switch>
+          <span>(如果选择阅后即焚,则共享用户只能打开一次)</span>
+        </el-form-item>
+      </el-form>
+    </div>
+    <div class="main">
+      <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="userId">
+          <el-input v-model="queryParams.userId" placeholder="请输入用户ID" clearable @keyup.enter.native="handleQuery" />
+        </el-form-item>
+        <el-form-item label="用户姓名" prop="userName">
+          <el-input v-model="queryParams.userName" 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" class="resetq">重置</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="['doc:groupUser:add']">添加人员</el-button>
+        </el-col>
+        <el-col :span="1.5">
+          <el-button type="danger" plain icon="el-icon-circle-close" size="mini" :disabled="multiple"
+            @click="cancelGroupUserAll" v-hasPermi="['doc:groupUser:remove']">删除人员</el-button>
+        </el-col>
+        <el-col :span="1.5">
+          <el-button type="warning" plain icon="el-icon-arrow-left" size="mini" @click="handleClose">返回</el-button>
+        </el-col>
+        <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+      </el-row>
+  
+      <el-table v-loading="loading" :data="groupUserList" @selection-change="handleSelectionChange">
+        <el-table-column type="selection" width="55" align="center" />
+        <el-table-column label="用户名称" prop="userName" :show-overflow-tooltip="true" />
+        <el-table-column label="用户昵称" prop="nickName" :show-overflow-tooltip="true" />
+        <el-table-column label="邮箱" prop="email" :show-overflow-tooltip="true" />
+        <el-table-column label="手机" prop="phonenumber" :show-overflow-tooltip="true" />
+        <el-table-column label="状态" align="center" prop="status">
+          <template slot-scope="scope">
+            <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status" />
+          </template>
+        </el-table-column>
+        <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-circle-close" @click="cancelGroupUser(scope.row)"
+              v-hasPermi="['doc:groupUser: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" />
+      <select-user ref="select" :docId="queryParams.docId" @ok="handleQuery" />
+    </div>
+
+
+
+
+
+    </div>
+  </div>
+</template>
+  
+  <script>
+  import "@/styles1/element-ui1.scss";
+
+    import {
+      listShareAccepter,
+      getShareAccepter,
+      delShareAccepter,
+      addShareAccepter,
+      updateShareAccepter,
+      shareUserCancelAll
+    } from "@/api/doc/shareAccepter";
+  
+    import {
+      listShare,
+      getShare,
+      delShare,
+      addShare,
+      updateShare
+    } from "@/api/doc/share";
+  
+    import selectUser from "./selectUser";
+    export default {
+      name: "GroupUser",
+      dicts: ['sys_yes_no'],
+      components: {
+        selectUser
+      },
+      data() {
+        return {
+          // 遮罩层
+          loading: true,
+          // 选中数组
+          ids: [],
+          // 非单个禁用
+          single: true,
+          // 非多个禁用
+          multiple: true,
+          // 显示搜索条件
+          showSearch: true,
+          // 总条数
+          total: 0,
+          // 分组成员表格数据
+          groupUserList: [],
+          // 弹出层标题
+          title: "",
+          // 是否显示弹出层
+          open: false,
+          // 查询参数
+          queryParams: {
+            pageNum: 1,
+            pageSize: 10,
+            userId: null,
+            userName: null
+          },
+          // 表单参数
+          form: {},
+          // 表单校验
+          rules: {}
+        };
+      },
+      created() {
+        const docId = this.$route.params && this.$route.params.docId;
+        if (docId) {
+          this.queryParams.docId = docId;
+          this.getList();
+        }
+      },
+      methods: {
+        shareChange() {
+          this.form.docId = this.queryParams.docId;
+          updateShare(this.form).then(response => {
+            this.$modal.msgSuccess("修改成功");
+          });
+        },
+        // 返回按钮
+        handleClose() {
+          const obj = {
+            path: "/home/file/individual"
+          };
+          this.$tab.closeOpenPage(obj);
+        },
+        /** 查询分组成员列表 */
+        getList() {
+          this.loading = true;
+          getShare(this.queryParams.docId).then(response => {
+            this.form.isSecret = response.data.isSecret;
+            this.form.onlyOneTime = response.data.onlyOneTime;
+          });
+  
+          listShareAccepter(this.queryParams).then(response => {
+            this.groupUserList = response.rows;
+            this.total = response.total;
+            this.loading = false;
+          });
+        },
+        // 取消按钮
+        cancel() {
+          this.open = false;
+          this.reset();
+        },
+        // 表单重置
+        reset() {
+          this.form = {
+            docId: null,
+            userId: null,
+            userName: 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.userId)
+          this.single = selection.length !== 1
+          this.multiple = !selection.length
+        },
+        /** 新增按钮操作 */
+        handleAdd() {
+          this.$refs.select.show();
+        },
+        /** 提交按钮 */
+        submitForm() {
+          this.$refs["form"].validate(valid => {
+            if (valid) {
+              if (this.form.docId != null) {
+                updateGroupUser(this.form).then(response => {
+                  this.$modal.msgSuccess("修改成功");
+                  this.open = false;
+                  this.getList();
+                });
+              } else {
+                addGroupUser(this.form).then(response => {
+                  this.$modal.msgSuccess("新增成功");
+                  this.open = false;
+                  this.getList();
+                });
+              }
+            }
+          });
+        },
+        /** 删除按钮操作 */
+        cancelGroupUserAll(row) {
+          const docId = this.queryParams.docId;
+          const userIds = this.ids.join(",");
+          this.$modal.confirm('是否确认删除选中的分组成员?').then(function() {
+            return shareUserCancelAll({
+              docId: docId,
+              userIds: userIds
+            });
+          }).then(() => {
+            this.getList();
+            this.$modal.msgSuccess("删除成功");
+          }).catch(() => {});
+        },
+        /** 删除按钮操作 */
+        cancelGroupUser(row) {
+          const docId = this.queryParams.docId;
+          const userIds = row.userId
+          this.$modal.confirm('是否确认删除分组成员"' + row.userName + '"的数据项?').then(function() {
+            return shareUserCancelAll({
+              docId: docId,
+              userIds: userIds
+            });
+          }).then(() => {
+            this.getList();
+            this.$modal.msgSuccess("删除成功");
+          }).catch(() => {});
+        },
+      },
+    };
+  </script>
+
+  <style scoped lang='scss'>
+  .containe {
+    color: #7ea4c8;
+    font-size: 0.14rem;
+    font-family: PingFang SC-Medium, PingFang SC;
+    font-weight: 500;
+    padding-left: calc(100vw * (20 / 1920));
+    .header {
+      height: calc(100vh * (22 / 1080));
+      margin-top: calc(100vh * (20 / 1080));
+      margin-bottom: calc(100vh * (20 / 1080));
+      display: flex;
+      align-items: center;
+      img {
+        width: calc(100vw * (16 / 1920));
+        height: calc(100vh * (16 / 1080));
+        border: 1px dashed grey;
+        margin-left: 3px;
+        margin-right: 3px;
+      }
+      .top1 {
+        color: #2e8aecff;
+      }
+    }
+    .title {
+      height: calc(100vh * (22 / 1080));
+      margin-top: calc(100vh * (20 / 1080));
+      margin-bottom: calc(100vh * (20 / 1080));
+      color: #ffffffff;
+      font-size: 0.16rem;
+      font-weight: bold;
+      line-height: calc(100vh * (22 / 1080));
+    }
+    .main {
+      width: calc(100vw * (1876 / 1920));
+      height: calc(100vh * (800 / 1080));
+      .app-container {
+        width: calc(100vw * (1876 / 1920));
+        height: calc(100vh * (800 / 1080));
+        background: url(../../../../assets/img/Group-615.png);
+        background-size: calc(100vw * (1876 / 1920)) calc(100vh * (800 / 1080));
+      }
+        .mb8 {
+          margin-top: 5px;
+        }
+        //表格底部
+        .pagination-container {
+          background: transparent;
+          padding: 0 !important;
+          margin: 0;
+        }
+        //重置搜索
+        .resetq{
+          color: #2E8AECFF;
+          background: transparent;
+          border: 1px solid #2E8AECFF; 
+        }
+    }
+  }
+  //开关按钮前面的字体颜色
+  ::v-deep .el-form-item__label {
+    color: #2E8AECFF;
+}
+  //开关按钮之间的间距
+  ::v-deep .el-form-item {
+    margin-bottom: 5px;
+} 
+//搜索刷新按钮颜色
+::v-deep .el-button.is-circle {
+  background: #006c9aff;
+  color: white;
+}
+//table样式
+::v-deep .el-table {
+  height: calc(100vh * (590 / 1080));
+  background: transparent;
+  color: #7ea4c8ff;
+}
+::v-deep .el-table th {
+  background: #016c9aa6;
+  color: #2e8aec;
+}
+::v-deep .el-table tr {
+  background: transparent;
+}
+::v-deep .el-table tbody tr:hover > td {
+  background-color: #016c9a78 !important;
+}
+::v-deep .el-table td.el-table__cell {
+  border-bottom: 1px solid #006c9aff;
+}
+::v-deep .el-table th.el-table__cell.is-leaf {
+  border-bottom: 1px solid #006c9aff;
+}
+//表格底部线条隐藏
+::v-deep .el-table::before {
+  height: 0;
+}
+//按钮的样式
+::v-deep .el-button--primary.is-plain,
+.el-button--success.is-plain.is-disabled,
+.el-button--danger.is-plain.is-disabled,
+.el-button--warning.is-plain {
+  background-color: #002a5cff;
+  border: none;
+  color: #2e8aec;
+}
+//右边顶部搜索框样式
+::v-deep .el-input__inner {
+  background-color: transparent;
+  border: 1px solid #01d1ffff;
+  color: #ffffffcc;
+}
+  </style>
+  

+ 180 - 0
lzga-ui/src/views1/File/Individual/Share/selectUser.vue

@@ -0,0 +1,180 @@
+<template>
+  <!-- 授权用户 -->
+  <el-dialog title="选择用户" :visible.sync="visible" width="800px" top="5vh" append-to-body>
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true">
+      <el-form-item label="用户名称" prop="userName">
+        <el-input v-model="queryParams.userName" placeholder="请输入用户名称" clearable @keyup.enter.native="handleQuery" />
+      </el-form-item>
+      <el-form-item label="手机号码" prop="phonenumber">
+        <el-input v-model="queryParams.phonenumber" 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" class="resetq">重置</el-button>
+      </el-form-item>
+    </el-form>
+    <el-row>
+      <el-table @row-click="clickRow" ref="table" :data="userList" @selection-change="handleSelectionChange"
+        height="260px">
+        <el-table-column type="selection" width="55"></el-table-column>
+        <el-table-column label="用户名称" prop="userName" :show-overflow-tooltip="true" />
+        <el-table-column label="用户昵称" prop="nickName" :show-overflow-tooltip="true" />
+        <el-table-column label="邮箱" prop="email" :show-overflow-tooltip="true" />
+        <el-table-column label="手机" prop="phonenumber" :show-overflow-tooltip="true" />
+        <el-table-column label="状态" align="center" prop="status">
+          <template slot-scope="scope">
+            <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status" />
+          </template>
+        </el-table-column>
+        <el-table-column label="创建时间" align="center" prop="createTime" width="180">
+          <template slot-scope="scope">
+            <span>{{ parseTime(scope.row.createTime) }}</span>
+          </template>
+        </el-table-column>
+      </el-table>
+      <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
+    </el-row>
+    <div slot="footer" class="dialog-footer">
+      <el-button type="primary" @click="handleSelectUser">确 定</el-button>
+      <el-button @click="visible = false">取 消</el-button>
+    </div>
+  </el-dialog>
+</template>
+
+<script>
+  import {
+    unallocatedUserList,
+    shareUserSelectAll
+  } from "@/api/doc/shareAccepter";
+  export default {
+    dicts: ['sys_normal_disable'],
+    props: {
+      // 角色编号
+      docId: {
+        type: [String]
+      }
+    },
+    data() {
+      return {
+        // 遮罩层
+        visible: false,
+        // 选中数组值
+        userIds: [],
+        // 总条数
+        total: 0,
+        // 未授权用户数据
+        userList: [],
+        // 查询参数
+        queryParams: {
+          pageNum: 1,
+          pageSize: 10,
+          docId: undefined,
+          // userName: undefined,
+          // phonenumber: undefined
+        }
+      };
+    },
+    methods: {
+      // 显示弹框
+      show() {
+        this.queryParams.docId = this.docId;
+        this.getList();
+        this.visible = true;
+      },
+      clickRow(row) {
+        this.$refs.table.toggleRowSelection(row);
+      },
+      // 多选框选中数据
+      handleSelectionChange(selection) {
+        this.userIds = selection.map(item => item.userId);
+      },
+      // 查询表数据
+      getList() {
+        unallocatedUserList(this.queryParams).then(res => {
+          this.userList = res.rows;
+          this.total = res.total;
+        });
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.resetForm("queryForm");
+        this.handleQuery();
+      },
+      /** 选择授权用户操作 */
+      handleSelectUser() {
+        const docId = this.queryParams.docId;
+        const userIds = this.userIds.join(",");
+        if (userIds == "") {
+          this.$modal.msgError("请选择要分配的用户");
+          return;
+        }
+        shareUserSelectAll({
+          docId: docId,
+          userIds: userIds
+        }).then(res => {
+          this.$modal.msgSuccess(res.msg);
+          if (res.code === 200) {
+            this.visible = false;
+            this.$emit("ok");
+          }
+        });
+      }
+    }
+  };
+</script>
+
+<style lang="scss" scoped>
+//添加人员弹窗
+::v-deep .el-dialog {
+  width: calc(100vw * (1050 / 1920)) !important;
+  height: calc(100vh * (910 / 1080)) !important;
+  background: url(../../../../assets/img/Group-585.png);
+  background-size: calc(100vw * (1050 / 1920)) calc(100vh * (910 / 1080));
+  //关闭按钮
+  .el-dialog__headerbtn {
+    top: calc(100vh * (30 / 1080));
+    right: calc(100vw * (40 / 1920));
+    font-size: 25px;
+}
+.el-dialog__title{
+  color: #ffffff;
+  font-size: 20px;
+}
+.el-input {
+  width: calc(100vw * (240 / 1920)) !important;
+}
+   //重置搜索
+.resetq{
+  color: #2E8AECFF;
+  background: transparent;
+  border: 1px solid #2E8AECFF; 
+}
+.el-row{
+  width: calc(100vw * (850 / 1920));
+  height: calc(100vh * (550 / 1080));
+  margin-left: calc(100vw * (23 / 1920));
+  margin-top: calc(100vh * (10 / 1080));
+}
+.el-table{
+  height: calc(100vh * (500 / 1080)) !important; 
+}
+//表格底部
+.pagination-container {
+    background: transparent;
+    padding: 0 !important;
+    margin: 0;
+  }
+}
+::v-deep .el-pagination__editor.el-input .el-input__inner {
+    width: calc(100vw * (60 / 1920));
+}
+::v-deep .el-pagination__editor.el-input {
+    width: calc(100vw * (80 / 1920)) !important;
+}
+
+</style>

+ 11 - 2
lzga-ui/src/views1/HomeView.vue

@@ -157,7 +157,7 @@
 export default {
   data() {
     return {
-      activeIndex: "",
+      activeIndex: '',
       srcIndex: '',
       // 图片数组
       icoUrl: 
@@ -333,6 +333,15 @@ export default {
 ::v-deep .el-menu--horizontal .el-menu-item:not(.isdisabled):hover{
     background: #1E497CFF !important;
 }
+</style>
 
-
+<style>
+/* 下拉框 */
+.el-menu--horizontal .el-menu .el-menu-item{
+    background: #0F1540FF !important;
+}
+.el-menu--horizontal .el-menu .el-menu-item:hover{
+    background: #1E497CFF !important;
+    color: #ffffff !important;
+}
 </style>

+ 74 - 65
lzga-ui/src/views1/Page/PageView.vue

@@ -13,9 +13,7 @@
               <div class="three">通知类型:文档搜集</div>
               <div class="four">
                 <p class="four1">通知内容:</p>
-                <p>
-                  文档搜集文档搜集文档搜集文档搜集文档搜集...
-                </p>
+                <p>文档搜集文档搜集文档搜集文档搜集文档搜集...</p>
               </div>
               <div class="five">
                 <span>查看详细</span>
@@ -30,9 +28,7 @@
               <div class="three">通知类型:文档搜集</div>
               <div class="four">
                 <p class="four1">通知内容:</p>
-                <p>
-                  文档搜集文档搜集文档搜集文档搜集文档搜集...
-                </p>
+                <p>文档搜集文档搜集文档搜集文档搜集文档搜集...</p>
               </div>
               <div class="five">
                 <span>查看详细</span>
@@ -47,9 +43,7 @@
               <div class="three">通知类型:文档搜集</div>
               <div class="four">
                 <p class="four1">通知内容:</p>
-                <p>
-                  文档搜集文档搜集文档搜集文档搜集文档搜集...
-                </p>
+                <p>文档搜集文档搜集文档搜集文档搜集文档搜集...</p>
               </div>
               <div class="five">
                 <span>查看详细</span>
@@ -57,17 +51,20 @@
               </div>
             </li>
           </ul>
-         
         </div>
       </div>
       <div class="cen">
-        <ul class="cen-cen">
-          <li>个人文档</li>
-          <li>部门文档</li>
-          <li>公共文档</li>
-        </ul>
         <div class="cen—top">
-          <div class="cen—top-left">全部文档<span></span></div>
+          <el-dropdown class="cen—top-left">
+            <span class="el-dropdown-link">
+              全部文档<i class="el-icon-caret-bottom el-icon--right"></i>
+            </span>
+            <el-dropdown-menu slot="dropdown">
+              <el-dropdown-item>个人文档</el-dropdown-item>
+              <el-dropdown-item>部门文档</el-dropdown-item>
+              <el-dropdown-item>公共文档</el-dropdown-item>
+            </el-dropdown-menu>
+          </el-dropdown>
           <div class="cen—top-right">
             <div class="cen—top-div">
               <input
@@ -75,7 +72,7 @@
                 placeholder="请输入文档信息"
                 class="cen—top-input"
               />
-              <button class="cen—top-but">快速搜索</button>
+              <span class="cen—top-but">快速搜索</span>
               <img
                 src="../../assets/img/ri:search-2-line@2x.png"
                 class="cen—top-img"
@@ -114,9 +111,7 @@
               <div class="three">通知类型:文档搜集</div>
               <div class="four">
                 <p class="four1">通知内容:</p>
-                <p>
-                  文档搜集文档搜集文档搜集文档搜集文档搜集...
-                </p>
+                <p>文档搜集文档搜集文档搜集文档搜集文档搜集...</p>
               </div>
               <div class="five">
                 <span>查看详细</span>
@@ -131,9 +126,7 @@
               <div class="three">通知类型:文档搜集</div>
               <div class="four">
                 <p class="four1">通知内容:</p>
-                <p>
-                  文档搜集文档搜集文档搜集文档搜集文档搜集...
-                </p>
+                <p>文档搜集文档搜集文档搜集文档搜集文档搜集...</p>
               </div>
               <div class="five">
                 <span>查看详细</span>
@@ -148,9 +141,7 @@
               <div class="three">通知类型:文档搜集</div>
               <div class="four">
                 <p class="four1">通知内容:</p>
-                <p>
-                  文档搜集文档搜集文档搜集文档搜集文档搜集...
-                </p>
+                <p>文档搜集文档搜集文档搜集文档搜集文档搜集...</p>
               </div>
               <div class="five">
                 <span>查看详细</span>
@@ -312,18 +303,18 @@ export default {
             padding-left: 20px;
             padding-right: 5px;
           }
-          .one{
+          .one {
             padding-top: 12px;
           }
           .five {
             display: flex;
             justify-content: space-evenly;
-            color: #2E8AECFF;
+            color: #2e8aecff;
             padding-top: 8px;
           }
-          .four{
+          .four {
             display: flex;
-            .four1{
+            .four1 {
               width: calc(100vw * (90 / 1920));
             }
           }
@@ -335,55 +326,53 @@ export default {
       height: calc(100vh * (600 / 1080));
       // background: aqua;
       position: relative;
-      .cen-cen {
-        width: calc(100vw * (96 / 1920));
-        height: calc(100vh * (136 / 1080));
-        background: #0f1540ff;
-        position: absolute;
-        top: 30px;
-        left: 25px;
-        list-style: none;
-        padding: 0 calc(100vw * (3 / 1920));
-        padding-top: calc(100vh * (10 / 1080));
-        border: 1px solid #00000040;
-        border-radius: 2px 2px 2px 2px;
-        // display: none;
-        // li {
-        // padding: calc(100vh * (6 / 1080)) calc(100vw * (10 / 1920));
-        // background: red;
-        // }
-      }
       .cen—top {
-        width: calc(100vw * (623 / 1920));
+        width: calc(100vw * (633 / 1920));
         height: calc(100vh * (40 / 1080));
         // background: salmon;
-        overflow: hidden;
+        // overflow: hidden;
         margin-left: calc(100vw * (81 / 1920));
         display: flex;
         align-items: center;
         .cen—top-left {
-          width: calc(100vw * (80 / 1920));
-          height: calc(100vh * (20 / 1080));
+          width: calc(100vw * (90 / 1920));
+          height: calc(100vh * (36 / 1080));
           // background: seagreen;
           margin-right: calc(100vw * (5 / 1920));
           font-size: 12px;
           color: #2e8aecff;
           display: flex;
           align-items: center;
-          span {
-            display: inline-block;
-            width: 0;
-            height: 0;
-            border-width: calc(100vw * (5 / 1920));
-            border-style: solid;
-            border-color: #01d1ffff transparent transparent transparent;
-            margin-left: calc(100vw * (5 / 1920));
-            margin-top: calc(100vh * (5 / 1080));
+          .el-dropdown-link {
+            cursor: pointer;
+            color: #409eff;
+          }
+          .el-icon-arrow-down {
+            font-size: 12px;
           }
+          //     .cen-cen {
+          //   width: calc(100vw * (96 / 1920));
+          //   height: calc(100vh * (136 / 1080));
+          //   background: #0f1540ff;
+          //   position: absolute;
+          //   top: 30px;
+          //   left: 25px;
+          //   list-style: none;
+          //   padding: 0 calc(100vw * (3 / 1920));
+          //   padding-top: calc(100vh * (10 / 1080));
+          //   border: 1px solid #00000040;
+          //   border-radius: 2px 2px 2px 2px;
+          //   z-index: 99;
+          //   // display: none;
+          //   li {
+          //   padding: calc(100vh * (6 / 1080)) calc(100vw * (10 / 1920));
+          //   }
+          // }
         }
         .cen—top-right {
           width: calc(100vw * (536 / 1920));
           height: calc(100vh * (36 / 1080));
+          // background: skyblue;
           .cen—top-div {
             position: relative;
             .cen—top-img {
@@ -398,12 +387,18 @@ export default {
               width: calc(100vw * (436 / 1920));
               height: calc(100vh * (36 / 1080));
               padding-left: calc(100vw * (53 / 1920));
+              background: #14265E80;
+              border: 1px solid #01D1FFFF;
             }
             .cen—top-but {
               width: calc(100vw * (100 / 1920));
               height: calc(100vh * (36 / 1080));
-              // background: #01D1FF80;
-              // color: #FFFFFFCC;
+              display: inline-block;
+              text-align: center;
+              line-height: calc(100vh * (36 / 1080));
+              background: #01d1ff80;
+              color: #ffffffcc;
+              vertical-align: top;
             }
           }
         }
@@ -519,8 +514,9 @@ export default {
         .first {
           color: #2e8aecff;
           margin-top: calc(100vh * (10 / 1920));
-          background: url(../../assets/img/main_left_decorate.png);
-          background-size: contain;
+          background: #016C9AFF;
+          // background: url(../../assets/img/main_left_decorate.png);
+          // background-size: contain;
         }
         .one {
           width: calc(100vw * (250 / 1920));
@@ -553,4 +549,17 @@ export default {
 ::-webkit-scrollbar-thumb:hover {
   background: #2e8aec;
 }
+</style>
+
+<style>
+.el-dropdown-menu {
+  background-color: #0F1540;
+  border: 1px solid #0F1540FF;
+}
+.el-dropdown-menu__item{
+  color: #006C9AFF;
+}
+.el-dropdown-menu__item:hover{
+ background: #01D1FF3B !important;
+}
 </style>