田源
2024-02-28 f7f7e63ffe9d65b1413dad79ca363b84f9ee4401
附件列表表格初始化以及按钮
已修改2个文件
57 ■■■■ 文件已修改
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/file/main.vue 55 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -439,6 +439,8 @@
            fileDocClassifyName: '',
            hasDownload: true,
            hasUpload: true,
            hasEdit:true,
            hasDel:true,
            height: 'auto'
          }
        } else {
Source/UBCS-WEB/src/components/file/main.vue
@@ -1,13 +1,13 @@
<template>
  <basic-container>
    <avue-crud :option="option"
      :table-loading="loading"
      :data="data"
      :page.sync="page"
      :before-open="beforeOpen"
      :permission="permissionList"
    <avue-crud ref="crud"
      v-model="form"
      ref="crud"
               :before-open="beforeOpen"
               :data="data"
               :option="option"
               :page.sync="page"
               :permission="permissionList"
               :table-loading="loading"
      @row-del="rowDel"
      @search-change="searchChange"
      @search-reset="searchReset"
@@ -18,44 +18,45 @@
      @refresh-change="refreshChange"
      @on-load="onLoad">
      <template slot="menuLeft">
        <el-button v-if="hasUpload" type="primary"
                   size="small"
        <el-button v-if="hasUpload" icon="el-icon-upload2"
                   plain
                   icon="el-icon-upload2"
                   size="small"
                   type="primary"
                   @click="handleUpload">上 传
        </el-button>
        <el-button v-if="hasEdit" type="primary"
                   size="small"
        <el-button v-if="hasEdit" icon="el-icon-edit"
                   plain
                   icon="el-icon-edit"
                   size="small"
                   type="primary"
                   @click="handleEdit">修 改
        </el-button>
        <el-button  v-if="hasDownload" type="primary"
                    size="small"
                    icon="el-icon-download"
        <el-button v-if="hasDownload" icon="el-icon-download"
                    plain
                   size="small"
                   type="primary"
                    @click="handleDownload">下 载
        </el-button>
        <el-button  v-if="hasDel" type="danger"
                   size="small"
                   icon="el-icon-delete"
        <el-button v-if="hasDel" icon="el-icon-delete"
                   plain
                   size="small"
                   type="danger"
                   @click="handleDelete">删 除
        </el-button>
      </template>
      <template slot-scope="scope" slot="menu">
        <el-button v-if="hasDownload" type="text"
                   icon="el-icon-download"
      <template slot="menu" slot-scope="scope">
        <el-button v-if="hasDownload" icon="el-icon-download"
                   size="small"
                   type="text"
                   @click="handleDownload(scope.row)">下载
        </el-button>
      </template>
    </avue-crud>
    <el-dialog title="附件管理"
    <el-dialog :visible.sync="attachBox"
               append-to-body
               :visible.sync="attachBox"
               title="附件管理"
               width="555px">
      <avue-form ref="form" :option="attachOption" v-model="attachForm" :upload-before="uploadBefore"  :upload-after="uploadAfter" :upload-error="uploadError">
      <avue-form ref="form" v-model="attachForm" :option="attachOption" :upload-after="uploadAfter"
                 :upload-before="uploadBefore" :upload-error="uploadError">
      </avue-form>
    </el-dialog>
  </basic-container>
@@ -83,6 +84,7 @@
      },
      attachBox: false,
      selectionList: [],
      //默认为null全部是true
      hasUpload:validatenull(this.options.hasUpload) ? true :this.options.hasUpload,
      hasEdit:validatenull(this.options.hasEdit) ? true :this.options.hasEdit,
      hasDel:validatenull(this.options.hasDel) ? true :this.options.hasDel,
@@ -96,6 +98,7 @@
        border: true,
        index: true,
        viewBtn: true,
        refreshBtn: false,
        selection: true,
        dialogClickModal: false,
        column: [
@@ -238,7 +241,7 @@
    ownbizOid(val){
      this.setParams()
      this.refreshChange()
    }
    },
  },
  methods: {
    setFormItem(){