Commit 97fcbaf7 authored by 皮倩雯's avatar 皮倩雯

fix: '修复消息平台台图标显示bug'

parent 0186e72c
Pipeline #64654 passed with stages
...@@ -170,7 +170,7 @@ const EditModal = props => { ...@@ -170,7 +170,7 @@ const EditModal = props => {
isStart: template.IsStarted === '0' ? '关闭' : '开启', isStart: template.IsStarted === '0' ? '关闭' : '开启',
to_person: template.PushGroup, to_person: template.PushGroup,
push_mode: template.PushMode === null ? '' : template.PushMode.split(','), push_mode: template.PushMode === null ? '' : template.PushMode.split(','),
webIcon: template.WebIcon ? `${window.location.origin}/${template.WebIcon}` : '', webIcon: template.WebIcon,
webTitile: template.WebTitile, webTitile: template.WebTitile,
app_template: template.AppTemplateID, app_template: template.AppTemplateID,
app_path: template.AppFunctionPath, app_path: template.AppFunctionPath,
...@@ -683,6 +683,7 @@ const EditModal = props => { ...@@ -683,6 +683,7 @@ const EditModal = props => {
}; };
const onOk = props => { const onOk = props => {
console.log(props);
if (props) { if (props) {
setImageUrl(`${window.location.origin}/${props}`); setImageUrl(`${window.location.origin}/${props}`);
setIm(props); setIm(props);
...@@ -919,36 +920,13 @@ const EditModal = props => { ...@@ -919,36 +920,13 @@ const EditModal = props => {
))} ))}
</Select> </Select>
</Item> </Item>
<Item label="功能路径" name="web_path" labelCol={{ span: 6 }}> <Item label="标题" name="webTitile" labelCol={{ span: 6 }}>
{/* <TextArea <Input
rows={1} placeholder="请输入标题"
style={{ width: '97%' }}
disabled={!currentTrench.isWEBShow}
placeholder="请输入功能路径"
/> */}
<TreeSelect
showSearch
treeNodeFilterProp="title"
// filterTreeNode={filterTreeNode11}
style={{ width: '97%' }} style={{ width: '97%' }}
value={treeSelectValue}
disabled={!currentTrench.isWEBShow} disabled={!currentTrench.isWEBShow}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }} />
placeholder="请选择功能路径"
allowClear
treeDefaultExpandAll
treeIcon
onChange={treeSelectOnchange}
onSearch={onSearchWeb}
>
{menuWebList ? (
menuWebList.map(i => mapTree(i))
) : (
<Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />
)}
</TreeSelect>
</Item> </Item>
<Item <Item
label="图标" label="图标"
name="WebIcon" name="WebIcon"
...@@ -977,7 +955,7 @@ const EditModal = props => { ...@@ -977,7 +955,7 @@ const EditModal = props => {
}} }}
/> />
{show == 'visible' ? ( {show == 'visible' && currentTrench.isWEBShow ? (
<> <>
<div className={styles.imgg} /> <div className={styles.imgg} />
<DeleteOutlined <DeleteOutlined
...@@ -985,7 +963,7 @@ const EditModal = props => { ...@@ -985,7 +963,7 @@ const EditModal = props => {
setImageUrl(''); setImageUrl('');
setIm(''); setIm('');
setKeepImgeUrl(''); setKeepImgeUrl('');
form.setFieldsValue({ WebIcon: '' }); form.setFieldsValue({ webIcon: '' });
}} }}
style={{ style={{
position: 'absolute', position: 'absolute',
...@@ -1022,9 +1000,34 @@ const EditModal = props => { ...@@ -1022,9 +1000,34 @@ const EditModal = props => {
/> />
)} )}
</Item> </Item>
<Item label="功能路径" name="web_path" labelCol={{ span: 6 }}>
<Item label="标题" name="webTitile" labelCol={{ span: 6 }}> {/* <TextArea
<Input placeholder="请输入标题" /> rows={1}
style={{ width: '97%' }}
disabled={!currentTrench.isWEBShow}
placeholder="请输入功能路径"
/> */}
<TreeSelect
showSearch
treeNodeFilterProp="title"
// filterTreeNode={filterTreeNode11}
style={{ width: '97%' }}
value={treeSelectValue}
disabled={!currentTrench.isWEBShow}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
placeholder="请选择功能路径"
allowClear
treeDefaultExpandAll
treeIcon
onChange={treeSelectOnchange}
onSearch={onSearchWeb}
>
{menuWebList ? (
menuWebList.map(i => mapTree(i))
) : (
<Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />
)}
</TreeSelect>
</Item> </Item>
</div> </div>
</div> </div>
......
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