From 8250bb28779cc791a4feed70a6d04ec18d5713bd Mon Sep 17 00:00:00 2001 From: "@zuopngfei" Date: Thu, 6 Nov 2025 11:30:51 +0800 Subject: [PATCH] wew --- src/views/customerService/index.vue | 64 ++++++++++------------------- src/views/miniProgram/index.vue | 62 ++++++++++------------------ 2 files changed, 42 insertions(+), 84 deletions(-) diff --git a/src/views/customerService/index.vue b/src/views/customerService/index.vue index a169ac5..bafab4b 100644 --- a/src/views/customerService/index.vue +++ b/src/views/customerService/index.vue @@ -31,36 +31,17 @@ @@ -88,12 +69,8 @@ - +
留空则不修改密码
@@ -122,7 +99,8 @@ - +
{ trigger: 'change', }], } - + // 在创建模式下,密码是必填的;在编辑模式下,密码是可选的 if (!isEdit.value) { baseRules.password = [{ @@ -222,7 +200,7 @@ const getRules = () => { trigger: 'blur', }] } - + return baseRules } @@ -291,7 +269,7 @@ const submitRobot = async () => { avatar: ruleForm.value.avatar, mobile: ruleForm.value.mobile, } - + // 只有当密码字段有值且不为空时才传入密码字段 if (ruleForm.value.password && ruleForm.value.password.trim() !== '') { editData.password = md5(ruleForm.value.password) @@ -315,7 +293,7 @@ const submitRobot = async () => { ...ruleForm.value, password: md5(ruleForm.value.password) } - + const res = await addRobot(createData) robotCards.value.push({ ...ruleForm.value, @@ -357,7 +335,7 @@ const handleDelete = (item, index) => { duration: 2000 }) await deleteRobot({ - ids: String(item.id) + ids: String(item.id) }) // getGroups() robotCards.value.splice(index, 1) @@ -406,7 +384,7 @@ const openLog = async () => { tableLoading.value = false logList.value = res.list total.value = res.total - + // 只在第一次打开时获取已绑定的小程序列表 if (bandAppIds.value.length === 0 || logQuery.page === 1) { const res2 = await appList({ @@ -418,7 +396,7 @@ const openLog = async () => { // 初始化 appSelects 包含已绑定的小程序 appSelects = [...bandAppIds.value] } - + // 默认选中已绑定的小程序 setSelectedApps() } diff --git a/src/views/miniProgram/index.vue b/src/views/miniProgram/index.vue index 0e1459a..a8bac08 100644 --- a/src/views/miniProgram/index.vue +++ b/src/views/miniProgram/index.vue @@ -39,43 +39,22 @@ @@ -102,9 +81,10 @@ - - - + + + @@ -168,7 +148,7 @@
- +