futian.liu
2023-12-21 d80f3300905b7c4fffed59d8fa78491065aa181b
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 {
@@ -59,9 +58,8 @@
      // 搜索条件
      filterFrom: {
        tenantCode: 0,
        trnantId: 0,
        userName: null,
        userPhone: null,
        userCode: null,
      },
      curOrgId: null,
      // 添加&编辑设置
@@ -107,18 +105,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 +145,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 +235,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) {
@@ -292,7 +291,7 @@
    reset() {
      this.filterFrom.tenantCode = null;
      this.filterFrom.userName = null;
      this.filterFrom.userPhone = null;
      this.filterFrom.userCode = null;
      this.filterFrom.status = 1;
      this.search(1);
    },