疯狂的狮子li
2021-08-30 bdfd2f0787b0a39fb65793a7f57c95f5de09edf4
ruoyi-ui/src/views/system/user/index.vue
@@ -346,7 +346,7 @@
</template>
<script>
import { listUser, getUser, delUser, addUser, updateUser, exportUser, resetUserPwd, changeUserStatus, importTemplate } from "@/api/system/user";
import { listUser, getUser, delUser, addUser, updateUser, resetUserPwd, changeUserStatus } from "@/api/system/user";
import { getToken } from "@/utils/auth";
import { treeselect } from "@/api/system/dept";
import Treeselect from "@riophae/vue-treeselect";
@@ -660,18 +660,7 @@
    },
    /** 导出按钮操作 */
    handleExport() {
      const queryParams = this.queryParams;
      this.$confirm('是否确认导出所有用户数据项?', "警告", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        }).then(() => {
          this.exportLoading = true;
          return exportUser(queryParams);
        }).then(response => {
          this.download(response.msg);
          this.exportLoading = false;
        }).catch(() => {});
      this.downLoadExcel('/system/user/export', this.queryParams);
    },
    /** 导入按钮操作 */
    handleImport() {
@@ -680,9 +669,7 @@
    },
    /** 下载模板操作 */
    importTemplate() {
      importTemplate().then(response => {
        this.download(response.msg);
      });
      this.downLoadExcel('/system/user/importTemplate');
    },
    // 文件上传中处理
    handleFileUploadProgress(event, file, fileList) {