v1 test and bug fixes

This commit is contained in:
ori
2019-07-19 01:40:06 -07:00
parent c80f0d9f4b
commit b19a34bb29
7 changed files with 41 additions and 28 deletions

View File

@@ -1,8 +1,8 @@
<template>
<div id="Threshold">
<chrange class="spacing" title="Hue" Xkey="hue"></chrange>
<chrange class="spacing" title="Saturation" Xkey="saturation"></chrange>
<chrange class="spacing" title="Value" Xkey="value"></chrange>
<chrange class="spacing" title="Hue" Xkey="hue" :maximum="180"></chrange>
<chrange class="spacing" title="Saturation" Xkey="saturation" :maximum="255"></chrange>
<chrange class="spacing" title="Value" Xkey="value" :maximum="255"></chrange>
<chswitch class="spacing" title="Erode" Xkey="erode"></chswitch>
<chswitch class="spacing" title="Dilate" Xkey="dilate"></chswitch>
</div>

View File

@@ -64,10 +64,10 @@
},
isBinary: {
get: function(){
return this.$store.state.isBinaryImage;
return this.$store.state.is_binary;
},
set: function(value){
this.$store.commit('isBinaryImage',value)
this.$store.commit('is_binary',value)
}
}
},

View File

@@ -8,10 +8,10 @@
<InputNumber style="align-self: flex-start;" v-model="value[0]" size="small" :step="steps" ></InputNumber>
</Col>
<Col span="10">
<Slider range v-model="value" @on-input="handleInput" :step="steps"></Slider>
<Slider range v-model="value" @on-input="handleInput" :step="steps" :max="maximum"></Slider>
</Col>
<Col span="4" style="text-align: right">
<InputNumber style="align-self: flex-end;" v-model="value[1]" size="small" :step="steps"></InputNumber>
<InputNumber style="align-self: flex-end;" v-model="value[1]" size="small" :step="steps" :max="maximum"></InputNumber>
</Col>
</row>
</template>
@@ -22,7 +22,8 @@
props:{
title:String,
Xkey:String,
steps:Number
steps:Number,
maximum:Number
},
data() {
return {

View File

@@ -40,7 +40,7 @@ export const store = new Vuex.Store({
hostName:"",
//live info
streamAdress:("http://"+location.hostname + ":1181/stream.mjpg"),
isBinaryImage:0,
is_binary:0,
//camera lists
},
@@ -68,7 +68,7 @@ export const store = new Vuex.Store({
gateWay : set('gateway'),
hostName : set('hostname'),
streamAdress : set('streamAdress'),
isBinaryImage: set('isBinaryImage'),
is_binary: set('is_binary'),
cameraList : set('cameraList'),
pipelineList: set('piplineList'),
sort_mode: set('sort_mode'),
@@ -96,7 +96,7 @@ export const store = new Vuex.Store({
gateWay: state => state.gateWay,
hostName: state => state.hostName,
streamAdress: state => state.streamAdress,
isBinaryImage: state => state.isBinaryImage,
is_binary: state => state.is_binary,
cameraList: state => state.cameraList,
pipelineList: state => state.pipelineList,
sort_mode: state => state.sort_mode,