xiangpei
2024-09-02 b826ed55c3d0265dc7db50c933819b20e2e66cc8
登录修改密码优化
3个文件已修改
38 ■■■■■ 已修改文件
src/components/RightToolbar/index.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/unit/index.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/RightToolbar/index.vue
@@ -115,7 +115,9 @@
    }
  },
  created() {
    this.getDyColumn()
    if (this.$route.path.concat("equipment")) {
      this.getDyColumn()
    }
    if (this.showColumnsType == 'transfer') {
      // 显隐列初始默认隐藏列
      for (let item in this.columns) {
@@ -127,15 +129,13 @@
  },
  methods: {
    getDyColumn() {
      if (this.$route.path.concat("equipment")) {
        // 查询动态列
        let params = {
          tableName: 't_monitor'
        }
        getDynamicColumnList(params).then(res => {
          this.dynamicColumnList = res.data
        })
      // 查询动态列
      let params = {
        tableName: 't_monitor'
      }
      getDynamicColumnList(params).then(res => {
        this.dynamicColumnList = res.data
      })
    },
    addDynamicColumn() {
      this.showDynamicColumn = true
src/views/login.vue
@@ -49,13 +49,10 @@
            </el-form-item>
          </el-form>
        </div>
        <el-dialog title="为了您的账号安全,首次登陆请修改密码" :visible.sync="loginInfo.firstLogin == 0">
        <el-dialog title="为了您的账号安全,首次登陆请修改密码" :modal="false" width="500px" :visible.sync="loginInfo.firstLogin == 0">
          <el-form>
            <el-form-item label="新密码">
              <el-input v-model="newPassword" autocomplete="off"></el-input>
            </el-form-item>
            <el-form-item label="请确认密码">
              <el-input v-model="confirmPassword" autocomplete="off"></el-input>
              <el-input v-model="newPassword" show-password autocomplete="off"></el-input>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
src/views/system/unit/index.vue
@@ -129,7 +129,10 @@
          <el-input v-model="form.unitName" placeholder="请输入单位名称" />
        </el-form-item>
        <el-form-item label="单位账号" prop="unitAdminAccount">
          <el-input v-model="form.unitAdminAccount" placeholder="请输入单位管理员账号" :disabled="account" />
          <el-input v-model="form.unitAdminAccount" placeholder="请输入单位账号" :disabled="account" />
        </el-form-item>
        <el-form-item label="账号密码" prop="password">
          <el-input v-model="form.password" placeholder="请输入单位账号密码" :disabled="account" />
        </el-form-item>
        <el-form-item label="单位联系人" prop="unitContact">
          <el-input v-model="form.unitContact" placeholder="请输入单位联系人" />
@@ -204,8 +207,11 @@
          { required: true, message: "单位联系人电话不能为空", trigger: "blur" }
        ],
        unitAdminAccount: [
          { required: true, message: "单位管理员账号不能为空", trigger: "blur" }
          { required: true, message: "单位账号不能为空", trigger: "blur" }
        ],
        password: [
          { required: true, message: "单位账号密码不能为空", trigger: "blur" }
        ]
      }
    };
  },
@@ -257,7 +263,8 @@
        remark: null,
        createTime: null,
        updateTime: null,
        deleted: null
        deleted: null,
        password: null,
      };
      this.resetForm("form");
    },