管道基础大数据平台系统开发-【前端】-新系統界面
1
Surpriseplus
2023-02-01 dda0e6f581e8c2b116f2eae53756d80215d6e5e0
src/views/maintenance/userManagement.vue
@@ -43,7 +43,7 @@
            size="small"
            @click="queryInfo()"
            icon="el-icon-search"
            style="background: #409eff; border: 1px solid #409eff; color: white"
            type="primary"
          >{{ $t('operatManage.ELM.search') }}
          </el-button>
        </el-form-item>
@@ -60,6 +60,7 @@
        <br />
        <el-form-item>
          <el-button
            v-if="menuStatus.insert"
            type="success"
            size="small"
            @click="showAddDialog"
@@ -70,6 +71,7 @@
        </el-form-item>
        <el-form-item>
          <el-button
            v-if="menuStatus.delete"
            type="danger"
            size="small"
            @click="deleteUserInfo"
@@ -80,6 +82,7 @@
        </el-form-item>
        <el-form-item v-show="setbatchFlag">
          <el-button
            v-if="menuStatus.update"
            size="small"
            @click="editPwd"
            type="warning"
@@ -213,22 +216,22 @@
          width="200px"
          :label="$t('userManage.userInfoObj.bak')"
        />
        <el-table-column
        <!-- <el-table-column
          :label="$t('common.operate')"
          width="80px"
          fixed="right"
          v-if="menuStatus.update"
        >
          <template slot-scope="scope">
            <!-- <el-button type="primary" size="small">修改</el-button> -->
            <el-button
              type="warning"
              plain
              @click="editInfo(scope.row)"
              size="mini"
              size="small"
            >{{ $t('common.edit') }}</el-button>
          </template>
        </el-table-column>
        </el-table-column> -->
      </el-table>
      <div
        style="margin-top: 25px"
@@ -493,15 +496,15 @@
        class="dialog-footer"
      >
        <el-button
          size="medium"
          size="small"
          type="info"
          @click="cancelEdit()"
        >{{
          $t('common.reset')
        }}</el-button>
        <el-button
          size="medium"
          style="background: #409eff; border: 1px solid #409eff; color: white"
          size="small"
          type="primary"
          @click="sendEdit('editForm')"
          v-loading.fullscreen.lock="fullscreenLoading"
        >{{ $t('common.submit') }}</el-button>
@@ -512,15 +515,15 @@
        class="dialog-footer"
      >
        <el-button
          size="medium"
          size="small"
          type="info"
          @click="cancelAdd('editForm')"
        >{{
          $t('common.reset')
        }}</el-button>
        <el-button
          size="medium"
          style="background: #409eff; border: 1px solid #409eff; color: white"
          size="small"
          type="primary"
          @click="sendAdd('editForm')"
          v-loading.fullscreen.lock="fullscreenLoading"
        >{{ $t('common.submit') }}</el-button>
@@ -580,15 +583,15 @@
        class="dialog-footer"
      >
        <el-button
          size="medium"
          size="small"
          type="info"
          @click="cancelReset - 'pwdForm'"
        >{{
          $t('common.reset')
        }}</el-button>
        <el-button
          size="medium"
          style="background: #409eff; border: 1px solid #409eff; color: white"
          size="small"
          type="primary"
          @click="sendReset('pwdForm')"
          v-loading.fullscreen.lock="fullscreenLoading"
        >{{ $t('common.submit') }}</el-button>
@@ -839,6 +842,8 @@
  methods: {
    ...mapActions(['login', 'getpublickey']),
    getUserInfo() {
      this.pageSize = 10;
      this.currentPage = 1;
      queryDepTree()
        .then((res) => {
          if (res.code == 200) {
@@ -1026,7 +1031,7 @@
              setTimeout(() => {
                this.fullscreenLoading = false;
                if (res.code == 200) {
                  this.$message({
                    message: '修改成功',
                    type: 'success',
@@ -1039,7 +1044,8 @@
                  };
                  this.multipleSelection = [];
                  this.resetPwd = false;
                   this.getUserInfo();
                  this.getUserInfo();
                }
              }, 500);
            })
@@ -1056,7 +1062,7 @@
    editInfo(row) {
      delete row.updateTime;
      delete row.updateUser;
      this.initialForm = JSON.stringify(row);
      this.behavior = '修改信息';
      this.editForm = JSON.parse(JSON.stringify(row));