家长维护页面调优

This commit is contained in:
sk1551 2020-10-26 21:30:43 +08:00
parent 12e7a2cbb6
commit 3811f96533
4 changed files with 22 additions and 26 deletions

View File

@ -94,7 +94,7 @@
v-model="form.parentId" v-model="form.parentId"
:options="parentidOptions" :options="parentidOptions"
:normalizer="normalizer" :normalizer="normalizer"
placeholder="选择上级部门" placeholder="选择上级内容"
/> />
</el-form-item> </el-form-item>
<el-form-item label="名称" prop="name"> <el-form-item label="名称" prop="name">

View File

@ -223,8 +223,7 @@ export default {
phone: undefined phone: undefined
}, },
// //
form: { form: {}
}
}; };
}, },
created() { created() {
@ -316,23 +315,20 @@ export default {
/** 提交按钮 */ /** 提交按钮 */
submitForm: function() { submitForm: function() {
this.$refs["form"].validate((valid) => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.id != undefined) { if (this.form.id != undefined) {
updateChild(this.form).then((response) => { updateChild(this.form).then(response => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess("修改成功");
//this.open = false;
this.hide = false;
}
});
this.form.childid = this.form.id; this.form.childid = this.form.id;
this.form.fathername = this.form.father; this.form.fathername = this.form.father;
this.form.mothername = this.form.mother; this.form.mothername = this.form.mother;
updateContactpeople(this.form).then((response) => { updateContactpeople(this.form).then(response => {
if (response.code === 200) { if (response.code === 200) {
this.msgSuccess("修改成功"); this.msgSuccess("修改成功");
//this.open = false; this.hide = false;
}
});
this.hide = false; this.hide = false;
} }
}); });

View File

@ -121,7 +121,7 @@
<el-row :gutter="15"> <el-row :gutter="15">
<el-col :span="24"> <el-col :span="24">
<el-form-item label="选择幼儿" prop="childid"> <el-form-item label="选择幼儿" prop="childid">
<el-select v-model="form.childid" placeholder="请输入选择幼儿" disabled="true"> <el-select v-model="form.childid" placeholder="请输入选择幼儿" >
<el-option <el-option
v-for="dict in childOptions" v-for="dict in childOptions"
:key="dict.id" :key="dict.id"

View File

@ -135,7 +135,7 @@
<if test="gmoffphone != null and gmoffphone != ''">gmoffphone = #{gmoffphone},</if> <if test="gmoffphone != null and gmoffphone != ''">gmoffphone = #{gmoffphone},</if>
<if test="createTime != null ">create_time = #{createTime},</if> <if test="createTime != null ">create_time = #{createTime},</if>
</trim> </trim>
where id = #{id} where id = #{id} or childid = #{childid}
</update> </update>
<delete id="deleteByChildContactpeopleById" parameterType="Long"> <delete id="deleteByChildContactpeopleById" parameterType="Long">