From 927f65fd4c7ea05d6b9691881da147c51b0a984b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Mon, 8 Jul 2024 14:40:27 +0800 Subject: [PATCH] xg --- src/views/manage/servicepackage/index.vue | 24 ++++++++++++++++------- src/views/system/question/index.vue | 1 + 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/views/manage/servicepackage/index.vue b/src/views/manage/servicepackage/index.vue index 025f49b..cc1a28c 100644 --- a/src/views/manage/servicepackage/index.vue +++ b/src/views/manage/servicepackage/index.vue @@ -430,7 +430,6 @@ export default { hardwareType: null, whetherRelease: null, }, - // 表单参数 form: {}, formdetail: {}, @@ -448,8 +447,6 @@ export default { packageVersion: [ { required: true, message: "服务包版本不能为空", trigger: "blur" } ], - // packageVersion:[ - // ], packageName: [ { required: true, message: "服务包名称不能为空", trigger: "blur" } ], @@ -480,7 +477,6 @@ export default { ] }, }, - serviceWayId: '', }; }, created() { @@ -610,6 +606,7 @@ export default { } else { this.form.voList.push(obj); } + this.$forceUpdate() }, /** 查询服务包基础信息列表 */ getList() { @@ -628,8 +625,8 @@ export default { }, // 服务方式点击事件 changeway(e, index) { - this.serviceWayId = this.optionsway.find(f => f.serviceWayName == e).id - serviccontent(this.serviceWayId).then(response => { + let serviceWayId = this.optionsway.find(f => f.serviceWayName == e).id + serviccontent(serviceWayId).then(response => { this.optionscontent[index] = response.rows; }); this.form.voList[index].serviceContent = null @@ -759,7 +756,12 @@ export default { createBy: null, createTime: null, updateBy: null, - updateTime: null + updateTime: null, + voList: [{ + serviceContent: null, + serviceFrequencyText: null, + serviceWayName: null, + }] }; this.optionsway = [], // 服务内容 @@ -894,9 +896,14 @@ export default { }, // 提交 submitForm() { + this.form.hospitalAgencyId = this.queryParams.hospitalAgencyId + this.form.hospitalAgencyName = this.queryParams.hospitalAgencyName this.$refs["form"].validate(valid => { if (valid) { if (this.form.id != null) { + if (!this.form.diseaseTypeId) { + this.form.diseaseTypeName = '' + } if (this.form.voList) { var obj = JSON.parse(JSON.stringify(this.form)) obj.voList.forEach(e => { @@ -914,6 +921,7 @@ export default { this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); + this.$refs.DepartmentList.Departmentlist() }); } } else { @@ -934,6 +942,7 @@ export default { this.$modal.msgSuccess("新增成功"); this.open = false; this.getList(); + this.$refs.DepartmentList.Departmentlist() }); } } @@ -948,6 +957,7 @@ export default { }).then(() => { this.getList(); this.$modal.msgSuccess("删除成功"); + this.$refs.DepartmentList.Departmentlist() }).catch(() => { }); }, /** 导出按钮操作 */ diff --git a/src/views/system/question/index.vue b/src/views/system/question/index.vue index 7a82c18..f44cbec 100644 --- a/src/views/system/question/index.vue +++ b/src/views/system/question/index.vue @@ -311,6 +311,7 @@ export default { }).then(() => { this.getList(); this.$modal.msgSuccess("删除成功"); + this.$refs.DepartmentList.Departmentlist() }).catch(() => { }); }, /** 导出按钮操作 */