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/manage/projectgroup/index.vue b/src/views/manage/projectgroup/index.vue index 017b7e5..6515b74 100644 --- a/src/views/manage/projectgroup/index.vue +++ b/src/views/manage/projectgroup/index.vue @@ -117,7 +117,12 @@ - + - + - + diff --git a/src/views/manage/visitout/index.vue b/src/views/manage/visitout/index.vue index d79a982..74fd62d 100644 --- a/src/views/manage/visitout/index.vue +++ b/src/views/manage/visitout/index.vue @@ -269,10 +269,12 @@ - + - + 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 => { + + }) }, } };