yangys
2025-09-22 b14bf62abb3480d95beee8314fcb08c0d893813b
src/views/flowmgr/backImport1.vue
@@ -4,8 +4,8 @@
      @selection-change="selectionChange">
      <template #menu-left>
        <div style="display: flex;">
          <el-button type="primary" size="default" icon="el-icon-circle-plus" @click="importData">导入</el-button>
          <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleWarehouse"
          <el-button type="primary" size="default" icon="el-icon-upload" @click="importData">导入</el-button>
          <el-button type="primary" :disabled="this.selection.length==0" size="default" icon="el-icon-checked" plain @click="handleWarehouse"
            style="margin-left: 12px;">入库</el-button>
        </div>
      </template>
@@ -15,15 +15,15 @@
    </avue-crud>
    <el-dialog title="工控网文件导入" append-to-body v-model="excelBox" width="555px">
      <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter" :upload-error="uploadError">
        <!-- <template #excelTemplate>
        <!-- <template #excelTemplate> icon="el-icon-circle-plus"
          <el-button type="primary" @click="handleTemplate">
            点击下载<i class="el-icon-download el-icon--right"></i>
          </el-button>
        </template> -->
      </avue-form>
    </el-dialog>
    <el-dialog title="文件名称" append-to-body v-model="fileViewModel">
      <el-table :data="tableData" border @row-click="showContent" max-height="200" highlight-current-row>
    <el-dialog title="查看文件" append-to-body v-model="fileViewModel">
      <el-table :data="tableData" ref="filesTable" border @row-click="showContent" max-height="200" highlight-current-row>
        <el-table-column type="index" label="#" width="40" align="center"/>
        <el-table-column prop="name" label="程序名称"></el-table-column>
      </el-table>
@@ -56,21 +56,17 @@
        menu: true,
        selection: true,
        column: [
          {
          /*{
            label: '程序编号',
            prop: 'programNo'
          },
          },*/
          {
            label: '程序名称',
            label: '程序包名',
            prop: 'programName',
          },
          {
            label: '文件到达时间',
            prop: 'fileBackTime',
          },
          {
            label: '文件数据库编号',
            prop: 'id',
          },
        ],
      },
@@ -99,7 +95,6 @@
  },
  methods: {
    showContent(row, column, event) {
      console.log(row,111)
      axios({
        url: '/blade-mdm/program/dncsendback/back-file-content',
        method: 'get',
@@ -117,6 +112,11 @@
    fileView(row) {
      this.tableData = row.files;
      this.fileViewModel = true;
      if(this.tableData.length > 0){
        this.showContent(this.tableData[0])
        this.$refs.filesTable.setCurrentRow(this.tableData[0]);
      }
    },
    selectionChange(selection) {
      this.selection = selection;