From e4b821dfc81964cc7973ab7bb6ee30ee36bac206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Tue, 9 Apr 2024 16:40:09 +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/ManuallyCreatingTasks.js | 10 +++ .../system/ManuallyCreatingTasks/index.vue | 79 ++++++++++++++++--- 2 files changed, 79 insertions(+), 10 deletions(-) create mode 100644 src/api/system/ManuallyCreatingTasks.js diff --git a/src/api/system/ManuallyCreatingTasks.js b/src/api/system/ManuallyCreatingTasks.js new file mode 100644 index 0000000..430073b --- /dev/null +++ b/src/api/system/ManuallyCreatingTasks.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + +// 新增手动创建任务 +export function signrouteadd(data) { + return request({ + url: '/manage/signroute/add', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/views/system/ManuallyCreatingTasks/index.vue b/src/views/system/ManuallyCreatingTasks/index.vue index f45165d..4a78f91 100644 --- a/src/views/system/ManuallyCreatingTasks/index.vue +++ b/src/views/system/ManuallyCreatingTasks/index.vue @@ -6,9 +6,9 @@ - + - + @@ -19,10 +19,30 @@ - - - - +
+ 触发条件 + 添加触发条件 +
+ +
+
触发条件{{ index + 1 }}
+ + + + + + + + + + + + + + +
@@ -128,6 +148,9 @@ import propaganda from '../components/propaganda.vue' import scriptphone from '../components/script.vue' import question from '../components/question.vue' +import { + signrouteadd +} from '@/api/system/ManuallyCreatingTasks' export default { components: { scriptphone, question, propaganda }, name: "ManuallyCreatingTasks", @@ -135,7 +158,15 @@ export default { return { updata: { routeName: '', - suitRange: '' + suitRange: '', + routeNodeList: [], + triggerConditionList: [{ + routeId: '', + routeName: '', + triggerConditionName: '', + triggerConditionOperator: '', + triggerConditionValue: '', + }], }, formInline: { routeNodeDay: '', @@ -178,6 +209,15 @@ export default { this.formInline = this.list[0] }, methods: { + addtriggerCondition() { + this.updata.triggerConditionList.push({ + routeId: '', + routeName: '', + triggerConditionName: '', + triggerConditionOperator: '', + triggerConditionValue: '', + }) + }, //宣教传值 propagandaontemplate(item) { this.formInline.propagandaInfoId = item.templateId @@ -219,12 +259,31 @@ export default { this.list.splice(index, 1) }, upload() { - console.log(this.list) + this.updata.routeNodeList = this.list + signrouteadd(this.updata).then(res => { + + }) }, } };