scorpio 3 yıl önce
ebeveyn
işleme
856d8a7f0d
2 değiştirilmiş dosya ile 7 ekleme ve 5 silme
  1. 5 3
      src/views/home/component/files_list.vue
  2. 2 2
      vite.config.js

+ 5 - 3
src/views/home/component/files_list.vue

@@ -39,7 +39,7 @@
                        @click="upload(item)"/>
           <main-button v-else-if="item.type === '2' && item.isAccess === '3'" icon="Position"
                        title="授权申请" width="85" @click="folderApply(item)"/>
-          <main-button v-else-if='permission.permissions.home_folder_del' icon="Delete" title="删除" width="85" @click="removeFile(item)"/>
+          <main-button v-if='permission.permissions.home_folder_del' icon="Delete" title="删除" width="85" @click="removeFile(item)"/>
         </div>
       </div>
     </div>
@@ -180,7 +180,8 @@ export default {
             projectStageId: this.query.projectStageId,
             dictKey: this.query.dictKey,
             parentId: item.id,
-            isAccess: item.isAccess
+            isAccess: item.isAccess,
+            ownerId: this.query.ownerId
           }
         })
       }
@@ -313,8 +314,9 @@ export default {
         this.$message.error('请选择授权时间')
         return
       }
+      console.log(this.currentFolder)
       const tmp = { projectId: this.$route.query.projectId, ownerId: this.$route.query.ownerId }
-      const item = { startTime: this.applyTime[0], endTime: this.applyTime[1], folderId: this.currentFolder.fileFolderId }
+      const item = { startTime: this.applyTime[0], endTime: this.applyTime[1], folderId: this.currentFolder.id }
       const list = [item]
       this.$api.project.apply(Object.assign(tmp, { folders: list })).then(res => {
         if (res.code === 200) {

+ 2 - 2
vite.config.js

@@ -34,8 +34,8 @@ export default defineConfig({
       '/api': {
         // 正式环境地址
         // target: 'https://dev.wutongresearch.club/api',
-        // target: 'https://prod.wutongshucloud.com/api',
-        target: 'http://192.168.31.181:8110',
+        target: 'https://prod.wutongshucloud.com/api',
+        // target: 'http://192.168.31.181:8110',
         changeOrigin: true,
         rewrite: (path) => path.replace(/^\/api/, '')
       }