| | |
| | | <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-select> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="uname" |
| | | :label="$t('userManage.userInfoObj.uname')" |
| | | prop="uname" |
| | | :label="$t('userManage.userInfoObj.uname')" |
| | | > |
| | | <el-input |
| | | v-model="queryForm.uname" |
| | | size="small" |
| | | :placeholder="$t('userManage.userInfoObj.unamePlaceholder')" |
| | | style="width: 200px" |
| | | 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"--> |
| | | <!-- >--> |
| | | <!-- {{ $t("operatManage.ELM.search") }}--> |
| | | <!-- </el-button>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item> |
| | | <el-button |
| | | v-if="menuStatus.insert" |
| | | type="success" |
| | | size="small" |
| | | @click="showAddDialog" |
| | | icon="el-icon-plus" |
| | | v-if="menuStatus.insert" |
| | | type="success" |
| | | size="small" |
| | | @click="showAddDialog" |
| | | icon="el-icon-plus" |
| | | > |
| | | {{ $t("common.append") }} |
| | | </el-button> |
| | |
| | | @click="editPwd" |
| | | type="warning" |
| | | icon="el-icon-unlock" |
| | | >{{ $t("common.changepassWord") }} |
| | | >{{ $t("common.changepassWord") }} |
| | | </el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="resetInfo('queryForm')" |
| | | icon="el-icon-refresh" |
| | | type="info" |
| | | size="small" |
| | | @click="resetInfo('queryForm')" |
| | | icon="el-icon-refresh" |
| | | > |
| | | {{ $t("operatManage.ELM.reset") }} |
| | | </el-button> |
| | |
| | | </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" |
| | |
| | | :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 |
| | | prop="uid" |
| | | :label="$t('userManage.userInfoObj.uid')" |
| | | v-if="behavior == '新增用户'" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.uid" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.uid')" |
| | | ></el-input> |
| | | <div |
| | | class="isNewUser" |
| | | v-if="isNewUser" |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form |
| | | :model="editForm" |
| | | ref="editForm" |
| | | :rules="rules" |
| | | style="display: flex" |
| | | > |
| | | <div> |
| | | <el-form-item |
| | | prop="uid" |
| | | :label="$t('userManage.userInfoObj.uid')" |
| | | v-if="behavior == '新增用户'" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <img src="../../assets/img/success.png" /> |
| | | {{ $t("userManage.userInfoObj.uid") }} |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item |
| | | v-if="behavior == '修改信息'" |
| | | :label="$t('userManage.userInfoObj.uid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.uid" |
| | | autocomplete="off" |
| | | disabled |
| | | |
| | | ></el-input> |
| | | </el-form-item> |
| | | <!-- <el-form-item |
| | | <el-input |
| | | v-model="editForm.uid" |
| | | autocomplete="off" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.uid') |
| | | " |
| | | ></el-input> |
| | | <div class="isNewUser" v-if="isNewUser"> |
| | | <img src="../../assets/img/success.png" /> |
| | | {{ $t("userManage.userInfoObj.uid") }} |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item |
| | | v-if="behavior == '修改信息'" |
| | | :label="$t('userManage.userInfoObj.uid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.uid" |
| | | autocomplete="off" |
| | | disabled |
| | | ></el-input> |
| | | </el-form-item> |
| | | <!-- <el-form-item |
| | | v-if="behavior == '修改信息'" |
| | | prop="oldPwd" |
| | | :label="$t('userManage.userInfoObj.origpassword')" |
| | |
| | | show-password |
| | | ></el-input> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item |
| | | <!-- <el-form-item |
| | | prop="pwd" |
| | | v-if="behavior == '新增用户'" |
| | | :label="$t('userManage.userInfoObj.pwd')" |
| | |
| | | show-password |
| | | ></el-input> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item |
| | | <!-- <el-form-item |
| | | prop="checkPass" |
| | | v-if="behavior == '新增用户'" |
| | | :label="$t('userManage.userInfoObj.confirmPassword')" |
| | |
| | | autocomplete="off" |
| | | ></el-input> |
| | | </el-form-item> --> |
| | | <el-form-item |
| | | prop="uname" |
| | | :label="$t('userManage.userInfoObj.username')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.uname" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.username')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="sex" |
| | | :label="$t('userManage.userInfoObj.sex')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="editForm.sex" |
| | | clearable |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetree')+$t('userManage.userInfoObj.sex')" |
| | | <el-form-item |
| | | prop="uname" |
| | | :label="$t('userManage.userInfoObj.username')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-option |
| | | v-for="item in sexOpt" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="natives" |
| | | :label="$t('userManage.userInfoObj.nativePlace')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.natives" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.nativePlace')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="depid" |
| | | :label-width="formLabelWidth" |
| | | :label="$t('userManage.userInfoObj.depName')" |
| | | > |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="editForm.depid" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetree')+$t('userManage.userInfoObj.depName')" |
| | | @focus="setOptionWidth" |
| | | |
| | | <el-input |
| | | v-model="editForm.uname" |
| | | autocomplete="off" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.username') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="sex" |
| | | :label="$t('userManage.userInfoObj.sex')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-option |
| | | :value="editForm.depid" |
| | | :label="editForm.depName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }" |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="editForm.sex" |
| | | clearable |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetree') + |
| | | $t('userManage.userInfoObj.sex') |
| | | " |
| | | > |
| | | <el-tree |
| | | ref="editcaderHandle" |
| | | :data="treeOptions" |
| | | :default-expand-all="defaultexpand" |
| | | node-key="id" |
| | | :props="defaultProps" |
| | | @node-click="handeditChange" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-cascader |
| | | <el-option |
| | | v-for="item in sexOpt" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="natives" |
| | | :label="$t('userManage.userInfoObj.nativePlace')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.natives" |
| | | autocomplete="off" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.nativePlace') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="depid" |
| | | :label-width="formLabelWidth" |
| | | :label="$t('userManage.userInfoObj.depName')" |
| | | > |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="editForm.depid" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetree') + |
| | | $t('userManage.userInfoObj.depName') |
| | | " |
| | | @focus="setOptionWidth" |
| | | > |
| | | <el-option |
| | | :value="editForm.depid" |
| | | :label="editForm.depName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }" |
| | | > |
| | | <el-tree |
| | | ref="editcaderHandle" |
| | | :data="treeOptions" |
| | | :default-expand-all="defaultexpand" |
| | | node-key="id" |
| | | :props="defaultProps" |
| | | @node-click="handeditChange" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-cascader |
| | | v-model="editForm.depid" |
| | | :options="treeOptions" |
| | | filterable |
| | |
| | | }" |
| | | > |
| | | </el-cascader> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="idcard" |
| | | :label="$t('userManage.userInfoObj.identityCard')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.idcard" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.identityCard')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div style="width: 45%"> |
| | | <el-form-item |
| | | prop="job" |
| | | :label="$t('userManage.userInfoObj.job')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.job" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.job')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="edu" |
| | | :label="$t('userManage.userInfoObj.edu')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.edu" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.edu')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="addr" |
| | | :label="$t('userManage.userInfoObj.addr')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.addr" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.addr')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="email" |
| | | :label="$t('userManage.userInfoObj.email')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.email" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.email')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="contact" |
| | | :label="$t('userManage.userInfoObj.contact')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.contact" |
| | | autocomplete="off" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('userManage.userInfoObj.contact')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="status" |
| | | :label="$t('userManage.userInfoObj.status')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="editForm.status" |
| | | clearable |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetree')+$t('userManage.userInfoObj.status')" |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="idcard" |
| | | :label="$t('userManage.userInfoObj.identityCard')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-option |
| | | v-for="item in statusOpt" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | <el-input |
| | | v-model="editForm.idcard" |
| | | autocomplete="off" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.identityCard') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div style="width: 45%"> |
| | | <el-form-item |
| | | prop="job" |
| | | :label="$t('userManage.userInfoObj.job')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.job" |
| | | autocomplete="off" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.job') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="edu" |
| | | :label="$t('userManage.userInfoObj.edu')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.edu" |
| | | autocomplete="off" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.edu') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="addr" |
| | | :label="$t('userManage.userInfoObj.addr')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.addr" |
| | | autocomplete="off" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.addr') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="email" |
| | | :label="$t('userManage.userInfoObj.email')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.email" |
| | | autocomplete="off" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.email') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="contact" |
| | | :label="$t('userManage.userInfoObj.contact')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.contact" |
| | | autocomplete="off" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('userManage.userInfoObj.contact') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="status" |
| | | :label="$t('userManage.userInfoObj.status')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | :popper-append-to-body="false" |
| | | v-model="editForm.status" |
| | | clearable |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetree') + |
| | | $t('userManage.userInfoObj.status') |
| | | " |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="bak" |
| | | :label="$t('userManage.userInfoObj.remarks')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.bak" |
| | | autocomplete="off" |
| | | :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()" |
| | | >{{ |
| | | <el-option |
| | | v-for="item in statusOpt" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item |
| | | prop="bak" |
| | | :label="$t('userManage.userInfoObj.remarks')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="editForm.bak" |
| | | autocomplete="off" |
| | | :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()">{{ |
| | | $t("common.reset") |
| | | }}</el-button> |
| | | <el-button |
| | |
| | | type="primary" |
| | | @click="sendEdit('editForm')" |
| | | v-loading.fullscreen.lock="fullscreenLoading" |
| | | >{{ $t("common.submit") }}</el-button> |
| | | >{{ $t("common.submit") }}</el-button |
| | | > |
| | | </div> |
| | | <div |
| | | v-else |
| | | slot="footer" |
| | | class="dialog-footer" |
| | | > |
| | | <el-button |
| | | size="small" |
| | | type="info" |
| | | @click="cancelAdd('editForm')" |
| | | >{{ |
| | | <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" |
| | |
| | | v-model="pwdForm.adminPwd" |
| | | autocomplete="off" |
| | | show-password |
| | | style="width:85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('common.AdminPassword')" |
| | | style="width: 85%" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + |
| | | $t('common.AdminPassword') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | v-model="pwdForm.newPwd" |
| | | autocomplete="off" |
| | | show-password |
| | | style="width:85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('common.NPassword')" |
| | | style="width: 85%" |
| | | :placeholder=" |
| | | $t('shuJuGuanLi.shuJuJianSuo.valuetwo') + $t('common.NPassword') |
| | | " |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | v-model="pwdForm.checkPwd" |
| | | autocomplete="off" |
| | | show-password |
| | | style="width:85%" |
| | | :placeholder="$t('shuJuGuanLi.shuJuJianSuo.valuetwo')+$t('common.SPassword')" |
| | | style="width: 85%" |
| | | :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); |
| | |
| | | }); |
| | | } |
| | | }) |
| | | .catch((res) => { }); |
| | | .catch((res) => {}); |
| | | |
| | | queryPageUser({ |
| | | pageIndex: 1, |
| | |
| | | }); |
| | | } |
| | | }) |
| | | .catch((res) => { }); |
| | | .catch((res) => {}); |
| | | }, |
| | | treeData(source) { |
| | | let cloneData = JSON.parse(JSON.stringify(source)); // 对源数据深度克隆 |
| | |
| | | }, |
| | | //重置密码 |
| | | 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", |
| | |
| | | |
| | | done(); |
| | | }) |
| | | .catch((_) => { }); |
| | | .catch((_) => {}); |
| | | }, |
| | | //提交编辑 |
| | | sendEdit(formName) { |
| | |
| | | this.getUserInfo(); |
| | | this.getpublickey(); |
| | | window.addEventListener("resize", this.onResize); |
| | | this.calHeight() |
| | | this.calHeight(); |
| | | }, |
| | | created() { |
| | | var val = this.$store.state.currentPerms; |