超算-新闻资讯待审核和未通过不显示编辑按钮
This commit is contained in:
parent
569821a359
commit
5022d0c68f
|
|
@ -1,8 +1,8 @@
|
|||
@font-face {
|
||||
font-family: "iconfont"; /* Project id 2340181 */
|
||||
src: url('iconfont.woff2?t=1780902820324') format('woff2'),
|
||||
url('iconfont.woff?t=1780902820324') format('woff'),
|
||||
url('iconfont.ttf?t=1780902820324') format('truetype');
|
||||
src: url('iconfont.woff2?t=1781227458195') format('woff2'),
|
||||
url('iconfont.woff?t=1781227458195') format('woff'),
|
||||
url('iconfont.ttf?t=1781227458195') format('truetype');
|
||||
}
|
||||
|
||||
.iconfont {
|
||||
|
|
@ -13,6 +13,14 @@
|
|||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.icon-zhinengzhushou:before {
|
||||
content: "\ea08";
|
||||
}
|
||||
|
||||
.icon-shine-search:before {
|
||||
content: "\ea07";
|
||||
}
|
||||
|
||||
.icon-zuojiantou3:before {
|
||||
content: "\ea05";
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -5,6 +5,20 @@
|
|||
"css_prefix_text": "icon-",
|
||||
"description": "",
|
||||
"glyphs": [
|
||||
{
|
||||
"icon_id": "45990748",
|
||||
"name": "智能助手",
|
||||
"font_class": "zhinengzhushou",
|
||||
"unicode": "ea08",
|
||||
"unicode_decimal": 59912
|
||||
},
|
||||
{
|
||||
"icon_id": "47826921",
|
||||
"name": "shine-search",
|
||||
"font_class": "shine-search",
|
||||
"unicode": "ea07",
|
||||
"unicode_decimal": 59911
|
||||
},
|
||||
{
|
||||
"icon_id": "47798947",
|
||||
"name": "左箭头",
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -29,7 +29,7 @@ function SiderBar(props) {
|
|||
const [ feedBackModal, setFeedBackModal] = useState(false);
|
||||
const [ feedBackValue, setFeedBackValue] = useState(undefined);
|
||||
const [ failApply, setFailApply] = useState(undefined);
|
||||
|
||||
|
||||
useEffect(()=>{
|
||||
user && setLogin(user.login);
|
||||
},[user])
|
||||
|
|
@ -103,8 +103,28 @@ function SiderBar(props) {
|
|||
}
|
||||
}
|
||||
|
||||
function loginAi(){
|
||||
const url = `https://testai.trustie.net/login`;
|
||||
axios.post(url,{username:"chaosuan",password:"12345678"}).then(res=>{
|
||||
if(res && res.data){
|
||||
window.open(`https://testai.trustie.net/chat`);
|
||||
}
|
||||
}).catch(error=>{
|
||||
console.error('loginAi请求失败:', error);
|
||||
message.error('连接智能助手失败,请稍后重试');
|
||||
})
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={"-task-sidebar"} >
|
||||
{/* 超算智能助手 */}
|
||||
{/* { location.pathname === "/zone/NSCC" &&
|
||||
<Tooltip title="智能助手" placement={"left"} overlayClassName="tooltipBox">
|
||||
<div className="consult" onClick={loginAi} style={{cursor: 'pointer'}}>
|
||||
<i className="iconfont icon-zhinengzhushou font-34" ></i>
|
||||
</div>
|
||||
</Tooltip>
|
||||
} */}
|
||||
{/* 平台反馈 */}
|
||||
<Tooltip title="意见反馈" placement={"left"} overlayClassName="tooltipBox">
|
||||
<div className="consult" onClick={feedBackClick} style={{cursor: 'pointer'}}>
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ function SelfList(props){
|
|||
<Link to={`/zone/${deptId}/${source==="source"?"source":"newdetail"}/${i.id}`} className="s-name task-hide">{i.name}</Link>
|
||||
}
|
||||
{
|
||||
source === "news" && status === 0 && i.auditType && <span>{statueName(i.auditType.split('-')[0])}</span>
|
||||
source === "news" && (status === 0 || status===2) && i.auditType && <span>{statueName(i.auditType.split('-')[0])}</span>
|
||||
}
|
||||
</div>
|
||||
{i.remark && status===2 && <div>驳回理由:{i.remark}</div>}
|
||||
|
|
@ -244,7 +244,7 @@ function SelfList(props){
|
|||
<span><i className="iconfont icon-a-31shijian mr5 font-15"></i>{source==="projects" ? "更新于":"创建于"}{i.timeAgo || moment(i.createTime).format("YYYY/MM/DD")}</span>
|
||||
</span>
|
||||
<span className="s-info-right">
|
||||
{source!=="projects" && <a href={`/zone/${deptId}/${source}/${i.id}/edit`} style={{color:"#466aff"}}><i className="iconfont icon-a-bianji12 mr5 font-14"></i>编辑</a> }
|
||||
{source==="source" || (source==="news" && status===1) && <a href={`/zone/${deptId}/${source}/${i.id}/edit`} style={{color:"#466aff"}}><i className="iconfont icon-a-bianji12 mr5 font-14"></i>编辑</a> }
|
||||
{
|
||||
source==="projects"?
|
||||
<a style={{color:"#d81017",marginLeft:"25px"}} onClick={()=>handleRemove(i.name,i.id)}><i className="iconfont icon-fuzhi-shanchu mr5 font-14"></i>移除</a>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ function beforeFetch(actionUrl){
|
|||
|
||||
service.interceptors.request.use(request => {
|
||||
let deptId = sessionStorage.getItem('deptId');
|
||||
// request.headers.Authorization = '8786c89c803fc2420f75c19895f0cee794b6f9a3'
|
||||
// request.headers.Authorization = '0111aaede5482cd146765f9aa8df16dc3d0ad58c'
|
||||
if (deptId) {
|
||||
// 用于权限区分
|
||||
request.headers['Dept-Id'] = deptId
|
||||
|
|
|
|||
Loading…
Reference in New Issue