This commit is contained in:
姜棚 2022-01-05 14:08:39 +08:00
parent 74c72edc35
commit aff6b5b463
3 changed files with 20 additions and 9 deletions

View File

@ -836,7 +836,7 @@ export const delSystemTemplate= (id) => {
//key码列表 //key码列表
export const getkeyDetailList= (id,data) => { export const getkeyDetailList= (id,data) => {
return req('get', baseurl + "/key/"+id,data) return req('get', "http://192.168.6.98:8000" + "/key/"+id,data)
} }

View File

@ -58,12 +58,23 @@ const menu={
case 7:return '#b6bcb8';break; case 7:return '#b6bcb8';break;
} }
}, },
//计划任务状态
keyStatus(params) {
switch(params){
case 1:return '待使用';break;
case 2:return '已使用';break;
case 3:return '已失效';break;
case 4:return '已作废';break;
case 5:return '使用锁定中';break;
}
},
keyStatusBg(params) { keyStatusBg(params) {
switch(params){ switch(params){
case 1:return '#BFBFBF';break; case 1:return '#BFBFBF';break;
case 2:return '#43A65D';break; case 2:return '#43A65D';break;
case 3:return '#ffaa00';break; case 3:return '#ffaa00';break;
case 4:return '#e64c00';break; case 4:return '#e64c00';break;
case 5:return '#3575C7'; break;
} }
}, },

View File

@ -209,13 +209,13 @@ export default class acclist extends React.Component{
prop:'plan_title', prop:'plan_title',
name: 'plan_title', name: 'plan_title',
}, },
// { {
// title: '状态', title: '状态',
// prop:'status', prop:'status',
// name: 'status', name: 'status',
// width:'auto', width:'auto',
// type: "slot", type: "slot",
// }, },
{ {
title: '使用量', title: '使用量',
name: 'usage', name: 'usage',
@ -308,7 +308,7 @@ export default class acclist extends React.Component{
} }
if(com == "status") if(com == "status")
{ {
return <p className="dflexa" ><span><font className="icon" style={{background:menu.keyStatusBg(parseInt(rowData.status))}}></font>{rowData.status_text}</span></p> return <p className="dflexa" ><span><font className="icon" style={{background:menu.keyStatusBg(parseInt(rowData.status))}}></font>{ menu.keyStatus(parseInt(rowData.status))}</span></p>
} }
if(com == "opearo") if(com == "opearo")
{ {