From b68233f940161bbdf5c9cd7ffd773d1acf1addd4 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Fri, 22 Dec 2023 11:04:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/index.ts | 2 +- src/main.ts | 2 +- src/views/create_taskTemplate/edit.vue | 65 +++++++++++++------------- src/views/task_template/edit.vue | 2 +- src/views/task_template/edit_admin.vue | 41 +++++++++------- 5 files changed, 59 insertions(+), 53 deletions(-) diff --git a/src/config/index.ts b/src/config/index.ts index efe50ec..e3e6b63 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -8,5 +8,5 @@ const config = { urlPrefix: "adminapi", //请求默认前缀 timeout: 20 * 1000, //请求超时时长 }; - +console.log( import.meta.env,99999) export default config; diff --git a/src/main.ts b/src/main.ts index 6f02ee9..28b93c5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -14,4 +14,4 @@ const app = createApp(App) app.use(install) app.provide('base_url', configs.baseUrl+configs.urlPrefix); app.mount('#app') -app.config.warnHandler = () => null \ No newline at end of file +app.config.warnHandler = () => null diff --git a/src/views/create_taskTemplate/edit.vue b/src/views/create_taskTemplate/edit.vue index e40699e..ecb0146 100644 --- a/src/views/create_taskTemplate/edit.vue +++ b/src/views/create_taskTemplate/edit.vue @@ -24,33 +24,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -63,12 +36,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -109,16 +110,16 @@ const formData = reactive({ type: '', stage_day_one: '', money: '', - proportion_one: '', + // proportion_one: '', stage_day_two: '', - proportion_two: '', + // proportion_two: '', money_two: '', stage_day_three: '', new_money_three: '', money_longtime: '', types: '', // extend: '', - recharge: '', + // recharge: '', content: '', }) diff --git a/src/views/task_template/edit.vue b/src/views/task_template/edit.vue index 6e0e410..a4d2eac 100644 --- a/src/views/task_template/edit.vue +++ b/src/views/task_template/edit.vue @@ -6,7 +6,7 @@ - diff --git a/src/views/task_template/edit_admin.vue b/src/views/task_template/edit_admin.vue index 04c8ba9..846c880 100644 --- a/src/views/task_template/edit_admin.vue +++ b/src/views/task_template/edit_admin.vue @@ -3,31 +3,31 @@ - - + + - + - -
- + 选择商品 - + - + - + - + - + - + - + - + @@ -109,7 +109,7 @@ - @@ -188,7 +188,7 @@ const formData = reactive({ type_value: "", status: "", content: "", - cron_time:"", + cron_time: "", stage_day_one: 0, money: 0, // 一阶段金额 stage_day_two: 0, @@ -236,11 +236,13 @@ const showTargetTypeList = [ "town_task_type_marketing_director_8", "town_task_type_marketing_director_6", "town_task_type_marketing_director_5", + "town_task_type_marketing_director_11", "town_task_type_marketing_director_4", "town_task_type_marketing_director_3", "town_task_type_marketing_director_2", 'town_task_type_master_3', - "town_task_type_master_7" + "town_task_type_master_7", + ]; const showTarget = computed(() => { let flag = false; @@ -323,6 +325,9 @@ const changeTaskTypeFn = () => { }) setFormData(taskTempList[i]) formData.type = Number(formData.type) + + formData.money_three = taskTempList[i].money_longtime + formData.extend.task_role = formData.task_role_id changeTaskRole(formData.task_role_id) }