超算新闻编辑按钮的显示条件
This commit is contained in:
parent
a94eb83e58
commit
5388195111
|
|
@ -173,8 +173,7 @@ function SelfList(props){
|
|||
const auditTypeEnom = {
|
||||
create: '发布',
|
||||
update: '编辑',
|
||||
delete: '删除',
|
||||
nonRepoUpdate: '编辑'
|
||||
delete: '删除'
|
||||
}
|
||||
|
||||
const statueName =(auditType)=>{
|
||||
|
|
@ -244,7 +243,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==="source" || (source==="news" && (i.auditType && i.auditType.split('-')[0]!=="delete")) && <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 === 0 || status===2) && i.auditType && i.auditType.split('-')[0]==="delete")) && <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 = '0111aaede5482cd146765f9aa8df16dc3d0ad58c'
|
||||
// request.headers.Authorization = 'ea5a846163283f953852483e023fd1a78dfb49de'
|
||||
if (deptId) {
|
||||
// 用于权限区分
|
||||
request.headers['Dept-Id'] = deptId
|
||||
|
|
|
|||
Loading…
Reference in New Issue