Commit 08a1b7be authored by 皮倩雯's avatar 皮倩雯

fix: '消息平台web配置增加语音播报配置'

parent a7a487da
Pipeline #77903 passed with stages
......@@ -192,6 +192,7 @@ const EditModal = props => {
message_template: template.MsgTemplateID,
enterprise_template: aa,
WorkWeiXinPath: template.WorkWeiXinPath,
WebVoice: template.WebVoice,
});
setImageUrl(template.WebIcon ? `${window.location.origin}/${template.WebIcon}` : '');
setIm(template.WebIcon ? template.WebIcon : '');
......@@ -385,6 +386,7 @@ const EditModal = props => {
WebIcon: fv.webIcon,
Title: fv.Title,
WorkWeiXinPath: fv.WorkWeiXinPath,
WebVoice: fv.WebVoice,
};
UpdateMessageConfig(a).then(res => {
......@@ -879,12 +881,13 @@ const EditModal = props => {
))}
</Select>
</Item>
<Row>
<Col span={8}>
<Item
label="图标"
name="WebIcon"
style={{ height: '82px' }}
labelCol={{ span: 5 }}
labelCol={{ span: 15 }}
>
{imageUrl ? (
<div
......@@ -959,6 +962,22 @@ const EditModal = props => {
/>
)}
</Item>
</Col>
<Col span={16}>
<Item
label="语音内容"
name="WebVoice"
labelCol={{ span: 4 }}
className={styles.labelItem}
>
<TextArea
rows={3}
placeholder="请输入语音内容"
style={{ width: '95%' }}
/>
</Item>
</Col>
</Row>
<Item label="功能路径" name="web_path" labelCol={{ span: 5 }}>
{/* <TextArea
......
.editModal_container {
:global {
::-webkit-scrollbar {
height: 0px; //x轴滚动条粗细
width: 0px; //y轴滚动条粗细
}
//滚动条里面的小方块,能上下左右移动(取决于是垂直滚动条还是水平滚动条)
::-webkit-scrollbar-thumb {
border-radius: 10px;
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
background: rgba(74, 74, 75, 0.3);
margin-bottom: 10px;
}
//滚动条的轨道(里面装有thumb)滚动槽
::-webkit-scrollbar-track {
box-shadow: 0;
border-radius: 0;
background: white; //滚动槽背景色
border-radius: 10px; //滚动条边框半径设置
}
}
width: 100%;
overflow-y: hidden;
height: calc(100% - 20px);
......@@ -56,6 +79,7 @@
justify-content: space-between;
padding: 0 24px;
align-items: center;
.lable {
font-size: large;
margin-left: 10px;
......@@ -68,7 +92,7 @@
height: 14rem;
display: flex;
flex-direction: column;
overflow: hidden;
overflow-y: scroll;
}
.ant-switch {
margin-right: 0.5rem;
......@@ -96,3 +120,9 @@
width: '100%';
background-color: '#2881a1';
}
.labelItem {
.ant-form-item-label > label {
width: 50px;
white-space: pre-wrap;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment