王震
2023-12-27 b1dbfd44f6bafaa4d24e0c1c3a0f7ae548e77f60
src/views/technology/structure/index.vue
@@ -6,7 +6,6 @@
        @handleSelectionChange="handleSelectionChange"
        @customUploadPage="structureImport"
        :uploadInfo="uploadInfo"
        :customUpload="customUpload"
        :prelang="prelang"
        :options="options"
        :ajaxFun="ajaxFun"
@@ -19,47 +18,6 @@
          v-if="permissions.technology_structure_copy">复制</el-button>
        </template>
      </ttable>
      <!-- 弹窗, 新增 / 修改 -->
      <el-dialog
        title="导入"
        :visible.sync="importStructureVisible"
        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"
                accept=".xlsx,.xls,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
                :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;"
                    ></el-button
                  >
                </div>
              </el-upload>
            </div>
          </div>
        </span>
      </el-dialog>
    </basic-container>
  </div>
</template>
@@ -98,6 +56,8 @@
      uploadInfo: {
        // 是否展示上传EXCEL以及对应的url
        isShow: true,
        fileName: '产品结构模板',
        download: true,
        url: '/mes/structure/uploadExcelPlus'
      },
      prelang: 'structure',
@@ -268,11 +228,6 @@
        // 是否展示上传EXCEL以及对应的url
        isShow: true,
        url: '/mes/structure/upload'
      },
      zhuangbeiUploadInfo: {
        // 是否展示上传EXCEL以及对应的url
        isShow: true,
        url: '/mes/structure/uploadExcelPlus'
      },
      zhuangbeifileList: [],
      shepinfileList: [],