spring
2025-04-24 9edefe563de10226e322004e21e1db82f7ea227d
src/views/technology/routing/index.vue
@@ -1,91 +1,48 @@
<template>
  <div class="mod-config">
    <basic-container>
      <ttable
        :table="table"
        @handleSelectionChange="handleSelectionChange"
        @customUploadPage="routingImport"
        :uploadInfo="uploadInfo"
        :customUpload="customUpload"
        :prelang="prelang"
        :options="options"
        :ajaxFun="ajaxFun"
        ref="routingTable"
      >
      <ttable :table="table" @handleSelectionChange="handleSelectionChange" @customUploadPage="routingImport"
        :uploadInfo="uploadInfo" :customUpload="customUpload" :prelang="prelang" :options="options" :ajaxFun="ajaxFun"
        ref="routingTable">
        <template #toolbar></template>
      </ttable>
      <el-dialog title="导入" :visible.sync="importRoutingVisible" width="50%">
        <span>
          <div style="display:flex;justify-content:space-around;">
            <div>
              <el-upload
                style="margin-left:8px;display: inline;"
                class="upload-demo"
                drag
                :headers="headers"
                :action="zhuangbeiUploadInfo.url"
                :beforeUpload="beforeAvatarUpload"
                :limit="1"
                :show-file-list="false"
                :file-list="zhuangbeifileList"
                :data="zhuangbeiUploadInfo.uploadData"
                :on-success="zhuangbeiFileSuccessUploadScan"
                :on-error="handleError"
              <el-upload style="margin-left:8px;display: inline;" class="upload-demo" drag :headers="headers"
                :action="zhuangbeiUploadInfo.url" :beforeUpload="beforeAvatarUpload" :limit="1" :show-file-list="false"
                :file-list="zhuangbeifileList" :data="zhuangbeiUploadInfo.uploadData"
                :on-success="zhuangbeiFileSuccessUploadScan" :on-error="handleError"
                accept=".xlsx,.xls,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
                :auto-upload="true"
                ref="zhuangbeiUploadScan"
                multiple
              >
                :auto-upload="true" ref="zhuangbeiUploadScan" multiple>
                <i class="el-icon-upload"></i>
                <div class="el-upload__text"><em>导入装备数据</em></div>
                <div class="el-upload__tip" slot="tip">
                  只能上传xlsx/xls文件,且不超过10M<el-button
                    type="text"
                    style="font-size:12px;"
                    @click="downZhuangbeiDataTemplate"
                    >下载模板</el-button
                  >
                  只能上传xlsx/xls文件,且不超过10M<el-button type="text" style="font-size:12px;"
                    @click="downZhuangbeiDataTemplate">下载模板</el-button>
                </div>
              </el-upload>
            </div>
            <div>
              <el-upload
                style="margin-left:8px;display: inline;"
                class="upload-demo"
                drag
                :headers="headers"
                :action="shepinUploadInfo.url"
                :beforeUpload="beforeAvatarUpload"
                :limit="1"
                :show-file-list="false"
                :file-list="shepinfileList"
                :data="shepinUploadInfo.uploadData"
                :on-success="shepinFileSuccessUploadScan"
                :on-error="handleError"
              <el-upload style="margin-left:8px;display: inline;" class="upload-demo" drag :headers="headers"
                :action="shepinUploadInfo.url" :beforeUpload="beforeAvatarUpload" :limit="1" :show-file-list="false"
                :file-list="shepinfileList" :data="shepinUploadInfo.uploadData"
                :on-success="shepinFileSuccessUploadScan" :on-error="handleError"
                accept=".xlsx,.xls,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
                :auto-upload="true"
                ref="shepinUploadScan"
                multiple
              >
                :auto-upload="true" ref="shepinUploadScan" multiple>
                <i class="el-icon-upload"></i>
                <div class="el-upload__text"><em>导入射频数据</em></div>
                <div class="el-upload__tip" slot="tip">
                  只能上传xlsx/xls文件,且不超过10M<el-button
                    type="text"
                    style="font-size:12px;"
                    @click="downShepinDataTemplate"
                    >下载模板</el-button
                  >
                  只能上传xlsx/xls文件,且不超过10M<el-button type="text" style="font-size:12px;"
                    @click="downShepinDataTemplate">下载模板</el-button>
                </div>
              </el-upload>
            </div>
          </div>
        </span>
      </el-dialog>
      <partDialog
        :currshowlist.sync="showPart"
        @listenToPartEvent="selectPart"
      />
      <partDialog :currshowlist.sync="showPart" @listenToPartEvent="selectPart" />
    </basic-container>
  </div>
</template>
@@ -515,7 +472,7 @@
        return
      }
      this.$router.push({
        name: 'routingForm',
        path: '/technology/routing/routing-form',
        query: { id: row == null ? null : row.id }
      })
    },