| | |
| | | <el-input v-model="form.userId" placeholder="请输入用户id" /> |
| | | </el-form-item> --> |
| | | <el-form-item label="用户名称" prop="nickName"> |
| | | <span |
| | | slot="label" |
| | | style="display: inline-block; border-bottom: 2px solid blue" |
| | | @click="handlePackage" |
| | | > |
| | | 用户名称 |
| | | </span> |
| | | <el-input v-model="form.nickName" placeholder="请输入用户昵称" maxlength="30" style="width: 130px" /> |
| | | </el-form-item> |
| | | <el-form-item label="用户工号" prop="userName"> |
| | |
| | | <el-button type="primary" @click="tijiao">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <yonghu ref="aaa" @add="handleChanges" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import yonghu from "@/components/yonghu"; |
| | | import { |
| | | listUser, |
| | | getUser, |
| | |
| | | "dict_user_work", |
| | | "dict_qhdm", |
| | | ], |
| | | components: { Treeselect }, |
| | | components: { Treeselect, yonghu }, |
| | | data() { |
| | | let checkPhoneNum = (rule, value, callback) => { |
| | | console.log( value) |
| | |
| | | watch: { |
| | | // 根据名称筛选部门树 |
| | | deptName(val) { |
| | | this.$refs.tree.filter(val); |
| | | console.log(val) |
| | | }, |
| | | treeId(newVal, oldVal) { |
| | | if (newVal) { |
| | |
| | | /** 查询用户列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listUser(this.addDateRange(this.queryParams, this.dateRange)).then( |
| | | if(this.queryParams.deptId){ |
| | | listUser(this.addDateRange(this.queryParams, this.dateRange)).then( |
| | | (response) => { |
| | | response.rows.forEach((item, index) => { |
| | | item.newID = |
| | |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | } |
| | | |
| | | }, |
| | | /** 查询岗位列表 */ |
| | | getPostList() { |
| | |
| | | getDeptTree() { |
| | | deptTreeSelect().then((response) => { |
| | | this.deptOptions = response.data; |
| | | console.log( this.deptOptions) |
| | | this.treeId.push(this.deptOptions[0].id) |
| | | this.queryParams.deptId = this.deptOptions[0].id |
| | | console.log(this.queryParams.deptId) |
| | | }); |
| | | }, |
| | | // 筛选节点 |
| | |
| | | this.queryParams.deptId = data.id; |
| | | this.handleQuery(); |
| | | }, |
| | | handlePackage() { |
| | | this.$refs.aaa.open = true; |
| | | this.$refs.aaa.getList(); |
| | | this.$refs.aaa.title = "数据字典"; |
| | | }, |
| | | handleChanges(param1) { |
| | | this.form.nickName = param1[0].staffName; |
| | | // this.form.hisPacId = param1[0].pacId; |
| | | // if (param1[0].price) { |
| | | // this.form.counterPrice = param1[0].price; |
| | | // this.form.retailPrice = param1[0].price; |
| | | // } |
| | | }, |
| | | // 用户状态修改 |
| | | handleStatusChange(row) { |
| | | let text = row.status === "0" ? "启用" : "停用"; |