From 8a1f8f1330f2822325ee531c3a96f87cab1233dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Wed, 3 Apr 2024 15:58:44 +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 --- src/api/system/editorialSpecialization.js | 11 ++- .../system/ManageNodeInformation/index.vue | 84 ++++++++++++------- .../system/editorialSpecialization/index.vue | 57 ++++++------- src/views/system/specialDiseaseNode/index.vue | 20 +++-- 4 files changed, 99 insertions(+), 73 deletions(-) diff --git a/src/api/system/editorialSpecialization.js b/src/api/system/editorialSpecialization.js index f2bff0a..e2f7d87 100644 --- a/src/api/system/editorialSpecialization.js +++ b/src/api/system/editorialSpecialization.js @@ -6,4 +6,13 @@ export function specialDiseaseRoute(id) { url: `/system/specialDiseaseRoute/${id}`, method: 'get', }) -} \ No newline at end of file +} + + +//查询 +export function selectSpecialDisease(id) { + return request({ + url: `/system/specialDiseaseNode/selectSpecialDisease?specialDiseaseRouteId=${id}`, + method: 'get' + }) +} diff --git a/src/views/system/ManageNodeInformation/index.vue b/src/views/system/ManageNodeInformation/index.vue index 164e2f4..c50967c 100644 --- a/src/views/system/ManageNodeInformation/index.vue +++ b/src/views/system/ManageNodeInformation/index.vue @@ -5,31 +5,38 @@
触发条件
- - - - - - - - - - - - - - - - - - - - +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
适用范围 - + @@ -116,8 +123,7 @@
- +
@@ -296,10 +302,12 @@ export default { name: "specialDiseaseNode", data() { return { - wangeditorshow: false, updata: { - suitRange: '', - routeName: '', + triggerConditionList: [ + { + + } + ], }, form: { nodeContent: '', @@ -352,14 +360,13 @@ export default { }; }, created() { - this.updata.suitRange = this.$route.query.suitRange - this.updata.routeName = this.$route.query.routeName + if (this.$route.query) { + this.updata.suitRange = this.$route.query.suitRange + // selectSpecialDisease(this.$route.query.id).then(res => {}) + } this.taskinfo(); - this.wangeditorshow = true - }, - beforeDestroy() { - this.wangeditorshow = false }, + beforeDestroy() { }, watch: {}, mounted() { this.form = this.lists[0].list[0] @@ -490,6 +497,9 @@ export default { this.lists.splice(index, 1) } }, + addtriggerCondition() { + this.updata.triggerConditionList.push({}) + }, } }; @@ -499,6 +509,16 @@ export default { text-align: right; } +.nodes { + width: 660px; + display: flex; + flex-wrap: wrap; + + .node { + margin-bottom: 10px; + } +} + .bottomform { background-color: #f2f4f5; margin-top: 10px; diff --git a/src/views/system/editorialSpecialization/index.vue b/src/views/system/editorialSpecialization/index.vue index e6751a8..fb7ed30 100644 --- a/src/views/system/editorialSpecialization/index.vue +++ b/src/views/system/editorialSpecialization/index.vue @@ -23,7 +23,7 @@ 人工添加主路径 - 人工添加触发条件 + 人工添加触发条件
@@ -81,7 +81,7 @@
- +
@@ -91,7 +91,7 @@