From b6929a606c64d1b6063521ed8a183da88463a5e1 Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期一, 10 六月 2024 12:11:30 +0800 Subject: [PATCH] Merge branch 'master' of http://47.93.189.255:8099/r/zhangshi_app_web --- ruoyi-ui/src/views/system/user/index.vue | 61 +++++++++++++++++------------- 1 files changed, 34 insertions(+), 27 deletions(-) diff --git a/ruoyi-ui/src/views/system/user/index.vue b/ruoyi-ui/src/views/system/user/index.vue index ce425f0..83b2fbc 100644 --- a/ruoyi-ui/src/views/system/user/index.vue +++ b/ruoyi-ui/src/views/system/user/index.vue @@ -87,7 +87,7 @@ :disabled="multiple" @click="handleDelete" v-hasPermi="['system:user:remove']" - >鍒犻櫎</el-button> + >鍋滅敤</el-button> </el-col> <el-col :span="1.5"> <el-button @@ -154,7 +154,7 @@ icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['system:user:remove']" - >鍒犻櫎</el-button> + >鍋滅敤</el-button> <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['system:user:resetPwd', 'system:user:edit']"> <el-button size="mini" type="text" icon="el-icon-d-arrow-right">鏇村</el-button> <el-dropdown-menu slot="dropdown"> @@ -409,6 +409,7 @@ faid: 0, maid: 0, form: {}, + zinfid: undefined, defaultProps: { children: "children", label: "label" @@ -514,7 +515,6 @@ if(this.fid!="-1") { //鏌ヨ涓嶆槸鏈鐨勬椂鍊欙紝鍙互閫夋嫨鐨勯厤鍋朵俊鎭� - alert(this.fid) getInfoByFid(this.fid).then(response=>{ console.log("--------------------") @@ -529,21 +529,18 @@ }, handleFamily() { - alert(this.form.isMyFamily) + if(this.form.isMyFamily=="0") this.isshowMri = true }, getAllIn(){ - // alert(123) getAllInfo().then(response => { // this.allInfo = response.data; // console.log(response.data) - // alert(982) }) }, getRole(){ this.form.roleIds = [] - //alert(123) this.form.roleIds.push(this.rt) }, getFamlilyInfo(){ @@ -563,6 +560,7 @@ this.loading = true; listUser(this.addDateRange(this.queryParams, this.dateRange)).then(response => { this.userList = response.rows; + console.log(this.userList,'userList') this.total = response.total; this.loading = false; } @@ -671,7 +669,6 @@ handleUpdate(row) { this.reset(); const userId = row.userId || this.ids; - // alert(userId) // this.fid = response.data.familyId //alert(this.fid) @@ -687,10 +684,12 @@ getIndividual(userId).then(response => { // alert(123) + console.log('++++++++-----0000((((((9999))))))') console.log(response.data) if(response.data!=undefined) { _this.fid = response.data.familyId; + _this.zinfid = response.data.userId } } ); @@ -723,14 +722,9 @@ /** 鎻愪氦鎸夐挳 */ submitForm: function() { this.$refs["form"].validate(valid => { - //alert(valid) - // alert(this.fid) - //alert(this.rt) - // alert(this.form.roleIds) let ps = true - // alert(this.rt) - // alert(this.fid) + if(this.fid=="鏃�") this.fid = -1 let _this = this @@ -744,36 +738,49 @@ this.$modal.msgSuccess("瀹跺涵鎴愬憳锛屽繀椤昏鎷ユ湁瀹跺涵鍙凤紒"); return } - // alert(ps) + if(ps) { let fm = {} - fm.userId = _this.form.userId - + fm.userId = _this.zinfid; + fm.nickName = this.form.nickName + fm.roleId =this.rt + fm.sex = this.form.sex + fm.status = this.form.status + fm.familyId = this.fid + + fm.isMyFamily = this.form.isMyFamily + fm.spouseId = this.form.spouseId + fm.sysId = this.form.userId + if(_this.fid==="鏃�") fm.familyId= -1 else fm.familyId = _this.fid this.form.familyId = fm.familyId - + console.log(fm) if (valid) { if (this.form.userId != undefined) { - updateUser(this.form).then(response => { + updateUser(fm).then(response => { - - updateUserInfo(fm).then(response=>{ - this.$modal.msgSuccess("淇敼鎴愬姛"); - this.open = false; + this.open = false; this.getList(); _this.rt = undefined _this.fid = "鏃�" this.isshowMar = false this.isshowMri = false - }) - }); + // updateUserInfo(fm).then(response=>{ + // this.$modal.msgSuccess("淇敼鎴愬姛"); + // this.open = false; + // this.getList(); + // _this.rt = undefined + // _this.fid = "鏃�" + // this.isshowMar = false + // this.isshowMri = false + // }) + }); } else { - // alert(this.form.ismarry) - // alert(987) + addUser(this.form).then(response => { this.$modal.msgSuccess("鏂板鎴愬姛"); this.open = false; -- Gitblit v1.9.1