diff --git a/src/api/manage/indicatorMonitoring.js b/src/api/manage/indicatorMonitoring.js
new file mode 100644
index 0000000..4d4f95c
--- /dev/null
+++ b/src/api/manage/indicatorMonitoring.js
@@ -0,0 +1,12 @@
+import request from '@/utils/request'
+
+
+// 查询检测检测项目结果曲线统计
+export function curveStatistics(query) {
+ return request({
+ url: `/manage/projectResult/curveStatistics`,
+ method: 'get',
+ params: query
+ })
+}
+
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) {