Ant Design-tags组件按需注册,paramBehind参数更改。

merge-requests/1/head
张鑫 5 years ago
parent 5b2b747348
commit acfccfdb14

@ -20,6 +20,7 @@ import {
Select, Select,
Popconfirm, Popconfirm,
Tooltip, Tooltip,
Tag,
Drawer, Drawer,
Divider Divider
} from "ant-design-vue"; } from "ant-design-vue";
@ -42,6 +43,7 @@ Vue.use(Col);
Vue.use(Select); Vue.use(Select);
Vue.use(Popconfirm) Vue.use(Popconfirm)
Vue.use(Tooltip) Vue.use(Tooltip)
Vue.use(Tag)
Vue.use(Drawer) Vue.use(Drawer)
Vue.use(Divider) Vue.use(Divider)
Vue.prototype.$message = message; Vue.prototype.$message = message;

@ -76,7 +76,6 @@ const routes = [{
// }, // },
// ] // ]
// }, // },
{ {
path: 'checkManage', path: 'checkManage',
name: 'checkManage', name: 'checkManage',
@ -94,7 +93,8 @@ const routes = [{
name: '巷道管理' name: '巷道管理'
}, },
component: () => import('@/views/roadwayManage/index') component: () => import('@/views/roadwayManage/index')
}, { },
{
path: 'cameraManage', path: 'cameraManage',
name: 'cameraManage', name: 'cameraManage',
meta: { meta: {
@ -102,7 +102,8 @@ const routes = [{
name: '球机管理' name: '球机管理'
}, },
component: () => import('@/views/cameraManage/index') component: () => import('@/views/cameraManage/index')
},{ },
{
path: 'center', path: 'center',
name: 'center', name: 'center',
meta: { meta: {

@ -1,5 +1,37 @@
<template> <template>
<div> <div class="check-page">
盘点管理 <div class="title-info">
<span class="explain">颜色说明</span>
<span class="info-text">
<a-tag color="#d81e06" style="width:30px;height:20px"></a-tag>
盘点错误
</span>
<span class="info-text">
<a-tag color="#1afa29" style="width:30px;height:20px"></a-tag>
盘点正确
</span>
<span class="info-text">
<a-tag color="#bfbfbf" style="width:30px;height:20px"></a-tag>
未盘点
</span>
</div>
</div> </div>
</template> </template>
<style lang="scss" scoped>
.check-page{
.title-info{
display: flex;
align-items: center;
justify-content: start;
.explain{
font-weight:600;
}
.info-text{
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
}
}
}
</style>

@ -105,7 +105,7 @@ export default {
data:{ data:{
"sourceUrl":item.rtsp, "sourceUrl":item.rtsp,
"paramBefore": "-y -i", "paramBefore": "-y -i",
"paramBehind": "-f mpegts -codec:v mpeg1video -an -s 480*270 -b:v 1000k -r 20 -bf 0 -codec:a mp2 -ar 44100 -ac 1 -b:a 128k" "paramBehind": "-f mpegts -vcodec mpeg1video -an -s 480*270 -b:v 1000k -r 20 -bf 0 -codec:a mp2 -ar 44100 -ac 1 -b:a 128k"
} }
}).then(res => { }).then(res => {
console.log(res.data) console.log(res.data)

@ -146,7 +146,7 @@ export default {
data:{ data:{
"sourceUrl":data.rtsp, "sourceUrl":data.rtsp,
"paramBefore": "-y -i", "paramBefore": "-y -i",
"paramBehind": "-f mpegts -codec:v mpeg1video -an -s 1707*960 -b:v 1000k -r 20 -bf 0 -codec:a mp2 -ar 44100 -ac 1 -b:a 128k" "paramBehind": "-f mpegts -vcodec mpeg1video -an -s 1707*960 -b:v 1000k -r 20 -bf 0 -codec:a mp2 -ar 44100 -ac 1 -b:a 128k"
} }
}).then(res => { }).then(res => {
console.log(res.data) console.log(res.data)

Loading…
Cancel
Save