| | |
| | | <template> |
| | | <div class="userInfo_box"> |
| | | <My-bread :list="[ |
| | | <My-bread |
| | | :list="[ |
| | | `${$t('operatManage.operatManage')}`, |
| | | `${$t('userManage.userManage')}`, |
| | | ]"></My-bread> |
| | | ]" |
| | | ></My-bread> |
| | | <el-divider /> |
| | | |
| | | <div |
| | | class="inquire subpage_Div" |
| | | ref="container" |
| | | > |
| | | <el-form |
| | | ref="queryForm" |
| | | :model="queryForm" |
| | | :inline="true" |
| | | > |
| | | <div class="inquire subpage_Div" ref="container"> |
| | | <el-form ref="queryForm" :model="queryForm" :inline="true"> |
| | | <div class="flex_box"> |
| | | <div style="margin-right: auto"> |
| | | <el-form-item |
| | |
| | | size="small" |
| | | placeholder="请选择" |
| | | style="width: 200px" |
| | | ref="treeSelect" |
| | | > |
| | | <el-option |
| | | :value="queryForm.depid" |
| | |
| | | </el-form> |
| | | </div> |
| | | <div class="dividing-line"></div> |
| | | <div |
| | | class="table_box" |
| | | :style="styleVar" |
| | | > |
| | | <div class="table_box" :style="styleVar"> |
| | | <el-table |
| | | ref="filterTable" |
| | | :data="tableData" |
| | |
| | | height="calc(100% - 45px)" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="55" |
| | | /> |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column |
| | | align="center" |
| | | type="index" |
| | |
| | | :label="$t('userManage.userInfoObj.status')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-tag |
| | | v-if="scope.row.status == 0" |
| | | type="success" |
| | | >正常</el-tag> |
| | | <el-tag |
| | | v-if="scope.row.status == 1" |
| | | type="info" |
| | | >禁用</el-tag> |
| | | <el-tag |
| | | v-if="scope.row.status == 2" |
| | | type="warning" |
| | | >删除</el-tag> |
| | | <el-tag v-if="scope.row.status == 0" type="success">正常</el-tag> |
| | | <el-tag v-if="scope.row.status == 1" type="info">禁用</el-tag> |
| | | <el-tag v-if="scope.row.status == 2" type="warning">删除</el-tag> |
| | | <el-tag v-if="scope.row.status == 3">申请</el-tag> |
| | | <el-tag |
| | | v-if="scope.row.status == 4" |
| | | type="danger" |
| | | >拒批</el-tag> |
| | | <el-tag v-if="scope.row.status == 4" type="danger">拒批</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column |
| | |
| | | plain |
| | | @click="editInfo(scope.row)" |
| | | size="small" |
| | | >{{ $t("common.update") }}</el-button> |
| | | >{{ $t("common.update") }}</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div |
| | | style="margin-top: 10px;" |
| | | class="pagination_box" |
| | | > |
| | | <div style="margin-top: 10px" class="pagination_box"> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | |
| | | ref="editForm" |
| | | :rules="rules" |
| | | style="display: flex" |
| | | |
| | | > |
| | | <div> |
| | | <el-form-item |
| | |
| | | <el-input |
| | | v-model="editForm.uid" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.uid')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.uid') |
| | | " |
| | | ></el-input> |
| | | <div |
| | | class="isNewUser" |
| | | v-if="isNewUser" |
| | | > |
| | | <div class="isNewUser" v-if="isNewUser"> |
| | | <img src="../../assets/img/success.png" /> |
| | | {{ $t("userManage.userInfoObj.uid") }} |
| | | </div> |
| | |
| | | v-model="editForm.uid" |
| | | autocomplete="off" |
| | | disabled |
| | | |
| | | ></el-input> |
| | | </el-form-item> |
| | | <!-- <el-form-item |
| | |
| | | <el-input |
| | | v-model="editForm.uname" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.username')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.username') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | :popper-append-to-body="false" |
| | | v-model="editForm.sex" |
| | | clearable |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetree')+$t('userManage.userInfoObj.sex')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetree') + |
| | | $t('userManage.userInfoObj.sex') |
| | | " |
| | | > |
| | | <el-option |
| | | v-for="item in sexOpt" |
| | |
| | | <el-input |
| | | v-model="editForm.natives" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.nativePlace')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.nativePlace') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="editForm.depid" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetree')+$t('userManage.userInfoObj.depName')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetree') + |
| | | $t('userManage.userInfoObj.depName') |
| | | " |
| | | @focus="setOptionWidth" |
| | | |
| | | > |
| | | <el-option |
| | | :value="editForm.depid" |
| | |
| | | <el-input |
| | | v-model="editForm.idcard" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.identityCard')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.identityCard') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | </div> |
| | |
| | | <el-input |
| | | v-model="editForm.job" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.job')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.job') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <el-input |
| | | v-model="editForm.edu" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.edu')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.edu') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <el-input |
| | | v-model="editForm.addr" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.addr')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.addr') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <el-input |
| | | v-model="editForm.email" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.email')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.email') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <el-input |
| | | v-model="editForm.contact" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.contact')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.contact') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | :popper-append-to-body="false" |
| | | v-model="editForm.status" |
| | | clearable |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetree')+$t('userManage.userInfoObj.status')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetree') + |
| | | $t('userManage.userInfoObj.status') |
| | | " |
| | | > |
| | | <el-option |
| | | v-for="item in statusOpt" |
| | |
| | | <el-input |
| | | v-model="editForm.bak" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.remarks')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.remarks') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | </el-form> |
| | | </div> |
| | | <div |
| | | v-if="behavior == '修改信息'" |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="small" |
| | | type="info" |
| | | @click="cancelEdit()" |
| | | >{{ |
| | | <div v-if="behavior == '修改信息'" slot="footer" class="dialog-footer"> |
| | | <el-button size="small" type="info" @click="cancelEdit()">{{ |
| | | $t("common.reset") |
| | | }}</el-button> |
| | | <el-button |
| | |
| | | type="primary" |
| | | @click="sendEdit('editForm')" |
| | | v-loading.fullscreen.lock="fullscreenLoading" |
| | | >{{ $t("common.submit") }}</el-button> |
| | | </div> |
| | | <div |
| | | v-else |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | >{{ $t("common.submit") }}</el-button |
| | | > |
| | | <el-button |
| | | size="small" |
| | | type="info" |
| | | @click="cancelAdd('editForm')" |
| | | >{{ |
| | | </div> |
| | | <div v-else slot="footer" class="dialog-footer"> |
| | | <el-button size="small" type="info" @click="cancelAdd('editForm')">{{ |
| | | $t("common.reset") |
| | | }}</el-button> |
| | | <el-button |
| | |
| | | type="primary" |
| | | @click="sendAdd('editForm')" |
| | | v-loading.fullscreen.lock="fullscreenLoading" |
| | | >{{ $t("common.submit") }}</el-button> |
| | | >{{ $t("common.submit") }}</el-button |
| | | > |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | |
| | | :before-close="handleClose" |
| | | :close-on-click-modal="false" |
| | | > |
| | | |
| | | <el-form |
| | | :model="pwdForm" |
| | | ref="pwdForm" |
| | |
| | | autocomplete="off" |
| | | show-password |
| | | style="width:85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('common.AdminPassword')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('common.AdminPassword') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | autocomplete="off" |
| | | show-password |
| | | style="width:85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('common.NPassword')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + $t('common.NPassword') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | autocomplete="off" |
| | | show-password |
| | | style="width:85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('common.SPassword')" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + $t('common.SPassword') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <div |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="small" |
| | | type="info" |
| | | @click="cancelReset - 'pwdForm'" |
| | | >{{ |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button size="small" type="info" @click="cancelReset - 'pwdForm'">{{ |
| | | $t("common.reset") |
| | | }}</el-button> |
| | | <el-button |
| | |
| | | type="primary" |
| | | @click="sendReset('pwdForm')" |
| | | v-loading.fullscreen.lock="fullscreenLoading" |
| | | >{{ $t("common.submit") }}</el-button> |
| | | >{{ $t("common.submit") }}</el-button |
| | | > |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | tableHeight: 0, |
| | | timer: 0, |
| | | styleVar: { |
| | | "height": "calc(100% - 109px)", |
| | | height: "calc(100% - 109px)", |
| | | }, |
| | | }; |
| | | }, |
| | | watch: { |
| | | "queryForm.depName"() { |
| | | this.$refs.treeSelect.visible = false; |
| | | }, |
| | | }, |
| | | beforeDestroy() { |
| | | this.timer && clearTimeout(this.timer); |
| | |
| | | }, |
| | | //重置密码 |
| | | editPwd() { |
| | | |
| | | |
| | | var std = []; |
| | | for (var i in this.multipleSelection) { |
| | | std.push(this.multipleSelection[i].id); |
| | |
| | | this.resetPwd = false; |
| | | |
| | | this.getUserInfo(); |
| | | } |
| | | else { |
| | | } else { |
| | | this.$message({ |
| | | message: res.msg, |
| | | type: "error", |
| | |
| | | this.getUserInfo(); |
| | | this.getpublickey(); |
| | | window.addEventListener("resize", this.onResize); |
| | | this.calHeight() |
| | | this.calHeight(); |
| | | }, |
| | | created() { |
| | | var val = this.$store.state.currentPerms; |