| | |
| | | </div> |
| | | </div> |
| | | <div class="mark-info"> |
| | | <div class="abnormal" v-if="data.IsUnusual==='1'"> |
| | | <span v-for="(mark,index) in data.marks" :key="index">{{mark}}</span> |
| | | <div class="abnormal" v-if="data.LableLst&&data.LableLst.length"> |
| | | <span v-for="(label,index) in data.LableLst" :key="index">{{label.Desc}}</span> |
| | | </div> |
| | | <div v-else> |
| | | <span>无异常</span> |
| | |
| | | class="dialog-video" |
| | | :visible="videoDialogVisible" |
| | | @close="videoDialogVisible=false" |
| | | :append-to-body="false" |
| | | > |
| | | <div slot="title" class="title"> |
| | | <div class="center"> |
| | |
| | | components: { |
| | | VideoAnalyze |
| | | }, |
| | | data() { |
| | | data () { |
| | | return { |
| | | CLIP: 'http://192.168.20.113/', |
| | | keyword: '', |
| | |
| | | pickerOptions: { |
| | | shortcuts: [{ |
| | | text: '今天', |
| | | onClick(picker) { |
| | | onClick (picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setHours(0, 0, 0); |
| | |
| | | } |
| | | }, { |
| | | text: '昨天', |
| | | onClick(picker) { |
| | | onClick (picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24); |
| | |
| | | } |
| | | }, { |
| | | text: '近三天', |
| | | onClick(picker) { |
| | | onClick (picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 3); |
| | |
| | | } |
| | | }, { |
| | | text: '近一周', |
| | | onClick(picker) { |
| | | onClick (picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); |
| | |
| | | }, |
| | | watch: { |
| | | checkedConfigs: { |
| | | handler(n, o) { |
| | | handler (n, o) { |
| | | this.filterSearchData() |
| | | }, |
| | | deep: true |
| | | } |
| | | }, |
| | | mounted() { |
| | | mounted () { |
| | | this.init(); |
| | | }, |
| | | methods: { |
| | | handleTabSizeChange(size) { |
| | | handleTabSizeChange (size) { |
| | | debugger |
| | | this.tabPageSize = size; |
| | | this.filterSearchData() |
| | | }, |
| | | handleTableSizeChange(size) { |
| | | handleTableSizeChange (size) { |
| | | this.tablePageSize = size; |
| | | this.filterSearchData() |
| | | }, |
| | | handleCurrentChange() { |
| | | handleCurrentChange () { |
| | | this.filterSearchData() |
| | | }, |
| | | //二级查询 |
| | | filterSearchData() { |
| | | filterSearchData () { |
| | | let _this = this; |
| | | let query = { |
| | | KeyWord: this.keyword, |
| | |
| | | }) |
| | | }, |
| | | //一级查询 |
| | | init() { |
| | | init () { |
| | | let _this = this; |
| | | let query = { |
| | | KeyWord: this.keyword, |
| | |
| | | |
| | | }) |
| | | }, |
| | | toggleFollow(data) { |
| | | toggleFollow (data) { |
| | | data.IsFollow = !data.IsFollow; |
| | | this.updataVideo(data); |
| | | if (data.IsFollow) { |
| | |
| | | }); |
| | | } |
| | | }, |
| | | updataVideo(data) { |
| | | updataVideo (data) { |
| | | let _this = this; |
| | | updateVideoAnalyze(data).then(res => { |
| | | //二级查询 |
| | | }); |
| | | }, |
| | | |
| | | checkVideoDetail(data) { |
| | | checkVideoDetail (data) { |
| | | let _this = this; |
| | | _this.selectedVideo = data; |
| | | _this.videoDialogVisible = true; |
| | | }, |
| | | checkFollow() { |
| | | checkFollow () { |
| | | |
| | | }, |
| | | checkType(type) { |
| | | checkType (type) { |
| | | this.showType = type; |
| | | this.filterSearchData() |
| | | }, |
| | | clearCheckedConfigs() { |
| | | clearCheckedConfigs () { |
| | | this.checkedConfigs.forEach(config => { |
| | | config.isShow = true; |
| | | config.data.forEach(d => { |
| | |
| | | this.checkedConfigs = []; |
| | | this.showAdvance = true; |
| | | }, |
| | | removeCheckedConfig(config) { |
| | | removeCheckedConfig (config) { |
| | | config.isShow = true; |
| | | if (config.IsAdvanced) { |
| | | this.showAdvance = true; |
| | |
| | | let index = this.checkedConfigs.findIndex(one => one.id == config.id); |
| | | this.checkedConfigs.splice(index, 1); |
| | | }, |
| | | checkOption(config, option) { |
| | | checkOption (config, option) { |
| | | if (option) { |
| | | option.isChecked = true; |
| | | } |
| | |
| | | |
| | | }, |
| | | |
| | | cancleMultCheck(config) { |
| | | cancleMultCheck (config) { |
| | | config.isMultCheck = false; |
| | | config.data.forEach(opt => { |
| | | opt.isChecked = false; |
| | | }); |
| | | }, |
| | | handleSelect(key, keyPath) { |
| | | handleSelect (key, keyPath) { |
| | | |
| | | }, |
| | | showMore(config) { |
| | | showMore (config) { |
| | | config.isShowMore = !config.isShowMore; |
| | | this.$refs[`options${config.id}`][0].style.height = config.isShowMore ? this.$refs[`options${config.id}`][0].scrollHeight + 'px' : this.fixedOneLineHeight + 'px'; |
| | | }, |
| | | toggleMultCheck(config) { |
| | | toggleMultCheck (config) { |
| | | config.isMultCheck = !config.isMultCheck; |
| | | this.optionalConfigs.forEach(conf => { |
| | | if (conf.id == config.id) { |
| | |
| | | conf.isMultCheck = false; |
| | | }) |
| | | }, |
| | | dataSearch() { |
| | | dataSearch () { |
| | | console.log(this.checkedConfigs); |
| | | this.$forceUpdate(); |
| | | }, |
| | |
| | | text-align: left; |
| | | border: 1px solid #dedede; |
| | | border-radius: 5px; |
| | | height: 350px; |
| | | .video-wrap { |
| | | background: aliceblue; |
| | | border-radius: 3px; |
| | |
| | | } |
| | | } |
| | | .dialog-video { |
| | | z-index: 2096 !important; |
| | | .el-dialog { |
| | | width: 1180px; |
| | | height: 918px; |
| | | } |
| | | .el-dialog__body { |
| | | background: #f5f5f5; |