视频库查看 修改 打开就能看视频

视频查看 播放 100%
隐患查看 绑定修改
This commit is contained in:
wyw 2025-09-15 11:36:44 +08:00
parent ce3749966e
commit 096730ba7a
3 changed files with 26 additions and 15 deletions

View File

@ -31,21 +31,23 @@
<uni-collapse :border="false" accordion>
<uni-card style="margin-bottom: 5px;" margin="0" spacing="0" :is-shadow="false"
v-for="(item, index) in model.ListShow">
<uni-collapse-item :title="(index+1) + '. ' + item.CHECKCONTENT" name="1">
<u-form-item label="检查内容" prop="CHECKCONTENT" borderBottom>
<uni-collapse-item :title="(index+1) + '. ' + item.CHECKCONTENT"
name="1">
<u-form-item label="检查内容" prop="Nav_Contents.CHECKCONTENT" borderBottom>
<!-- <u--input disabled disabledColor="#fff" v-model="item.CHECKCONTENT"
border="none" inputAlign="right"></u--input> -->
<u--textarea disabled disabledColor="#fff" v-model="item.CHECKCONTENT"
border="none" inputAlign="right" autoHeight></u--textarea>
<u--textarea disabled disabledColor="#fff"
v-model="item.Nav_Contents.CHECKCONTENT" border="none"
inputAlign="right" autoHeight></u--textarea>
</u-form-item>
<u-form-item v-if="model.ISDOWN==''" label="区域" prop="Nav_RiskArea.NAME"
borderBottom>
<u--input disabled disabledColor="#fff" v-model="item.Nav_RiskArea.NAME"
border="none" inputAlign="right"></u--input>
</u-form-item>
<u-form-item label="地址" prop="ADDRESS" borderBottom>
<u--input disabled disabledColor="#fff" v-model="item.ADDRESS"
<u-form-item label="地址" prop="HIDDEN_PLACE" borderBottom>
<u--input disabled disabledColor="#fff" v-model="item.HIDDEN_PLACE"
border="none" inputAlign="right"></u--input>
</u-form-item>
<u-form-item label="上报时间" prop="CREATE_TIME" borderBottom>
@ -152,11 +154,22 @@
this.model.ISDOWN == '否' || this.model.ISDOWN == '') ? false : true))
json.IgnoreDataRule = true
json.Limit = 20
json.SelectField = ["CHECKCONTENT", "ADDRESS", "CREATE_TIME", "Nav_RiskArea.NAME"]
json.SelectField = ["Nav_Contents.CHECKCONTENT", "HIDDEN_PLACE", "CREATE_TIME", "Nav_RiskArea.NAME"]
PagedRisk(json).then(res => {
if (res.IsSuccessful) {
// this.model.ListShow = res.Data
this.total = res.TotalCount
res.Data.forEach(e => {
if (e.Nav_Contents && e.Nav_Contents.CHECKCONTENT) {
if (e.Nav_Contents.CHECKCONTENT.length > 15) {
e.CHECKCONTENT = e.Nav_Contents.CHECKCONTENT.substring(0, 15)+'...'
} else {
e.CHECKCONTENT = e.Nav_Contents.CHECKCONTENT
}
} else {
e.CHECKCONTENT = ''
}
})
if (paginate) {
this.model.ListShow = this.model.ListShow.concat(res.Data)
} else {

View File

@ -134,6 +134,7 @@
this.model.RISK_AREA_ID = option.RISK_AREA_ID // 'FA89F8DA-0B46-4665-A8DD-3675829F6D6F'
this.OrgId = option.OrgId // 'B043B28B-BBC3-C452-6052-4FBA1457ABFA'
if (this.model.RISK_AREA_ID != undefined && this.model.RISK_AREA_ID != '') {
// this.PagedCheckMain()//
const json = initFilter(this.OrgId, null, "NAME", 0, 1);
json.IgnoreDataRule = true
@ -144,13 +145,10 @@
this.model.RISK_AREA_NAME = res.Data[0].NAME
}
})
this.pageIndex = 0
this.PagedVideo();
}
// var player = polyvPlayer({
// wrap: "#player",
// width: 400,
// height: 300,
// vid: vid, //id
// });
},
// mounted() {
// this.loadPlayerScript(this.loadPlayer);

View File

@ -41,7 +41,8 @@
const polyvPlayer = window.polyvPlayer;
this.player = polyvPlayer({
wrap: '#player',
width: 300,
// width: 300,
with: '100%' ,
height: 300,
vid: this.vid,
});
@ -121,5 +122,4 @@
.demo-ruleForm-thr>>>.u-cell__title-text {
font-size: 14px;
}
</style>