StorageView.vue 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. <template>
  2. <div class="containe">
  3. <!-- <div class="header">
  4. <span>文档管理</span>
  5. <img src="../../../assets/img/chevron-down.png" alt="" />
  6. <img src="../../../assets/img/slash.png" alt="" />
  7. <span class="top1">分组文档</span>
  8. <img src="../../../assets/img/chevron-up.png" alt="" class="top2" />
  9. <img src="../../../assets/img/slash.png" alt="" />
  10. </div>
  11. <div class="title">分组文档</div> -->
  12. <div class="main">
  13. <h3>分组文档</h3>
  14. <div class="main-main">
  15. <div class="app-container">
  16. <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
  17. <el-form-item label="分组名称" prop="groupName">
  18. <el-input v-model="queryParams.groupName" placeholder="请输入分组名称" clearable @keyup.enter.native="handleQuery" />
  19. </el-form-item>
  20. <el-form-item>
  21. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  22. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" class="reset1">重置</el-button>
  23. </el-form-item>
  24. </el-form>
  25. <el-table v-loading="loading" :data="groupList" @selection-change="handleSelectionChange">
  26. <el-table-column type="selection" width="55" align="center" />
  27. <el-table-column label="分组名称" align="center" prop="groupName" />
  28. <el-table-column label="分组管理员" align="center" prop="groupManagerName" />
  29. <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
  30. <template slot-scope="scope">
  31. <el-button size="mini" type="text" icon="el-icon-user" @click="handleGroupDoc(scope.row)">分组文档</el-button>
  32. </template>
  33. </el-table-column>
  34. </el-table>
  35. <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
  36. @pagination="getList" />
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </template>
  42. <script>
  43. import {
  44. listGroup,
  45. selectGroupDoc,
  46. getGroup,
  47. delGroup,
  48. addGroup,
  49. updateGroup
  50. } from "@/api/doc/group";
  51. export default {
  52. name: "GroupDocSelect",
  53. data() {
  54. return {
  55. // 遮罩层
  56. loading: true,
  57. // 选中数组
  58. ids: [],
  59. // 非单个禁用
  60. single: true,
  61. // 非多个禁用
  62. multiple: true,
  63. // 显示搜索条件
  64. showSearch: true,
  65. // 总条数
  66. total: 0,
  67. // 分组表格数据
  68. groupList: [],
  69. // 弹出层标题
  70. title: "",
  71. // 是否显示弹出层
  72. open: false,
  73. // 查询参数
  74. queryParams: {
  75. pageNum: 1,
  76. pageSize: 10,
  77. groupName: null,
  78. groupManager: null,
  79. groupManagerName: null,
  80. },
  81. // 表单参数
  82. form: {},
  83. // 表单校验
  84. rules: {}
  85. };
  86. },
  87. created() {
  88. this.getList();
  89. },
  90. methods: {
  91. /** 查询分组列表 */
  92. getList() {
  93. this.loading = true;
  94. selectGroupDoc(this.queryParams).then(response => {
  95. this.groupList = response.rows;
  96. this.total = response.total;
  97. this.loading = false;
  98. });
  99. },
  100. // 取消按钮
  101. cancel() {
  102. this.open = false;
  103. this.reset();
  104. },
  105. // 表单重置
  106. reset() {
  107. this.form = {
  108. groupId: null,
  109. groupName: null,
  110. groupManager: null,
  111. groupManagerName: null,
  112. creater: null,
  113. createBy: null,
  114. createTime: null,
  115. updateBy: null,
  116. updateTime: null,
  117. remark: null,
  118. isDel: null
  119. };
  120. this.resetForm("form");
  121. },
  122. /** 搜索按钮操作 */
  123. handleQuery() {
  124. this.queryParams.pageNum = 1;
  125. this.getList();
  126. },
  127. /** 重置按钮操作 */
  128. resetQuery() {
  129. this.resetForm("queryForm");
  130. this.handleQuery();
  131. },
  132. // 多选框选中数据
  133. handleSelectionChange(selection) {
  134. this.ids = selection.map(item => item.groupId)
  135. this.single = selection.length !== 1
  136. this.multiple = !selection.length
  137. },
  138. /** 分组空间按钮操作 */
  139. handleGroupDoc(row) {
  140. const groupId = row.groupId;
  141. this.$router.push("/home/file/Sto/doc/" + groupId);
  142. }
  143. }
  144. };
  145. </script>
  146. <style scoped lang='scss'>
  147. .containe {
  148. color: #7ea4c8;
  149. font-size: 0.14rem;
  150. font-family: PingFang SC-Medium, PingFang SC;
  151. font-weight: 500;
  152. padding-left: calc(100vw * (20 / 1920));
  153. //顶部信息
  154. // .header {
  155. // width: calc(100vw * (300 / 1920));
  156. // height: calc(100vh * (22 / 1080));
  157. // margin-top: calc(100vh * (20 / 1080));
  158. // margin-bottom: calc(100vh * (20 / 1080));
  159. // display: flex;
  160. // align-items: center;
  161. // img {
  162. // width: calc(100vw * (16 / 1920));
  163. // height: calc(100vh * (16 / 1080));
  164. // border: 1px dashed grey;
  165. // margin-left: 3px;
  166. // margin-right: 3px;
  167. // }
  168. // .top1 {
  169. // color: #2e8aecff;
  170. // }
  171. // }
  172. // //中间目录列表
  173. // .title {
  174. // height: calc(100vh * (22 / 1080));
  175. // margin-top: calc(100vh * (20 / 1080));
  176. // margin-bottom: calc(100vh * (20 / 1080));
  177. // color: #ffffffff;
  178. // font-size: 0.16rem;
  179. // font-weight: bold;
  180. // line-height: calc(100vh * (22 / 1080));
  181. // }
  182. .main {
  183. width: calc(100vw * (1876 / 1920));
  184. height: calc(100vh * (930 / 1080));
  185. background: url(../../../assets/img/Group-610.png);
  186. background-size: calc(100vw * (1876 / 1920)) calc(100vh * (930 / 1080));
  187. margin-top: calc(100vh * (35 / 1080));
  188. h3 {
  189. font-size: 0.2rem;
  190. color: #ffffffff;
  191. padding-top: calc(100vh * (30 / 1080));
  192. padding-bottom: calc(100vh * (10 / 1080));
  193. padding-left: calc(100vw * (30 / 1920));
  194. }
  195. .main-main {
  196. width: calc(100vw * (1822 / 1920));
  197. height: calc(100vh * (790 / 1080));
  198. margin-left: calc(100vw * (25 / 1920));
  199. margin-top: calc(100vh * (15 / 1080));
  200. // background: seagreen;
  201. .app-container{
  202. width: calc(100vw * (1822 / 1920));
  203. height: calc(100vh * (790 / 1080));
  204. padding: 0;
  205. // background: seagreen;
  206. .el-table {
  207. width: calc(100vw * (1822 / 1920));
  208. height: calc(100vh * (700 / 1080));
  209. background: transparent;
  210. overflow: auto;
  211. }
  212. .reset1 {
  213. color: #2e8aecff;
  214. background: transparent;
  215. border: 1px solid #2E8AECFF;
  216. }
  217. }
  218. }
  219. }
  220. }
  221. //底部跳转
  222. ::v-deep .pagination-container {
  223. height: calc(100vh * (50 / 1080));
  224. background: transparent;
  225. }
  226. ::v-deep .pagination-container .el-pagination {
  227. bottom: 10px;
  228. }
  229. //table样式
  230. ::v-deep .el-table th {
  231. background: #016c9aa6;
  232. color: #2e8aec;
  233. }
  234. ::v-deep .el-table tr {
  235. background: transparent;
  236. }
  237. ::v-deep .el-table tbody tr:hover > td {
  238. background-color: #016c9a78 !important;
  239. }
  240. ::v-deep .el-table td.el-table__cell {
  241. border-bottom: 1px solid #006c9aff;
  242. }
  243. ::v-deep .el-table th.el-table__cell.is-leaf {
  244. border-bottom: 1px solid #006c9aff;
  245. }
  246. ::v-deep .el-form-item__label {
  247. color: #2e8aecff;
  248. }
  249. ::v-deep .el-input__inner {
  250. background: transparent;
  251. border: 1px solid #01d1ffff;
  252. color: #006c9aff;
  253. }
  254. //table底下白线消失处理
  255. ::v-deep .el-table {
  256. color: #ffffffff;
  257. }
  258. ::v-deep .el-table::before {
  259. width: 0;
  260. }
  261. //重置按钮的样式
  262. ::v-deep .el-button + .el-button {
  263. color: #1890ff;
  264. }
  265. </style>