| | |
| | | prop: "waringType", |
| | | search: true, |
| | | searchSpan: 3, |
| | | width: 130, |
| | | className: "waringTypeClass", |
| | | searchPlaceholder: "请选择", |
| | | type: "select", |
| | |
| | | searchSpan: 3, |
| | | prop: "cid", |
| | | slot: true, |
| | | width: 100, |
| | | type: "select", |
| | | dicData: [ |
| | | { |
| | |
| | | <el-tag>{{row.jtype=='0'?'否':row.jtype=='1'?'是':'无'}}</el-tag> |
| | | </template> |
| | | |
| | | <template slot-scope="{ row }" slot="cid"> |
| | | <el-tag>{{ |
| | | row.cid == "1" ? "事件发生" : row.cid == "3" ? "是" : "事件恢复" |
| | | }} |
| | | </el-tag> |
| | | </template> |
| | | |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | |
| | | <el-button |
| | | icon="el-icon-video-camera-solid" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleStart(row)" |
| | | >视频回放 |
| | | </el-button> |
| | | |
| | | </template> |
| | | |
| | | </avue-crud> |
| | | <el-drawer |
| | | title="我是标题" |
| | |
| | | height: 'auto', |
| | | indexLabel: '序号', |
| | | calcHeight: 30, |
| | | menuWidth:130, |
| | | menuWidth:160, |
| | | size: "mini", |
| | | labelWidth: '100', |
| | | dialogWidth: 950, |
| | | tip: false, |
| | |
| | | prop: "waringType", |
| | | search: true, |
| | | searchSpan: 3, |
| | | width: 130, |
| | | className: "waringTypeClass", |
| | | searchPlaceholder: "请选择", |
| | | type: "select", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictValue" |
| | | }, |
| | | //cascaderItem: ["city", "district"], |
| | | dicUrl: "/api/blade-system/dict-biz/child-list?parentId=1356523651644043266", |
| | | }, |
| | | { |
| | | label: "报警时间", |
| | |
| | | label: "警情状态", |
| | | searchSpan: 3, |
| | | prop: "cid", |
| | | width: 100, |
| | | slot: true, |
| | | type: "select", |
| | | dicData: [ |
| | | { |
| | |
| | | rowStyle({row, column, rowIndex}) { |
| | | if (row.jtype == "1") { |
| | | return { |
| | | color: '#15a2fe' |
| | | } |
| | | color: "#15a2fe" |
| | | }; |
| | | } else { |
| | | return { |
| | | color: '#ff7627' |
| | | } |
| | | color: "#ff2727" |
| | | }; |
| | | } |
| | | }, |
| | | handleStart(row) { |
| | | |
| | | this.$router.push({path: `/real/video/${row.channelNumber}/${row.serialNumber}`}); |
| | | var arr = []; |
| | | this.$store.state.tags.tagList.forEach(item => { |
| | | if (item.label != "视频") { |
| | | arr.push(item); |
| | | } |
| | | }); |
| | | this.$store.state.tags.tagList = arr; |
| | | this.$router.push({ |
| | | path: `/real/video/`,query:row |
| | | }); |
| | | }, |
| | | handleAdd11(){ |
| | | this.qwe=true; |