田源
2024-11-05 a5a27e231cb2aa2c2a045df11ad90e5eda547ae9
Source/plt-web/plt-web-ui/src/views/system/user/index.vue
@@ -78,7 +78,8 @@
    </el-dialog>
    <!-- 导入人员   -->
    <upload-file ref="upload" :tipList="tipList" :fileType="upFileType" :fileUrl="fileUrl" title="导入人员" @updata="getTableList"></upload-file>
    <upload-file ref="upload" :fileType="upFileType" :fileUrl="fileUrl" :tipList="tipList" title="导入人员"
                 @updata="getTableList"></upload-file>
    <!-- 分配部门对话框    -->
    <el-dialog
@@ -129,14 +130,14 @@
  name: "userManage",
  data: function () {
    return {
      departSearchObj:{},
      departSearchValue:'',
      departSearchObj: {},
      departSearchValue: '',
      loadKey: 0,
      departStatus: '', // 区分不同方式打开部门对话框
      departCurrenRow: {},
      departOption: {
        ...basicOption,
        addBtn:false,
        addBtn: false,
        rowKey: 'oid',
        rowParentKey: 'parentId',
        selection: false,
@@ -145,12 +146,12 @@
        menu: false,
        refreshBtn: false,
        gridBtn: false,
        header:false,
        header: false,
        column: [
          {
            label: '名称',
            prop: 'name',
            align:'left'
            align: 'left'
          },
          {
            label: '编号',
@@ -192,8 +193,8 @@
      leftRoleData: [],  // 分配角色穿梭框左侧初始数据
      rightRoleData: [], // 分配角色穿梭框右侧初始数据
      transferTitle: ['现有角色', '拥有角色'],
      tipList:["导入模板中标明红色字体的为必输项","部门列上下级关系必须按照反斜杠隔开(/)"],
      lastIndex:null,
      tipList: ["导入模板中标明红色字体的为必输项", "部门列上下级关系必须按照反斜杠隔开(/)"],
      lastIndex: null,
    }
  },
  created() {
@@ -279,8 +280,12 @@
        row,
        this.$refs.userCrud,
        this.lastIndex,
        (newIndex) => { this.lastIndex = newIndex; },
        () => { this.selectList = []; }
        (newIndex) => {
          this.lastIndex = newIndex;
        },
        () => {
          this.selectList = [];
        }
      );
    },
@@ -358,7 +363,7 @@
    },
    // 新增
    rowSaveHandler(row, done,loading) {
    rowSaveHandler(row, done, loading) {
      if (row.password != row.confirmPassword) {
        this.$message.error('请检查两次密码是否输入一致!')
        return this.$refs.userCrud.$refs.dialogForm.$refs.tableForm.allDisabled = false;
@@ -380,7 +385,7 @@
    },
    // 编辑
    rowUpdateHandler(row, index, done,loading) {
    rowUpdateHandler(row, index, done, loading) {
      if (row.password != row.confirmPassword) {
        this.$message.error('请检查两次密码是否输入一致!')
        return this.$refs.userCrud.$refs.dialogForm.$refs.tableForm.allDisabled = false;
@@ -477,8 +482,14 @@
      departmentQueryController({queryAllLevel: true}).then(res => {
        const data = res.data.treeData;
        this.departData = this.departDtaFormAtter(data);
        this.option.column[7].dicData=[{oid:'ALLDept',name:'所有部门',expand:true,disabled:true,children:this.departData}]
        this.option.column[7].defaultExpandedKeys=['ALLDept'];
        this.option.column[7].dicData = [{
          oid: 'ALLDept',
          name: '所有部门',
          expand: true,
          disabled: true,
          children: this.departData
        }]
        this.option.column[7].defaultExpandedKeys = ['ALLDept'];
      }).catch(err => {
        this.$message.error(err);
      })