fix webtrader bug

1.fix issue#763
2.fix issue#753
3.fix issue#741
This commit is contained in:
Sylar012 2018-03-05 22:50:42 +08:00 committed by GitHub
parent 065c96bbcd
commit 42c3686cab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@
<el-input v-model="loginForm.user" auto-complete="off"></el-input> <el-input v-model="loginForm.user" auto-complete="off"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="密码" :label-width="formLabelWidth"> <el-form-item label="密码" :label-width="formLabelWidth">
<el-input v-model="loginForm.pwd" auto-complete="off"></el-input> <el-input v-model="loginForm.pwd" auto-complete="off" type="password"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -103,7 +103,7 @@
</div> </div>
</el-row> </el-row>
<el-row class="body-left__connection"> <el-row class="body-left__connection">
<div>服务器连接: <div>socket服务器连接:
<p>{{connection}}</p> <p>{{connection}}</p>
</div> </div>
</el-row> </el-row>
@ -987,7 +987,7 @@ new Vue({
let that = this, let that = this,
positions = new Object(); positions = new Object();
socket.on("ePosition.", function(data) { socket.on("ePosition.", function(data) {
positions[data.vtSymbol] = data positions[data.vtPositionName] = data
that.position = Object.values(positions).reverse() that.position = Object.values(positions).reverse()
}); });
}, },
@ -1064,4 +1064,4 @@ new Vue({
}) })
</script> </script>
</html> </html>