chenrui
2025-03-13 c4cfd5c566d137fb60781b8b2e0057d11cf4b051
src/views/CNAS/resourceDemand/device/component/files.vue
@@ -157,7 +157,7 @@
        </el-col>
      </el-row>
      <h4 style="margin-bottom: 10px;margin-top: 10px;"><span class="line"></span><span>附件和相关文档</span></h4>
      <el-table height="200px" :data="tableDataA">
      <el-table height="200px" :data="tableDataA" :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border>
        <el-table-column header-align="center" align="center" prop="prop" label="序号" type="index" width="60" />
        <el-table-column prop="documentType" label="类型" min-width="100">
          <template v-slot="scope">
@@ -446,7 +446,6 @@
<script>
import { MessageBox } from 'element-ui'
import ValueTable from "@/components/Table/value-table.vue";
import fileDownload from '@/utils/file'
import vueQr from 'vue-qr'
import PrintJS from 'print-js'
@@ -484,7 +483,6 @@
    }
  },
  components: {
    ValueTable,
    vueQr
  },
  data() {
@@ -618,7 +616,7 @@
    handleAttachmentClick(row) {
      console.log(row)
      if (row.fileName) {
        this.$download.downloadFileFromUrl(row.fileName)
        this.$download.saveAs(row.fileName)
      } else {
        this.$message.warning('未上传文件!')
      }
@@ -780,10 +778,6 @@
      }
      this.upLoad = true;
      upDeviceParameter(formData).then(res => {
        if (res.code === 201) {
          this.upLoad = false
          return
        }
        this.$message.success('修改成功')
        this.upLoad = false
        this.getList(this.clickNodeVal.value)
@@ -907,7 +901,7 @@
<style scoped>
.main_div {
  height: calc(100vh - 15em);
  height: calc(100vh - 19em);
  overflow-y: auto;
  overflow-x: hidden;
}