liuyg
2021-09-26 3acd33943d3e168d009e1e008ab8a25771be8943
保安公司  单位信息  修改 强行使用dept_id
5 files modified
23 ■■■■■ changed files
src/views/securityGuard/securityGuard.vue 10 ●●●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuardDetail.vue 2 ●●● patch | view | raw | blame | history
src/views/securityUnitChild/index.vue 4 ●●●● patch | view | raw | blame | history
src/views/system/user.vue 3 ●●●● patch | view | raw | blame | history
vue.config.js 4 ●●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuard.vue
@@ -477,7 +477,7 @@
        align: "center",
        index: true,
        delBtnText: "注销",
        menuWidth: 271,
        menuWidth: 327,
        selection: true,
        viewBtn: true,
        defaultExpandAll: true,
@@ -765,11 +765,13 @@
                  //   value: 3,
                  // },
                ],
                rules: [{
                rules: [
                  {
                    required: true,
                    message: "请选择性别",
                    trigger: "blur"
                }]
                    trigger: "blur",
                  },
                ],
              },
              // {
              //   label: "生日",
src/views/securityGuard/securityGuardDetail.vue
@@ -155,7 +155,7 @@
          },
          {
            // icon: "el-icon-info",
            label: "保安员证书",
            label: "上岗证",
            prop: "tab5",
          },
        ],
src/views/securityUnitChild/index.vue
@@ -435,6 +435,9 @@
  },
  methods: {
    submit0(row, done, loading) {
      if (this.userInfo.role_name == "保安公司管理员") {
        row["departmentid"] = this.userInfo.dept_id;
      }
      console.log(row);
      update(row).then(
        () => {
@@ -444,6 +447,7 @@
            type: "success",
            message: "操作成功!",
          });
          this.onloads();
          done();
        },
        (error) => {
src/views/system/user.vue
@@ -99,7 +99,7 @@
            <el-tag>{{ row.roleName }}</el-tag>
          </template>
          <template slot-scope="{ row }" slot="deptName">
            <el-tag>{{ row.deptName }}</el-tag>
            <el-tag>{{ row.deptName.split(",").join(" ,") }}</el-tag>
          </template>
          <template slot-scope="{ row }" slot="userTypeName">
            <el-tag>{{ row.userTypeName }}</el-tag>
@@ -306,6 +306,7 @@
            label: "登录账号",
            prop: "account",
            search: true,
            width: 190,
            display: false,
          },
          {
vue.config.js
@@ -28,10 +28,10 @@
            '/api': {
                // 本地服务接口地址
                // target: 'http://localhost:81',
                // target: 'http://192.168.0.114:81',//钟日健W
                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.112:81',//唐N
                // target: 'http://192.168.0.110:81',//唐N
                // target: 'http://223.82.109.183:81',//唐N
                //远程演示服务地址,可用于直接启动项目
                ws: true,