fix: 修改bug
This commit is contained in:
parent
9eacdb2687
commit
2e50b866f0
|
@ -3,20 +3,25 @@
|
|||
<div class="tag-box" ref="box">
|
||||
<div v-for="(item, i) in value" :key="item.id" ref="tags">
|
||||
<div v-if="i != _index" class="tag">
|
||||
{{ item.name }}
|
||||
{{ item?.name }}
|
||||
</div>
|
||||
<div
|
||||
v-else
|
||||
class="tag-ellipsis"
|
||||
:style="
|
||||
i === _index
|
||||
? {
|
||||
width: `${offWidth}px`,
|
||||
}
|
||||
? (offWidth
|
||||
? {
|
||||
width: `${offWidth}px`,
|
||||
}
|
||||
: {
|
||||
background: 'none',
|
||||
color: 'white',
|
||||
})
|
||||
: {}
|
||||
"
|
||||
>
|
||||
{{ item.name }}
|
||||
{{ offWidth ? item?.name : '...' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -45,7 +50,7 @@ const onResize = ({ width }: { width: number }) => {
|
|||
const val = item?.offsetWidth - (total - width);
|
||||
if (total >= width) {
|
||||
_index.value = i;
|
||||
offWidth.value = val;
|
||||
offWidth.value = val > 40 ? val : 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -193,6 +193,7 @@ onUnmounted(() => {
|
|||
justify-content: space-between;
|
||||
align-items: center;
|
||||
height: 100%;
|
||||
gap: 12px;
|
||||
.person-header-item-info {
|
||||
display: flex;
|
||||
width: calc(100% - 380px);
|
||||
|
|
|
@ -20,8 +20,8 @@ const AliyunVoice = () => {
|
|||
<div> 使用固定的通知配置发送此通知模板</div>
|
||||
<h2>2、类型</h2>
|
||||
<div> 阿里云语音通知类型,当类型为验证码类型时可配置变量。</div>
|
||||
<h2> 3、模板ID</h2>
|
||||
<div> 阿里云语音对每一条语音通知分配的唯一ID标识</div>
|
||||
<h2> 3、模板ID/语音ID</h2>
|
||||
<div> 阿里云语音对每一条语音验证码/语音通知分配的唯一ID标识</div>
|
||||
<h2> 4、被叫号码</h2>
|
||||
<div> 当前仅支持国内手机号,此处若不填,则在模板调试和配置告警通知时手动填写。</div>
|
||||
<div>若您使用的语音通知文件为公共模式外呼,则该参数值不填。</div>
|
||||
|
|
|
@ -430,7 +430,7 @@
|
|||
>
|
||||
<template #label>
|
||||
<span>
|
||||
模板ID
|
||||
{{ formData.template.templateType === 'voice' ? '语音ID' : '模板ID' }}
|
||||
<j-tooltip
|
||||
title="阿里云内部分配的唯一ID标识"
|
||||
>
|
||||
|
@ -953,7 +953,7 @@ const formRules = {
|
|||
}
|
||||
],
|
||||
calledShowNumbers: [
|
||||
{ required: true, message: '请输入被叫显号' },
|
||||
// { required: true, message: '请输入被叫显号' },
|
||||
{ max: 64, message: '最多可输入64个字符' },
|
||||
{
|
||||
validator(_rule: Rule, value: string) {
|
||||
|
|
Loading…
Reference in New Issue