feat:工单的校验问题处理
This commit is contained in:
@@ -149,6 +149,8 @@ const originalPhone = ref("");
|
||||
const contactPhone = ref("");
|
||||
// 是否用户已编辑过手机号(一旦编辑则不再脱敏)
|
||||
const hasEditedPhone = ref(false);
|
||||
// 需求信息描述:使用可写的 ref,并从工具结果初始化
|
||||
const contactText = ref("");
|
||||
|
||||
// 手机号脱敏:138****1234(仅对11位数字进行处理)
|
||||
const maskPhone = (phone) => {
|
||||
@@ -163,13 +165,10 @@ watch(
|
||||
originalPhone.value = val?.userPhone || "";
|
||||
hasEditedPhone.value = false;
|
||||
contactPhone.value = maskPhone(originalPhone.value);
|
||||
contactText.value = val?.callServiceContent || "";
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
const contactText = computed({
|
||||
get: () => toolResult.value?.callServiceContent || "",
|
||||
set: (val) => (contactText.value = val),
|
||||
});
|
||||
|
||||
// 处理图片上传
|
||||
const handleChooseImage = () => {
|
||||
|
||||
Reference in New Issue
Block a user