From 78f71267141e813c62aa663ba0a1024ad9dc53b5 Mon Sep 17 00:00:00 2001 From: shidongli Date: Fri, 7 Jun 2024 15:48:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A3=E6=95=99=E5=BA=93=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/propaganda/index.vue | 88 ++++++++++++++------------- 1 file changed, 47 insertions(+), 41 deletions(-) diff --git a/src/views/manage/propaganda/index.vue b/src/views/manage/propaganda/index.vue index edeb6f5..ff4bef8 100644 --- a/src/views/manage/propaganda/index.vue +++ b/src/views/manage/propaganda/index.vue @@ -678,10 +678,7 @@
知识卡片
- +
@@ -845,7 +842,7 @@ import Editorxj from "../../system/Editorxj/index.vue"; import { department, listDisease } from "@/api/manage/script"; export default { name: "Propaganda", - components: { stationAcatar ,Editorxj}, + components: { stationAcatar, Editorxj }, data() { //验证身份证 var isimgPath = (rule, value, callback) => { @@ -868,6 +865,10 @@ export default { // 左侧传值 querydepartmen: { departmentName: "", + materialsType: null, + materialsName: null, + materialsStatus: null, + createTime: null, // pageNum: 1, // pageSize: 10, @@ -1005,8 +1006,8 @@ export default { }, // 表单校验 rules: { - propagandaTitle:[ - { required: true, message: "宣教标题不能为空", trigger: "blur" } + propagandaTitle: [ + { required: true, message: "宣教标题不能为空", trigger: "blur" } ], @@ -1082,7 +1083,7 @@ export default { }, // 医院 changehospitalAgency(e) { - console.log(e,'00000') + console.log(e, '00000') this.form.hospitalAgencyName = this.hospitalAgencylist.find(f => f.id == e).agencyName this.form.hospitalAgencyId = e this.form.departmentName = '' @@ -1425,6 +1426,11 @@ export default { handleQuery() { this.queryParams.pageNum = 1; this.getList(); + this.querydepartmen.createTimeStart = this.queryParams.createTimeStart + this.querydepartmen.createTimeEnd = this.queryParams.createTimeEnd + this.querydepartmen.propagandaType = this.queryParams.propagandaType + this.querydepartmen.hospitalAgencyId = this.queryParams.hospitalAgencyId + this.querydepartmen.propagandaStatus = this.queryParams.propagandaStatus this.Departmentlist(); }, handleQuerysc() { @@ -1492,48 +1498,48 @@ export default { submitForm() { // return console.log(this.form) - if(this.form.propagandaContent && this.form.propagandaContent.length - 7 > this.maxLength){ + if (this.form.propagandaContent && this.form.propagandaContent.length - 7 > this.maxLength) { // if (this.form.propagandaContent.length - 7 > this.maxLength) { this.$message({ type: "error", message: "已达到最大输入长度" }); - // } + // } - }else{ + } else { - this.$refs["form"].validate(valid => { - if (valid) { - if (this.form.id != null) { - if (this.diseaseTypeName == "请选择病种") { - this.form.diseaseTypeName = null + this.$refs["form"].validate(valid => { + if (valid) { + if (this.form.id != null) { + if (this.diseaseTypeName == "请选择病种") { + this.form.diseaseTypeName = null + } else { + this.form.diseaseTypeName = this.diseaseTypeName + } + updatePropaganda(this.form).then(response => { + this.$modal.msgSuccess("修改成功"); + this.open = false; + this.getList(); + }); } else { - this.form.diseaseTypeName = this.diseaseTypeName - } - updatePropaganda(this.form).then(response => { - this.$modal.msgSuccess("修改成功"); - this.open = false; - this.getList(); - }); - } else { - if (this.diseaseTypeName == '请选择病种') { - this.form.diseaseTypeName = null - } else if (this.diseaseTypeName) { - this.form.diseaseTypeName = this.diseaseTypeName - } - addPropaganda(this.form).then(response => { - this.$modal.msgSuccess("新增成功"); - this.open = false; - this.getList(); - this.Departmentlist() - }); + if (this.diseaseTypeName == '请选择病种') { + this.form.diseaseTypeName = null + } else if (this.diseaseTypeName) { + this.form.diseaseTypeName = this.diseaseTypeName + } + addPropaganda(this.form).then(response => { + this.$modal.msgSuccess("新增成功"); + this.open = false; + this.getList(); + this.Departmentlist() + }); + } } - } - }); - } + }); + } }, /** 删除按钮操作 */ handleDelete(row) { @@ -1560,9 +1566,9 @@ export default { // width: 800px; // } -::v-deep iframe{ - width:100%; - height: 500px; +::v-deep iframe { + width: 100%; + height: 500px; } .propagandaselect { width: 100px;