家长维护页面调优
This commit is contained in:
parent
12e7a2cbb6
commit
3811f96533
@ -94,7 +94,7 @@
|
||||
v-model="form.parentId"
|
||||
:options="parentidOptions"
|
||||
:normalizer="normalizer"
|
||||
placeholder="选择上级部门"
|
||||
placeholder="选择上级内容"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="名称" prop="name">
|
||||
|
@ -223,8 +223,7 @@ export default {
|
||||
phone: undefined
|
||||
},
|
||||
// 表单参数
|
||||
form: {
|
||||
}
|
||||
form: {}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@ -316,23 +315,20 @@ export default {
|
||||
|
||||
/** 提交按钮 */
|
||||
submitForm: function() {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != undefined) {
|
||||
updateChild(this.form).then((response) => {
|
||||
updateChild(this.form).then(response => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("修改成功");
|
||||
//this.open = false;
|
||||
this.hide = false;
|
||||
}
|
||||
});
|
||||
this.form.childid = this.form.id;
|
||||
this.form.fathername = this.form.father;
|
||||
this.form.mothername = this.form.mother;
|
||||
updateContactpeople(this.form).then((response) => {
|
||||
updateContactpeople(this.form).then(response => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("修改成功");
|
||||
//this.open = false;
|
||||
this.hide = false;
|
||||
}
|
||||
});
|
||||
this.hide = false;
|
||||
}
|
||||
});
|
||||
|
@ -121,7 +121,7 @@
|
||||
<el-row :gutter="15">
|
||||
<el-col :span="24">
|
||||
<el-form-item label="选择幼儿" prop="childid">
|
||||
<el-select v-model="form.childid" placeholder="请输入选择幼儿" disabled="true">
|
||||
<el-select v-model="form.childid" placeholder="请输入选择幼儿" >
|
||||
<el-option
|
||||
v-for="dict in childOptions"
|
||||
:key="dict.id"
|
||||
|
@ -135,7 +135,7 @@
|
||||
<if test="gmoffphone != null and gmoffphone != ''">gmoffphone = #{gmoffphone},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
where id = #{id} or childid = #{childid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteByChildContactpeopleById" parameterType="Long">
|
||||
|
Loading…
x
Reference in New Issue
Block a user