dev01 1 ano atrás
pai
commit
f69119d95f
2 arquivos alterados com 16 adições e 14 exclusões
  1. 11 11
      src/components/ImagePreview/index.vue
  2. 5 3
      src/views/record/list/index.vue

+ 11 - 11
src/components/ImagePreview/index.vue

@@ -1,17 +1,17 @@
 <template>
   <div>
     <el-image
-    v-for="(item, index) in realSrcList"
-    :key="index"
-    :src="item"
-    fit="cover"
-    :style="`width:${realWidth};height:${realHeight};`"
-    :preview-src-list="realSrcList"
-  >
-    <div slot="error" class="image-slot">
-      <i class="el-icon-picture-outline"></i>
-    </div>
-  </el-image>
+      v-for="(item, index) in realSrcList"
+      :key="index"
+      :src="item"
+      fit="cover"
+      :style="`width:${realWidth};height:${realHeight};`"
+      :preview-src-list="realSrcList"
+    >
+      <div slot="error" class="image-slot">
+        <i class="el-icon-picture-outline"></i>
+      </div>
+    </el-image>
   </div>
 </template>
 

+ 5 - 3
src/views/record/list/index.vue

@@ -2,7 +2,7 @@
   <div class="app-container">
     <el-row :gutter="20">
       <!--部门数据-->
-      <!-- <el-col :span="4" :xs="24">
+      <el-col :span="4" :xs="24">
         <div class="head-container">
           <el-input v-model="deptName" placeholder="请输入部门名称" clearable size="small" prefix-icon="el-icon-search"
             style="margin-bottom: 20px" />
@@ -12,9 +12,9 @@
             :filter-node-method="filterNode" ref="tree" node-key="id" default-expand-all highlight-current
             @node-click="handleNodeClick" />
         </div>
-      </el-col> -->
+      </el-col>
       <!--用户数据-->
-      <el-col :span="24" :xs="24">
+      <el-col :span="20" :xs="24">
         <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
           <el-form-item label="项目编号" prop="projectNumber">
             <el-input v-model="queryParams.projectNumber" placeholder="请输入项目编号" clearable style="width: 240px"
@@ -121,6 +121,7 @@
 
 <script>
 import { listRecord, } from "@/api/system/record";
+import { deptTreeSelect, } from "@/api/system/user";
 import { getToken } from "@/utils/auth";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@@ -250,6 +251,7 @@ export default {
   },
   created() {
     this.getList();
+    this.getDeptTree();
     this.getConfigKey("sys.user.initPassword").then(response => {
       this.initPassword = response.msg;
     });