浏览代码

PSSR短接附件方法

jiangbiao 9 月之前
父节点
当前提交
32f883f05e
共有 1 个文件被更改,包括 16 次插入1 次删除
  1. 16 1
      ui/src/views/pssr/circuit/index.vue

+ 16 - 1
ui/src/views/pssr/circuit/index.vue

@@ -563,6 +563,7 @@ import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import {listUserNoPage} from "@/api/system/user";
 import {doApprove} from "@/api/pssr/approve";
+import {listFile} from "@/api/pssr/file";
 
 export default {
   dicts:['pssr_approve_status'],
@@ -872,7 +873,21 @@ export default {
         }
       }
     },
-
+    /** 报告附件按钮操作 */
+    handleDoc(row) {
+      this.doc.fileList=[]
+      this.doc.open = true;
+      this.doc.queryParams.itemId = row.id
+      this.getFileList()
+    },
+    getFileList() {
+      listFile(this.doc.queryParams).then(response => {
+        this.doc.fileList = response.rows;
+        this.doc.fileList.forEach(item => {
+          item.fileUrl = process.env.VUE_APP_BASE_API + item.fileUrl;
+        });
+      });
+    },
     reasonCancel() {
       this.reason.open = false;
     },