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/api/system/partition.js b/src/api/system/partition.js new file mode 100644 index 0000000..bcf7339 --- /dev/null +++ b/src/api/system/partition.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 查询任务细分字典列表 +export function listPartition(query) { + return request({ + url: '/system/partition/list', + method: 'get', + params: query + }) +} +// 任务类型名称下拉框 +export function selectTaskTypeList(query) { + return request({ + url: '/system/taskType/selectTaskTypeList', + method: 'get', + params: query + }) +} + + +// 查询任务细分字典详细 +export function getPartition(id) { + return request({ + url: '/system/partition/' + id, + method: 'get' + }) +} + +// 新增任务细分字典 +export function addPartition(data) { + return request({ + url: '/system/partition/add', + method: 'post', + data: data + }) +} + +// 修改任务细分字典 +export function updatePartition(data) { + return request({ + url: '/system/partition/edit', + method: 'put', + data: data + }) +} + +// 删除任务细分字典 +export function delPartition(id) { + return request({ + url: '/system/partition/' + id, + method: 'delete' + }) +} + diff --git a/src/api/system/taskType.js b/src/api/system/taskType.js new file mode 100644 index 0000000..1261b77 --- /dev/null +++ b/src/api/system/taskType.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询任务类型字典列表 +export function listTaskType(query) { + return request({ + url: '/system/taskType/list', + method: 'get', + params: query + }) +} + +// 查询任务类型字典详细 +export function getTaskType(id) { + return request({ + url: '/system/taskType/' + id, + method: 'get' + }) +} + +// 新增任务类型字典 +export function addTaskType(data) { + return request({ + url: '/system/taskType/add', + method: 'post', + data: data + }) +} + +// 修改任务类型字典 +export function updateTaskType(data) { + return request({ + url: '/system/taskType/edit', + method: 'put', + data: data + }) +} + +// 删除任务类型字典 +export function delTaskType(id) { + return request({ + url: '/system/taskType/' + id, + method: 'delete' + }) +} 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/manage/message/index.vue b/src/views/manage/message/index.vue index 35b9f4f..83d1ca6 100644 --- a/src/views/manage/message/index.vue +++ b/src/views/manage/message/index.vue @@ -239,6 +239,11 @@ + + + + + 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 @@ @@ -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) { diff --git a/src/views/system/taskType/index.vue b/src/views/system/taskType/index.vue new file mode 100644 index 0000000..9558c1b --- /dev/null +++ b/src/views/system/taskType/index.vue @@ -0,0 +1,308 @@ + + + + +