diff --git a/web/client/src/layout/actions/global.js b/web/client/src/layout/actions/global.js index cf8082d..2e51bd2 100644 --- a/web/client/src/layout/actions/global.js +++ b/web/client/src/layout/actions/global.js @@ -41,6 +41,7 @@ export function initApiRoot () { iotVcmpWeb:res.iotVcmpWeb, pomsMonitor:res.pomsMonitor, dcWeb:res.dcWeb, + qiniu:res.qiniu, } }) }); diff --git a/web/client/src/layout/reducers/global.js b/web/client/src/layout/reducers/global.js index 2b16eef..6aff8f8 100644 --- a/web/client/src/layout/reducers/global.js +++ b/web/client/src/layout/reducers/global.js @@ -14,6 +14,7 @@ function global (state = { iotVcmpWeb: '', pomsMonitor:'', dcWeb:'', + qiniu:{} }, action) { const payload = action.payload; switch (action.type) { @@ -36,6 +37,7 @@ function global (state = { iotVcmpWeb: payload.iotVcmpWeb, pomsMonitor:payload.pomsMonitor, dcWeb:payload.dcWeb, + qiniu:payload.qiniu, }).toJS(); case PEPPROJECTID: return Immutable.fromJS(state).merge({ diff --git a/web/client/src/sections/means/containers/projectMeans.jsx b/web/client/src/sections/means/containers/projectMeans.jsx index 56e8c78..fce98a9 100644 --- a/web/client/src/sections/means/containers/projectMeans.jsx +++ b/web/client/src/sections/means/containers/projectMeans.jsx @@ -10,7 +10,7 @@ import './style.less' const Rest = (props) => { - const { dispatch, actions, user, loading, clientHeight, overallProjectId } = props + const { dispatch, actions, user, qiniu, loading, clientHeight, overallProjectId } = props const { install, means } = actions const [pomsList, setPomsList] = useState([]); //项目 const [showPomsList, setShowPomsList] = useState([]); //项目 @@ -26,6 +26,8 @@ const Rest = (props) => { const [dataSource, setDataSource] = useState([]) //表格数据 const [query, setQuery] = useState({ limit: 10, page: 0 }) const [count, setCount] = useState(0) + const [videoModalV, setVideoModalV] = useState(false); + const [videoUrl, setvideoUrl] = useState(null); @@ -101,10 +103,8 @@ const Rest = (props) => { } }) } - console.log(treeData); treeDataList(treeData) let datas = params || query - console.log(fileIds); dispatch(means.folderFileList({ fileId: JSON.stringify(fileIds), ...datas })).then((res => { if (res.success) { setDataSource(res.payload.data?.rows || []) @@ -165,7 +165,7 @@ const Rest = (props) => { title: '文件名', dataIndex: 'name', key: 'name', - render: (text) => text?.length > 30 ?