Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sass-admin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj_app
sass-admin
Commits
1a57bc75
Commit
1a57bc75
authored
Dec 17, 2024
by
潘本斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7618c2ba
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
209 additions
and
105 deletions
+209
-105
src/common/Layout/Header/index.js
+3
-2
src/pages/SystemManagement/Banner/editBanner.jsx
+113
-70
src/pages/SystemManagement/Banner/index.jsx
+30
-16
src/pages/SystemManagement/Information/index.jsx
+46
-4
src/pages/SystemManagement/Site/Door/indexPage/mobile.jsx
+12
-8
src/pages/SystemManagement/Site/Door/indexPage/mobilePlugin/AddMenu.jsx
+3
-3
src/pages/SystemManagement/Site/Door/previewIndexPage/mobile.jsx
+0
-0
src/services/serve.js
+2
-2
src/static/imgs/1logo.png
+0
-0
No files found.
src/common/Layout/Header/index.js
View file @
1a57bc75
...
@@ -10,7 +10,7 @@ import SelectLang from "./SelectLang";
...
@@ -10,7 +10,7 @@ import SelectLang from "./SelectLang";
}
}
import
HeaderDropdown
from
"./HeaderDropdown"
;
import
HeaderDropdown
from
"./HeaderDropdown"
;
// import cookie from "react-cookies";bug-12952-cwj
// import cookie from "react-cookies";bug-12952-cwj
import
headerLogo
from
"../../../static/imgs/
headerL
ogo.png"
;
import
headerLogo
from
"../../../static/imgs/
1l
ogo.png"
;
class
Header
extends
PureComponent
{
class
Header
extends
PureComponent
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -88,7 +88,8 @@ class Header extends PureComponent {
...
@@ -88,7 +88,8 @@ class Header extends PureComponent {
<
div
className
=
{
styles
.
logo
}
>
<
div
className
=
{
styles
.
logo
}
>
<
img
<
img
className
=
{
styles
.
image
}
className
=
{
styles
.
image
}
src
=
{
nav
.
logo
?
nav
.
logo
:
headerLogo
}
// src={nav.logo ? nav.logo : headerLogo}
src
=
{
headerLogo
}
/
>
/
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
src/pages/SystemManagement/Banner/editBanner.jsx
View file @
1a57bc75
This diff is collapsed.
Click to expand it.
src/pages/SystemManagement/Banner/index.jsx
View file @
1a57bc75
...
@@ -37,24 +37,24 @@ class Banner extends React.PureComponent {
...
@@ -37,24 +37,24 @@ class Banner extends React.PureComponent {
terminalName
:
"移动端"
,
terminalName
:
"移动端"
,
modules
:
[
modules
:
[
{
moduleName
:
"首页"
,
id
:
0
},
{
moduleName
:
"首页"
,
id
:
0
},
{
moduleName
:
"项目"
,
id
:
3
},
// { moduleName: "项目", id: 3 },
{
moduleName
:
"课程"
,
id
:
1
},
// { moduleName: "课程", id: 1 },
{
moduleName
:
"新闻资讯"
,
id
:
5
},
// { moduleName: "新闻资讯", id: 5 },
{
moduleName
:
"营销"
,
id
:
6
},
// { moduleName: "营销", id: 6 },
{
moduleName
:
"专辑"
,
id
:
7
},
// { moduleName: "专辑", id: 7 },
],
},
{
id
:
2
,
terminalName
:
"PC"
,
modules
:
[
{
moduleName
:
"首页"
,
id
:
0
},
{
moduleName
:
"项目"
,
id
:
3
},
{
moduleName
:
"课程"
,
id
:
1
},
{
moduleName
:
"新闻资讯"
,
id
:
5
},
{
moduleName
:
"专辑"
,
id
:
7
},
],
],
},
},
// {
// id: 2,
// terminalName: "PC",
// modules: [
// { moduleName: "首页", id: 0 },
// { moduleName: "项目", id: 3 },
// { moduleName: "课程", id: 1 },
// { moduleName: "新闻资讯", id: 5 },
// { moduleName: "专辑", id: 7 },
// ],
// },
];
];
this
.
state
=
{
this
.
state
=
{
listRecords
:
[],
listRecords
:
[],
...
@@ -85,6 +85,20 @@ class Banner extends React.PureComponent {
...
@@ -85,6 +85,20 @@ class Banner extends React.PureComponent {
},
},
},
},
{
{
title
:
"副标题"
,
dataIndex
:
"imgTitleSub"
,
key
:
"imgTitleSub"
,
// width: 300,
align
:
"left"
,
render
:
text
=>
{
return
(
<
div
title=
{
text
}
style=
{
{
...
textOver
,
maxWidth
:
300
}
}
>
{
text
}
</
div
>
);
},
},
{
title
:
"图片"
,
title
:
"图片"
,
dataIndex
:
"bannerPath"
,
dataIndex
:
"bannerPath"
,
key
:
"bannerPath"
,
key
:
"bannerPath"
,
...
...
src/pages/SystemManagement/Information/index.jsx
View file @
1a57bc75
...
@@ -785,9 +785,50 @@ class Information extends React.Component {
...
@@ -785,9 +785,50 @@ class Information extends React.Component {
render
()
{
render
()
{
//树形控件
//树形控件
const
loopss
=
data
=>
data
.
map
(
item
=>
{
if
(
item
.
childClassifyNews
&&
item
.
childClassifyNews
.
length
)
{
return
(
<
TreeNode
key=
{
item
.
key
+
item
.
id
}
className=
{
Styles
.
treeTtitle
}
title=
{
<
Item
data=
{
item
}
type=
{
""
}
parentID=
{
this
.
state
.
ificationList
}
postAddNewsLists=
{
this
.
AddNewsList
}
postEditNewsLists=
{
this
.
EditNewsLists
}
newsDelete=
{
this
.
onNewsDelete
}
onTableList=
{
this
.
onTableList
}
/>
}
>
{
loopss
(
item
.
childClassifyNews
)
}
</
TreeNode
>
);
}
return
(
<
TreeNode
className=
{
Styles
.
treeTtitle
}
key=
{
item
.
key
+
item
.
id
}
title=
{
<
Item
data=
{
item
}
type=
{
""
}
parentID=
{
this
.
state
.
ificationList
}
postAddNewsLists=
{
this
.
AddNewsList
}
postEditNewsLists=
{
this
.
EditNewsLists
}
newsDelete=
{
this
.
onNewsDelete
}
onTableList=
{
this
.
onTableList
}
/>
}
/>
);
});
const
loops
=
data
=>
const
loops
=
data
=>
data
.
map
(
item
=>
{
data
.
map
(
item
=>
{
if
(
item
.
data
&&
item
.
data
.
length
)
{
if
(
item
.
childClassifyNews
&&
item
.
childClassifyNews
.
length
)
{
return
(
return
(
<
TreeNode
<
TreeNode
key=
{
item
.
key
+
item
.
id
}
key=
{
item
.
key
+
item
.
id
}
...
@@ -804,7 +845,7 @@ class Information extends React.Component {
...
@@ -804,7 +845,7 @@ class Information extends React.Component {
/>
/>
}
}
>
>
{
loops
(
item
.
data
)
}
{
loops
s
(
item
.
childClassifyNews
)
}
</
TreeNode
>
</
TreeNode
>
);
);
}
}
...
@@ -833,6 +874,7 @@ class Information extends React.Component {
...
@@ -833,6 +874,7 @@ class Information extends React.Component {
<
TreeNode
<
TreeNode
className=
{
Styles
.
treeTtitle
}
className=
{
Styles
.
treeTtitle
}
key=
{
item
.
key
+
item
.
id
}
key=
{
item
.
key
+
item
.
id
}
// chaildren={item.childClassifyNews}
title=
{
title=
{
<
Item
<
Item
data=
{
item
}
data=
{
item
}
...
@@ -984,7 +1026,7 @@ class Information extends React.Component {
...
@@ -984,7 +1026,7 @@ class Information extends React.Component {
<
Row
>
<
Row
>
<
Col
<
Col
span=
{
6
}
span=
{
8
}
style=
{
{
style=
{
{
padding
:
"20px"
,
padding
:
"20px"
,
border
:
"1px solid #d9d9d9"
,
border
:
"1px solid #d9d9d9"
,
...
@@ -1002,7 +1044,7 @@ class Information extends React.Component {
...
@@ -1002,7 +1044,7 @@ class Information extends React.Component {
{
loop
(
this
.
state
.
ificationList
)
}
{
loop
(
this
.
state
.
ificationList
)
}
</
Tree
>
</
Tree
>
</
Col
>
</
Col
>
<
Col
span=
{
1
8
}
style=
{
{
paddingLeft
:
"20px"
}
}
>
<
Col
span=
{
1
6
}
style=
{
{
paddingLeft
:
"20px"
}
}
>
<
Table
<
Table
dataSource=
{
this
.
state
.
record
.
records
}
dataSource=
{
this
.
state
.
record
.
records
}
columns=
{
columns
}
columns=
{
columns
}
...
...
src/pages/SystemManagement/Site/Door/indexPage/mobile.jsx
View file @
1a57bc75
...
@@ -29,7 +29,7 @@ class Mobile extends Component {
...
@@ -29,7 +29,7 @@ class Mobile extends Component {
coucedata
:
[],
coucedata
:
[],
};
};
}
}
componentDidMount
()
{
}
componentDidMount
()
{}
render
()
{
render
()
{
let
{
templateList
=
[],
homeId
,
siteId
}
=
this
.
props
.
homeInfo
;
let
{
templateList
=
[],
homeId
,
siteId
}
=
this
.
props
.
homeInfo
;
...
@@ -45,10 +45,10 @@ class Mobile extends Component {
...
@@ -45,10 +45,10 @@ class Mobile extends Component {
<
div
className=
{
Styles
.
mobileContainer
}
>
<
div
className=
{
Styles
.
mobileContainer
}
>
<
Banner
terminalId=
{
this
.
props
.
terminalId
}
/>
<
Banner
terminalId=
{
this
.
props
.
terminalId
}
/>
<
Classify
/>
<
Classify
/>
<
Announcement
/>
{
/* <Announcement /> */
}
{
/* 暂时写死 * task915 ; 确认写死...*/
}
{
/* 暂时写死 * task915 ; 确认写死...*/
}
<
CalendarTask
/>
{
/* <CalendarTask /> */
}
<
UserReport
terminalId=
{
this
.
props
.
terminalId
}
/>
{
/* <UserReport terminalId={this.props.terminalId} /> */
}
{
// values:首页功能模块列表,课程,项目,讲师
{
// values:首页功能模块列表,课程,项目,讲师
values
.
map
((
key
,
index
)
=>
{
values
.
map
((
key
,
index
)
=>
{
switch
(
key
.
moduleType
)
{
switch
(
key
.
moduleType
)
{
...
@@ -174,7 +174,8 @@ class Mobile extends Component {
...
@@ -174,7 +174,8 @@ class Mobile extends Component {
);
);
}
}
case
11
:
case
11
:
return
<
NewsList
return
(
<
NewsList
keys=
{
key
.
moduleType
}
keys=
{
key
.
moduleType
}
title=
{
key
.
moduleName
}
title=
{
key
.
moduleName
}
key=
{
index
}
key=
{
index
}
...
@@ -182,8 +183,10 @@ class Mobile extends Component {
...
@@ -182,8 +183,10 @@ class Mobile extends Component {
isFirst=
{
index
==
0
?
true
:
false
}
isFirst=
{
index
==
0
?
true
:
false
}
isLast=
{
index
==
values
.
length
-
1
?
true
:
false
}
isLast=
{
index
==
values
.
length
-
1
?
true
:
false
}
/>
/>
);
case
12
:
case
12
:
return
<
PayContentList
return
(
<
PayContentList
keys=
{
key
.
moduleType
}
keys=
{
key
.
moduleType
}
title=
{
key
.
moduleName
}
title=
{
key
.
moduleName
}
key=
{
index
}
key=
{
index
}
...
@@ -191,6 +194,7 @@ class Mobile extends Component {
...
@@ -191,6 +194,7 @@ class Mobile extends Component {
isFirst=
{
index
==
0
?
true
:
false
}
isFirst=
{
index
==
0
?
true
:
false
}
isLast=
{
index
==
values
.
length
-
1
?
true
:
false
}
isLast=
{
index
==
values
.
length
-
1
?
true
:
false
}
/>
/>
);
default
:
default
:
//公共模块(专辑或其他类型,和产品商量一下设计一样)
//公共模块(专辑或其他类型,和产品商量一下设计一样)
...
@@ -219,9 +223,9 @@ class Mobile extends Component {
...
@@ -219,9 +223,9 @@ class Mobile extends Component {
"Object.keys(this.props.homeData).length"
,
"Object.keys(this.props.homeData).length"
,
Object
.
keys
(
this
.
props
.
homeData
).
length
Object
.
keys
(
this
.
props
.
homeData
).
length
)
}
)
}
{
Object
.
keys
(
this
.
props
.
homeData
).
length
==
0
&&
(
{
/* {
Object.keys(this.props.homeData).length == 0 && (
<AddModule homeId={homeId} siteId={siteId} />
<AddModule homeId={homeId} siteId={siteId} />
)
}
)}
*/
}
{
/*配置底部导航*/
}
{
/*配置底部导航*/
}
<
FooterNav
/>
<
FooterNav
/>
...
...
src/pages/SystemManagement/Site/Door/indexPage/mobilePlugin/AddMenu.jsx
View file @
1a57bc75
...
@@ -147,6 +147,7 @@ class AddMenu extends Component {
...
@@ -147,6 +147,7 @@ class AddMenu extends Component {
showName
:
values
.
showName
,
showName
:
values
.
showName
,
relationFuncName
:
values
.
relationFuncName
,
relationFuncName
:
values
.
relationFuncName
,
relationFuncCode
:
dicItem
.
length
>
0
?
dicItem
[
0
].
code
:
""
,
relationFuncCode
:
dicItem
.
length
>
0
?
dicItem
[
0
].
code
:
""
,
relationId
:
dicItem
.
length
>
0
?
dicItem
[
0
].
id
:
""
,
// relationFuncName: this.props.firstItem[this.state.value1].name,
// relationFuncName: this.props.firstItem[this.state.value1].name,
relationFuncUrl
:
relationFuncUrl
:
values
.
relationFuncName
===
"外链"
?
values
.
relationFuncUrl
:
""
,
//schiffer.ji
values
.
relationFuncName
===
"外链"
?
values
.
relationFuncUrl
:
""
,
//schiffer.ji
...
@@ -155,7 +156,7 @@ class AddMenu extends Component {
...
@@ -155,7 +156,7 @@ class AddMenu extends Component {
imgPath
:
this
.
state
.
imgPath
,
imgPath
:
this
.
state
.
imgPath
,
homeId
:
""
,
//没有取得在classify 组件128行取添加
homeId
:
""
,
//没有取得在classify 组件128行取添加
// relationId:this.state.id,
// relationId:this.state.id,
relationId
:
values
.
relationId
?
values
.
relationId
:
this
.
state
.
id
,
//
relationId: values.relationId ? values.relationId : this.state.id,
relationNum
:
values
.
rankType
?
values
.
rankType
.
join
(
","
)
:
""
,
relationNum
:
values
.
rankType
?
values
.
rankType
.
join
(
","
)
:
""
,
// relationFuncCode:this.props.firstItem[this.state.value1].code?this.props.firstItem[this.state.value1].code:this.props.curNaviObj.relationFuncCode,
// relationFuncCode:this.props.firstItem[this.state.value1].code?this.props.firstItem[this.state.value1].code:this.props.curNaviObj.relationFuncCode,
};
};
...
@@ -191,7 +192,6 @@ class AddMenu extends Component {
...
@@ -191,7 +192,6 @@ class AddMenu extends Component {
// let form = this.props.form;
// let form = this.props.form;
// form.setFieldsValue({ showName: e, relationFuncUrl: '' });
// form.setFieldsValue({ showName: e, relationFuncUrl: '' });
// }
// }
console
.
log
(
"e月eeeeeeeeeeeeeeee"
,
e
);
this
.
setState
({
this
.
setState
({
selectFlag
:
true
,
selectFlag
:
true
,
value1
:
op
.
key
,
value1
:
op
.
key
,
...
@@ -341,7 +341,7 @@ class AddMenu extends Component {
...
@@ -341,7 +341,7 @@ class AddMenu extends Component {
})(
})(
// <div>11</div>
// <div>11</div>
<
Select
<
Select
key=
{
'all'
}
key=
{
"all"
}
onChange=
{
key
=>
{
onChange=
{
key
=>
{
console
.
log
(
"926"
,
key
);
console
.
log
(
"926"
,
key
);
this
.
setState
({
CaseLibraryId
:
key
});
this
.
setState
({
CaseLibraryId
:
key
});
...
...
src/pages/SystemManagement/Site/Door/previewIndexPage/mobile.jsx
View file @
1a57bc75
src/services/serve.js
View file @
1a57bc75
...
@@ -5,8 +5,8 @@ let baseUrl = "";
...
@@ -5,8 +5,8 @@ let baseUrl = "";
if
(
location
.
host
.
includes
(
"localhost"
))
{
if
(
location
.
host
.
includes
(
"localhost"
))
{
// baseUrl = IP + '/admin';
// baseUrl = IP + '/admin';
baseUrl
=
"http://10.23.1.180:8090"
;
//
baseUrl = "http://10.23.1.180:8090";
// baseUrl="http://dev.mg.kmelearning.com
";
baseUrl
=
"http://192.168.1.106:8090
"
;
}
}
const
service
=
{
const
service
=
{
...
...
src/static/imgs/1logo.png
0 → 100644
View file @
1a57bc75
4.51 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment