Commit bcf2709e by chenwq

编辑sop-结束时间

1 parent 7390e0cb
......@@ -57,12 +57,12 @@
<img class="m-r-10" v-if="item.object.additionalType && item.object.additionalType != 4" :src="require(`@/assets/sop/icon-${imgIcon[item.object.additionalType]}.png`)" alt />
<div v-if="item.object.additionalType == 4">
<div v-if="item.object.showVideoContent.length">
<!-- <video class="model-item-img" :src="item.object.showVideoContent[0].attContent" controls="controls" /> -->
<video v-for="(subItem, subIndex) in item.object.showVideoContent" class="model-item-img" :key="subIndex" :src="subItem.attContent" controls="controls" />
<video class="model-item-img" :src="item.object.showVideoContent[0].attContent" controls="controls" />
<!-- <video v-for="(subItem, subIndex) in item.object.showVideoContent" class="model-item-img" :key="subIndex" :src="subItem.attContent" controls="controls" /> -->
</div>
<div v-if="!item.object.showVideoContent.length && item.object.showImgContent.length">
<!-- <img class="model-item-img" :src="item.object.showImgContent[0].attContent" /> -->
<el-image v-for="(subItem, subIndex) in item.object.showImgContent" class="model-item-img" :key="subIndex" :src="subItem.attContent" :preview-src-list="[subItem.attContent]"></el-image>
<img class="model-item-img" :src="item.object.showImgContent[0].attContent" />
<!-- <el-image v-for="(subItem, subIndex) in item.object.showImgContent" class="model-item-img" :key="subIndex" :src="subItem.attContent" :preview-src-list="[subItem.attContent]"></el-image> -->
</div>
</div>
<span v-else>{{ item.object.objectName }}</span>
......
......@@ -49,12 +49,12 @@
<img class="event-icon" v-if="itm.additionalType != 4" :src="require(`@/assets/sop/icon-${btnList.find(k => k.id == itm.additionalType).type}.png`)" alt />
<div v-if="itm.additionalType == 4">
<div v-if="itm.attContent.showVideoContent.length">
<!-- <video class="model-item-img" :src="itm.attContent.showVideoContent[0].attContent" controls="controls" /> -->
<video v-for="(subItem, subIndex) in itm.attContent.showVideoContent" class="model-item-img" :key="subIndex" :src="subItem.attContent" controls="controls" />
<video class="model-item-img" :src="itm.attContent.showVideoContent[0].attContent" controls="controls" />
<!-- <video v-for="(subItem, subIndex) in itm.attContent.showVideoContent" class="model-item-img" :key="subIndex" :src="subItem.attContent" controls="controls" /> -->
</div>
<div v-if="!itm.attContent.showVideoContent.length && itm.attContent.showImgContent.length">
<!-- <img class="model-item-img" :src="itm.attContent.showImgContent[0].attContent" /> -->
<el-image v-for="(subItem, subIndex) in itm.attContent.showImgContent" class="model-item-img" :key="subIndex" :src="subItem.attContent" :preview-src-list="[subItem.attContent]"></el-image>
<img class="model-item-img" :src="itm.attContent.showImgContent[0].attContent" />
<!-- <el-image v-for="(subItem, subIndex) in itm.attContent.showImgContent" class="model-item-img" :key="subIndex" :src="subItem.attContent" :preview-src-list="[subItem.attContent]"></el-image> -->
</div>
</div>
<span v-else :title="itm.attContent.objectName">{{ itm.attContent.objectName }}</span>
......@@ -433,7 +433,7 @@ export default {
getInfo() {
this.editForm.eventStartDate = moment(this.editForm.eventStartDate).format('YYYY-MM-DD')
this.editForm.eventEndDate = moment(this.editForm.eventEndDate).format('YYYY-MM-DD')
this.editForm.eventEndDate = this.editForm.eventEndDate ? moment(this.editForm.eventEndDate).format('YYYY-MM-DD') : ''
this.previewList = this.editForm.object ? [{ attContent: JSON.parse(JSON.stringify(this.editForm.object)), additionalType: this.editForm.object.additionalType }] : []
this.recoveryRepeat()
this.recoveryEndTime()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!