futian.liu
2023-12-13 2d02dee9812ff906c0a5db97a5d04154bf54fa3f
admin-web/src/views/systemManger/server/user/index.vue
@@ -44,7 +44,6 @@
import edit from './edit';
import editRole from './editRole';
import * as finsystenant from '@/api/baseSetting/finsystenant';
import * as DateFormatter from '@/utils/DateFormatter';
import * as user from '@/api/user';
export default {
@@ -107,18 +106,11 @@
        },
        // 列信息
        columns: [
          { title: '人员姓名', field: 'userName', align: 'left' },
          { title: '员工编号', field: 'userCode', align: 'left' },
          { title: '手机号', field: 'userPhone', align: 'center', width: 150 },
          {
            title: '创建时间',
            field: 'createTime',
            align: 'center',
            width: 200,
            formatter: (row) => {
              return { value: DateFormatter.LongToDateTime(row.createTime) };
            },
          },
          { title: '编号', field: 'userCode', align: 'left' },
          { title: '用户姓名', field: 'userName', align: 'left' },
          { title: '登录名', field: 'userPhone', align: 'center' },
          { title: '所属机构', field: 'tenantName', align: 'center', width: 150 },
          { title: '部门', field: 'sysDeptName', align: 'center' },
          {
            field: 'status',
            title: '状态',
@@ -154,15 +146,15 @@
          width: '250', // 列宽
          attr: [
            {
              title: '角色',
              events: (row) => {
                this.showEditRole(row.id);
              },
            },
            {
              title: '编辑',
              events: (row) => {
                this.showAdd(row.id);
              },
            },
            {
              title: '角色',
              events: (row) => {
                this.showEditRole(row.id);
              },
            },
            {
@@ -244,13 +236,21 @@
      this.$modal
        .confirm('是否确认初始化名称为"' + row.userName + '"的密码?')
        .then(function () {
          user.updPassWord(row).then((res) => {});
          user.updPassWord(row).then((res) => {
          });
        })
        .then((res) => {
          this.$message.success('初始化密码成功!');
          this.$modal
            .confirm('初始化密码成功,新密码为:123456')
            .then((res) => {
            })
            .catch(() => {
            });
          this.search();
        })
        .catch(() => {});
        .catch(() => {
        });
    },
    // 查询table列表
    search(pageNum) {