From 91ef46e3991301a6c7a345679452d6b81a6c1429 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Mon, 28 Aug 2023 18:27:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task_template/edit.vue | 40 +++++++++++++++++++++++++------- src/views/user_menu/edit.vue | 4 ++-- src/views/user_menu/index.vue | 6 ++--- 3 files changed, 37 insertions(+), 13 deletions(-) diff --git a/src/views/task_template/edit.vue b/src/views/task_template/edit.vue index 09e4ed3..e0c0ef1 100644 --- a/src/views/task_template/edit.vue +++ b/src/views/task_template/edit.vue @@ -11,7 +11,7 @@ @@ -65,7 +65,7 @@ :value="formData.extend?.terminus?.address" /> - - + --> - + + + 显示 @@ -158,6 +168,8 @@ v-model="formData.content" clearable placeholder="请输入任务描述" + type="textarea" + autosize /> @@ -225,8 +237,9 @@ const formData = reactive({ money_two: 0, // 二阶段金额 money_three: 0, // 长期金额 types: "", //阶段类型 - task_admin: "", //任务负责人 - task_admin_name: "", //任务负责人 + // task_admin: "", //任务负责人 + // task_admin_name: "", //任务负责人 + recharge: "", extend: { // origin: { // address: "", @@ -287,10 +300,21 @@ const formRules = reactive({ trigger: ["blur"], }, ], - task_admin: [ + // task_admin: [ + // { + // required: true, + // message: "请选择负责人", + // trigger: ["blur"], + // }, + // ], + recharge: [ { required: true, - message: "请选择负责人", + // message: "请输入充值金额", + validator: (rule: any, value: any, callback: any) => { + if (value <= 0) callback(new Error("充值金额不能小于0")); + else callback(); + }, trigger: ["blur"], }, ], diff --git a/src/views/user_menu/edit.vue b/src/views/user_menu/edit.vue index e400f4a..58aaef4 100644 --- a/src/views/user_menu/edit.vue +++ b/src/views/user_menu/edit.vue @@ -283,7 +283,7 @@ defineExpose({ diff --git a/src/views/user_menu/index.vue b/src/views/user_menu/index.vue index dfa68df..6c02e1c 100644 --- a/src/views/user_menu/index.vue +++ b/src/views/user_menu/index.vue @@ -73,7 +73,7 @@ pager.lists, (newValue, oldValue) => { - newValue.forEach((item: any) => { - item.children.forEach((t: any) => { + newValue?.forEach((item: any) => { + item?.children?.forEach((t: any) => { t.parentName = item.name; }); });