scorpio 2 år sedan
förälder
incheckning
5451951b4e
2 ändrade filer med 12 tillägg och 0 borttagningar
  1. 1 0
      src/components/filepicker/index.vue
  2. 11 0
      src/views/resource/component/archives.vue

+ 1 - 0
src/components/filepicker/index.vue

@@ -284,6 +284,7 @@ export default {
     getFolderList() {
       this.loading = true
       const row = {
+        projectId: this.projectId,
         stageId: this.stageId,
         dictKey: 1,
         current: this.page.current,

+ 11 - 0
src/views/resource/component/archives.vue

@@ -201,6 +201,7 @@
 
 <script>
 import baseButton from '@/components/base-button.vue'
+import { useStore } from '@/store/user.js'
 
 export default {
   components: { baseButton },
@@ -228,6 +229,10 @@ export default {
       immediate: true
     }
   },
+  setup() {
+    const user = useStore()
+    return { user }
+  },
   data() {
     return {
       show: false,
@@ -324,7 +329,13 @@ export default {
       }
     }
   },
+  mounted() {
+    this.init()
+  },
   methods: {
+    init() {
+      this.from.makeUnit = this.user.info.deptName
+    },
     getDic(code) {
       this.$api.common.dicList({ code }).then(res => {
         if (res.code === 200) {