From 3811f96533a0157d5164b57d4f917e28812b3ed4 Mon Sep 17 00:00:00 2001 From: sk1551 <15175617877@163.com> Date: Mon, 26 Oct 2020 21:30:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B6=E9=95=BF=E7=BB=B4=E6=8A=A4=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B0=83=E4=BC=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/benyi/assessmentcontent/index.vue | 2 +- .../src/views/benyi/child_preserve/index.vue | 42 +++++++++---------- .../src/views/benyi/contactpeople/index.vue | 2 +- .../benyi/ByChildContactpeopleMapper.xml | 2 +- 4 files changed, 22 insertions(+), 26 deletions(-) diff --git a/ruoyi-ui/src/views/benyi/assessmentcontent/index.vue b/ruoyi-ui/src/views/benyi/assessmentcontent/index.vue index ce4cc3d99..e94aef016 100644 --- a/ruoyi-ui/src/views/benyi/assessmentcontent/index.vue +++ b/ruoyi-ui/src/views/benyi/assessmentcontent/index.vue @@ -94,7 +94,7 @@ v-model="form.parentId" :options="parentidOptions" :normalizer="normalizer" - placeholder="选择上级部门" + placeholder="选择上级内容" /> diff --git a/ruoyi-ui/src/views/benyi/child_preserve/index.vue b/ruoyi-ui/src/views/benyi/child_preserve/index.vue index 657085a6b..2b6d6c200 100644 --- a/ruoyi-ui/src/views/benyi/child_preserve/index.vue +++ b/ruoyi-ui/src/views/benyi/child_preserve/index.vue @@ -16,12 +16,12 @@

幼儿信息查询与维护

提交核对幼儿信息

- + - + - + @@ -144,8 +144,8 @@ - - + + @@ -167,7 +167,7 @@ import { getChild_query, updateChild } from "@/api/benyi/child"; import VDistpicker from "v-distpicker"; // 更新紧急联系人 -import { updateContactpeople } from "@/api/benyi/contactpeople"; +import { updateContactpeople } from "@/api/benyi/contactpeople"; export default { name: "result", @@ -223,8 +223,7 @@ export default { phone: undefined }, // 表单参数 - form: { - } + form: {} }; }, created() { @@ -315,24 +314,21 @@ export default { }, /** 提交按钮 */ - submitForm: function () { - this.$refs["form"].validate((valid) => { + submitForm: function() { + 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) => { - if (response.code === 200) { - this.msgSuccess("修改成功"); - //this.open = false; + this.form.childid = this.form.id; + this.form.fathername = this.form.father; + this.form.mothername = this.form.mother; + updateContactpeople(this.form).then(response => { + if (response.code === 200) { + this.msgSuccess("修改成功"); + this.hide = false; + } + }); this.hide = false; } }); diff --git a/ruoyi-ui/src/views/benyi/contactpeople/index.vue b/ruoyi-ui/src/views/benyi/contactpeople/index.vue index a8ce424f6..99f2ba649 100644 --- a/ruoyi-ui/src/views/benyi/contactpeople/index.vue +++ b/ruoyi-ui/src/views/benyi/contactpeople/index.vue @@ -121,7 +121,7 @@ - + gmoffphone = #{gmoffphone}, create_time = #{createTime}, - where id = #{id} + where id = #{id} or childid = #{childid}