From 68af7c7ffd951d181044f3f72b1f5a7b64dfb2cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com>
Date: Fri, 8 Mar 2024 09:38:07 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../manage/components/indicatorMonitoring.vue | 205 +++++++++++++++---
src/views/system/question/index.vue | 24 +-
2 files changed, 193 insertions(+), 36 deletions(-)
diff --git a/src/views/manage/components/indicatorMonitoring.vue b/src/views/manage/components/indicatorMonitoring.vue
index b391a76..88e14e3 100644
--- a/src/views/manage/components/indicatorMonitoring.vue
+++ b/src/views/manage/components/indicatorMonitoring.vue
@@ -9,67 +9,200 @@
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/views/system/question/index.vue b/src/views/system/question/index.vue
index c8f9751..ed52632 100644
--- a/src/views/system/question/index.vue
+++ b/src/views/system/question/index.vue
@@ -40,9 +40,9 @@
+
+ active-value="PUBLISHED" inactive-value="UNPUBLISHED" @change="switchstatus($event, scope.row)">
@@ -181,6 +181,8 @@ export default {
},
cleardepartment() {
this.classificationform.diseaseTypeId = ''
+ this.classificationform.departmentName = ''
+ this.classificationform.diseaseTypeName = ''
},
changedepartment(e) {
this.classificationform.departmentName = this.departmentlist.find(el => el.id == e).departmentName
@@ -196,7 +198,23 @@ export default {
},
//切换发布状态
switchstatus(e, item) {
-
+ if (!item.departmentId && !this.diseaseTypeId) {
+ this.$message.error('请选择问卷所属的科室以及科室病种后发布!');
+ this.getList();
+ return
+ }
+ let query = {
+ id: item.id,
+ questionnaireStatus: e
+ }
+ updateclassification(query).then(res => {
+ if (e == 'PUBLISHED') {
+ this.$modal.msgSuccess("修改为已发布");
+ } else if (e == 'UNPUBLISHED') {
+ this.$modal.msgSuccess("修改为未发布");
+ }
+ })
+ this.getList();
},
// 节点单击事件
handleNodeClick(data) {