|
|
@ -27,6 +27,7 @@ const Example = (props) => { |
|
|
|
const [bindId, setBindId] = useState() //修改时绑定的id |
|
|
|
const [tableKey, setTableKey] = useState([]) //修改时绑定的id |
|
|
|
const page = useRef(query.page);//哪一页 |
|
|
|
const [mapping, setMapping] = useState() //修改时的映射类型 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -46,7 +47,7 @@ const Example = (props) => { |
|
|
|
|
|
|
|
const [tableData, setTableData] = useState([]) //表格数据 |
|
|
|
|
|
|
|
const getPepProject = ()=>{ |
|
|
|
const getPepProject = () => { |
|
|
|
dispatch(install.getProjectPmanage(query)).then((res) => {//获取PEP项目管理项目 |
|
|
|
setPeplist(res.payload.data) |
|
|
|
}) |
|
|
@ -60,7 +61,7 @@ const Example = (props) => { |
|
|
|
dispatch(install.getProjectAppList(query)).then((res) => {//获取应用列表 |
|
|
|
setAppList(res.payload.data) |
|
|
|
}) |
|
|
|
console.log('user',user); |
|
|
|
console.log('user', user); |
|
|
|
}, []) |
|
|
|
useEffect(() => { |
|
|
|
getProjectPomsList(); |
|
|
@ -228,7 +229,7 @@ const Example = (props) => { |
|
|
|
dataIndex: "createTime", |
|
|
|
key: 'time', |
|
|
|
render: (_, row) => { |
|
|
|
return moment(row.createTime).format("YYYY-MM-DD HH:mm:ss"); |
|
|
|
return moment(row.createTime).format("YYYY-MM-DD HH:mm:ss") |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -236,7 +237,7 @@ const Example = (props) => { |
|
|
|
dataIndex: "updateTime", |
|
|
|
key: 'updateTime', |
|
|
|
render: (_, row) => { |
|
|
|
return moment(row.updateTime).format("YYYY-MM-DD HH:mm:ss"); |
|
|
|
return moment(row.updateTime).format("YYYY-MM-DD HH:mm:ss") |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -284,9 +285,11 @@ const Example = (props) => { |
|
|
|
delete myarrarrList[j].projectApp |
|
|
|
myapparr.push(JSON.stringify(myarrarrList[j])) |
|
|
|
} |
|
|
|
|
|
|
|
setAppArr(myapparr) |
|
|
|
setAnxincloudArr(myanxinArr) |
|
|
|
setBindId(row.id) |
|
|
|
setMapping(row?.mappingClass) |
|
|
|
setSystemEdit(true) |
|
|
|
}} |
|
|
|
> |
|
|
@ -310,7 +313,7 @@ const Example = (props) => { |
|
|
|
> |
|
|
|
<Button theme="borderless">删除</Button> |
|
|
|
</Popconfirm> |
|
|
|
</div> |
|
|
|
</div > |
|
|
|
); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -355,6 +358,7 @@ const Example = (props) => { |
|
|
|
setAppArr([]) |
|
|
|
setAnxincloudArr() |
|
|
|
setBindId() |
|
|
|
setMapping('') |
|
|
|
}} |
|
|
|
> |
|
|
|
添加映射关系 |
|
|
@ -450,6 +454,7 @@ const Example = (props) => { |
|
|
|
anxincloudArr={anxincloudArr} |
|
|
|
pepProjectId={pepProjectId} |
|
|
|
anxinDelete={anxinDelete} |
|
|
|
mapping={mapping} |
|
|
|
appArr={appArr} |
|
|
|
bindId={bindId} |
|
|
|
cancel={() => { |
|
|
|