wangting
2023-06-21 b68fe6af98e37409010e16c93f312d825f6276a3
附件列表上传、修改
已修改2个文件
23 ■■■■ 文件已修改
Source/UBCS-WEB/src/api/resource/file.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/file/main.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/api/resource/file.js
@@ -12,11 +12,12 @@
  })
}
export const remove = (oids) => {
export const remove = (fileOids,oids) => {
  return request({
    url: '/api/ubcs-resource/fileController/deleteFile',
    method: 'delete',
    params: {
      fileOids,
      oids
    }
  })
Source/UBCS-WEB/src/components/file/main.vue
@@ -353,17 +353,13 @@
      done();
    },
    uploadAfter(res, done, loading, column) {
      if(res.success){
        this.attachBox = false;
        this.$message.success('文件上传成功')
      }else{
        this.$message.error(res.msg);
      }
      this.attachBox = false;
      this.$message.success('文件上传成功')
      this.refreshChange();
      done();
    },
    uploadError(error, column) {
      this.$message.error('上传文件出现了异常')
      this.$message.error(error || '上传文件出现了异常')
    },
    handleDownload(row) {
      //window.open(`${row.link}`);
@@ -384,7 +380,7 @@
        type: "warning"
      })
        .then(() => {
          return remove(row.oid);
          return remove(row.oid,row.oid);
        })
        .then(() => {
          this.onLoad(this.page);
@@ -405,7 +401,7 @@
        type: "warning"
      })
        .then(() => {
          return remove(this.oids);
          return remove(this.oids,this.oids);
        })
        .then(() => {
          this.onLoad(this.page);
@@ -461,7 +457,7 @@
      getList(page.currentPage, page.pageSize, Object.assign(params,this.params, query,this.query)).then(res => {
        const data = res.data.data;
        this.page.total = data.total;
        if(data && data.records.length>0 && this.options.fileDocClassifyCombox){
        if(this.options.fileDocClassifyCombox){
          this.data = data.records.map(item => {
            if(validatenull(item.fileDocClassifyName)&& !validatenull(item.fileDocClassify)){
              item.fileDocClassifyName = this.options.fileDocClassifyCombox[item.fileDocClassify] || '';
@@ -470,8 +466,10 @@
              ...item
            }
          })
        }else{
          this.data = data.records;
        }
        //this.data = data.records;
        this.loading = false;
        this.selectionClear();
      }).catch(error=>{