钟日健
2021-09-26 004bf9ce66914e1d90261a35b8374b9c6dbf2886
保安员批量导入修改
2 files modified
18 ■■■■ changed files
src/views/securityGuard/securityGuard.vue 14 ●●●●● patch | view | raw | blame | history
vue.config.js 4 ●●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuard.vue
@@ -310,6 +310,7 @@
import { mapState } from "vuex";
export default {
  data() {
    const validatePass = (rule, value, callback) => {
      if (value === "") {
@@ -351,6 +352,8 @@
        callback();
      }
    };
    console.log(this.userInfo,123);
    return {
      securityid: "",
      excelBox1: false,
@@ -372,7 +375,7 @@
              res: "data",
            },
            tip: "请上传 .xls,.xlsx 标准格式文件",
            action: "/api/blade-user/import-user",
            action: "/api/blade-user/import-user?deptId="+this.deptIds,
          },
          {
            label: "模板下载",
@@ -420,6 +423,7 @@
      },
      roleId: "1412226235153731586",
      deptId: "1413470343230877697",
      deptIds:"",
      platformPage: {
        pageSize: 10,
        currentPage: 1,
@@ -967,6 +971,7 @@
    }
    console.log(this.search, 111);
    this.search["status"] = 1;
    this.deptIds = this.userInfo.dept_id;
  },
  methods: {
    handleImport1() {
@@ -1362,6 +1367,13 @@
            that.isSecurity = false;
            //如果是保安公司管理员
            params["deptId"] = that.userInfo.dept_id;
            //导入action 修改
            const importColumn = that.findObject(that.excelOption1.column, "excelFile");
            importColumn.action =
              "/api/blade-user/import-user?deptId="+this.deptIds;
          } else if (roleAlias == "公安管理员") {
            params["jurisdiction"] = that.userInfo.jurisdiction;
            var columnDept = that.findObject(that.option.column, "deptId");
vue.config.js
@@ -27,8 +27,8 @@
        proxy: {
            '/api': {
                // 本地服务接口地址
                // target: 'http://localhost:81',
                target: 'http://192.168.0.114:81',//钟日健W
                target: 'http://localhost:81',
                // target: 'http://192.168.0.114:81',//钟日健W
                // target: 'http://localhost:81', //原W
                // target: 'http://192.168.0.108:81',//原W
                // target: 'http://192.168.0.110:81',//唐N