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

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

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