修改
This commit is contained in:
parent
1bd7909d14
commit
f0f3f14f5a
@ -74,6 +74,7 @@ import {
|
|||||||
import { getRoleInfo } from "@/api/system/quality";
|
import { getRoleInfo } from "@/api/system/quality";
|
||||||
export default {
|
export default {
|
||||||
name: "kindergar",
|
name: "kindergar",
|
||||||
|
props: ["iddnamelist"],
|
||||||
components: {},
|
components: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -108,12 +109,24 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.onshow();
|
this.onshow();
|
||||||
|
this.kindergartenId = this.iddnamelist.kindergartenId;
|
||||||
|
this.kindergartenName = this.iddnamelist.kindergartenName;
|
||||||
|
console.log(this.iddnamelist);
|
||||||
|
console.log(this.kindergartenId);
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
iddnamelist: {
|
||||||
|
handler(newlist, oldlist) {
|
||||||
|
console.log(newlist);
|
||||||
|
this.kindergartenId = newlist.kindergartenId;
|
||||||
|
this.kindergartenName = newlist.kindergartenName;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onshow() {
|
onshow() {
|
||||||
this.kindergartenName = "请选择幼儿园";
|
this.kindergartenName = "请选择幼儿园";
|
||||||
this.kindergartenId = "";
|
this.kindergartenId = "";
|
||||||
this.$emit("kinbatlist", this.kindergartenId);
|
|
||||||
},
|
},
|
||||||
//幼儿园左侧点击
|
//幼儿园左侧点击
|
||||||
kindergartenNameclick(row) {
|
kindergartenNameclick(row) {
|
||||||
|
|||||||
@ -398,6 +398,7 @@
|
|||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<kindergarlog
|
<kindergarlog
|
||||||
v-if="kinshow"
|
v-if="kinshow"
|
||||||
|
:iddnamelist="form"
|
||||||
@kinbatlist="kinbatlist"
|
@kinbatlist="kinbatlist"
|
||||||
style="width: 500px; display: inline;"
|
style="width: 500px; display: inline;"
|
||||||
ref="kinresets"
|
ref="kinresets"
|
||||||
@ -635,6 +636,8 @@ export default {
|
|||||||
row.forEach(e => {
|
row.forEach(e => {
|
||||||
if (e == obj.roleId) {
|
if (e == obj.roleId) {
|
||||||
this.kinshow = true;
|
this.kinshow = true;
|
||||||
|
this.form.kindergartenId = "";
|
||||||
|
this.form.kindergartenName = "请选择幼儿园";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -768,6 +771,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
|
this.kinshow = false;
|
||||||
this.reset();
|
this.reset();
|
||||||
this.getTreeselect();
|
this.getTreeselect();
|
||||||
getUser().then(response => {
|
getUser().then(response => {
|
||||||
@ -780,6 +784,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
|
this.kinshow = false;
|
||||||
this.reset();
|
this.reset();
|
||||||
this.getTreeselect();
|
this.getTreeselect();
|
||||||
const userId = row.userId || this.ids;
|
const userId = row.userId || this.ids;
|
||||||
@ -792,6 +797,20 @@ export default {
|
|||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改用户";
|
this.title = "修改用户";
|
||||||
this.form.password = "";
|
this.form.password = "";
|
||||||
|
var obj = {};
|
||||||
|
this.roleOptions.forEach(el => {
|
||||||
|
if (el.roleKey == "garden") {
|
||||||
|
obj = el;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
response.data.roles.forEach(e => {
|
||||||
|
if (e.roleId == obj.roleId) {
|
||||||
|
this.kinshow = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (this.form.kindergartenId == "" || !this.form.kindergartenId) {
|
||||||
|
this.form.kindergartenNmae = "请选择幼儿园";
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/** 重置密码按钮操作 */
|
/** 重置密码按钮操作 */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user