管道基础大数据平台系统开发-【前端】-新系統界面
584911253@qq.com
2023-03-10 eb6cfd90fd89f11263146dc4c38069c8a4845fab
src/views/maintenance/userManagement.vue
@@ -18,21 +18,13 @@
        <div class="flex_box">
          <div style="margin-right: auto">
            <el-form-item
              prop="uname"
              :label="$t('userManage.userInfoObj.uname')"
            >
              <el-input
                v-model="queryForm.uname"
                style="width: 200px"
              />
            </el-form-item>
            <el-form-item
              prop="depid"
              :label="$t('userManage.userInfoObj.depName')"
            >
              <el-select
                :popper-append-to-body="false"
                v-model="queryForm.depName"
                size="small"
                placeholder="请选择"
                style="width: 200px"
              >
@@ -51,26 +43,40 @@
                </el-option>
              </el-select>
            </el-form-item>
            <el-form-item
                prop="uname"
                :label="$t('userManage.userInfoObj.uname')"
            >
              <el-input
                  v-model="queryForm.uname"
                  size="small"
                  :placeholder="$t('userManage.userInfoObj.unamePlaceholder')"
                  style="width: 200px"
              >
                <i slot="suffix" class="el-icon-search" @click="queryInfo"></i>
              </el-input>
            </el-form-item>
          </div>
          <div>
<!--            <el-form-item>-->
<!--              <el-button-->
<!--                type="primary"-->
<!--                size="small"-->
<!--                @click="queryInfo('queryForm')"-->
<!--                icon="el-icon-search"-->
<!--              >-->
<!--                {{ $t("operatManage.ELM.search") }}-->
<!--              </el-button>-->
<!--            </el-form-item>-->
            <el-form-item>
              <el-button
                type="primary"
                size="small"
                @click="queryInfo('queryForm')"
                icon="el-icon-search"
                  v-if="menuStatus.insert"
                  type="success"
                  size="small"
                  @click="showAddDialog"
                  icon="el-icon-plus"
              >
                {{ $t("operatManage.ELM.search") }}
              </el-button>
            </el-form-item>
            <el-form-item>
              <el-button
                type="info"
                size="small"
                @click="resetInfo('queryForm')"
                icon="el-icon-refresh"
              >
                {{ $t("operatManage.ELM.reset") }}
                {{ $t("common.append") }}
              </el-button>
            </el-form-item>
            <el-form-item v-show="setbatchFlag">
@@ -96,19 +102,19 @@
            </el-form-item>
            <el-form-item>
              <el-button
                v-if="menuStatus.insert"
                type="success"
                size="small"
                @click="showAddDialog"
                icon="el-icon-plus"
                  type="info"
                  size="small"
                  @click="resetInfo('queryForm')"
                  icon="el-icon-refresh"
              >
                {{ $t("common.append") }}
                {{ $t("operatManage.ELM.reset") }}
              </el-button>
            </el-form-item>
          </div>
        </div>
      </el-form>
    </div>
    <div class="dividing-line"></div>
    <div
      class="table_box"
      :style="styleVar"
@@ -117,8 +123,9 @@
        ref="filterTable"
        :data="tableData"
        style="width: 100%"
        border
        class="table_height"
        height="calc(100% - 57px)"
        height="calc(100% - 45px)"
        @selection-change="handleSelectionChange"
      >
        <el-table-column
@@ -227,7 +234,7 @@
        <!-- <el-table-column
          align="center"
          prop="bak"
          :label="$t('userManage.userInfoObj.bak')"
        /> -->
        <el-table-column
@@ -246,7 +253,7 @@
        </el-table-column>
      </el-table>
      <div
        style="margin-top: 25px"
        style="margin-top: 10px;"
        class="pagination_box"
      >
        <el-pagination
@@ -264,7 +271,6 @@
    <el-dialog
      width="910px"
      top="15vh"
      :title="
        behavior == '新增用户'
          ? `${$t('common.append')}`
@@ -272,12 +278,15 @@
      "
      :visible.sync="dialogFormVisible"
      :before-close="handleClose"
      :close-on-click-modal="false"
    >
     <div style="height: 500px; overflow: auto">
      <el-form
        :model="editForm"
        ref="editForm"
        :rules="rules"
        style="display: flex"
      >
        <div>
          <el-form-item
@@ -526,6 +535,7 @@
          </el-form-item>
        </div>
      </el-form>
       </div>
      <div
        v-if="behavior == '修改信息'"
        slot="footer"
@@ -566,16 +576,17 @@
      </div>
    </el-dialog>
    <el-dialog
      width="520px"
      top="30vh"
      :title="$t('common.changepassWord')"
      :visible.sync="resetPwd"
      :before-close="handleClose"
      :close-on-click-modal="false"
    >
      <el-form
        :model="pwdForm"
        ref="pwdForm"
        :rules="rules"
        label-position="top"
      >
        <el-form-item
          prop="adminPwd"
@@ -587,6 +598,7 @@
            v-model="pwdForm.adminPwd"
            autocomplete="off"
            show-password
            style="width:85%"
          ></el-input>
        </el-form-item>
        <el-form-item
@@ -599,6 +611,7 @@
            v-model="pwdForm.newPwd"
            autocomplete="off"
            show-password
            style="width:85%"
          ></el-input>
        </el-form-item>
        <el-form-item
@@ -611,9 +624,11 @@
            v-model="pwdForm.checkPwd"
            autocomplete="off"
            show-password
            style="width:85%"
          ></el-input>
        </el-form-item>
      </el-form>
      <div
        slot="footer"
        class="dialog-footer"
@@ -909,7 +924,7 @@
      this.$nextTick(() => {
        const rect = this.$refs.container.getBoundingClientRect();
        this.tableHeight = `${rect.height + 97}px`;
        this.styleVar["height"] = `calc(100% - ${rect.height + 97}px)`;
        this.styleVar["height"] = `calc(100% - ${rect.height + 30}px)`;
      });
    },
    ...mapActions(["login", "getpublickey"]),
@@ -961,14 +976,14 @@
    },
    handleNodeClickto(data, node, nodeData) {
      this.queryForm.depid = data.id;
      this.queryForm.depid = data.code;
      this.queryForm.depName = data.name;
    },
    //搜索按钮
    queryInfo() {
      let searchData = {
        uname: this.queryForm.uname.trim(),
        depid: this.queryForm.depid,
        depcode: this.queryForm.depid,
        pageIndex: this.pageIndex,
        pageSize: this.pageSize,
      };
@@ -1133,6 +1148,12 @@
                  this.resetPwd = false;
                  this.getUserInfo();
                }
                else {
                  this.$message({
                    message: res.msg,
                    type: "error",
                  });
                }
              }, 500);
            })
@@ -1311,13 +1332,13 @@
  },
};
</script>
<style lang="less" scoped>
//@import url(); 引入公共css类
.userInfo_box {
  height: 98%;
  width: 98%;
  padding: 1%;
  padding: 0.5%;
  .el-input {
    width: 300px;
@@ -1326,12 +1347,12 @@
    position: relative;
    height: auto;
    padding: 8px;
    margin-top: 20px;
    //padding: 10px;
    //margin-top: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    //margin-bottom: 20px;
    .el-form-item {
      margin: 5px;
    }
@@ -1365,4 +1386,4 @@
  }
}
</style>