zhanghua
2022-11-16 129e151f68e215ff592bb36ef52eb1ed5c15740d
src/views/systemSetting/platform/cockpitManage/index.vue
@@ -30,7 +30,6 @@
                        :http-request="importTable"
                        :show-file-list="false"
                        :auto-upload="true"
                        multiple
                        :limit="1">
                      <el-button type="primary">导入</el-button>
                    </el-upload>
@@ -162,6 +161,7 @@
            unsame: false,
            myIdx: 0,
            preMyIdx: 0,
            file: null,
            options: [
                {
                    value: 0,
@@ -246,7 +246,9 @@
        // 导入
        importTable(file) {
          importTeamInfo(file.file)
          const formData = new FormData();
          formData.append('file', file.file);
          importTeamInfo(formData)
              .then(() => {
                  this.$message({ type: 'success', message: '操作成功' });
                  this.getDepartmentList();
@@ -254,6 +256,7 @@
              })
              .catch(err => {
                this.$message({ type: 'error', message: err });
                this.$refs.uploadFile.clearFiles();
              });
        },