Browse Source

视频增加 controls

dev
巴林闲侠 1 year ago
parent
commit
d07175c0fa
  1. 4
      web/client/src/sections/fillion/components/maintenanceTable.js
  2. 4
      web/client/src/sections/fillion/components/patrolTable.js

4
web/client/src/sections/fillion/components/maintenanceTable.js

@ -97,7 +97,7 @@ const DetailForm = (props) => {
{
data[obj.name] && data[obj.name] instanceof Array ? data[obj.name].map(videoUrl => {
return <div style={{ width: '44%', margin: 6 }}>
<video src={qndmn + '/' + videoUrl} width={'100%'} style={{ marginBottom: 4 }} />
<video src={qndmn + '/' + videoUrl} width={'100%'} style={{ marginBottom: 4 }} controls />
</div>
}) : '暂无视频'
}
@ -641,7 +641,7 @@ const MaintenanceTable = (props) => {
);
};
function mapStateToProps(state) {
function mapStateToProps (state) {
const { auth, depMessage, userList, reportList, reportDetail, depUser, global, allDepUsers } = state;
const pakData = (dep) => {
return dep.map((d) => {

4
web/client/src/sections/fillion/components/patrolTable.js

@ -138,7 +138,7 @@ const DetailForm = (props) => {
{
data[obj.name] && data[obj.name] instanceof Array ? data[obj.name].map(videoUrl => {
return <div style={{ width: '44%', margin: 6 }}>
<video width={'100%'} style={{ marginBottom: 4 }} >
<video controls width={'100%'} style={{ marginBottom: 4 }} >
<source src={qndmn + '/' + videoUrl} type="video/mp4" />
</video>
</div>
@ -856,7 +856,7 @@ const PatrolTable = (props) => {
);
};
function mapStateToProps(state) {
function mapStateToProps (state) {
const { auth, depMessage, userList, reportList, reportDetail, global, allDepUsers } = state;
const pakData = (dep) => {
return dep.map((d) => {

Loading…
Cancel
Save